- 21 Apr, 2001 7 commits
-
-
Tim Peters authored
-
Fred Drake authored
-
Fred Drake authored
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 authored
-
Fred Drake authored
support for it here.
-
Tim Peters authored
-
Tim Peters authored
Repaired *some* of the SGI compiler warnings Sjoerd Mullender reported.
-
- 20 Apr, 2001 6 commits
-
-
Tim Peters authored
-
Guido van Rossum authored
-
Guido van Rossum authored
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 authored
domain socket. Fix that and make the error message for failures a little more helpful by including the class name.
-
Guido van Rossum authored
-
Guido van Rossum authored
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 Apr, 2001 4 commits
-
-
Tim Peters authored
-
Jeremy Hylton authored
-
Fred Drake authored
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 authored
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.
-
- 18 Apr, 2001 23 commits
-
-
Tim Peters authored
installations.
-
Fred Drake authored
*DE*compression objects, not compression objects!
-
Fred Drake authored
support.
-
Fred Drake authored
module has been included since Python 2.0, and that is the preferred interface.
-
Fred Drake authored
introducing a new term ("regex") without defining it.
-
Martin v. Löwis authored
-
Fred Drake authored
(Note that the docs are also being maintained on the 2.1.1 maintenance branch, so users interested only in corrections and clarifications can get that.)
-
Fred Drake authored
\versionadded macro. Note: this should not be merged into the 2.1 maintenance branch.
-
Fred Drake authored
all reported by Bruce Smith.
-
Fred Drake authored
(Note that the docs are also being maintained on the 2.1.1 maintenance branch, so users interested only in corrections and clarifications can get that.)
-
Guido van Rossum authored
-
Guido van Rossum authored
it's 2.2 before the first alpha release.
-
Barry Warsaw authored
PyChecker.
-
Barry Warsaw authored
-
Barry Warsaw authored
variables reported by PyChecker. __togglegentype(): PyChecker accurately reported that the variable __gentypevar was unused -- actually this whole method is currently unused so comment it out.
-
Barry Warsaw authored
reported by PyChecker.
-
Barry Warsaw authored
-
Barry Warsaw authored
this tool was last touched! Update some of the introductory material and bump the version to 1.1.
-
Fred Drake authored
bite people interested in 1.5.2 compatibility.
-
Fred Drake authored
macro. Refactored do_cmd_versionadded() and do_cmd_versionchanged() to do most of the work in a helper function, with the do_cmd_*() wrappers just supplying a portion of the replacement text.
-
Fred Drake authored
the versioning information, similar to \versionchanged.
-
Jeremy Hylton authored
The changes cause compilation failures in any file in the Python installation lib directory to cause the install to fail. It looks like compileall.py intended to behave this way, but a change to py_compile.py and a separate bug defeated it. Fixes SF bug #412436 This change affects the test suite, which contains several files that contain intentional errors. The solution is to extend compileall.py with the ability to skip compilation of selected files. NB compileall.py is changed so that compile_dir() returns success only if all recursive calls to compile_dir() also check success.
-
Jeremy Hylton authored
The changes cause compilation failures in any file in the Python installation lib directory to cause the install to fail. It looks like compileall.py intended to behave this way, but a change to py_compile.py and a separate bug defeated it. Fixes SF bug #412436 This change affects the test suite, which contains several files that contain intentional errors. The solution is to extend compileall.py with the ability to skip compilation of selected files. In the test suite, rename nocaret.py and test_future[3..7].py to start with badsyntax_nocaret.py and badsyntax_future[3..7].py. Update the makefile to skip compilation of these files. Update the tests to use the name names for imports. NB compileall.py is changed so that compile_dir() returns success only if all recursive calls to compile_dir() also check success.
-