- 06 Ara, 2001 6 kayıt (commit)
-
-
Tim Peters yazdı
Big Hammer to implement -Qnew as PEP 238 says it should work (a global option affecting all instances of "/"). pydebug.h, main.c, pythonrun.c: define a private _Py_QnewFlag flag, true iff -Qnew is passed on the command line. This should go away (as the comments say) when true division becomes The Rule. This is deliberately not exposed to runtime inspection or modification: it's a one-way one-shot switch to pretend you're using Python 3. ceval.c: when _Py_QnewFlag is set, treat BINARY_DIVIDE as BINARY_TRUE_DIVIDE. test_{descr, generators, zipfile}.py: fiddle so these pass under -Qnew too. This was just a matter of s!/!//! in test_generators and test_zipfile. test_descr was trickier, as testbinop() is passed assumptions that "/" is the same as calling a "__div__" method; put a temporary hack there to call "__truediv__" instead when the method name is "__div__" and 1/2 evaluates to 0.5. Three standard tests still fail under -Qnew (on Windows; somebody please try the Linux tests with -Qnew too! Linux runs a whole bunch of tests Windows doesn't): test_augassign test_class test_coercion I can't stay awake longer to stare at this (be my guest). Offhand cures weren't obvious, nor was it even obvious that cures are possible without major hackery. Question: when -Qnew is in effect, should calls to __div__ magically change into calls to __truediv__? See "major hackery" at tail end of last paragraph <wink>.
-
Fred Drake yazdı
the node being added is a fragment node. This closes SF bug #487929.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
the work each time it found another base class. All the work is contiguous, so we might as well do it all at once at the end.
-
- 05 Ara, 2001 20 kayıt (commit)
-
-
Jack Jansen yazdı
-
Jack Jansen yazdı
This should probably go into NEWS (who's responsible for that?).
-
Jack Jansen yazdı
Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
-
Guido van Rossum yazdı
It was easier than I thought, assuming that no other things contribute to the instance size besides slots -- a pretty good bet. With a test suite, no less!
-
Jack Jansen yazdı
-
Fred Drake yazdı
method. This closes SF patch #486079.
-
Tim Peters yazdı
yesterday -- repair that. Also renamed the silly size_times_nchannels to bytes_per_frame.
-
Fred Drake yazdı
-
Fred Drake yazdı
parser_tuple2st() and a failure to propogate an error in build_node_children() (masking yet another leak, of course!). This closes SF bug #485133 (confirmed by Insure++).
-
Fred Drake yazdı
This closes SF bug #489513.
-
Guido van Rossum yazdı
happy if one could delete the __dict__ attribute of an instance. I love to make Jim happy, so here goes... - New-style objects now support deleting their __dict__. This is for all intents and purposes equivalent to assigning a brand new empty dictionary, but saves space if the object is not used further.
-
Fred Drake yazdı
pertains to the script is now in the if __name__ == "__main__" block. This is in response to a commenton python-dev from Neal Norwitz.
-
Jack Jansen yazdı
As of OS X 10.1.1 the version numbering scheme has changed. Convert all "darwin*" to "darwin" and use that for testing.
-
Steven M. Gava yazdı
-
Steven M. Gava yazdı
-
Steven M. Gava yazdı
-
Tim Peters yazdı
Bugfix candidate. A numerically naive computation of output buffer size caused crashes and spurious MemoryErrors for reasonable arguments. audioop_ratecv(): Avoid spurious overflow by careful reworking of the buffer size computations, triggering MemoryError if and only if the final buffer size can't be represented in a C int (although PyString_FromStringAndSize may legitimately raise MemoryError even if it does fit in a C int). All reasonable arguments should work as intended now, and all unreasonable arguments should be cuaght.
-
Fred Drake yazdı
attribute of file objects, the print statement, and other file operations. This closes SF bug #484857. Fix minor markup nits.
-
Fred Drake yazdı
that it does not guarantee that all data is sent. This closes SF patch #474307.
-
Tim Peters yazdı
-
- 04 Ara, 2001 14 kayıt (commit)
-
-
Tim Peters yazdı
int_mul(): new and vastly simpler overflow checking. Whether it's faster or slower will likely vary across platforms, favoring boxes with fast floating point. OTOH, we no longer have to worry about people shipping broken LONG_BIT definitions <0.9 wink>.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
written to the log file, and turn off the profiler. This closes SF bug #483925.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Fred Drake yazdı
This is the Unix portion of the fix for SF bug #489052.
-
Guido van Rossum yazdı
reserved words. No longer need to import string.
-
Guido van Rossum yazdı
didn't use reswords.py, as the comment clearly states. :-(
-
Tim Peters yazdı
extensions that #include Python.h. See (rejected) patch 487634 for more detail. I'll open a new bug report for the rest needed here.
-
Fred Drake yazdı
modules, or the module cannot be properly imported. (Based on a suggestion sent to python-docs.) Update the displayed dir() of the sys and __builtin__ module with Python 2.2.
-
Fred Drake yazdı
give examples for which str() and repr() yield different results. This closes SF bug #485446.
-
Ka-Ping Yee yazdı
By default, save sys.stdout in self.file when a Hook instance is created (e.g. when cgitb.enable() is called).
-
Guido van Rossum yazdı
$BROWSER should be split on os.pathsep, not on ":".
-