Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Introduced symbol PY_FORMAT_SIZE_T. See the new comments | Tim Peters | 2006-03-17 | 1 | -0/+39 | |
| | | | | | in pyport.h. Changed PyString_FromFormatV() to use it instead of inlining its own maze of #if'ery. | |||||
* | Patch #1436130: codecs.lookup() now returns a CodecInfo object (a subclass | Walter Dörwald | 2006-03-15 | 1 | -4/+18 | |
| | | | | | | | of tuple) that provides incremental decoders and encoders (a way to use stateful codecs without the stream API). Functions codecs.getincrementaldecoder() and codecs.getincrementalencoder() have been added. | |||||
* | Avoid forward-declaring the methods array. | Martin v. Löwis | 2006-03-10 | 1 | -1/+1 | |
| | | | | Rename unicodedata.db* to unicodedata.ucd* | |||||
* | Update Unicode database to Unicode 4.1. | Martin v. Löwis | 2006-03-09 | 1 | -3/+5 | |
| | ||||||
* | Checking in the code for PEP 357. | Guido van Rossum | 2006-03-07 | 2 | -1/+16 | |
| | | | | | | This was mostly written by Travis Oliphant. I've inspected it all; Neal Norwitz and MvL have also looked at it (in an earlier incarnation). | |||||
* | Make PyGC_Collect() use Py_ssize_t. | Neal Norwitz | 2006-03-04 | 1 | -1/+1 | |
| | ||||||
* | Use Py_ssize_t for _Py_RefTotal. | Neal Norwitz | 2006-03-04 | 1 | -1/+1 | |
| | | | | I tried to handle Win64 properly, but please review. | |||||
* | Change some sequnce APIs to use Py_ssize_t. | Neal Norwitz | 2006-03-04 | 1 | -4/+4 | |
| | ||||||
* | Use Py_ssize_t for PySet_Size() like all the other Py*_Size() functions. | Neal Norwitz | 2006-03-04 | 1 | -1/+1 | |
| | ||||||
* | Added words about what PyArena_Malloc() does. | Tim Peters | 2006-03-02 | 1 | -4/+16 | |
| | ||||||
* | Beefed up description of what this does; new XXX. | Tim Peters | 2006-03-02 | 1 | -2/+10 | |
| | ||||||
* | New XXX pointing out errors in the description of | Tim Peters | 2006-03-02 | 1 | -0/+6 | |
| | | | | PyArena_New(); unsure what the intent is. | |||||
* | Trimmed trailing whitespace. | Tim Peters | 2006-03-02 | 1 | -1/+1 | |
| | ||||||
* | Patch #1440601: Add col_offset attribute to AST nodes. | Martin v. Löwis | 2006-03-01 | 2 | -53/+67 | |
| | ||||||
* | Change GC refcount to Py_ssize_t. | Martin v. Löwis | 2006-03-01 | 1 | -1/+1 | |
| | ||||||
* | Reconst parameters that lost their const in the AST merge. | Martin v. Löwis | 2006-03-01 | 1 | -2/+2 | |
| | ||||||
* | PEP 352 implementation. Creates a new base class, BaseException, which has an | Brett Cannon | 2006-03-01 | 1 | -0/+23 | |
| | | | | | | | | | added message attribute compared to the previous version of Exception. It is also a new-style class, making all exceptions now new-style. KeyboardInterrupt and SystemExit inherit from BaseException directly. String exceptions now raise DeprecationWarning. Applies patch 1104669, and closes bugs 1012952 and 518846. | |||||
* | Use Py_ssize_t for PyArg_UnpackTuple arguments. | Martin v. Löwis | 2006-03-01 | 1 | -1/+1 | |
| | ||||||
* | Make ob_refcnt and tp_maxalloc (and friends) Py_ssize_t. | Martin v. Löwis | 2006-03-01 | 1 | -4/+4 | |
| | ||||||
* | Move #include to outside "extern C {}", before Tim figures out it'll break | Thomas Wouters | 2006-02-28 | 1 | -2/+3 | |
| | | | | VC++. | |||||
* | Include code.h more sanely. | Thomas Wouters | 2006-02-28 | 1 | -3/+2 | |
| | ||||||
* | No need to export PySTEntry_New, it is only used in symtable.c | Neal Norwitz | 2006-02-28 | 1 | -2/+1 | |
| | ||||||
* | Martin owns PEP 353 and did most of the work | Neal Norwitz | 2006-02-28 | 1 | -1/+1 | |
| | ||||||
* | from __future__ import with_statement addon for 'with', mostly written by | Thomas Wouters | 2006-02-28 | 5 | -3/+15 | |
| | | | | Neal. | |||||
* | Remove asdl_seq_APPEND() and simplify asdl seq implementation. | Jeremy Hylton | 2006-02-28 | 1 | -12/+2 | |
| | | | | Clarify intended use of set_context() and check errors at all call sites. | |||||
* | Real arena implementation | Jeremy Hylton | 2006-02-28 | 1 | -10/+4 | |
| | | | | | Replace the toy arena implementation with a real one, based on allocating 8K chunks of memory by default. | |||||
* | SF patch #1438387, PEP 328: relative and absolute imports. | Thomas Wouters | 2006-02-28 | 5 | -3/+14 | |
| | | | | | | | | | | | | | | | | | | | | | | | - 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. | |||||
* | PEP 343 -- the with-statement. | Guido van Rossum | 2006-02-27 | 3 | -49/+58 | |
| | | | | | | | | | | | | | 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). | |||||
* | Revert backwards-incompatible const changes. | Martin v. Löwis | 2006-02-27 | 2 | -6/+6 | |
| | ||||||
* | PEP 308 implementation, including minor refdocs and some testcases. It | Thomas Wouters | 2006-02-27 | 2 | -41/+52 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | breaks the parser module, because it adds the if/else construct as well as two new grammar rules for backward compatibility. If no one else fixes parsermodule, I guess I'll go ahead and fix it later this week. The TeX code was checked with texcheck.py, but not rendered. There is actually a slight incompatibility: >>> (x for x in lambda:0) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: iteration over non-sequence changes into >>> (x for x in lambda: 0) File "<stdin>", line 1 (x for x in lambda: 0) ^ SyntaxError: invalid syntax Since there's no way the former version can be useful, it's probably a bugfix ;) | |||||
* | Generate code to recursively copy an AST into | Martin v. Löwis | 2006-02-26 | 2 | -0/+2 | |
| | | | | a tree of Python objects. Expose this through compile(). | |||||
* | Per discussion on python-dev, remove CO_GENERATOR_ALLOWED. Leave comment ↵ | Neal Norwitz | 2006-02-25 | 2 | -2/+5 | |
| | | | | about not removing yet. | |||||
* | Bug #1086854: Rename PyHeapType members adding ht_ prefix. | Georg Brandl | 2006-02-20 | 1 | -3/+3 | |
| | ||||||
* | Generators have been permanent for a while. This comment is no longer ↵ | Neal Norwitz | 2006-02-19 | 1 | -6/+1 | |
| | | | | applicable. | |||||
* | Fix intptr_t fallback for Py_ssize_t. | Martin v. Löwis | 2006-02-18 | 1 | -1/+1 | |
| | ||||||
* | Change _PyObject_GC_Resize to expect Py_ssize_t. | Martin v. Löwis | 2006-02-16 | 1 | -1/+1 | |
| | ||||||
* | Use Py_ssize_t for field sizes and offsets. | Martin v. Löwis | 2006-02-16 | 1 | -3/+3 | |
| | ||||||
* | Allow for ssize_t field offsets. | Martin v. Löwis | 2006-02-16 | 1 | -1/+1 | |
| | ||||||
* | Merge ssize_t branch. | Martin v. Löwis | 2006-02-15 | 20 | -147/+202 | |
| | ||||||
* | Renamed _length_cue() to __length_hint__(). See: | Armin Rigo | 2006-02-11 | 1 | -5/+10 | |
| | | | | http://mail.python.org/pipermail/python-dev/2006-February/060524.html | |||||
* | Fix PyGC_Collect() to be exported from the built DLL on Windows. (Fix given | Barry Warsaw | 2006-01-26 | 1 | -1/+1 | |
| | | | | by Matt Messier). | |||||
* | Fix icc warnings: single bit fields should be unsigned | Neal Norwitz | 2006-01-07 | 1 | -7/+7 | |
| | ||||||
* | Drop sys.build_number. Add sys.subversion. | Martin v. Löwis | 2006-01-05 | 2 | -1/+6 | |
| | ||||||
* | const poisoning, spreading to fix new const warnings | Tim Peters | 2005-12-24 | 1 | -3/+3 | |
| | | | | in _winreg.c. | |||||
* | Expose Subversion revision number (calculated via "svnversion .") to Python. | Barry Warsaw | 2005-12-18 | 1 | -0/+1 | |
| | | | | | | | Add C API function Py_GetBuildNumber(), add it to the interactive prompt banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number attribute. The build number is a string instead of an int because it may contain a trailing 'M' if there are local modifications. | |||||
* | Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, | Neal Norwitz | 2005-12-17 | 7 | -73/+116 | |
| | | | | simplifies a lot of error handling code, and fixes many memory leaks. | |||||
* | moved magic into structure (mainly to simplify the client code) | Fredrik Lundh | 2005-12-13 | 1 | -3/+5 | |
| | | | | added missing API hooks | |||||
* | renamed dispatch -> capi to match other CAPI implementations | Fredrik Lundh | 2005-12-13 | 1 | -3/+3 | |
| | | | | (e.g. cStringIO, ucnhash, etc) | |||||
* | added cobject-based expat dispatch mechanism to pyexpat | Fredrik Lundh | 2005-12-13 | 1 | -0/+45 | |
| | ||||||
* | SF #1373150, diffs in working copy after a build | Neal Norwitz | 2005-12-11 | 1 | -1/+1 | |
| | | | | | | | | Strip off leading dots and slash so the generated files are the same regardless of whether you configure in the checkout directory or build. If anyone configures in a different directory, we might want a cleaner approach using os.path.*(). Hopefully this is good enough. |