]> granicus.if.org Git - python/log
python
19 years agoOnce upon a time, I used to know TeX...
Georg Brandl [Thu, 25 Aug 2005 12:51:16 +0000 (12:51 +0000)]
Once upon a time, I used to know TeX...

19 years agoMake IDNA return an empty string when the input is empty. Fixes #1163178.
Martin v. Löwis [Thu, 25 Aug 2005 11:03:38 +0000 (11:03 +0000)]
Make IDNA return an empty string when the input is empty. Fixes #1163178.
Will backport to 2.4.

19 years agoCorrect test suite for #848017.
Georg Brandl [Thu, 25 Aug 2005 07:32:42 +0000 (07:32 +0000)]
Correct test suite for #848017.

19 years agoPatch #1160164: Use ReleaseItanium for zlib build.
Martin v. Löwis [Thu, 25 Aug 2005 07:11:31 +0000 (07:11 +0000)]
Patch #1160164: Use ReleaseItanium for zlib build.
Will backport to 2.4.

19 years agopatch #848017: make Cookie more RFC-compliant.
Georg Brandl [Wed, 24 Aug 2005 22:34:21 +0000 (22:34 +0000)]
patch #848017: make Cookie more RFC-compliant.

19 years agoBug #735248: Fix urllib2.parse_http_list.
Georg Brandl [Wed, 24 Aug 2005 22:20:32 +0000 (22:20 +0000)]
Bug #735248: Fix urllib2.parse_http_list.

19 years agoAdd findnocoding.py and pysource.py.
Georg Brandl [Wed, 24 Aug 2005 21:42:14 +0000 (21:42 +0000)]
Add findnocoding.py and pysource.py.

19 years agoBug 1016563: Bug in urllib2 proxy auth
Georg Brandl [Wed, 24 Aug 2005 20:29:32 +0000 (20:29 +0000)]
Bug 1016563: Bug in urllib2 proxy auth

19 years agoPatch [ 1062060 ] fix for 1016880 urllib.urlretrieve silently truncates dwnld
Georg Brandl [Wed, 24 Aug 2005 18:46:39 +0000 (18:46 +0000)]
Patch [ 1062060 ] fix for 1016880 urllib.urlretrieve silently truncates dwnld

19 years agoPatch [ 784089 ] A program to scan python files and list those require coding
Georg Brandl [Wed, 24 Aug 2005 18:32:30 +0000 (18:32 +0000)]
Patch [ 784089 ] A program to scan python files and list those require coding

19 years agoPatch #1167716: Support Unicode filenames in mkpath. Fixes #1121494.
Martin v. Löwis [Wed, 24 Aug 2005 14:55:22 +0000 (14:55 +0000)]
Patch #1167716: Support Unicode filenames in mkpath. Fixes #1121494.
Will backport to 2.4.

19 years agoCorrect names of sha modules.
Raymond Hettinger [Wed, 24 Aug 2005 12:13:23 +0000 (12:13 +0000)]
Correct names of sha modules.

19 years agopatch [ 1141428 ] more __contains__ tests
Georg Brandl [Wed, 24 Aug 2005 09:08:57 +0000 (09:08 +0000)]
patch [ 1141428 ] more __contains__ tests

19 years ago[ 1113421 ] New tutorial tests in test_generators.py
Georg Brandl [Wed, 24 Aug 2005 09:02:29 +0000 (09:02 +0000)]
1113421 ] New tutorial tests in test_generators.py

19 years agoForward UnicodeDecodeError into SyntaxError for source encoding errors.
Martin v. Löwis [Wed, 24 Aug 2005 08:39:24 +0000 (08:39 +0000)]
Forward UnicodeDecodeError into SyntaxError for source encoding errors.
Will backport to 2.4.

19 years agoReturn complete lines from codec stream readers
Martin v. Löwis [Wed, 24 Aug 2005 07:38:12 +0000 (07:38 +0000)]
Return complete lines from codec stream readers
even if there is an exception in later lines, resulting in
correct line numbers for decoding errors in source code. Fixes #1178484.
Will backport to 2.4.

19 years agobug [ 1192315 ] 'clear -1' in pdb
Georg Brandl [Wed, 24 Aug 2005 07:36:17 +0000 (07:36 +0000)]
bug [ 1192315 ] 'clear -1' in pdb

19 years agobug [ 1190204 ] 3.29 site is confusing re site-packages on Windows
Georg Brandl [Wed, 24 Aug 2005 07:31:33 +0000 (07:31 +0000)]
bug [ 1190204 ] 3.29 site is confusing re site-packages on Windows

19 years agobug [ 1193849 ] os.path.expanduser documentation wrt. empty $HOME
Georg Brandl [Wed, 24 Aug 2005 07:26:55 +0000 (07:26 +0000)]
bug [ 1193849 ] os.path.expanduser documentation wrt. empty $HOME

19 years agobug [ 728515 ] mmap's resize method resizes the file in win32 but not unix
Georg Brandl [Wed, 24 Aug 2005 07:17:40 +0000 (07:17 +0000)]
bug [ 728515 ] mmap's resize method resizes the file in win32 but not unix

19 years agoSF bug #1100368: Wrong "type()" syntax in docs
Raymond Hettinger [Wed, 24 Aug 2005 07:06:25 +0000 (07:06 +0000)]
SF bug #1100368:  Wrong "type()" syntax in docs

Docs were missing the name/bases/dict form of type().

(Much of the wording contributed by Steven Bethard.)

19 years agoRevert previous checkin.
Martin v. Löwis [Wed, 24 Aug 2005 06:43:09 +0000 (06:43 +0000)]
Revert previous checkin.

19 years agoPatch #1262036: Make tarfile name absolute. Fixes #1257255.
Martin v. Löwis [Wed, 24 Aug 2005 06:06:52 +0000 (06:06 +0000)]
Patch #1262036: Make tarfile name absolute. Fixes #1257255.
Will backport to 2.4.

19 years agoUpdate the PC configuration and project files for sha256 and sha512.
Raymond Hettinger [Wed, 24 Aug 2005 00:28:21 +0000 (00:28 +0000)]
Update the PC configuration and project files for sha256 and sha512.

19 years ago* Add a fast equality check path for frozensets where the hash value has
Raymond Hettinger [Wed, 24 Aug 2005 00:24:40 +0000 (00:24 +0000)]
* Add a fast equality check path for frozensets where the hash value has
  already been computed.
* Apply a GET_SIZE macro().

19 years agoRemove the C99 "ULL" suffix from the 64bit unsigned long constants.
Gregory P. Smith [Tue, 23 Aug 2005 21:30:03 +0000 (21:30 +0000)]
Remove the C99 "ULL" suffix from the 64bit unsigned long constants.
VC++6 doesn't accept them.

