-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Going through all members may be problematic when there is an infinite tree. For example, float objects provide two data descriptor: real and imag. Thus, you can have: >>> f = 1.0 >>> f.imag.imag.imag.imag.imag.imag # ... In this case, getfeatures just reaches the Maximum Depth Recursion. To avoid this, getfeatures will only traverse through properties of type featuredprop.
- Loading branch information
Showing
5 changed files
with
48 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from link.feature.core import Feature | ||
from link.feature.core import Feature, featuredprop | ||
from link.feature.core import addfeatures, getfeatures | ||
from link.feature.core import hasfeature, getfeature | ||
|
||
|
||
__all__ = ['Feature', 'addfeatures', 'getfeatures', 'hasfeature', 'getfeature'] | ||
__all__ = [ | ||
'Feature', 'featuredprop', | ||
'addfeatures', 'getfeatures', | ||
'hasfeature', 'getfeature' | ||
] | ||
|
||
__version__ = '1.2' | ||
__version__ = '2.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters