- 26 Eki, 2001 18 kayıt (commit)
-
-
Fred Drake yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Andrew M. Kuchling yazdı
-
Fred Drake yazdı
consistent (lack of) vertical space between sections, and remove some of the unnecessary cruft that was added in (finally we get to *remove* something that got generated!).
-
Jack Jansen yazdı
away completely next release, unless someone complains.
-
Fred Drake yazdı
Reported by Thomas Heller.
-
Steven M. Gava yazdı
-
Steven M. Gava yazdı
-
Steven M. Gava yazdı
-
Tim Peters yazdı
outer level, the iterator protocol is used for memory-efficiency (the outer sequence may be very large if fully materialized); at the inner level, PySequence_Fast() is used for time-efficiency (these should always be sequences of length 2). dictobject.c, new functions PyDict_{Merge,Update}FromSeq2. These are wholly analogous to PyDict_{Merge,Update}, but process a sequence-of-2- sequences argument instead of a mapping object. For now, I left these functions file static, so no corresponding doc changes. It's tempting to change dict.update() to allow a sequence-of-2-seqs argument too. Also changed the name of dictionary's keyword argument from "mapping" to "x". Got a better name? "mapping_or_sequence_of_pairs" isn't attractive, although more so than "mosop" <wink>. abstract.h, abstract.tex: Added new PySequence_Fast_GET_SIZE function, much faster than going thru the all-purpose PySequence_Size. libfuncs.tex: - Document dictionary(). - Fiddle tuple() and list() to admit that their argument is optional. - The long-winded repetitions of "a sequence, a container that supports iteration, or an iterator object" is getting to be a PITA. Many months ago I suggested factoring this out into "iterable object", where the definition of that could include being explicit about generators too (as is, I'm not sure a reader outside of PythonLabs could guess that "an iterator object" includes a generator call). - Please check my curly braces -- I'm going blind <0.9 wink>. abstract.c, PySequence_Tuple(): When PyObject_GetIter() fails, leave its error msg alone now (the msg it produces has improved since PySequence_Tuple was generalized to accept iterable objects, and PySequence_Tuple was also stomping on the msg in cases it shouldn't have even before PyObject_GetIter grew a better msg).
-
Guido van Rossum yazdı
priority. Add tp_cache; add some comments to others.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
second noted after a second's thought about what the next line should do. :-(
-
Guido van Rossum yazdı
error occurs, and doesn't return a count. (This is my second patch from SF patch #474307, with small change to the docstring for send().) 2.1.2 "bugfix" candidate.
-
Fred Drake yazdı
presentation. This is acceptable since it only occurs in the formatted output and does not affect the document markup.
-
Fred Drake yazdı
When describing a Boolean return value, use "true" and "false" instead of "1" and "0". Style-guide conformance: no "iff" -- to obscure for many readers. ;-(
-
Fred Drake yazdı
-
- 25 Eki, 2001 14 kayıt (commit)
-
-
Barry Warsaw yazdı
the separating semi-colon shows up on a continuation line (legal, but weird). Bug reported and fixed by Matthew Cowles. Test case and sample email included.
-
Jack Jansen yazdı
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
non-standard but common types. Including Martin's suggestion to add rejected non-standard types from patch #438790. Specifically, guess_type(), guess_extension(): Both the functions and the methods grow an optional "strict" flag, defaulting to true, which determines whether to recognize non-standard, but commonly found types or not. Also, I sorted, reformatted, and culled duplicates from the big types_map dictionary. Note that there are a few non-equivalent duplicates (e.g. .cdf and .xls) for which the first will just get thrown away. I didn't remove those though. Finally, use of the module as a script as grown the -l and -e options to toggle strictness and to do guess_extension(), respectively. Doc and unittest updates too.
-
Fred Drake yazdı
to call the corresponding methods. This is not a performance improvement since the times are still swamped by disk I/O, but cleans up the code just a little.
-
Fred Drake yazdı
-
Guido van Rossum yazdı
Replace some tortuous code that was trying to be clever but forgot to DECREF the key and value, by more longwinded but obviously correct code. (Inspired by but not copying the fix from SF patch #475033.)
-
Fred Drake yazdı
-
Guido van Rossum yazdı
of the if block where it was before. The name is only used inside that if block, but the storage is referenced outside it via the 's' variable. (This patch was part of SF patch #474590 -- RISC OS support.)
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
work to be done, but do not require the HTML to be re-built.
-
Martin v. Löwis yazdı
and that the work-around should be restricted to that system.
-
- 24 Eki, 2001 8 kayıt (commit)
-
-
Fredrik Lundh yazdı
like findall, but returns an iterator (which returns match objects) instead of a list of strings/tuples.
-
Fred Drake yazdı
-
Fred Drake yazdı
This has sat around in a deprecated state for a *long* time!
-
Fred Drake yazdı
-
Guido van Rossum yazdı
to os.extsep -- that variable actually didn't exist in that release!
-
Fred Drake yazdı
PyArg_UnpackTuple().
-
Guido van Rossum yazdı
-
Tim Peters yazdı
As the comments in the module implied, pyclbr was easily confused by "strange stuff" inside single- (but not triple-) quoted strings. It isn't anymore. Its behavior remains flaky in the presence of nested functions and classes, though. Bugfix candidate.
-