- 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 5 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Marc-André Lemburg yazdı
patch for sharing single character Unicode objects. Martin's patch had to be reworked in a number of ways to take Unicode resizing into consideration as well. Here's what the updated patch implements: * Single character Unicode strings in the Latin-1 range are shared (not only ASCII chars as in Martin's original patch). * The ASCII and Latin-1 codecs make use of this optimization, providing a noticable speedup for single character strings. Most Unicode methods can use the optimization as well (by virtue of using PyUnicode_FromUnicode()). * Some code cleanup was done (replacing memcpy with Py_UNICODE_COPY) * The PyUnicode_Resize() can now also handle the case of resizing unicode_empty which previously resulted in an error. * Modified the internal API _PyUnicode_Resize() and the public PyUnicode_Resize() API to handle references to shared objects correctly. The _PyUnicode_Resize() signature changed due to this. * Callers of PyUnicode_FromUnicode() may now only modify the Unicode object contents of the returned object in case they called the API with NULL as content template. Note that even though this patch passes the regression tests, there may still be subtle bugs in the sharing code.
-
Guido van Rossum yazdı
sees it (test_iter.py is unchanged). - Added a tp_iternext slot, which calls the iterator's next() method; this is much faster for built-in iterators over built-in types such as lists and dicts, speeding up pybench's ForLoop with about 25% compared to Python 2.1. (Now there's a good argument for iterators. ;-) - Renamed the built-in sequence iterator SeqIter, affecting the C API functions for it. (This frees up the PyIter prefix for generic iterator operations.) - Added PyIter_Check(obj), which checks that obj's type has a tp_iternext slot and that the proper feature flag is set. - Added PyIter_Next(obj) which calls the tp_iternext slot. It has a somewhat complex return condition due to the need for speed: when it returns NULL, it may not have set an exception condition, meaning the iterator is exhausted; when the exception StopIteration is set (or a derived exception class), it means the same thing; any other exception means some other error occurred.
-
Guido van Rossum yazdı
in dict' after has_key(), with a \versionadded{2.2} note.
-
- 22 Nis, 2001 2 kayıt (commit)
-
-
Fred Drake yazdı
branch is the head (development) branch or a maintenance brach, and use the appropriate target directory for each.
-
Fred Drake yazdı
This closes SF bug #417943.
-
- 21 Nis, 2001 10 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
This adds "for line in file" iteration, as promised.
-
Tim Peters yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
Update <versionadded/> to recent addition of optional explanatory text; make the explanation text take the same attribute name for both <versionadded/> and <versionchanged/>.
-
Fred Drake yazdı
-
Fred Drake yazdı
support for it here.
-
Tim Peters yazdı
-
Tim Peters yazdı
Repaired *some* of the SGI compiler warnings Sjoerd Mullender reported.
-
- 20 Nis, 2001 6 kayıt (commit)
-
-
Tim Peters yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
new slot tp_iter in type object, plus new flag Py_TPFLAGS_HAVE_ITER new C API PyObject_GetIter(), calls tp_iter new builtin iter(), with two forms: iter(obj), and iter(function, sentinel) new internal object types iterobject and calliterobject new exception StopIteration new opcodes for "for" loops, GET_ITER and FOR_ITER (also supported by dis.py) new magic number for .pyc files new special method for instances: __iter__() returns an iterator iteration over dictionaries: "for x in dict" iterates over the keys iteration over files: "for x in file" iterates over lines TODO: documentation test suite decide whether to use a different way to spell iter(function, sentinal) decide whether "for key in dict" is a good idea use iterators in map/filter/reduce, min/max, and elsewhere (in/not in?) speed tuning (make next() a slot tp_next???)
-
Jeremy Hylton yazdı
domain socket. Fix that and make the error message for failures a little more helpful by including the class name.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
I know some people don't like this -- if it's really controversial, I'll take it out again. (If it's only Alex Martelli who doesn't like it, that doesn't count as "real controversial" though. :-) That's why this is a separate checkin from the iterators stuff I'm about to check in next.
-
- 19 Nis, 2001 4 kayıt (commit)
-
-
Tim Peters yazdı
-
Jeremy Hylton yazdı
-
Fred Drake yazdı
Weak*Dictionary.update(): No longer create a temporary list to hold the things that will be stuffed into the underlying dictionary. This had been done so that if any of the objects used as the weakly-held value was not weakly-referencable, no updates would take place (TypeError would be raised). With this change, TypeError will still be raised but a partial update could occur. This is more like other .update() implementations. Thoughout, use of the name "ref" as a local variable has been removed. The original use of the name occurred when the function to create a weak reference was called "new"; the overloaded use of the name could be confusing for someone reading the code. "ref" used as a variable name has been replaced with "wr" (for 'weak reference').
-
Fred Drake yazdı
used to be omitted (meaning use the current time) as of Python 2.1. Users who need cross-version portability need to know things like this.
-