| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
optimization (+F(whatever)).
|
|
|
|
|
| |
I(0) << whatever, I(0) >> whatever, I(whatever) << 0 and I(whatever) >> 0
optimizations.
|
|
|
|
|
|
| |
Added a few new toolbox modules.
Noted machine dependencies for some modules.
Moved waste to undoc.tex.
|
|
|
|
|
| |
Moved icopen to its alphabetical place.
Moved waste here (from toolbox).
|
|
|
|
| |
OSX MachO Python).
|
| |
|
|
|
|
|
| |
child processes is to use the Popen3 and Popen4 classes.
This fixes SF bug #460512.
|
|
|
|
| |
Disable t[:], t*0, t*1 optimizations when t is of a tuple subclass type.
|
| |
|
| |
|
|
|
|
|
| |
contributed by Gerhard Häring.
This is part of SF patch #460112.
|
|
|
|
| |
This is part of SF patch #460112.
|
| |
|
|
|
|
|
| |
cgi.FieldStorage class.
This closes SF patch #453691.
|
|
|
|
| |
calls to PyXXX_CheckExact(X).
|
|
|
|
|
|
|
|
| |
#460112 by Gerhard Haering.
(With slight layout changes to conform to docstrings guidelines and to
prevent a line longer than 78 characters. Also fixed some docstrings
that Gerhard didn't touch.)
|
| |
|
|
|
|
| |
#460112).
|
| |
|
| |
|
|
|
|
| |
This closes SF patch #459441.
|
|
|
|
| |
Older make's can apparently choke on this.
|
|
|
|
| |
time use .replace() to change all \r\n into \n, not just the last one.
|
|
|
|
|
|
| |
XXX'ed out. Turns out that after fixing the constructors, the
comparisons in fact succeed. E.g. int(hexint(12345)) returns an int
with value 12345.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that will detect an __main__.py or __rawmain__.py in the application bundle.
This file is then exectued as the main script. We now have applets in
MachO Python!!!
The difference between __main__ and __rawmain__ is that the former gets a
complete simulated argv (so you can drop files on the applet and the script
sees them in sys.argv) while the latter skips the argv simulation and the
<option>key dialog. This keeps the AppleEvent that started the app intact,
as well as the funny "-psn_xxxx" argv[1] argument, so the script can do
with these what it wants.
|
|
|
|
| |
- Allow any file to be dropped on the interpreter (for file args).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Changed unicode(i) to return a true Unicode object when i is an instance of
a unicode subclass. Added PyUnicode_CheckExact macro.
|
| |
|
|
|
|
|
| |
involving embedded null bytes, since it's possible to screw that up w/o
screwing up cases w/o embedded nulls.
|
|
|
|
|
| |
Repaired str(i) to return a genuine string when i is an instance of a str
subclass. New PyString_CheckExact() macro.
|
| |
|
|
|
|
|
|
|
|
| |
tuple(i) repaired to return a true tuple when i is an instance of a
tuple subclass.
Added PyTuple_CheckExact macro.
PySequence_Tuple(): if a tuple-like object isn't exactly a tuple, it's
not safe to return the object as-is -- make a new tuple of it instead.
|
| |
|
| |
|
|
|
|
|
|
| |
parameter for the return string (as unix pathnames are not limited
by the 255 char pstring limit).
Implemented the function for MachO-Python, where it returns unix pathnames.
|
|
|
|
| |
xmllib (on 2.0 and later)
|
|
|
|
|
| |
Repair float constructor to return a true float when passed a subclass
instance. New PyFloat_CheckExact macro.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Given an immutable type M, and an instance I of a subclass of M, the
constructor call M(I) was just returning I as-is; but it should return a
new instance of M. This fixes it for M in {int, long}. Strings, floats
and tuples remain to be done.
Added new macros PyInt_CheckExact and PyLong_CheckExact, to more easily
distinguish between "is" and "is a" (i.e., only an int passes
PyInt_CheckExact, while any sublass of int passes PyInt_Check).
Added private API function _PyLong_Copy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Subtlety on Windows: if we change test_largefile.py to use a file
> 4GB, it still fails. A debug session suggests this is because
fseek(fp, 0, 2) refuses to seek to the end of the file when the file
is > 4GB, because it uses the SetFilePointer() in 32-bit mode.
But it only fails when we seek relative to the end of the file,
because in the other seek modes only calls to fgetpos() and fsetpos()
are made, which use Get/SetFilePointer() in 64-bit mode. Solution:
#ifdef MS_WInDOWS, replace the call to fseek(fp, ...) with a call to
_lseeki64(fileno(fp), ...). Make sure to call fflush(fp) first.
(XXX Could also replace the entire branch with a call to _lseeki64().
Would that be more efficient? Certainly less generated code.)
(XXX This needs more testing. I can't actually test that it works for
files >4GB on my Win98 machine, because the filesystem here won't let
me create files >=4GB at all. Tim should test this on his Win2K
machine.)
|
|
|
|
|
| |
xmllib unless needed), merged docstring patches, added overridable
Transport.getparser to simplify plugging in different parsers.
|
| |
|
|
|
|
|
|
| |
- use PyModule_Check() instead of PyObject_TypeCheck(), now we can.
- don't assert that the __dict__ gotten out of a module is always
a dictionary; check its type, and raise an exception if it's not.
|
| |
|
|
|
|
| |
Update the patch and bug counts
|