summaryrefslogtreecommitdiff
path: root/Cython/Compiler/FlowControl.py
Commit message (Collapse)AuthorAgeFilesLines
* repair deep-copying (and pickling) of the control flow state in compiled ↵Stefan Behnel2016-01-161-0/+8
| | | | Cython (extension type instances lost their state)
* remove unused importsStefan Behnel2015-08-181-4/+1
|
* seems like the explicit deepcopy helpers in the control flow state objects ↵Stefan Behnel2015-08-181-20/+2
| | | | are no longer needed but crash the compiler due to infinite recursion
* fix compiler crash due to infinite recursing while deep copying finally clausesStefan Behnel2015-08-171-0/+1
|
* make dict iteration compatible with Py2/Py3Stefan Behnel2015-07-251-2/+2
|
* deep-copy finally clauses of try-finally statements earlier to properly ↵Stefan Behnel2015-07-121-13/+32
| | | | support arbitrary statements in them (genexprs, lambdas, etc.)
* implement 'async for' loop statement (PEP 492)Stefan Behnel2015-05-251-0/+6
|
* constant-fold expressions generated for type inference during control flow ↵Stefan Behnel2014-11-221-7/+8
| | | | analysis
* fix crash with starred assignments where IndexNode generated for type ↵Stefan Behnel2014-11-081-3/+3
| | | | inference ended up being visited
* fix type inference for starred assignmentsStefan Behnel2014-11-081-1/+5
|
* make item types of tuple/array unpacking inferable and institutionalise the ↵Stefan Behnel2014-11-081-3/+3
| | | | IndexNode creation for the inference
* Merge pull request #295 from andreasvc/masterRobert Bradshaw2014-10-071-1/+1
|\ | | | | Ignore any unused entry that starts with '_'.
| * 'unused' prefix to suppress warnings of unused variablesAndreas van Cranenburgh2014-10-071-1/+1
| | | | | | | | | | In addition to '_', also ignore any unused variables whose name start with 'unused', as recommended by http://google-styleguide.googlecode.com/svn/trunk/pyguide.html?showone=Lint#Lint
| * Ignore any unused entry that starts with '_'.Andreas van Cranenburgh2014-05-161-1/+1
| | | | | | | | | | | | | | This makes it possible to follow PEP8 which recommends '__', and to name unused entries, e.g.: foo, _bar, _zed = func()
* | properly integrate Python class nodes into type inferenceStefan Behnel2014-08-171-4/+2
| |
* | simplify WithTargetAssignmentStatNode and make it more robust against ↵Stefan Behnel2014-08-111-1/+1
| | | | | | | | replacements of the context manager node; undo node.result() checking as it broke TempNode's disposal code
* | use explicit relative imports everywhere and enable absolute imports by defaultStefan Behnel2014-06-171-8/+10
|/
* CF: reference doesn't mean it's not nullVitja Makarov2014-01-261-6/+8
|
* CF: Fix try/except, try/finally bugVitja Makarov2014-01-261-0/+2
|
* fix some unnecessary Py2-isms in the code baseStefan Behnel2014-01-171-2/+2
|
* fix control flow analysis for del-ing non-namesStefan Behnel2013-12-311-0/+2
|
* Don't warn on un-assigned error types.Robert Bradshaw2013-12-181-1/+2
|
* discard constant True condition in while loopsStefan Behnel2013-12-011-1/+2
|
* revert incomplete fix for ticket #600: not enough for more complex scoping ↵Stefan Behnel2013-11-221-11/+3
| | | | and evaluation time issues
* fix T600: lookup of iterables in genexpr must use outer scopeStefan Behnel2013-11-171-3/+11
|
* Don't warn on uninitialized setting of complex.real/imagRobert Bradshaw2013-09-191-0/+1
|
* Merge pull request #233 from vitek/_type_inference_newscoder2013-08-081-11/+22
|\ | | | | Assignmment based type inference
| * Assignmment based type inferenceVitja Makarov2013-05-221-11/+22
| |
* | Fix error_on_uninitialized conditionVitja Makarov2013-06-021-3/+3
| |
* | Add error_on_uninitialized option and disable it for pyregr testsuiteVitja Makarov2013-05-231-1/+3
|/
* refactor comprehensions by removing separate target node (to simplify a ↵Stefan Behnel2013-03-181-1/+0
| | | | | | | future length-hint optimisation) --HG-- extra : rebase_source : 476b22eeaeaea1ff69ee8069328fb47ffe18ea20
* report unused variables also across closuresStefan Behnel2013-02-141-2/+1
|
* prevent unused '_' variables from appearing in C codeStefan Behnel2013-02-141-11/+13
|
* Speccial case the unused '_' in warnings.Robert Bradshaw2013-02-131-1/+2
|
* clean up and improve static type declarations in FlowControl.py a bitStefan Behnel2013-02-041-47/+48
|
* slight code simplificationStefan Behnel2013-02-041-7/+6
|
* enable control flow analysis for stack allocated structured variables ↵Stefan Behnel2013-01-271-5/+32
| | | | (struct, union, array, C++ class)
* rewrite except-as semantics using try-finally - seems to be the easiest way ↵Stefan Behnel2013-01-261-2/+0
| | | | to get flow control analysis working for all cases
* make except-as delete the target after the except clauseStefan Behnel2013-01-261-0/+2
|
* avoid old-style classes in flow analysis codeStefan Behnel2012-12-301-2/+2
|
* fix build by removing unused codeStefan Behnel2012-12-301-4/+2
|
* improve initialisation analysis for entries from outer closuresStefan Behnel2012-12-301-11/+27
|
* fix cross-closure analysis for names redefined inside of a closure functionStefan Behnel2012-12-291-0/+2
|
* reimplement cross-closure type inference using a dedicated LocalEntry class ↵Stefan Behnel2012-12-261-3/+5
| | | | for entry copies in closures to keep closure knowledge in one place
* C++ iterator type inferenceRobert Bradshaw2012-07-021-4/+2
|
* Infer variable as pyobject when del-ed, fix #768Vitja Makarov2012-05-101-0/+13
|
* mark_forloop_target: backport recent changes to MarkAssignmentsVitja Makarov2012-05-081-14/+33
|
* ControlFlowAnalysis: be comaptible with MarkAssignmentsVitja Makarov2012-05-081-12/+69
|
* ControlFlowState object instead of set() for convinienceVitja Makarov2012-01-121-3/+28
|
* DefNode: Move assignemnt synthesis to AnaylyseDeclarationsVitja Makarov2012-01-121-6/+0
|