- 02 May, 2001 11 kayıt (commit)
-
-
Fred Drake yazdı
appropriate next() method, and this is what people really want to do with these objects in practice.
-
Fred Drake yazdı
the support for containers and iteration.
-
Fred Drake yazdı
-
Marc-André Lemburg yazdı
objects but instead assume that they use the requested encoding. This is needed on Windows to enable opening files by passing in Unicode file names.
-
Guido van Rossum yazdı
dictionary size was comparing ma_size, the hash table size, which is always a power of two, rather than ma_used, wich changes on each insertion or deletion. Fixed this.
-
Marc-André Lemburg yazdı
-
Tim Peters yazdı
filter() to no longer insist that len(seq) be defined. NEEDS DOC CHANGES.
-
Tim Peters yazdı
-
Tim Peters yazdı
-
Fred Drake yazdı
Refactored some object initialization to be more reusable.
-
Fred Drake yazdı
-
- 01 May, 2001 6 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Tim Peters yazdı
to no longer insist that len(seq) be defined. NEEDS DOC CHANGES. This is meant to be a model for how other functions of this ilk (max, filter, etc) can be generalized similarly. Feel encouraged to grab your favorite and convert it! Note some cute consequences: list(file) == file.readlines() == list(file.xreadlines()) list(dict) == dict.keys() list(dict.iteritems()) = dict.items() list(xrange(i, j, k)) == range(i, j, k)
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
object's type didn't define tp_print, there were still cases where the full "print uses str() which falls back to repr()" semantics weren't honored. This resulted in >>> print None <None object at 0x80bd674> >>> print type(u'') <type object at 0x80c0a80> Fixed this by always using the appropriate PyObject_Repr() or PyObject_Str() call, rather than trying to emulate what they would do. Also simplified PyObject_Str() to always fall back on PyObject_Repr() when tp_str is not defined (rather than making an extra check for instances with a __str__ method). And got rid of the special case for strings.
-
Guido van Rossum yazdı
course), so I can get rid of the special case for strings in PyObject_Str().
-
Guido van Rossum yazdı
objects. Tests show that iteritems() is 5-10% faster than iterating over the dict and extracting the value with dict[key].
-
- 30 Nis, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
printing of instances not to look for __str__(). Fix this.
-
- 29 Nis, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Directory containing Spam.py spam/__init__.py Then "import Spam" caused a SystemError, because code checking for the existence of "Spam/__init__.py" finds it on a case-insensitive filesystem, but then bails because the directory it finds it in doesn't match case, and then old code assumed that was still an error even though it isn't anymore. Changed the code to just continue looking in this case (instead of calling it an error). So import Spam and import spam both work now.
-
- 28 Nis, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
Also a 2.1 bugfix candidate (am I supposed to do something with those?). Took away map()'s insistence that sequences support __len__, and cleaned up the convoluted code that made it *look* like it really cared about __len__ (in fact the old ->len field was only *used* as a flag bit, as the main loop only looked at its sign bit, setting the field to -1 when IndexError got raised; renamed the field to ->saw_IndexError instead).
-
Tim Peters yazdı
Patch #419651: Metrowerks on Mac adds 0x itself C std says %#x and %#X conversion of 0 do not add the 0x/0X base marker. Metrowerks apparently does. Mark Favas reported the same bug under a Compaq compiler on Tru64 Unix, but no other libc broken in this respect is known (known to be OK under MSVC and gcc). So just try the damn thing at runtime and see what the platform does. Note that we've always had bugs here, but never knew it before because a relevant test case didn't exist before 2.1.
-
- 27 Nis, 2001 4 kayıt (commit)
-
-
Guido van Rossum yazdı
Fix a very old flaw in PyObject_Print(). Amazing! When an object type defines tp_str but not tp_repr, 'print x' to a real file object would not call the tp_str slot but rather print a default style representation: <foo object at 0x....>. This even though 'print x' to a file-like-object would correctly call the tp_str slot.
-
Jack Jansen yazdı
Got rid of the whole event filtering mess again, I can't get it to work. Simply disabling the Tk event handling hook in _tkinter is not as nice, but at least it works.
-
Jeremy Hylton yazdı
The new test case demonstrates the bug. Be more careful in symtable_resolve_free() to add a var to cells or frees only if it won't be added under some other rule. XXX Add new assertion that will catch this bug.
-
Jeremy Hylton yazdı
-
- 26 Nis, 2001 2 kayıt (commit)
-
-
Jack Jansen yazdı
Apparently the code to forestall Tk eating events was too aggressive (Tk user input stopped working). Fixed (I hope:-).
-
Eric S. Raymond yazdı
-
- 25 Nis, 2001 10 kayıt (commit)
-
-
Jack Jansen yazdı
-
Jack Jansen yazdı
Check RefCon backpointer to python object with IsPointerValid() before dereferencing it (carbon only).
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
- Better handling of menu bar save/restore. - Override abort() so it honours the "keep console window" flag.
-
Jack Jansen yazdı
-
Fred Drake yazdı
interactive examples. Error noted by Dinu Gherman.
-
Fred Drake yazdı
of ParserCreate(). Added assignment tests for the ordered_attributes and specified_attributes values, similar to the checks for the returns_unicode attribute.
-
Fred Drake yazdı
while not generally a good idea, this is used by RDF users, and works to implement RDF-style namespace+localname concatenation as defined in the RDF specifications. (This also corrects a backwards-compatibility bug.) Be more conservative while clearing out handlers; set the slot in the self->handlers array to NULL before DECREFing the callback. Still more adjustments to make the code style internally consistent.
-
Tim Peters yazdı
Obviously bad regexps, spotted by Jeffery Collins. HELP! I can't run this on Windows, and the module test() function probably doesn't work on anyone's box. Could a Unixoid please write an at least minimal working test and add it to the std test suite?
-
- 24 Nis, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
I believe Kevin Rodgers here! The old WINDOWS_LEAN_AND_MEAN has, AFAICT, always been wrong.
-
- 23 Nis, 2001 2 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-