Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | SF bug #1004088: big code objects (>64K) may be optimized incorrectly | Raymond Hettinger | 2004-08-06 | 1 | -0/+5 | |
| | | | | Will backport. | |||||
* | SF patch #980695: efficient string concatenation | Raymond Hettinger | 2004-08-06 | 1 | -2/+91 | |
| | | | | (Original patch by Armin Rigo). | |||||
* | Revert 2.312; turns out interning the file name did do some good (reducing | Michael W. Hudson | 2004-08-04 | 1 | -1/+1 | |
| | | | | .pyc size) after all. | |||||
* | Don't intern the filename of a file being compiled. | Michael W. Hudson | 2004-08-03 | 1 | -1/+1 | |
| | | | | | Hard to believe it ever helped anything, and it hurts finding reference leaks. | |||||
* | Fix for the unfortunate fact that PyDict_GetItem and PyObject_GetItem | Michael W. Hudson | 2004-08-02 | 1 | -2/+4 | |
| | | | | | | | have differing refcount semantics. If anyone sees a prettier way to acheive the same ends, then please go for it. I think this is the first time I've ever used Py_XINCREF. | |||||
* | for some reason, the lack of adherence to Python's C whitespace rules | Michael W. Hudson | 2004-08-02 | 1 | -2/+2 | |
| | | | | must have annoyed me at some point. | |||||
* | fix for @decorators under a debug build. | Anthony Baxter | 2004-08-02 | 1 | -0/+1 | |
| | ||||||
* | Completed the patch for Bug #215126. | Raymond Hettinger | 2004-08-02 | 2 | -5/+9 | |
| | | | | | | | * Fixes an incorrect variable in a PyDict_CheckExact. * Allow general mapping locals arguments for the execfile() function and exec statement. * Add tests. | |||||
* | PEP-0318, @decorator-style. In Guido's words: | Anthony Baxter | 2004-08-02 | 2 | -1099/+1252 | |
| | | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728. | |||||
* | PyImport_ExecCodeModuleEx(): remove module from sys.modules in error cases. | Tim Peters | 2004-08-02 | 1 | -16/+46 | |
| | | | | | | | | PyImport_ReloadModule(): restore the module to sys.modules in error cases. load_package(): semantic-neutral refactoring from an earlier stab at this patch; giving it a common error exit made the code easier to follow, so retaining that part. _RemoveModule(): new little utility to delete a key from sys.modules. | |||||
* | lock_held() docs: Use True/False instead of 1/0. The LaTeX docs were | Tim Peters | 2004-08-01 | 1 | -3/+3 | |
| | | | | already correct, so not changed here. | |||||
* | Trimmed trailing whitespace. | Tim Peters | 2004-08-01 | 1 | -2/+2 | |
| | ||||||
* | Patch #984714: Properly diagnose E_DECODE errors. | Martin v. Löwis | 2004-07-21 | 1 | -0/+3 | |
| | | | | Backported to 2.3. | |||||
* | Check the type of values returned by __int__, __float__, __long__, | Neil Schemenauer | 2004-07-19 | 1 | -2/+20 | |
| | | | | | | __oct__, and __hex__. Raise TypeError if an invalid type is returned. Note that PyNumber_Int and PyNumber_Long can still return ints or longs. Fixes SF bug #966618. | |||||
* | Upgrade None assignment SyntaxWarning to a SyntaxError. | Raymond Hettinger | 2004-07-17 | 1 | -7/+6 | |
| | ||||||
* | optimize_code(): Repaired gross error in new special-casing for None. | Tim Peters | 2004-07-17 | 1 | -1/+2 | |
| | | | | | | The preceding case statement was missing a terminating "break" stmt, so fell into the new code by mistake. This caused uncaught out-of-bounds accesses to the "names" tuple, leading to a variety of insane behaviors. | |||||
* | Treat None as a constant. | Raymond Hettinger | 2004-07-16 | 1 | -4/+20 | |
| | ||||||
* | Fix for 838140: don't call NSUnlinkModule when we fail to find our | Jack Jansen | 2004-07-15 | 1 | -2/+2 | |
| | | | | | | expected entrypoint. The unlinking will crash the application if the module contained ObjC code. The price of this is small: a little wasted memory, and only in a case than isn't expected to occur often. | |||||
* | Moved PyMac_GetScript() to _localemodule, which is the only place where | Jack Jansen | 2004-07-15 | 1 | -24/+0 | |
| | | | | it is used, and made it private. Should fix #978662. | |||||
* | This is Pete Shinners' patch from his bug report | Michael W. Hudson | 2004-07-14 | 1 | -10/+30 | |
| | | | | | | | | [ 984722 ] Py_BuildValue loses reference counts on error I'm ever-so-slightly uneasy at the amount of work this can do with an exception pending, but I don't think that this can result in anything more serious than a strange error message. | |||||
* | Add PyArg_VaParseTupleAndKeywords(). Document this function and | Brett Cannon | 2004-07-10 | 1 | -0/+36 | |
| | | | | | | PyArg_VaParse(). Closes patch #550732. Thanks Greg Chapman. | |||||
* | Fix a couple of signed/unsigned comparison warnings | Neal Norwitz | 2004-07-08 | 1 | -1/+1 | |
| | ||||||
* | Remove unused macros in .c files | Neal Norwitz | 2004-07-08 | 2 | -8/+0 | |
| | ||||||
* | This closes patch: | Michael W. Hudson | 2004-07-07 | 4 | -14/+5 | |
| | | | | | | | | | | | | | | | | | [ 960406 ] unblock signals in threads although the changes do not correspond exactly to any patch attached to that report. Non-main threads no longer have all signals masked. A different interface to readline is used. The handling of signals inside calls to PyOS_Readline is now rather different. These changes are all a bit scary! Review and cross-platform testing much appreciated. | |||||
* | * Fix missing return after error message is set. | Raymond Hettinger | 2004-07-06 | 1 | -1/+2 | |
| | | | | * Add a test case that would have caught it. | |||||
* | When importing an extension on Windows, the code reads the PE 'import | Thomas Heller | 2004-07-02 | 1 | -0/+12 | |
| | | | | | | | | | | | | | | | | | | table' of the dll, to make sure that the dll really was build for the correct Python version. It does this by looking for an entry 'pythonXY.dll' (X.Y is the Python version number). The code now checks the size of the dll's import table before reading entries from it. Before this patch, the code crashed trying to read the import table when the size was zero (as in Win2k's wmi.dll, for example). Look for imports of 'pythonXY_d.dll' in a debug build instead of 'pythonXY.dll'. Fixes SF 951851: Crash when reading "import table" of certain windows dlls. Already backported to the 2.3 branch. | |||||
* | SF Bug #215126: Over restricted type checking on eval() function | Raymond Hettinger | 2004-07-02 | 2 | -10/+29 | |
| | | | | | | The builtin eval() function now accepts any mapping for the locals argument. Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing down the normal case. My timings so no measurable impact. | |||||
* | Patch #923098: Share interned strings in marshal. | Martin v. Löwis | 2004-06-27 | 2 | -24/+83 | |
| | ||||||
* | Patch #966493: Cleanup generator/eval_frame exposure. | Martin v. Löwis | 2004-06-27 | 1 | -14/+6 | |
| | ||||||
* | Get ceval.c to compile again by moving declarations before other statments. | Raymond Hettinger | 2004-06-26 | 1 | -1/+2 | |
| | ||||||
* | Massive performance improvement for C extension and builtin tracing code | Nicholas Bastin | 2004-06-25 | 1 | -51/+27 | |
| | ||||||
* | Move NOP to end of code transformation. | Raymond Hettinger | 2004-06-24 | 1 | -3/+7 | |
| | ||||||
* | Less ugly #ifdefs for C profiling fix | Nicholas Bastin | 2004-06-22 | 1 | -12/+5 | |
| | ||||||
* | One forgotten C profiling #ifdef | Nicholas Bastin | 2004-06-22 | 1 | -1/+2 | |
| | ||||||
* | Making C profiling a configure option (at least temporarily) | Nicholas Bastin | 2004-06-22 | 1 | -0/+12 | |
| | ||||||
* | Install two code generation optimizations that depend on NOP. | Raymond Hettinger | 2004-06-21 | 2 | -3/+33 | |
| | | | | Reduces the cost of "not" to almost zero. | |||||
* | Performance tweak: allow stack_pointer and oparg to be register variables. | Armin Rigo | 2004-06-17 | 1 | -7/+16 | |
| | | | | SF patch #943898 | |||||
* | Remove compiler warning | Neal Norwitz | 2004-06-13 | 1 | -1/+1 | |
| | ||||||
* | Make private function static | Neal Norwitz | 2004-06-13 | 1 | -1/+1 | |
| | ||||||
* | Patch #774665: Make Python LC_NUMERIC agnostic. | Martin v. Löwis | 2004-06-08 | 3 | -5/+263 | |
| | ||||||
* | Patch #510695: Add TSC profiling for the VM. | Martin v. Löwis | 2004-06-08 | 3 | -2/+183 | |
| | ||||||
* | Fix a refcount bug in an obscure code corner. | Thomas Heller | 2004-06-07 | 1 | -0/+1 | |
| | | | | Already backported. | |||||
* | SF bug #963956: Bad error mesage when subclassing a module | Raymond Hettinger | 2004-06-05 | 1 | -0/+9 | |
| | | | | | | Add a more informative message for the common user mistake of subclassing from a module name rather than another class (i.e. random instead of random.random). | |||||
* | Patch #957398: Add public API for Generator Object/Type. | Martin v. Löwis | 2004-06-01 | 1 | -138/+8 | |
| | ||||||
* | starting to add comments to explain what's here | Fred Drake | 2004-05-28 | 1 | -0/+11 | |
| | ||||||
* | SF patch #872326: Generator expression implementation | Raymond Hettinger | 2004-05-19 | 3 | -308/+680 | |
| | | | | | | | | | | | | | | (Code contributed by Jiwon Seo.) The documentation portion of the patch is being re-worked and will be checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's rationale for the design decisions on binding behavior (as described in in his patch comments and in discussions on python-dev). The test file, test_genexps.py, is written in doctest format and is meant to exercise all aspects of the the patch. Further additions are welcome from everyone. Please stress test this new feature as much as possible before the alpha release. | |||||
* | forward-port 1.17.12.1 | Anthony Baxter | 2004-05-13 | 1 | -1/+1 | |
| | ||||||
* | Some (but not all) of the why code bitfield tests ran faster as | Raymond Hettinger | 2004-04-11 | 1 | -3/+4 | |
| | | | | separate equality tests. Now, all are set to their best timing. | |||||
* | Revert 2.393, elimination of pre-decrementing, which | Raymond Hettinger | 2004-04-10 | 1 | -17/+13 | |
| | | | | did not stand-up to additional timings. | |||||
* | Use continue instead of break whereever possible. | Raymond Hettinger | 2004-04-07 | 1 | -2/+8 | |
| |