- 11 Eyl, 2001 27 kayıt (commit)
-
-
Tim Peters yazdı
Disable t[:], t*0, t*1 optimizations when t is of a tuple subclass type.
-
Jack Jansen yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
contributed by Gerhard Häring. This is part of SF patch #460112.
-
Fred Drake yazdı
This is part of SF patch #460112.
-
Guido van Rossum yazdı
-
Fred Drake yazdı
cgi.FieldStorage class. This closes SF patch #453691.
-
Guido van Rossum yazdı
calls to PyXXX_CheckExact(X).
-
Guido van Rossum yazdı
#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.)
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
#460112).
-
Guido van Rossum yazdı
-
Martin v. Löwis yazdı
-
Fred Drake yazdı
This closes SF patch #459441.
-
Jack Jansen yazdı
Older make's can apparently choke on this.
-
Guido van Rossum yazdı
time use .replace() to change all \r\n into \n, not just the last one.
-
Guido van Rossum yazdı
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.
-
Jack Jansen yazdı
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.
-
Jack Jansen yazdı
- Allow any file to be dropped on the interpreter (for file args).
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Tim Peters yazdı
Changed unicode(i) to return a true Unicode object when i is an instance of a unicode subclass. Added PyUnicode_CheckExact macro.
-
Tim Peters yazdı
-
Tim Peters yazdı
involving embedded null bytes, since it's possible to screw that up w/o screwing up cases w/o embedded nulls.
-
Tim Peters yazdı
Repaired str(i) to return a genuine string when i is an instance of a str subclass. New PyString_CheckExact() macro.
-
- 10 Eyl, 2001 13 kayıt (commit)
-
-
Tim Peters yazdı
-
Tim Peters yazdı
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.
-
Tim Peters yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
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.
-
Fredrik Lundh yazdı
xmllib (on 2.0 and later)
-
Tim Peters yazdı
Repair float constructor to return a true float when passed a subclass instance. New PyFloat_CheckExact macro.
-
Jack Jansen yazdı
-
Tim Peters yazdı
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.
-
Guido van Rossum yazdı
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.)
-
Fredrik Lundh yazdı
xmllib unless needed), merged docstring patches, added overridable Transport.getparser to simplify plugging in different parsers.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
- 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.
-