- 05 Şub, 2003 26 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.
-
Jack Jansen yazdı
-
Just van Rossum yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
be bothered to fix it.
-
Guido van Rossum yazdı
the code.
-
Jeremy Hylton yazdı
For the case where the current globals match the previous frame's globals, eliminates three tests in two if statements. For the case where we just get __builtins__ from a module, eliminate a couple of tests.
-
Andrew M. Kuchling yazdı
gzip shouldn't raise ValueError on corrupt files Currently the gzip module will raise a ValueError if the file was corrupt (bad crc or bad size). I can't see how that applies to reading a corrupt file. IOError seems better, and it's what code will likely be looking for.
-
Andrew M. Kuchling yazdı
-
Tim Peters yazdı
file can be dumped without (bogus) complaint if the the pickles were created using a single pickle memo.
-
Tim Peters yazdı
merge_class_dict(): This was missing a decref. Bugfix candidate.
-
Tim Peters yazdı
Added array.array to the types repr.py knows about, after a suggestion from Jurjen N.E. Bos.
-
Jason Tishler yazdı
Applied the skip test_ossaudiodev patch.
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
the clipboard contains a filename that filename is used as the default.
-
Jack Jansen yazdı
-
Jason Tishler yazdı
It also prevents building against the real X headers, if installed. After discussions with the Cygwin project lead, I believe that building against the real X headers is OK. Especially, since the psuedo-X headers are *not* installed by the Cygwin Tcl/Tk binary package.
-
Jason Tishler yazdı
Note that this patch just reverts the lib_prefix (i.e., "cyg") portion of my Tcl/Tk 8.3 patch. It seems that Cygwin Tcl/Tk is using a more normal file naming convention again.
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
we have a symlink somewhere in the TESTFN path.
-
Raymond Hettinger yazdı
to have a full dictionary interface.
-
Tim Peters yazdı
-
Tim Peters yazdı
-
Tim Peters yazdı
-
- 04 Şub, 2003 14 kayıt (commit)
-
-
Tim Peters yazdı
guarantee to keep valid pointers in its slots. tests: Moved ExtensionSaver from test_copy_reg into pickletester, and use it both places. Once extension codes get assigned, it won't be safe to overwrite them willy nilly in test suites, and ExtensionSaver does a thorough job of undoing any possible damage. Beefed up the EXT[124] tests a bit, to check the smallest and largest codes in each opcode's range too.
-
Neil Schemenauer yazdı
instead of raising a TypeError. Closes #660144 (again).
-
Tim Peters yazdı
Moved such EXT tests as currently exist from TempAbstractPickleTests to AbstractPickleTests, so that test_cpickle runs them too.
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
-
Walter Dörwald yazdı
subclasses. (Discussed in SF patch #665835)
-
Marc-André Lemburg yazdı
by Michael Stone (mbrierst). Python 2.1.4, 2.2.2 candidate.
-
Fred Drake yazdı
-
Walter Dörwald yazdı
signed/unsigned comparison warnings on the call to iconv(). Fix comment typos. From SF patch #680146.
-
Tim Peters yazdı
-
Walter Dörwald yazdı
str and unicode subclasses not just for generating the output but for testing too.
-
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.
-
Jack Jansen yazdı
providing the format info, only the raw data). - Get rid of fsspecs. - Make the demo program at least do something if img not available.
-