Martin Panter
5f75502a2e
Issue #24366 : Fix indentation
...
Backports changes by Victor Stinner, Hirokazu Yamamoto, li4ick and Benjamin
Peterson.
2016-09-15 01:50:53 +00:00
Martin Panter
b5f487a090
Fix typo in code comment
2016-06-04 04:57:19 +00:00
Benjamin Peterson
ee5729dbf9
add missing 'because' ( closes #22008 )
...
Patch from A Kaptur.
2014-07-18 16:25:13 -07:00
Benjamin Peterson
8363f77795
fix error check
2014-01-16 16:56:22 -05:00
Christian Heimes
dfaf90da9c
Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases.
2012-09-12 17:58:10 +02:00
Christian Heimes
65a0141e14
Partly revert ad3824a90261 and add comment about reference ownership
2012-09-12 17:52:46 +02:00
Christian Heimes
8c1bce00d2
Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases
2012-09-10 03:08:46 +02:00
Benjamin Peterson
045bbcdc8e
Merged revisions 85757 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85757 | benjamin.peterson | 2010-10-20 16:25:23 -0500 (Wed, 20 Oct 2010) | 1 line
fix uninitialized struct member #10152
........
2010-10-20 21:28:09 +00:00
Benjamin Peterson
f76942d6bf
Merged revisions 85562 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85562 | benjamin.peterson | 2010-10-15 22:45:45 -0500 (Fri, 15 Oct 2010) | 1 line
don't identify the toplevel namespace by name #9997
........
2010-10-16 03:51:38 +00:00
Benjamin Peterson
c6660cf4d6
different spellings are just unacceptable
2010-06-11 21:40:37 +00:00
Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
2010-05-09 14:46:46 +00:00
Alexandre Vassalotti
b646547bb4
Issue #2333 : Backport set and dict comprehensions syntax.
2010-01-11 22:36:12 +00:00
Alexandre Vassalotti
ee936a2130
Issue #2335 : Backport set literals syntax from Python 3.x.
2010-01-09 23:35:54 +00:00
Benjamin Peterson
009b89d22a
genexps have linenos
2009-11-20 01:16:58 +00:00
Benjamin Peterson
d16d0abf0b
provide line number for lambdas
2009-11-20 01:15:53 +00:00
Benjamin Peterson
1a4ceb2f4b
fix grammar
2009-06-23 01:18:57 +00:00
Benjamin Peterson
d9920c255d
remove tmpname support since it's no longer used
2009-06-21 23:03:36 +00:00
Benjamin Peterson
f67caf8523
don't need to add the name 'lambda' as assigned
2009-06-21 23:01:07 +00:00
Benjamin Peterson
985951df7f
fix error handling
2009-04-02 02:52:46 +00:00
Jeremy Hylton
2696275348
Add check for PyDict_Update() error.
2009-03-31 15:04:15 +00:00
Jeremy Hylton
88f1c04215
Global statements from one function leaked into parallel functions.
...
Re http://bugs.python.org/issue4315
The symbol table used the same name dictionaries to recursively
analyze each of its child blocks, even though the dictionaries are
modified during analysis. The fix is to create new temporary
dictionaries via the analyze_child_block(). The only information that
needs to propagate back up is the names of the free variables.
Add more comments and break out a helper function. This code doesn't
get any easier to understand when you only look at it once a year.
2009-03-31 13:48:15 +00:00
Benjamin Peterson
25f2d89f32
uhh PySTEntry->ste_unoptimized has to be exposed too
2008-08-17 02:23:43 +00:00
Benjamin Peterson
e0d4c7b5bd
expose PySTEntry.nested so the symtable module will work
2008-08-17 01:09:17 +00:00
Benjamin Peterson
e0d12eb85c
PySTEntry's constructor is static; there's no point in a fancy API name
2008-08-16 23:29:40 +00:00
Benjamin Peterson
0847332716
include filename and line number in SyntaxError
2008-08-16 22:11:33 +00:00