- 05 Mar, 2003 2 kayıt (commit)
-
-
Fred Drake yazdı
-
Martin v. Löwis yazdı
and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case.
-
- 02 Mar, 2003 1 kayıt (commit)
-
-
Jack Jansen yazdı
-
- 01 Mar, 2003 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
rarely needed, but can sometimes be useful to release objects referenced by the traceback held in sys.exc_info()[2]. (SF patch #693195.) Thanks to Kevin Jacobs!
-
- 27 Şub, 2003 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
change _PyEval_SliceIndex to round massively negative longs up to -INT_MAX, instead of 0 but botched it. Get it right. Thx to Armin for the report.
-
- 26 Şub, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
* List/Tuple checkexact is faster for the common case. * Testing for Py_True and Py_False can be inlined for faster looping.
-
- 25 Şub, 2003 1 kayıt (commit)
-
-
Just van Rossum yazdı
import warnings.py _after_ site.py has run. This ensures that site.py is again the first .py to be imported, giving it back full control over sys.path.
-
- 24 Şub, 2003 1 kayıt (commit)
-
-
Walter Dörwald yazdı
-
- 23 Şub, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
(patch provided by Greg Chapman)
-
- 22 Şub, 2003 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
called to find tb_lineno -- even if Py_OptimizeFlag is true. So don't call it again when printing the traceback.
-
- 19 Şub, 2003 3 kayıt (commit)
-
-
Guido van Rossum yazdı
instead of a plain PyObject *. (SF patch #686601 by Ben Laurie.)
-
Guido van Rossum yazdı
turned into an absolute pathname, unless it is the empty string. (SF patch #664376, by Skip Montanaro.)
-
Mark Hammond yazdı
-
- 17 Şub, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
use METH_NOARGS instead
-
- 14 Şub, 2003 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
codecs registry startup.
-
- 13 Şub, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
with an indented code block but no newline would raise SyntaxError. This would have been a four-line change in parsetok.c... Except codeop.py depends on this behavior, so a compilation flag had to be invented that causes the tokenizer to revert to the old behavior; this required extra changes to 2 .h files, 2 .c files, and 2 .py files. (Fixes SF bug #501622.)
-
- 12 Şub, 2003 3 kayıt (commit)
-
-
Neal Norwitz yazdı
Add missing INCREFs and re-indent returns to be consistent. Add \n\ for lines in docstring Add a pathetic test Add docs
-
Guido van Rossum yazdı
mostly from SF patch #683257, but I had to change unlock_import() to return an error value to avoid fatal error. Should this be backported? The patch requested this, but it's a new feature.
-
Guido van Rossum yazdı
"Unsigned" (i.e., positive-looking, but really negative) hex/oct constants with a leading minus sign are once again properly negated. The micro-optimization for negated numeric constants did the wrong thing for such hex/oct constants. The patch avoids the optimization for all hex/oct constants. This needs to be backported to Python 2.2!
-
- 10 Şub, 2003 5 kayıt (commit)
-
-
Walter Dörwald yazdı
instead of PyTuple_GetItem, so an overwritten __getitem__ in a tuple subclass works. SF bug #665835.
-
Tim Peters yazdı
-
Walter Dörwald yazdı
object is not a real str or unicode but an instance of a subclass, construct the output via looping over __getitem__. This guarantees that the result is the same for function==None and function==lambda x:x This doesn't happen for tuples, because filtertuple() uses PyTuple_GetItem(). (This was discussed on SF bug #665835).
-
Just van Rossum yazdı
my MAL. Fixed. (Btw. eval() still doesn't take buffers, but that was so even before my patch.)
-
Just van Rossum yazdı
Incorporated nnorwitz's comment re. Py__USING_UNICODE.
-
- 05 Şub, 2003 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-DCALL_PROFILE: Count the number of function calls executed. When this symbol is defined, the ceval mainloop and helper functions count the number of function calls made. It keeps detailed statistics about what kind of object was called and whether the call hit any of the special fast paths in the code. Optimization: When we take the fast_function() path, which seems to be taken for most function calls, and there is minimal frame setup to do, avoid call PyEval_EvalCodeEx(). The eval code ex function does a lot of work to handle keywords args and star args, free variables, generators, etc. The inlined version simply allocates the frame and copies the arguments values into the frame. The optimization gets a little help from compile.c which adds a CO_NOFREE flag to code objects that don't have free variables or cell variables. This change allows fast_function() to get into the fast path with fewer tests. I measure a couple of percent speedup in pystone with this change, but there's surely more that can be done.
-
- 04 Şub, 2003 4 kayıt (commit)
-
-
Neil Schemenauer yazdı
instead of raising a TypeError. Closes #660144 (again).
-
Walter Dörwald yazdı
subclasses. (Discussed in SF patch #665835)
-
Walter Dörwald yazdı
so we can jump to the error handling code that does. (Spotted by Neal Norwitz)
-
Walter Dörwald yazdı
blindly assumed that tp_as_sequence->sq_item always returns a str or unicode object. This might fail with str or unicode subclasses. This patch checks whether the object returned from __getitem__ is a str/unicode object and raises a TypeError if not (and the filter function returned true). Furthermore the result for __getitem__ can be more than one character long, so checks for enough memory have to be done.
-
- 03 Şub, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 31 Ock, 2003 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
__module__ is the string name of the module the function was defined in, just like __module__ of classes. In some cases, particularly for C functions, the __module__ may be None. Change PyCFunction_New() from a function to a macro, but keep an unused copy of the function around so that we don't change the binary API. Change pickle's save_global() to use whichmodule() if __module__ is None, but add the __module__ logic to whichmodule() since it might be used outside of pickle.
-
- 30 Ock, 2003 1 kayıt (commit)
-
-
Fred Drake yazdı
-
- 25 Ock, 2003 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 24 Ock, 2003 3 kayıt (commit)
-
-
Neil Schemenauer yazdı
Calling PyInt_AsLong() on a float truncates it which is almost never the desired behavior. This closes SF bug #660144.
-
Jack Jansen yazdı
MacPython-OS9 has had an abort() function for quite a while now, so there's no reason to stall in an endless loop, just call abort() on a fatal error.
-
Jack Jansen yazdı
MacPython-OS9 specific fix: If there are non-string items on sys.path don't try to intern them. This has the theoretical problem that resource filenames on sys.path cannot be unicode objects, but in practice that shouldn't matter.
-
- 22 Ock, 2003 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 21 Ock, 2003 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 19 Ock, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Make the code slightly shorter, faster, and easier to read. * Eliminate unused DUP_TOPX code for x==1. compile.c always generates DUP_TOP instead. * Since only two cases remain for DUP_TOPX, replace the switch-case with if-elseif. * The in-lined integer compare does a CheckExact on both arguments. Since the second is a little more likely to fail, test it first. * The switch-case for IS/IS_NOT and IN/NOT_IN can separate the regular and inverted cases with no additional work. For all four paths, saves a test and jump.
-