summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Close branch slotsslotsClaudiu Popa2014-07-030-0/+0
|
* Make islots private.cpopa2014-07-033-4/+7
|
* Merge with default.cpopa2014-07-037-40/+85
|\
| * test: Add test_parent_metaclass for python3Julien Cristau2014-06-301-0/+13
| |
| * Add changelog entry for Class.metaclass() changesJulien Cristau2014-06-301-0/+3
| |
| * Stop looking at the __metaclass__ class attribute for python3Julien Cristau2014-06-303-9/+20
| | | | | | | | Python 3 only considers the `metaclass` keyword argument.
| * Handle __metaclass__ defined at the module levelJulien Cristau2014-06-103-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 nodesJulien Cristau2014-06-031-1/+1
| |
| * Add missing importJulien Cristau2014-06-041-1/+2
| |
* | Add `slots` and `islots` methods to Class nodes.cpopa2014-06-043-2/+117
|/
* Merged in PCManticore/astroid/classmethod_subclasses (pull request #36)Claudiu Popa2014-05-210-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.cpopa2014-05-073-1/+8
|\ \ | |/
| * 1.1.1Sylvain Th?nault2014-04-303-2/+10
| |
* | Function nodes can detect if they are decorated with subclasses of builtin ↵cpopa2014-05-074-6/+71
|/ | | | descriptors when determining their type (`classmethod` and `staticmethod`).
* Merge with ancestors.cpopa2014-04-301-4/+2
|\
| * Merge with default.cpopa2014-04-294-5/+110
| |\
* | | Simplify the lookup for the metaclass; add comments for the YES node tests.ancestorscpopa2014-04-303-6/+6
| | |
* | | Merge with default.cpopa2014-04-296-3/+36
|\ \ \ | |/ /
| * | Only cache modules if no other module with the same name is known yet, andTorsten Marek2014-04-264-3/+12
| | | | | | | | | | | | only return cached modules if name and filepath match.
| * | Add future imports to Module.future_imports.Torsten Marek2014-04-253-0/+23
| | |
* | | Merge with default.cpopa2014-04-290-0/+0
|\ \ \ | |_|/ |/| |
* | | Use specific assert in test, remove a required version.cpopa2014-04-252-3/+2
| | |
* | | Add tests for checking that YES is not leaked when retrieving the metaclass ↵cpopa2014-04-252-0/+20
| | | | | | | | | | | | of a Class node.
* | | Look in ancestors when a class node doesn't use an explicitly defined ↵cpopa2014-04-254-4/+91
| |/ |/| | | | | metaclass (the metaclass of a class is a metaclass for all its subclasses).
* | Merged in PCManticore/astroid/tox (pull request #34)Claudiu Popa2014-04-250-0/+0
|\ \ | | | | | | | | | Add a tox.ini file
* | | Bug fix.cpopa2014-04-251-1/+1
| | |
* | | Change tox.ini file.cpopa2014-04-251-10/+2
| | |
* | | Add a tox.ini file.cpopa2014-04-251-0/+18
|/ /
* | Merge heads.cpopa2014-04-241-1/+1
|\ \
| * | fix debian version numberSylvain Th?nault2014-04-221-1/+1
| | |
* | | Skip non-class bases.cpopa2014-04-241-0/+2
| | |
* | | test: stop using logilab.common.shellutils.ExecuteJulien Cristau2014-02-034-19/+19
| | | | | | | | | | | | Use a ProgressBar instead.
* | | Merged in PCManticore/astroid/ancestors (pull request #31)Claudiu Popa2014-04-223-0/+26
|\ \ \ | |/ / |/| / | |/ Skip the same infered nodes as the base class in _is_metaclass. Closes issue #25
| * Merge with default.cpopa2014-04-223-0/+26
| |\ |/ /
| * Skip the same infered nodes as the base class in _is_metaclass. Closes issue ↵cpopa2014-04-223-0/+26
| | | | | | | | #25.
* | Added tag astroid-1.1 for changeset e003574ae51bSylvain Th?nault2014-04-180-0/+0
| |
* | astroid 1.1astroid-1.1Sylvain Th?nault2014-04-183-2/+9
| |
* | Merged in PCManticore/astroid/ancestors (pull request #29)Sylvain Th?nault2014-04-172-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 Popa2014-04-132-0/+41
| |\ | | | | | | | | | Fix argument search for methods and classmethods.
| | * Fix argument search for methods and classmethods.cpopa2014-04-132-0/+41
| |/
* | Add note in test regarding the .ancestors() fix. Check the _type of a base ↵cpopa2014-04-152-0/+5
| | | | | | | | class before calling _is_metaclass again.
* | Unwrap instances found in `.ancestors()`, by using their _proxied class. ↵cpopa2014-04-124-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-211-0/+1
|
* Avoid recursively inferring the same attr on the same class. Closes #7Eevee (Alex Munroe)2014-03-211-0/+3
|
* Avoid an (expensive) exception in transform.Eevee (Alex Munroe)2014-03-211-5/+7
|
* slightly more readable versionSylvain Th?nault2014-04-081-1/+2
|
* backport pylint-brain, up to 6660851486efSylvain Th?nault2014-04-081-2/+27
|
* fix failing test when the whole test are executed, due to caching issueSylvain Th?nault2014-04-081-0/+1
|
* fix crash when class has some __call__ method that is not inferable. Closes #17Sylvain Th?nault2014-04-083-5/+27
|
* delete trailing whitespacesSylvain Th?nault2014-04-081-7/+7
|