summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* release dateAnthony Baxter2004-08-051-2/+2
|
* Edward Loper's cool and massive refactoring of doctest.py, merged fromTim Peters2004-08-041-0/+11
| | | | | | | | the tim-doctest-merge-24a2 tag on the the tim-doctest-branch branch. We did development on the branch in case it wouldn't land in time for 2.4a2, but the branch looked good: Edward's tests passed there, ditto Python's tests, and ditto the Zope3 tests. Together, those hit doctest heavily.
* Add a proper pointer to SF bug item.Hye-Shik Chang2004-08-041-2/+3
|
* SF #941229: Decode source code with sys.stdin.encoding in interactiveHye-Shik Chang2004-08-041-0/+4
| | | | | | | modes like non-interactive modes. This allows for non-latin-1 users to write unicode strings directly and sets Japanese users free from weird manual escaping <wink> in shift_jis environments. (Reviewed by Martin v. Loewis)
* SF #989185: Drop unicode.iswide() and unicode.width() and addHye-Shik Chang2004-08-041-0/+3
| | | | | | | | | | | | unicodedata.east_asian_width(). You can still implement your own simple width() function using it like this: def width(u): w = 0 for c in unicodedata.normalize('NFC', u): cwidth = unicodedata.east_asian_width(c) if cwidth in ('W', 'F'): w += 2 else: w += 1 return w
* Add a workaround for a problem that UTF-8 strings can be corruptedHye-Shik Chang2004-08-041-0/+3
| | | | | | | or broken by basic ctype functions in 4.4BSD descendants. This will be fixed in their future development branches but they'll keep the POSIX-incompatibility for their backward-compatiblities in near future.
* Patch #986929: Add support for wish -sync and -use options.Martin v. Löwis2004-08-031-0/+2
|
* allow ctime(), gmtime(), and localtime() to take None as equivalent to an ↵Fred Drake2004-08-031-0/+5
| | | | | | omitted arg (closes SF bug #658254, patch #663482)
* Patch #823072: add option to NOT use ~/.netrc in nntplib.NNTP().Martin v. Löwis2004-08-031-0/+2
|
* Patch #994595: Recognize Basic auth even if other schemes are offered.Martin v. Löwis2004-08-031-0/+3
| | | | Will backport to 2.3.
* Completed the patch for Bug #215126.Raymond Hettinger2004-08-021-1/+2
| | | | | | | * Fixes an incorrect variable in a PyDict_CheckExact. * Allow general mapping locals arguments for the execfile() function and exec statement. * Add tests.
* notes for @decoratorAnthony Baxter2004-08-022-0/+7
|
* "Core" and "C API" news about new semantics for failing imports.Tim Peters2004-08-021-1/+33
|
* Fix SF #1001053, wave.open() with unicode filename failsNeal Norwitz2004-08-011-0/+2
| | | | Backport candidate.
* Mention upgrade of optparse to Optik 1.5a1.Greg Ward2004-07-311-0/+31
|
* SF bug #999776, zlib home page wrongNeal Norwitz2004-07-291-1/+1
| | | | Backport candidate.
* New codec: [ 996067 ] hp-roman8 codecMarc-André Lemburg2004-07-281-0/+1
|
* Added a new fileno() method. ZODB's repozo.py wants this so it canTim Peters2004-07-271-0/+4
| | | | apply os.fsync() to the GzipFile backup files it creates.
* Patch #995766: Keyword argument support in cPickle.Martin v. Löwis2004-07-271-0/+2
|
* Patch #998149: imaplib deleteacl and myrights.Martin v. Löwis2004-07-272-0/+3
|
* Patch #605370: Add description[s] for RFC 2980 compliance.Martin v. Löwis2004-07-262-0/+4
|
* SF bug 996392: math and cmath docs don't specify radiansTim Peters2004-07-241-1/+2
| | | | | | | Major rewrite of the math module docs. Slapped in "radians" where appropriate; grouped the functions into reasonable categories; supplied many more words to address common confusions about some of the subtler issues.
* Add news item for u'%s' change.Marc-André Lemburg2004-07-231-0/+3
|
* This change implements the following gettext features, asGustavo Niemeyer2004-07-221-0/+8
| | | | | | | | | | | | | | | | | | | | discussed recently in python-dev: In _locale module: - bind_textdomain_codeset() binding In gettext module: - bind_textdomain_codeset() function - lgettext(), lngettext(), ldgettext(), ldngettext(), which return translated strings encoded in preferred system encoding, if bind_textdomain_codeset() was not used. - Added equivalent functionality in translate() function and catalog classes. Every change was also documented.
* SF patch 995225: tarfile.py fix for bug #990325Tim Peters2004-07-221-2/+6
| | | | | Removes CVS keywords from this binary file, so that test_tarfile passes regardless of whether Python is checked out with -kk.
* Fix bug where a KeyError was raised if -O was being used for the interpreterBrett Cannon2004-07-211-0/+4
| | | | | | | | | and Thread.__delete() was called after a Thread instance was created. Problem resulted from a currentThread() call in an 'assert' statement being optimized out and dummy_thread.get_ident() always returning -1 and thus overwriting the entry for the _MainThread() instance created in 'threading' at import time. Closes bug #993394.
* SF #857297 and 916874, improve handling of hard links when extractingNeal Norwitz2004-07-201-0/+3
|
* SF #846659, fix bufsize violation and GNU longname/longlink extensionsNeal Norwitz2004-07-201-0/+3
|
* Check the type of values returned by __int__, __float__, __long__,Neil Schemenauer2004-07-191-0/+5
| | | | | | __oct__, and __hex__. Raise TypeError if an invalid type is returned. Note that PyNumber_Int and PyNumber_Long can still return ints or longs. Fixes SF bug #966618.
* Don't return spurious empty fields if 'keep_empty_values' is True.Neil Schemenauer2004-07-191-0/+4
| | | | Fixes SF bug #990307.
* Record that FCNTL.py has gone away; remove FCNTL hack in tempfile.py;Tim Peters2004-07-181-0/+5
| | | | | another hack remains in test___all__.py, but the problem that one addresses is more general than *just* FCNTL, so leaving it alone.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-182-26/+25
|
* Bring CJKCodecs 1.1 into trunk. This completely reorganizes sourceHye-Shik Chang2004-07-181-0/+3
| | | | | | and installed layouts to make maintenance simple and easy. And it also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004 and iso2022-jp-2004.
* Treat None as a constant.Raymond Hettinger2004-07-161-0/+2
|
* Summarized changes: threading.local, Py_CLEAR, Py_VISIT, improved typeJim Fulton2004-07-141-0/+26
| | | | tutorial.
* install test/decimaltestdata as wellAnthony Baxter2004-07-121-0/+3
|
* Bug #788520: Queue class has logic error when non-blockingTim Peters2004-07-121-0/+11
| | | | | | | | | | | | | | | | | | | | I don't agree it had a bug (see the report), so this is *not* a candidate for backporting, but the docs were confusing and the Queue implementation was old enough to vote. Rewrote put/put_nowait/get/get_nowait from scratch, to use a pair of Conditions (not_full and not_empty), sharing a common mutex. The code is 1/4 the size now, and 6.25x easier to understand. For blocking with timeout, we also get to reuse (indirectly) the tedious timeout code from threading.Condition. The Full and Empty exceptions raised by non-blocking calls are now easy (instead of nearly impossible) to explain truthfully: Full is raised if and only if the Queue truly is full when the non-blocking put call checks the queue size, and similarly for Empty versus non-blocking get. What I don't know is whether the new implementation is slower (or faster) than the old one. I don't really care. Anyone who cares a lot is encouraged to check that.
* SF patch 986010: add missing doc for datetime C API, fromTim Peters2004-07-111-9/+12
| | | | | | | | | | Anthony Tuininga. This is a derived patch, taking the opportunity to add some organization to the now-large pile of datetime-related macros, and to factor out tedious repeated text. Also improved some clumsy wording in NEWS.
* SequenceMatcher(None, [], []).get_grouped_opcodes() now returns a generatorBrett Cannon2004-07-101-0/+4
| | | | | | that behaves as if both lists has an empty string in each of them. Closes bug #979794 (and duplicate bug #980117).
* Debug output is now printed to sys.stderr .Brett Cannon2004-07-101-0/+2
| | | | Closes bug #980938.
* posixpath.realpath() now detects symlink loops and returns the path just beforeBrett Cannon2004-07-101-0/+4
| | | | | | the loop starts. Closes bug #930024. Thanks AM Kuchling.
* Add PyArg_VaParseTupleAndKeywords(). Document this function andBrett Cannon2004-07-101-0/+3
| | | | | | PyArg_VaParse(). Closes patch #550732. Thanks Greg Chapman.
* Add itemAndrew M. Kuchling2004-07-102-0/+4
|
* Make ntpath compress multiple slashes between drive letter and the rest of theBrett Cannon2004-07-101-0/+4
| | | | | | path. Also clarifies UNC handling and adds appropriate tests. Applies patch #988607 to fix bug #980327. Thanks Paul Moore.
* Add note about closing of bug #679953 and add Jimmy Burgett for helping out toBrett Cannon2004-07-102-0/+5
| | | | Misc/ACKS.
* Add an itemAndrew M. Kuchling2004-07-101-0/+3
|
* Added note about new codecs module APIs.Marc-André Lemburg2004-07-101-0/+4
|
* Fix typo.Raymond Hettinger2004-07-101-1/+1
|
* Module and tests:Raymond Hettinger2004-07-091-0/+3
| | | | | | | | | | | | * Map conditions to related signals. * Make contexts unhashable. * Eliminate used "default" attribute in exception definitions. * Eliminate the _filterfunc in favor of a straight list. Docs: * Eliminate documented references to conditions that are not signals. * Eliminate parenthetical notes such as "1/0 --> Inf" which are no longer true with the new defaults.
* post-release funAnthony Baxter2004-07-091-9/+45
|