Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Close branch slotsslots | Claudiu Popa | 2014-07-03 | 0 | -0/+0 |
| | |||||
* | Make islots private. | cpopa | 2014-07-03 | 3 | -4/+7 |
| | |||||
* | Merge with default. | cpopa | 2014-07-03 | 7 | -40/+85 |
|\ | |||||
| * | test: Add test_parent_metaclass for python3 | Julien Cristau | 2014-06-30 | 1 | -0/+13 |
| | | |||||
| * | Add changelog entry for Class.metaclass() changes | Julien Cristau | 2014-06-30 | 1 | -0/+3 |
| | | |||||
| * | Stop looking at the __metaclass__ class attribute for python3 | Julien Cristau | 2014-06-30 | 3 | -9/+20 |
| | | | | | | | | Python 3 only considers the `metaclass` keyword argument. | ||||
| * | Handle __metaclass__ defined at the module level | Julien Cristau | 2014-06-10 | 3 | -35/+52 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the doc (https://docs.python.org/2/reference/datamodel.html#customizing-class-creation): The appropriate metaclass is determined by the following precedence rules: - If dict['__metaclass__'] exists, it is used. - Otherwise, if there is at least one base class, its metaclass is used (this looks for a __class__ attribute first and if not found, uses its type). - Otherwise, if a global variable named __metaclass__ exists, it is used. - Otherwise, the old-style, classic metaclass (types.ClassType) is used. The third case was not handled by node.metaclass(). Remove metaclass lookup from the rebuilder, handle it all in Class._explicit_metaclass() instead, and use that in _newstyle_impl if possible. Remove test_newstyle_and_metaclass_bad, as I think the returned value in this test is irrelevant (it's a TypeError anyway, so you can't actually build that class), and replace it with a test using nested classes. Closes issue#33 | ||||
| * | Fix repr for ast nodes | Julien Cristau | 2014-06-03 | 1 | -1/+1 |
| | | |||||
| * | Add missing import | Julien Cristau | 2014-06-04 | 1 | -1/+2 |
| | | |||||
* | | Add `slots` and `islots` methods to Class nodes. | cpopa | 2014-06-04 | 3 | -2/+117 |
|/ | |||||
* | Merged in PCManticore/astroid/classmethod_subclasses (pull request #36) | Claudiu Popa | 2014-05-21 | 0 | -0/+0 |
|\ | | | | | | | Function nodes can detect if they are decorated with subclasses of builtin descriptors when determining their type (`classmethod` and `staticmethod`). | ||||
* \ | Merge with default. | cpopa | 2014-05-07 | 3 | -1/+8 |
|\ \ | |/ | |||||
| * | 1.1.1 | Sylvain Th?nault | 2014-04-30 | 3 | -2/+10 |
| | | |||||
* | | Function nodes can detect if they are decorated with subclasses of builtin ↵ | cpopa | 2014-05-07 | 4 | -6/+71 |
|/ | | | | descriptors when determining their type (`classmethod` and `staticmethod`). | ||||
* | Merge with ancestors. | cpopa | 2014-04-30 | 1 | -4/+2 |
|\ | |||||
| * | Merge with default. | cpopa | 2014-04-29 | 4 | -5/+110 |
| |\ | |||||
* | | | Simplify the lookup for the metaclass; add comments for the YES node tests.ancestors | cpopa | 2014-04-30 | 3 | -6/+6 |
| | | | |||||
* | | | Merge with default. | cpopa | 2014-04-29 | 6 | -3/+36 |
|\ \ \ | |/ / | |||||
| * | | Only cache modules if no other module with the same name is known yet, and | Torsten Marek | 2014-04-26 | 4 | -3/+12 |
| | | | | | | | | | | | | only return cached modules if name and filepath match. | ||||
| * | | Add future imports to Module.future_imports. | Torsten Marek | 2014-04-25 | 3 | -0/+23 |
| | | | |||||
* | | | Merge with default. | cpopa | 2014-04-29 | 0 | -0/+0 |
|\ \ \ | |_|/ |/| | | |||||
* | | | Use specific assert in test, remove a required version. | cpopa | 2014-04-25 | 2 | -3/+2 |
| | | | |||||
* | | | Add tests for checking that YES is not leaked when retrieving the metaclass ↵ | cpopa | 2014-04-25 | 2 | -0/+20 |
| | | | | | | | | | | | | of a Class node. | ||||
* | | | Look in ancestors when a class node doesn't use an explicitly defined ↵ | cpopa | 2014-04-25 | 4 | -4/+91 |
| |/ |/| | | | | | metaclass (the metaclass of a class is a metaclass for all its subclasses). | ||||
* | | Merged in PCManticore/astroid/tox (pull request #34) | Claudiu Popa | 2014-04-25 | 0 | -0/+0 |
|\ \ | | | | | | | | | | Add a tox.ini file | ||||
* | | | Bug fix. | cpopa | 2014-04-25 | 1 | -1/+1 |
| | | | |||||
* | | | Change tox.ini file. | cpopa | 2014-04-25 | 1 | -10/+2 |
| | | | |||||
* | | | Add a tox.ini file. | cpopa | 2014-04-25 | 1 | -0/+18 |
|/ / | |||||
* | | Merge heads. | cpopa | 2014-04-24 | 1 | -1/+1 |
|\ \ | |||||
| * | | fix debian version number | Sylvain Th?nault | 2014-04-22 | 1 | -1/+1 |
| | | | |||||
* | | | Skip non-class bases. | cpopa | 2014-04-24 | 1 | -0/+2 |
| | | | |||||
* | | | test: stop using logilab.common.shellutils.Execute | Julien Cristau | 2014-02-03 | 4 | -19/+19 |
| | | | | | | | | | | | | Use a ProgressBar instead. | ||||
* | | | Merged in PCManticore/astroid/ancestors (pull request #31) | Claudiu Popa | 2014-04-22 | 3 | -0/+26 |
|\ \ \ | |/ / |/| / | |/ | Skip the same infered nodes as the base class in _is_metaclass. Closes issue #25 | ||||
| * | Merge with default. | cpopa | 2014-04-22 | 3 | -0/+26 |
| |\ |/ / | |||||
| * | Skip the same infered nodes as the base class in _is_metaclass. Closes issue ↵ | cpopa | 2014-04-22 | 3 | -0/+26 |
| | | | | | | | | #25. | ||||
* | | Added tag astroid-1.1 for changeset e003574ae51b | Sylvain Th?nault | 2014-04-18 | 0 | -0/+0 |
| | | |||||
* | | astroid 1.1astroid-1.1 | Sylvain Th?nault | 2014-04-18 | 3 | -2/+9 |
| | | |||||
* | | Merged in PCManticore/astroid/ancestors (pull request #29) | Sylvain Th?nault | 2014-04-17 | 2 | -0/+41 |
|\ \ | |/ |/| | | | Unwrap instances found in `.ancestors()`, by using their _proxied class. Don't inherit the metaclass status if the current class can't be a metaclass. | ||||
| * | Merged in PCManticore/astroid/args_fix (pull request #30) | Claudiu Popa | 2014-04-13 | 2 | -0/+41 |
| |\ | | | | | | | | | | Fix argument search for methods and classmethods. | ||||
| | * | Fix argument search for methods and classmethods. | cpopa | 2014-04-13 | 2 | -0/+41 |
| |/ | |||||
* | | Add note in test regarding the .ancestors() fix. Check the _type of a base ↵ | cpopa | 2014-04-15 | 2 | -0/+5 |
| | | | | | | | | class before calling _is_metaclass again. | ||||
* | | Unwrap instances found in `.ancestors()`, by using their _proxied class. ↵ | cpopa | 2014-04-12 | 4 | -6/+49 |
|/ | | | | Don't inherit the metaclass status if the current class can't be a metaclass. | ||||
* | Skip a test that uses multi-arg with on 2.6. | Eevee (Alex Munroe) | 2014-03-21 | 1 | -0/+1 |
| | |||||
* | Avoid recursively inferring the same attr on the same class. Closes #7 | Eevee (Alex Munroe) | 2014-03-21 | 1 | -0/+3 |
| | |||||
* | Avoid an (expensive) exception in transform. | Eevee (Alex Munroe) | 2014-03-21 | 1 | -5/+7 |
| | |||||
* | slightly more readable version | Sylvain Th?nault | 2014-04-08 | 1 | -1/+2 |
| | |||||
* | backport pylint-brain, up to 6660851486ef | Sylvain Th?nault | 2014-04-08 | 1 | -2/+27 |
| | |||||
* | fix failing test when the whole test are executed, due to caching issue | Sylvain Th?nault | 2014-04-08 | 1 | -0/+1 |
| | |||||
* | fix crash when class has some __call__ method that is not inferable. Closes #17 | Sylvain Th?nault | 2014-04-08 | 3 | -5/+27 |
| | |||||
* | delete trailing whitespaces | Sylvain Th?nault | 2014-04-08 | 1 | -7/+7 |
| |