summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't pollute namespace as bad as before. All the types are static now.Neal Norwitz2006-02-282-159/+159
|
* Make 'as' an actual keyword when with's future statement is used. NotThomas Wouters2006-02-285-206/+212
| | | | actually necessary for functionality, but good for transition.
* Change non-ASCII warning into a SyntaxError.Martin v. Löwis2006-02-281-10/+6
|
* Include code.h more sanely.Thomas Wouters2006-02-281-3/+2
|
* No need to export PySTEntry_New, it is only used in symtable.cNeal Norwitz2006-02-282-3/+3
|
* Set eol-style on new .py files.Tim Peters2006-02-280-0/+0
|
* Updates to the with-statement:Guido van Rossum2006-02-2812-96/+609
| | | | | | | | | | | | | | | | - New semantics for __exit__() -- it must re-raise the exception if type is not None; the with-statement itself doesn't do this. (See the updated PEP for motivation.) - Added context managers to: - file - thread.LockType - threading.{Lock,RLock,Condition,Semaphore,BoundedSemaphore} - decimal.Context - Added contextlib.py, which defines @contextmanager, nested(), closing(). - Unit tests all around; bot no docs yet.
* unparse.py can now unparse itself.Martin v. Löwis2006-02-281-2/+139
|
* Add a note about removing the file once the bug is fixedNeal Norwitz2006-02-281-1/+2
|
* Its right now.Tim Peters2006-02-281-3/+3
|
* Ignore .pyc filesNeal Norwitz2006-02-280-0/+0
|
* Note that as generates a warning tooNeal Norwitz2006-02-281-0/+2
|
* Martin owns PEP 353 and did most of the workNeal Norwitz2006-02-281-1/+1
|
* Make __future__ features similar for with and absolute import since they ↵Neal Norwitz2006-02-281-2/+2
| | | | were both added before a1
* Generally inehrit codeflags that are in PyCF_MASK, instead of writing it outThomas Wouters2006-02-281-4/+4
| | | | | in multiple places. This makes compile()/eval()/etc also inherit the absolute-import codeflag, like division and with-statement already were.
* Add some stats collection in debugging mode.Jeremy Hylton2006-02-281-3/+41
| | | | No good way to extract output yet.
* Gave README a .txt extension.Tim Peters2006-02-281-0/+0
|
* from __future__ import with_statement addon for 'with', mostly written byThomas Wouters2006-02-2816-40/+102
| | | | Neal.
* Add directory which contains known ref leaks. Some of these are likely to ↵Neal Norwitz2006-02-284-0/+52
| | | | be system dependent (like test_gestalt).
* Use simple PyList to implement list of PyObject pointersJeremy Hylton2006-02-281-44/+20
|
* Set EOL style to native.Tim Peters2006-02-285-969/+969
|
* Another bit of unconstification.Tim Peters2006-02-281-1/+1
|
* Whitespace normalization.Tim Peters2006-02-289-993/+990
|
* TabifyJeremy Hylton2006-02-281-84/+87
|
* Instead of printing the exception when you interrupt a test (Ctrl-C),Neal Norwitz2006-02-281-1/+9
| | | | print the status so far and suppress printing the exception (but still exit).
* Remove asdl_seq_APPEND() and simplify asdl seq implementation.Jeremy Hylton2006-02-283-81/+59
| | | | Clarify intended use of set_context() and check errors at all call sites.
* Update commentsNeal Norwitz2006-02-281-1/+2
|
* Real arena implementationJeremy Hylton2006-02-282-72/+84
| | | | | Replace the toy arena implementation with a real one, based on allocating 8K chunks of memory by default.
* George Yoshida points out that the special charactersNeal Norwitz2006-02-281-1/+1
| | | | | from Tools/compiler/ast.txt are not used anywhere else in asttable.txt. So remove "\&".
* Test case to cover subscription bug from SF 1333982Jeremy Hylton2006-02-282-0/+12
|
* Wups, add NEWS item I'd written but not checked in.Thomas Wouters2006-02-281-0/+6
|
* SF patch #1438387, PEP 328: relative and absolute imports.Thomas Wouters2006-02-2820-74/+271
| | | | | | | | | | | | | | | | | | | | | | | - IMPORT_NAME takes an extra argument from the stack: the relativeness of the import. Only passed to __import__ when it's not -1. - __import__() takes an optional 5th argument for the same thing; it __defaults to -1 (old semantics: try relative, then absolute) - 'from . import name' imports name (be it module or regular attribute) from the current module's *package*. Likewise, 'from .module import name' will import name from a sibling to the current module. - Importing from outside a package is not allowed; 'from . import sys' in a toplevel module will not work, nor will 'from .. import sys' in a (single-level) package. - 'from __future__ import absolute_import' will turn on the new semantics for import and from-import: imports will be absolute, except for from-import with dots. Includes tests for regular imports and importhooks, parser changes and a NEWS item, but no compiler-package changes or documentation changes.
* markup glitch (spotted by George Yoshida)Fredrik Lundh2006-02-281-1/+1
|
* XXX something for amk's attentionAnthony Baxter2006-02-281-0/+1
|
* Forgot to explain the effect of the new opcode.Guido van Rossum2006-02-281-0/+1
| | | | Sigh -- we really should have one place for all opcode metadata.
* Generate return statement.Martin v. Löwis2006-02-281-0/+1
|
* Regenerate.Martin v. Löwis2006-02-281-0/+2
|
* Update the compiler package to compile the with-statement.Guido van Rossum2006-02-283-1/+63
| | | | Jeremy, please review!
* Add generation of the version.Martin v. Löwis2006-02-282-1/+7
|
* Ignore resource fileNeal Norwitz2006-02-280-0/+0
|
* Add support for version field on ModulesMartin v. Löwis2006-02-283-8/+29
|
* Check the return code for PyErr_Warn() when warning about raising stringBrett Cannon2006-02-272-4/+9
| | | | | exceptions. This was triggered when 'warnings' had a filter set to "error" that caught the string exception deprecation warning.
* PyErr_ProgramText(): Grrrrrr.Tim Peters2006-02-271-1/+1
| | | | | | | | | | | In a Windows debug build, trying to open a file using an empty string as the name causes assertion death inside MS's C runtime code. We probably need to worm around that in many places. I'm worming around it here to stop the new test_with.py from assert-dying in the Windows debug build (it calls compile() with an empty string for "the file name", which indirectly leads to C-level code in Python trying to fopen("", "r")).
* Finish removal of CO_GENERATOR_ALLOWED.Neal Norwitz2006-02-272-1/+4
|
* unconst.Martin v. Löwis2006-02-271-2/+2
|
* Clarify C-style exception handling with proper label name.Thomas Wouters2006-02-271-3/+3
|
* Fix assertions.Thomas Wouters2006-02-271-3/+3
|
* PEP 343 -- the with-statement.Guido van Rossum2006-02-2723-731/+1768
| | | | | | | | | | | | | This was started by Mike Bland and completed by Guido (with help from Neal). This still needs a __future__ statement added; Thomas is working on Michael's patch for that aspect. There's a small amount of code cleanup and refactoring in ast.c, compile.c and ceval.c (I fixed the lltrace behavior when EXT_POP is used -- however I had to make lltrace a static global).
* Start of a source code unparser.Martin v. Löwis2006-02-272-0/+164
|
* Even though we don't currently use unicode or complex numbers in the test,Neal Norwitz2006-02-271-3/+3
| | | | | | be complete when when checking types. Yield cannot be tested outside a function, so add a comment to that effect.