This *will* result in tons of the following warning from gcc 3.x:
(gcc "2.96ish" doesn't issue this warning)

 warning: integer constant is too large for "long" type

the code compiles fine regardless.  squashing the gcc warnings
is the next task.

Would someone on windows please confirm that this does or does not
compile and if it does or does not pass the test_hashlib.py unit
tests.

19 years agoAdd a check for the OpenSSL version number to conditionally compile
Gregory P. Smith [Tue, 23 Aug 2005 21:19:40 +0000 (21:19 +0000)]
Add a check for the OpenSSL version number to conditionally compile
the _hashlibopenssl module (>= 0.9.7 required) and to not compile the
sha256 and sha512 modules if OpenSSL >= 0.9.8 is found.

19 years agoMore tutorial nits.
Raymond Hettinger [Tue, 23 Aug 2005 18:26:00 +0000 (18:26 +0000)]
More tutorial nits.

19 years agoSF bug #1168135: Python 2.5a0 Tutorial errors and observations (Contributed by Micha...
Raymond Hettinger [Tue, 23 Aug 2005 18:02:28 +0000 (18:02 +0000)]
SF bug #1168135:  Python 2.5a0 Tutorial errors and observations (Contributed by Michael R Bax.)

19 years agoSF bug #1168135: Python 2.5a0 Tutorial errors and observations
Raymond Hettinger [Tue, 23 Aug 2005 15:00:45 +0000 (15:00 +0000)]
SF bug #1168135:  Python 2.5a0 Tutorial errors and observations
(Contributed by Michael R Bax.)

19 years agoIn an e-mail to the webmaster alias, some suggested adding this text. Windows users...
Andrew M. Kuchling [Tue, 23 Aug 2005 13:48:21 +0000 (13:48 +0000)]
In an e-mail to the webmaster alias, some suggested adding this text.  Windows users, please correct/expand as necessary.

19 years agoord() documentation update; this is what remains applicable from
Fred Drake [Tue, 23 Aug 2005 04:33:29 +0000 (04:33 +0000)]
ord() documentation update; this is what remains applicable from
SF patch #1057588; other changes make the rest of the patch out of date
or otherwise unnecessary

19 years agoadd note about "markupbase" not being intended for direct use
Fred Drake [Tue, 23 Aug 2005 04:06:46 +0000 (04:06 +0000)]
add note about "markupbase" not being intended for direct use
(closes SF bug #736659, patch #901369)

19 years agoRevert previous code elimination, 'filename' is needed.
Kurt B. Kaiser [Tue, 23 Aug 2005 03:25:38 +0000 (03:25 +0000)]
Revert previous code elimination, 'filename' is needed.

19 years ago1. Mac line endings were incorrect when pasting code from some browsers
Kurt B. Kaiser [Tue, 23 Aug 2005 02:27:23 +0000 (02:27 +0000)]
1. Mac line endings were incorrect when pasting code from some browsers
   when using X11 and the Fink distribution.  Python Bug 1263656.
2. Eliminate duplicated code in ScriptBinding.run_module_event()
Modified Files:
  NEWS.txt ScriptBinding.py

19 years agoTypo fixes
Andrew M. Kuchling [Tue, 23 Aug 2005 00:57:07 +0000 (00:57 +0000)]
Typo fixes

19 years agoNote various items; write some shorter sections
Andrew M. Kuchling [Tue, 23 Aug 2005 00:56:06 +0000 (00:56 +0000)]
Note various items; write some shorter sections

19 years agobug [ 1266296 ] Mistakes in decimal.Context.subtract documentation
Georg Brandl [Mon, 22 Aug 2005 19:35:18 +0000 (19:35 +0000)]
bug [ 1266296 ] Mistakes in decimal.Context.subtract documentation

19 years agowhoops, missed adding this last night in my hashlib commit
Gregory P. Smith [Mon, 22 Aug 2005 18:31:41 +0000 (18:31 +0000)]
whoops, missed adding this last night in my hashlib commit

19 years agoBug #1266283: lexists() is not exported from os.path
Georg Brandl [Mon, 22 Aug 2005 18:02:59 +0000 (18:02 +0000)]
Bug #1266283: lexists() is not exported from os.path

19 years ago[ sf.net patch # 1121611 ]
Gregory P. Smith [Sun, 21 Aug 2005 18:45:59 +0000 (18:45 +0000)]
[ sf.net patch # 1121611 ]

A new hashlib module to replace the md5 and sha modules.  It adds
support for additional secure hashes such as SHA-256 and SHA-512.  The
hashlib module uses OpenSSL for fast platform optimized
implementations of algorithms when available.  The old md5 and sha
modules still exist as wrappers around hashlib to preserve backwards
compatibility.

19 years agoFix BZ2File.(x)readlines() for files without a newline.
Georg Brandl [Sun, 21 Aug 2005 14:16:04 +0000 (14:16 +0000)]
Fix BZ2File.(x)readlines() for files without a newline.

19 years agoSF bug #1168135: Python 2.5a0 Tutorial errors and observations
Raymond Hettinger [Sun, 21 Aug 2005 12:35:29 +0000 (12:35 +0000)]
SF bug #1168135:  Python 2.5a0 Tutorial errors and observations
(Contributed by Michael R Bax.)

19 years agoEmpty sets and frozensets are also false.
Georg Brandl [Sun, 21 Aug 2005 12:22:58 +0000 (12:22 +0000)]
Empty sets and frozensets are also false.

19 years agoSF bug #1121416: zip incorrectly and incompletely documented
Raymond Hettinger [Sun, 21 Aug 2005 11:58:06 +0000 (11:58 +0000)]
SF bug #1121416:  zip incorrectly and incompletely documented

sequences ==> iterables

19 years agoSF bug #1249837: container methods raise KeyError not IndexError
Raymond Hettinger [Sun, 21 Aug 2005 11:26:14 +0000 (11:26 +0000)]
SF bug #1249837:  container methods raise KeyError not IndexError

Minor clarification.

19 years agoSF bug #1242657: list(obj) can swallow KeyboardInterrupt
Raymond Hettinger [Sun, 21 Aug 2005 11:03:59 +0000 (11:03 +0000)]
SF bug #1242657:   list(obj) can swallow KeyboardInterrupt

Fix over-aggressive PyErr_Clear().  The same code fragment appears in
various guises in list.extend(), map(), filter(), zip(), and internally
in PySequence_Tuple().

19 years agoMention explicitly the False is considered false.
Georg Brandl [Sun, 21 Aug 2005 09:41:21 +0000 (09:41 +0000)]
Mention explicitly the False is considered false.

19 years agoFix PySet_Pop() notes.
Raymond Hettinger [Sun, 21 Aug 2005 00:08:36 +0000 (00:08 +0000)]
Fix PySet_Pop() notes.

19 years agoAdd info about the set API.
Raymond Hettinger [Sat, 20 Aug 2005 23:52:30 +0000 (23:52 +0000)]
Add info about the set API.

19 years agoImplement random.sample() using sets instead of dicts.
Raymond Hettinger [Fri, 19 Aug 2005 01:36:35 +0000 (01:36 +0000)]
Implement random.sample() using sets instead of dicts.

19 years agoTypo fix
Andrew M. Kuchling [Thu, 18 Aug 2005 21:45:31 +0000 (21:45 +0000)]
Typo fix

19 years agoFix markup.
Raymond Hettinger [Thu, 18 Aug 2005 21:27:11 +0000 (21:27 +0000)]
Fix markup.

19 years agoFix typo (fixes SF bug #1263086).
Walter Dörwald [Thu, 18 Aug 2005 19:40:39 +0000 (19:40 +0000)]
Fix typo (fixes SF bug #1263086).

19 years agoAdd shortcuts for a|a and a&a.
Raymond Hettinger [Wed, 17 Aug 2005 12:27:17 +0000 (12:27 +0000)]
Add shortcuts for a|a and a&a.

19 years agoExpand the API notes.
Raymond Hettinger [Wed, 17 Aug 2005 12:23:45 +0000 (12:23 +0000)]
Expand the API notes.

19 years agoNote that the PyNumber protocol can access most set methods directly.
Raymond Hettinger [Wed, 17 Aug 2005 10:05:22 +0000 (10:05 +0000)]
Note that the PyNumber protocol can access most set methods directly.

19 years agoFix nits.
Raymond Hettinger [Wed, 17 Aug 2005 02:19:36 +0000 (02:19 +0000)]
Fix nits.

19 years agoResults of a line-by-line comparison back to dictobject.c.
Raymond Hettinger [Wed, 17 Aug 2005 00:27:42 +0000 (00:27 +0000)]
Results of a line-by-line comparison back to dictobject.c.

* set_merge() cannot assume that the table doesn't resize during iteration.

* convert some unnecessary tests to asserts -- they were necessary in
  dictobject.c because PyDict_Next() is a public function.  The same is
  not true for set_next().

* re-arrange the order of functions to more closely match the order
  in dictobject.c.  This makes it must easier to compare the two
  and ought to simplify any issues of maintaining both.

19 years agoNumerous fix-ups to C API and docs. Added tests for C API.
Raymond Hettinger [Tue, 16 Aug 2005 10:44:15 +0000 (10:44 +0000)]
Numerous fix-ups to C API and docs.  Added tests for C API.

19 years agoDECREF --> XDECREF
Raymond Hettinger [Tue, 16 Aug 2005 03:54:11 +0000 (03:54 +0000)]
DECREF --> XDECREF

19 years agoAdd a C API for sets and frozensets.
Raymond Hettinger [Tue, 16 Aug 2005 03:47:52 +0000 (03:47 +0000)]
Add a C API for sets and frozensets.

19 years agoPort from the Python 2.4 branch, patches for SF bug # 900092,
Barry Warsaw [Mon, 15 Aug 2005 18:14:19 +0000 (18:14 +0000)]
Port from the Python 2.4 branch, patches for SF bug # 900092,
hotshot.stats.load.

19 years agoCorrect definition of ST_GEN_IDX.
Martin v. Löwis [Sun, 14 Aug 2005 21:42:34 +0000 (21:42 +0000)]
Correct definition of ST_GEN_IDX.

19 years agoMore function re-ordering (placing like functions together).
Raymond Hettinger [Sat, 13 Aug 2005 09:28:48 +0000 (09:28 +0000)]
More function re-ordering (placing like functions together).

19 years ago* Bring lookkey() and lookkey_string() closer to dict version.
Raymond Hettinger [Sat, 13 Aug 2005 08:28:03 +0000 (08:28 +0000)]
* Bring lookkey() and lookkey_string() closer to dict version.
* Use set_next() for looping in issubset() and frozenset_hash().
* Re-order the presentation of cmp and hash functions.

19 years agoFix a too-aggressive assert (see SF#1257960). Previously, gen_iternext
Phillip J. Eby [Sat, 13 Aug 2005 03:29:00 +0000 (03:29 +0000)]
Fix a too-aggressive assert (see SF#1257960).  Previously, gen_iternext
was never called during interpreter shutdown GC, so the f_back!=NULL
assertion was correct.  Now that generators get close()d during GC,
the assertion was being triggered because the generator close() was being
called as the top-level frame.  However, nothing actually is broken by
this; it's just that the condition was unexpected in previous Python
versions.

19 years agoTeach the sets module to correctly compute s-=s and s^=s as the empty set.
Raymond Hettinger [Sat, 13 Aug 2005 02:29:58 +0000 (02:29 +0000)]
Teach the sets module to correctly compute s-=s and s^=s as the empty set.

19 years agoFix pystack command.
Neil Schemenauer [Sat, 13 Aug 2005 00:28:41 +0000 (00:28 +0000)]
Fix pystack command.

19 years ago* Fix SF #1257731. Make __contains__(), remove(), and discard() only do
Raymond Hettinger [Fri, 12 Aug 2005 23:58:22 +0000 (23:58 +0000)]
* Fix SF #1257731.  Make __contains__(), remove(), and discard() only do
  a frozenset conversion when the initial search attempt fails with a
  TypeError and the key is some type of set.  Add a testcase.

* Eliminate a duplicate if-stmt.

19 years ago* Fix SF #1257731. Make __contains__(), remove(), and discard() only do
Raymond Hettinger [Fri, 12 Aug 2005 20:48:39 +0000 (20:48 +0000)]
* Fix SF #1257731.  Make __contains__(), remove(), and discard() only do
  a frozenset conversion when the initial search attempt fails with a
  TypeError and the key is some type of set.  Add a testcase.

* Eliminate a duplicate if-stmt.

19 years agoChange the %s format specifier for str objects so that it returns a
Neil Schemenauer [Fri, 12 Aug 2005 17:34:58 +0000 (17:34 +0000)]
Change the %s format specifier for str objects so that it returns a
unicode instance if the argument is not an instance of basestring and
calling __str__ on the argument returns a unicode instance.

19 years agoDocument 'istext' parameter
Andrew M. Kuchling [Fri, 12 Aug 2005 14:02:32 +0000 (14:02 +0000)]
Document 'istext' parameter

19 years ago* Add short-circuit code for in-place operations with self (such as
Raymond Hettinger [Thu, 11 Aug 2005 07:58:45 +0000 (07:58 +0000)]
* Add short-circuit code for in-place operations with self (such as
  s|=s, s&=s, s-=s, or s^=s).  Add related tests.

* Improve names for several variables and functions.

* Provide alternate table access functions (next, contains, add, and discard)
  that work with an entry argument instead of just a key.  This improves
  set-vs-set operations because we already have a hash value for each key
  and can avoid unnecessary calls to PyObject_Hash().  Provides a 5% to 20%
  speed-up for quick hashing elements like strings and integers.  Provides
  much more substantial improvements for slow hashing elements like tuples
  or objects defining a custom __hash__() function.

* Have difference operations resize() when 1/5 of the elements are dummies.
  Formerly, it was 1/6.  The new ratio triggers less frequently and only
  in cases that it can resize quicker and with greater benefit.  The right
  answer is probably either 1/4, 1/5, or 1/6.  Picked the middle value for
  an even trade-off between resize time and the space/time costs of dummy
  entries.

19 years agofix minor markup errors
Fred Drake [Tue, 9 Aug 2005 15:24:05 +0000 (15:24 +0000)]
fix minor markup errors

19 years agoPatch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis [Tue, 9 Aug 2005 15:00:59 +0000 (15:00 +0000)]
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
add st_gen, st_birthtime.

19 years agoPatch #1239112: Correct LINKCC C++ test. Fixes #1189330.
Martin v. Löwis [Sun, 7 Aug 2005 21:09:30 +0000 (21:09 +0000)]
Patch #1239112: Correct LINKCC C++ test. Fixes #1189330.
Backported to 2.4.

19 years agoPatch #827386: Support absolute source paths in msvccompiler.py.
Martin v. Löwis [Sun, 7 Aug 2005 20:51:04 +0000 (20:51 +0000)]
Patch #827386: Support absolute source paths in msvccompiler.py.
Backported to 2.4.

19 years ago* Bring in INIT_NONZERO_SET_SLOTS macro from dictionary code.
Raymond Hettinger [Sun, 7 Aug 2005 13:02:53 +0000 (13:02 +0000)]
* Bring in INIT_NONZERO_SET_SLOTS macro from dictionary code.
* Bring in free list from dictionary code.
* Improve several comments.
* Differencing can leave many dummy entries.  If more than
  1/6 are dummies, then resize them away.
* Factor-out common code with new macro, PyAnySet_CheckExact.

19 years agoWhitespace normalization (ran reindent.py over the whole tree).
Tim Peters [Sun, 7 Aug 2005 03:04:58 +0000 (03:04 +0000)]
Whitespace normalization (ran reindent.py over the whole tree).

19 years agoRemoved XXX block about a test_bsddb3 failure that went away a long time ago.
Tim Peters [Sun, 7 Aug 2005 02:47:59 +0000 (02:47 +0000)]
Removed XXX block about a test_bsddb3 failure that went away a long time ago.

19 years agoUpdate some Python version numbers.
Tim Peters [Sun, 7 Aug 2005 02:47:12 +0000 (02:47 +0000)]
Update some Python version numbers.

19 years ago* Removed checked_error flag which no longer provides any benefit.
Raymond Hettinger [Sat, 6 Aug 2005 18:57:13 +0000 (18:57 +0000)]
* Removed checked_error flag which no longer provides any benefit.
* Have issubset() control its own loop instead of using set_next_internal().

19 years ago* set_new() doesn't need to zero the structure a second time after tp_alloc
Raymond Hettinger [Sat, 6 Aug 2005 18:31:24 +0000 (18:31 +0000)]
* set_new() doesn't need to zero the structure a second time after tp_alloc
  has already done the job.
* Use a macro form of PyErr_Occurred() inside the set_lookkey() function.

19 years agoFactor away a redundant clear() function.
Raymond Hettinger [Sat, 6 Aug 2005 05:43:39 +0000 (05:43 +0000)]
Factor away a redundant clear() function.

19 years agobug [ 1252706 ] poplib list() docstring fix (and docs too)
Georg Brandl [Fri, 5 Aug 2005 21:01:58 +0000 (21:01 +0000)]
bug [ 1252706 ] poplib list() docstring fix (and docs too)

19 years ago* Improve a variable name: entry0 --> table.
Raymond Hettinger [Fri, 5 Aug 2005 17:19:54 +0000 (17:19 +0000)]
* Improve a variable name:  entry0 --> table.
* Give set_lookkey_string() a fast alternate path when no dummy entries
  are present.
* Have set_swap_bodies() reset the hash field to -1 whenever either of
  bodies is not a frozenset.  Maintains the invariant of regular sets
  always having -1 in the hash field; otherwise, any mutation would make
  the hash value invalid.
* Use an entry pointer to simplify the code in frozenset_hash().

19 years ago* Move copyright notice to top and indicate derivation from sets.py and
Raymond Hettinger [Fri, 5 Aug 2005 00:01:15 +0000 (00:01 +0000)]
* Move copyright notice to top and indicate derivation from sets.py and
  dictobject.c.
* Have frozenset_hash() use entry->hash instead of re-computing each
  individual hash with PyObject_Hash(o);
* Finalize the dummy entry before a system exit.

19 years agocom_yield_expr(): Squash new compiler wng about unreferenced local.
Tim Peters [Wed, 3 Aug 2005 18:33:05 +0000 (18:33 +0000)]
com_yield_expr():  Squash new compiler wng about unreferenced local.

19 years agoDisable a few other tests, that can't work if Python is compiled without
Walter Dörwald [Wed, 3 Aug 2005 17:09:04 +0000 (17:09 +0000)]
Disable a few other tests, that can't work if Python is compiled without
Unicode support.

19 years agopatch [ 1105730 ] Faster commonprefix in macpath, ntpath, etc.
Georg Brandl [Wed, 3 Aug 2005 07:30:12 +0000 (07:30 +0000)]
patch [ 1105730 ] Faster commonprefix in macpath, ntpath, etc.

19 years agobug [ 1250306 ] incorrect description of range function
Georg Brandl [Wed, 3 Aug 2005 07:17:33 +0000 (07:17 +0000)]
bug [ 1250306 ] incorrect description of range function

19 years agoAdd example
Andrew M. Kuchling [Tue, 2 Aug 2005 17:20:36 +0000 (17:20 +0000)]
Add example

19 years agoAdd note
Andrew M. Kuchling [Tue, 2 Aug 2005 17:13:21 +0000 (17:13 +0000)]
Add note

19 years ago[ 1243192 ] Incorrect documentation of re.UNICODE
Georg Brandl [Tue, 2 Aug 2005 10:28:08 +0000 (10:28 +0000)]
1243192 ] Incorrect documentation of re.UNICODE

19 years agoModel set.pop() after dict.popitem().
Raymond Hettinger [Tue, 2 Aug 2005 03:45:16 +0000 (03:45 +0000)]
Model set.pop() after dict.popitem().

19 years agoMinor tweak as a side effect of fixing #1243553. The Unicode name for " is
Skip Montanaro [Tue, 2 Aug 2005 02:53:59 +0000 (02:53 +0000)]
Minor tweak as a side effect of fixing #1243553.  The Unicode name for " is
'quotation mark', so I decided to use it instead of 'double-quote'.

19 years agoBring cgi.escape docstring slightly more in line with the library ref
Skip Montanaro [Tue, 2 Aug 2005 02:50:25 +0000 (02:50 +0000)]
Bring cgi.escape docstring slightly more in line with the library ref
manual.  Closes #1243553.

19 years agoPEP 342 implementation. Per Guido's comments, the generator throw()
Phillip J. Eby [Tue, 2 Aug 2005 00:46:46 +0000 (00:46 +0000)]
PEP 342 implementation.  Per Guido's comments, the generator throw()
method still needs to support string exceptions, and allow None for the
third argument.  Documentation updates are needed, too.

19 years ago* Improve code for the empty frozenset singleton:
Raymond Hettinger [Mon, 1 Aug 2005 21:39:29 +0000 (21:39 +0000)]
* Improve code for the empty frozenset singleton:
  - Handle both frozenset() and frozenset([]).
  - Do not use singleton for frozenset subclasses.
  - Finalize the singleton.
  - Add test cases.
* Factor-out set_update_internal() from set_update().  Simplifies the
  code for several internal callers.
* Factor constant expressions out of loop in set_merge_internal().
* Minor comment touch-ups.