- 03 Mar, 2003 14 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Just van Rossum yazdı
- Implement the behavior as specified in PEP 277, meaning os.listdir() will only return unicode strings if it is _called_ with a unicode argument. - And then return only unicode, don't attempt to convert to ASCII. - Don't switch on Py_FileSystemDefaultEncoding, but simply use the default encoding if Py_FileSystemDefaultEncoding is NULL. This means os.listdir() can now raise UnicodeDecodeError if the default encoding can't represent the directory entry. (This seems better than silcencing the error and fall back to a byte string.) - Attempted to decribe the above in Doc/lib/libos.tex. - Reworded the Misc/NEWS items to reflect the current situation. This checkin also fixes bug #696261, which was due to os.listdir() not using Py_FileSystemDefaultEncoding, like all file system calls are supposed to.
-
Ken Manheimer yazdı
introduced when shifting around some code, and added some redundancy to reduce chances of hitting the wrong source code. (This is experimental - it will improve the accuracy, but will reduce the ability of the user to deliberately select the buffer they want the buffer grubbing stuff to find. I think the accuracy improvement will be worth it, but am not sure, so may remove this.)
-
Jack Jansen yazdı
-
Jack Jansen yazdı
because we have no easy way to convert the python encoding string to a CF encoding parameter.
-
Jack Jansen yazdı
strings to CF strings. Fixes 682215.
-
Michael W. Hudson yazdı
[ 555817 ] Flawed fcntl.ioctl implementation. with my patch that allows for an array to be mutated when passed as the buffer argument to ioctl() (details complicated by backwards compatibility considerations -- read the docs!).
-
Jack Jansen yazdı
EasyDIalogs methods will call it if needed. Fixes #684975.
-
Jack Jansen yazdı
exception of the ProgressBar, which I think is okay to show in the background). This is a prerequisitite for the fix of #684975.
-
Martin v. Löwis yazdı
disable this function in threaded Tcl. Likewise for creaetetimerhandler. Fixes #692416.
-
Martin v. Löwis yazdı
-
Ken Manheimer yazdı
-
Ken Manheimer yazdı
the reported path. (Eg, precompiled scripts with a file path suitable for a different host, scripts actually running on a remote system or with no valid path, like Zope through-the-web python scripts.) On failing to find the code on the reported path, pdbtrack takes the function name and looks through the buffers, from most to least recent, seeking the first python-mode buffer that either is named for the function or has a definition (def or class) for that function. So to get source tracking for code that's not located where the path indicates, you put a copy of the script in a buffer, and pdbtrack will find it. Also, fixed a small bug so pdbtrack now properly presents the overlay arrow when you run the pdb 'w'here command.
-
- 02 Mar, 2003 12 kayıt (commit)
-
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
constructor, when passed a single complex argument, returns the argument unchanged. This should be done only for the complex base class; a complex subclass should of course cast the value to the subclass in this case. The fix also revealed a segfault in complex_getnewargs(): the argument for the Py_BuildValue() format code "D" is the *address* of a Py_complex struct, not the value. (This corroborated by the API documentation.) I expect this needs to be backported to 2.2.3.
-
Guido van Rossum yazdı
calling into Python from a C thread.
-
Tim Peters yazdı
proto 2 pickle too.
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Tim Peters yazdı
assertRaises. Fixed a repeated subtle bug in the inplace tests by removing the possibilty that a self.fail() call could raise a TypeError that the test catches by mistake.
-
Tim Peters yazdı
-
Tim Peters yazdı
Allow mixed-type __eq__ and __ne__ for Set objects. This is messier than I'd like because Set *also* implements __cmp__. I know of one glitch now: cmp(s, t) returns 0 now when s and t are both Sets and s == t, despite that Set.__cmp__ unconditionally raises TypeError (and by intent). The rub is that __eq__ gets tried first, and the x.__eq__(y) True result convinces Python that cmp(x, y) is 0 without even calling Set.__cmp__.
-
- 01 Mar, 2003 9 kayıt (commit)
-
-
Tim Peters yazdı
elements get displayed in undefined dict order. Use a Set subclass instead (which arranges to sort the elements for display).
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
-
Guido van Rossum yazdı
-
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!
-
Raymond Hettinger yazdı
-
Raymond Hettinger yazdı
The PyIter_Check is already performed by PyObject_GetIter.
-
- 28 Şub, 2003 5 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
require -u network to run test_timeout since it fails when not connected to a network.
-
Neal Norwitz yazdı
try: # ... except ImportError, why: except: # ... All other changes are re-indenting/formatting.
-