summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* SF bug #1017864: ConfigParser now correctly handles default keys, processing ↵David Goodger2004-10-031-0/+5
| | | | them with ``ConfigParser.optionxform`` when supplied, consistent with the handling of config file entries and runtime-set options.
* Big email 3.0 API changes, with updated unit tests and documentation.Barry Warsaw2004-10-031-0/+13
| | | | | | | | | | | | | | | | | Briefly (from the NEWS file): - Updates for the email package: + All deprecated APIs that in email 2.x issued warnings have been removed: _encoder argument to the MIMEText constructor, Message.add_payload(), Utils.dump_address_pair(), Utils.decode(), Utils.encode() + New deprecations: Generator.__call__(), Message.get_type(), Message.get_main_type(), Message.get_subtype(), the 'strict' argument to the Parser constructor. These will be removed in email 3.1. + Support for Python earlier than 2.3 has been removed (see PEP 291). + All defect classes have been renamed to end in 'Defect'. + Some FeedParser fixes; also a MultipartInvariantViolationDefect will be added to messages that claim to be multipart but really aren't. + Updates to documentation.
* SF bug#1038917 fix typos (Contributed by George Yoshida.)Raymond Hettinger2004-10-021-1/+1
|
* Noted the fix to deque gc.Tim Peters2004-10-011-1/+3
|
* Add note about inclusion of DarwinPorts directories in setup.py on darwin.Brett Cannon2004-09-281-0/+4
|
* Updated doctest doc news.Tim Peters2004-09-261-1/+4
|
* Add warning notation about using 'bomb' setting.Brett Cannon2004-09-251-1/+3
|
* Granted Noam Raphael's request for minor improvements to the re module andRaymond Hettinger2004-09-241-0/+5
| | | | | | | | | | | | | | its documentation. * Documented that the compiled re methods are supposed to be more full featured than their simpilified function counterparts. * Documented the existing start and stop position arguments for the findall() and finditer() methods of compiled regular expression objects. * Added an optional flags argument to the re.findall() and re.finditer() functions. This aligns their API with that for re.search() and re.match().
* Introduced a Py_IS_NAN macro, which probably works on the major platformsTim Peters2004-09-231-1/+5
| | | | | | today. pyconfig.h can override it if not, and can also override Py_IS_INFINITY now. Py_IS_NAN and Py_IS_INFINITY are overridden now for Microsoft compilers, using efficient MS-specific spellings.
* SF bug #513866: Float/long comparison anomaly.Tim Peters2004-09-231-1/+10
| | | | | | | | | | | | | | | | | | When an integer is compared to a float now, the int isn't coerced to float. This avoids spurious overflow exceptions and insane results. This should compute correct results, without raising spurious exceptions, in all cases now -- although I expect that what happens when an int/long is compared to a NaN is still a platform accident. Note that we had potential problems here even with "short" ints, on boxes where sizeof(long)==8. There's #ifdef'ed code here to handle that, but I can't test it as intended. I tested it by changing the #ifdef to trigger on my 32-bit box instead. I suppose this is a bugfix candidate, but I won't backport it. It's long-winded (for speed) and messy (because the problem is messy). Note that this also depends on a previous 2.4 patch that introduced _Py_SwappedOp[] as an extern.
* SF patch #1031667: Fold tuples of constants into a single constantRaymond Hettinger2004-09-221-0/+3
| | | | | | | | Example: >>> import dis >>> dis.dis(compile('1,2,3', '', 'eval')) 0 0 LOAD_CONST 3 ((1, 2, 3)) 3 RETURN_VALUE
* Clarify that iteration is over headers, not Mime elements.Raymond Hettinger2004-09-221-1/+2
|
* Bug #1030125: rfc822 __iter__ problemRaymond Hettinger2004-09-221-0/+1
| | | | Add iteration support to the Message class.
* Add a commented-out recipe on making trailing whitespace explicit.Brett Cannon2004-09-201-0/+7
| | | | If people think this is not too intrusive it could be uncommented.
* Patch #1024670: Support int objects in PyLong_AsUnsignedLong[Mask].Martin v. Löwis2004-09-201-1/+1
|
* When this file is sourced in, or used as, one's vimrc file it will set the ↵Brett Cannon2004-09-191-0/+78
| | | | | | | | proper settings to follow the style guidelines laid out in PEPs 7 & 8 as best it can without forcing extraneous settings. Suggested settings are commented out and included at the end of the file. The goal is to have this file prevent as much as possible from deviating from the style guidelines. It is not meant to collect every cool macro possible for Python. Any useful settings for features included with Vim can be included and commented out, but anything overly extraneous should be left out.
* Patch #1029061: Always extract member names from the tarinfo.Martin v. Löwis2004-09-181-0/+3
|
* Patch #1025790: Add status code constants to httplib.Martin v. Löwis2004-09-182-0/+3
|
* SF bug #1028306: date-datetime comparisonTim Peters2004-09-161-0/+10
| | | | Treat comparing a date to a datetime like a mixed-type comparison.
* mention httplib ipv6 fixSkip Montanaro2004-09-141-0/+2
|
* Fix quoting.Walter Dörwald2004-09-131-1/+1
|
* Reluctantly, rehabilitate doctest.master.Tim Peters2004-09-131-7/+15
|
* Typo fix: 'comparisions' is not a wordAndrew M. Kuchling2004-09-101-1/+1
|
* Patch #808120: Add --force-arch=ARCH to bdist_rpm.py.Martin v. Löwis2004-09-102-2/+4
|
* Patch #808115: Add script support to bdist_rpm.py.Martin v. Löwis2004-09-101-0/+2
|
* SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now supportWalter Dörwald2004-09-071-2/+11
| | | | | | | | | | | decoding incomplete input (when the input stream is temporarily exhausted). codecs.StreamReader now implements buffering, which enables proper readline support for the UTF-16 decoders. codecs.StreamReader.read() has a new argument chars which specifies the number of characters to return. codecs.StreamReader.readline() and codecs.StreamReader.readlines() have a new argument keepends. Trailing "\n"s will be stripped from the lines if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and PyUnicode_DecodeUTF16Stateful.
* compiler.transformer: correct lineno attribute when possibleJeremy Hylton2004-09-071-0/+1
| | | | | | | | | | | | | | | | SF patch #1015989 The basic idea of this patch is to compute lineno attributes for all AST nodes. The actual implementation lead to a lot of restructing and code cleanup. The generated AST nodes now have an optional lineno argument to constructor. Remove the top-level asList(), since it didn't seem to serve any purpose. Add an __iter__ to ast nodes. Use isinstance() instead of explicit type tests. Change transformer to use the new lineno attribute, which replaces three lines of code with one. Use universal newlines so that we can get rid of special-case code for line endings. Use lookup_node() in a few more frequently called, but simple com_xxx methods(). Change string exception to class exception.
* Ported test__locale to unittest.Brett Cannon2004-09-061-0/+61
|
* update versionAnthony Baxter2004-09-021-1/+1
|
* release dateAnthony Baxter2004-09-021-1/+1
|
* Add news item.Andrew M. Kuchling2004-08-311-0/+3
|
* Remove mpz, rotorAndrew M. Kuchling2004-08-311-2/+1
|
* Remove mpz, rotor, xreadlines modulesAndrew M. Kuchling2004-08-311-22/+1
|
* SF patch #1007189, multi-line imports, for instance:Anthony Baxter2004-08-311-1/+4
| | | | | "from blah import (foo, bar baz, bongo)"
* Bug #1014775: update NEWS.help for changes in docutils.Johannes Gijsbers2004-08-301-2/+2
|
* Bug #1014770: apply some rest-foo and fix some docutils errors.Johannes Gijsbers2004-08-301-1/+9
|
* Patch #934356: if a module defines __all__, believe that rather than usingJohannes Gijsbers2004-08-301-0/+3
| | | | heuristics for filtering out imported names.
* Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists ↵Johannes Gijsbers2004-08-301-0/+3
| | | | in glob.glob.
* Teach the random module about os.urandom().Raymond Hettinger2004-08-301-0/+3
| | | | | * Use it for seeding when it is available. * Provide an alternate generator based on it.
* SF patch 936813: fast modular exponentiationTim Peters2004-08-301-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | This checkin is adapted from part 2 (of 3) of Trevor Perrin's patch set. BACKWARD INCOMPATIBILITY: SHIFT must now be divisible by 5. AFAIK, nobody will care. long_pow() could be complicated to worm around that, if necessary. long_pow(): - BUGFIX: This leaked the base and power when the power was negative (and so the computation delegated to float pow). - Instead of doing right-to-left exponentiation, do left-to-right. This is more efficient for small bases, which is the common case. - In addition, if the exponent is large (more than FIVEARY_CUTOFF digits), precompute [a**i % c for i in range(32)], and go left to right 5 bits at a time. l_divmod(): - The signature changed so that callers who don't want the quotient, or don't want the remainder, can pass NULL in the slot they don't want. This saves them from having to declare a vrbl for unwanted stuff, and remembering to decref it. long_mod(), long_div(), long_classic_div(): - Adjust to new l_divmod() signature, and simplified as a result.
* SF patch 936813: fast modular exponentiationTim Peters2004-08-292-0/+11
| | | | | | | | | | | | | | | | | | This checkin is adapted from part 1 (of 3) of Trevor Perrin's patch set. x_mul() - sped a little by optimizing the C - sped a lot (~2X) if it's doing a square; note that long_pow() squares often k_mul() - more cache-friendly now if it's doing a square KARATSUBA_CUTOFF - boosted; gradeschool mult is quicker now, and it may have been too low for many platforms anyway KARATSUBA_SQUARE_CUTOFF - new - since x_mul is a lot faster at squaring now, the point at which Karatsuba pays for squaring is much higher than for general mult
* Patch #914575: difflib side by side diff support, diff.py s/b/s HTML option.Martin v. Löwis2004-08-292-0/+5
|
* Patch #934711: Expose platform-specific entropy.Martin v. Löwis2004-08-291-0/+3
|
* SF feature request #992967: array.array objects should support sequences.Raymond Hettinger2004-08-291-2/+2
| | | | Made the constructor accept general iterables.
* When building with --disable-toolbox-glue under Darwin, skip building anyBrett Cannon2004-08-261-0/+3
| | | | | | | | Mac-specific modules. Before all modules were compiled but would fail thanks to a dependence on the code included when Python was built without the compiler flag. Closes bug #991962.
* Patch #1014930. Expose current parse location to XMLParser.Dave Cole2004-08-261-0/+3
|
* Patch #970015: Replace - by _ in version and release.Martin v. Löwis2004-08-251-1/+2
|
* Patch #970019: Include version and release in the BuildRoot.Martin v. Löwis2004-08-251-0/+2
|
* Patch #736857, #736859: Add -e option to build_scripts.Martin v. Löwis2004-08-251-0/+3
|
* PEP 292 classes Template and SafeTemplate are added to the string module.Barry Warsaw2004-08-251-0/+2
| | | | | | | | This patch includes test cases and documentation updates, as well as NEWS file updates. This patch also updates the sre modules so that they don't import the string module, breaking direct circular imports.