Jack Jansen
19e11c86a7
MacOSX 10.4 apparently does not allow the creation time to be set to later
...
than the modification time. Changed the SetDates test to accomodate.
Backport candidate.
2005-09-21 20:52:11 +00:00
Armin Rigo
f879024487
test and fix for buggy handling of exceptions raised by C functions,
...
causing the profiler to crash on an AssertionError if the same Python
function catches multiple exceptions from C functions.
2005-09-20 18:50:13 +00:00
Matthias Klose
f3f231f60c
- Patch #1166948 : locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
...
to get the correct encoding.
- Patch #1166938 : locale.py: Parse LANGUAGE as a colon separated list of
languages.
2005-09-20 07:02:49 +00:00
Armin Rigo
3a703b6059
Reverted revision 1.83, which introduced a bug and subtle incompatibility
...
issues. See bug #1112856 .
2005-09-19 09:11:04 +00:00
Skip Montanaro
f8948ca5d7
skip _locale test if OS X < 10.4
2005-09-19 03:54:46 +00:00
Martin v. Löwis
4ed673877d
Patch #1268314 : Cache lines in StreamReader.readlines for performance.
...
Will backport to Python 2.4.
2005-09-18 08:34:39 +00:00
Georg Brandl
9e28107ce8
Test case for latest complexobject fix.
2005-09-17 07:51:15 +00:00
Vinay Sajip
116f16e4ab
Added lock acquisition around handler removal from logger
2005-09-16 10:33:40 +00:00
Raymond Hettinger
9bda1d6f64
No longer ignore exceptions raised by comparisons during key lookup.
...
Inspired by Armin Rigo's suggestion to do the same with dictionaries.
2005-09-16 07:14:21 +00:00
Brett Cannon
a783d06f8c
Clear out the regex cache when the TimeRE cache is invalidated by a locale
...
change.
Fixes bug #1290505 .
2005-09-15 02:34:56 +00:00
Guido van Rossum
8ee3e5aa93
- Changes donated by Elemental Security to make it work on AIX 5.3
...
with IBM's 64-bit compiler (SF patch #1284289 ). This also closes SF
bug #105470 : test_pwd fails on 64bit system (Opteron).
2005-09-14 18:09:42 +00:00
Gustavo Niemeyer
6fa0c5a452
Bug #1202493 : Fixing SRE parser to handle '{}' as perl does, rather than
...
considering it exactly like a '*'.
2005-09-14 08:54:39 +00:00
Raymond Hettinger
ebb7f30111
Speed-up escape()
2005-09-12 22:50:37 +00:00
Raymond Hettinger
a1d09e2ded
Minor cleanup.
2005-09-11 16:34:05 +00:00
Raymond Hettinger
cf6b6326e5
Corrected version of 1.170
2005-09-10 18:17:54 +00:00
Raymond Hettinger
2bdec7bfb0
Revert 1.170. Add tests.
2005-09-10 14:30:09 +00:00
Raymond Hettinger
803ce801ab
Simplify and speed-up unquote().
2005-09-10 06:49:04 +00:00
Raymond Hettinger
957b126649
Simplify and speed-up quote_plus().
2005-09-10 02:27:41 +00:00
Raymond Hettinger
199d2f7997
SF #1285086 : urllib.quote is too slow
...
Simplify and speed-up quote() function.
2005-09-09 22:27:13 +00:00
Vinay Sajip
0ee9ba258e
Added _handlerList to allow shutdown to flush and close handlers in reverse order of creation (see SF# 1282539)
2005-09-08 18:14:16 +00:00
Hye-Shik Chang
e029da0aca
Quote docstring with r"" to keep '\r\n' in example code.
2005-09-07 07:40:05 +00:00
Vinay Sajip
c384fc2357
Changed _srcfile determination to support py2exe.
2005-09-02 11:20:33 +00:00
Walter Dörwald
c5238b8288
SF bug #1235646 : codecs.StreamRecoder.next() now reencodes the data it reads
...
from the input stream, so that the output is a byte string in the correct
encoding instead of a unicode string.
2005-09-01 11:56:53 +00:00
Georg Brandl
cd3c26a717
Reverting previous checkin. This breaks too much of HTMLParser to be applied
...
without thought. Anyway, such malformed HTML is better handled by something
like BeautifulSoup.
2005-09-01 06:25:34 +00:00
Neal Norwitz
4ce69a5b06
No need to import exceptions, they are builtins
2005-09-01 00:45:28 +00:00
Neal Norwitz
6203196c7c
Remove unused import
2005-09-01 00:39:02 +00:00
Georg Brandl
a1be88e24d
patch [ 1242454 ] shutil.copytree() quits too soon after an error.
2005-08-31 22:48:45 +00:00
Georg Brandl
7847405a76
bug [ 761452 ] HTMLParser chokes on my.yahoo.com output
2005-08-31 22:08:45 +00:00
Piers Lauder
be5615ef99
updated __version__
2005-08-31 10:50:03 +00:00
Piers Lauder
14f39402af
changed select() so readonly flag is treated as a boolean
2005-08-31 10:46:29 +00:00
Walter Dörwald
a47d1c08d0
SF bug #1251300 : On UCS-4 builds the "unicode-internal" codec will now complain
...
about illegal code points. The codec now supports PEP 293 style error handlers.
(This is a variant of the Nik Haldimann's patch that detects truncated data)
2005-08-30 10:23:14 +00:00
Brett Cannon
f1b2ba6aa1
Fix logic error introduced in last commit. Also add a comment to explain what
...
the code is doing.
2005-08-29 18:25:55 +00:00
Brett Cannon
6e372d1422
fix bug where str.find() was being misused where __contains__ should have been
...
used.
2005-08-27 19:25:59 +00:00
Martin v. Löwis
5dbdc59577
Patch #1168594 : set sizes of non-regular files to zero. Fixes #1167128 .
...
Will backport to 2.4.
2005-08-27 10:07:56 +00:00
Tim Peters
9e34c04732
Whitespace normalization (via reindent.py).
2005-08-26 15:20:46 +00:00
Tim Peters
e8889c5741
testSeekBackwardsFromEnd(): Repair obvious syntax error.
2005-08-26 14:33:57 +00:00
Georg Brandl
d603c04bcd
Add list() around xreadlines()
2005-08-26 13:23:54 +00:00
Georg Brandl
62fe585b4b
*** empty log message ***
2005-08-26 13:21:50 +00:00
Georg Brandl
5a650a253c
patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieve
2005-08-26 08:51:34 +00:00
Georg Brandl
d2e3ba7a35
patch [ 756021 ] Allow socket.inet_aton("255.255.255.255") on Windows
2005-08-26 08:34:00 +00:00
Georg Brandl
905a01aba4
bug [ 1262320 ] minidom.py alternate newl support is broken
2005-08-25 22:14:15 +00:00
Georg Brandl
175a7dcf65
bug [ 1262320 ] minidom.py alternate newl support is broken
2005-08-25 22:02:43 +00:00
Martin v. Löwis
8b59514e57
Make IDNA return an empty string when the input is empty. Fixes #1163178 .
...
Will backport to 2.4.
2005-08-25 11:03:38 +00:00
Georg Brandl
8246c439a8
Correct test suite for #848017 .
2005-08-25 07:32:42 +00:00
Georg Brandl
532efabf1d
patch #848017 : make Cookie more RFC-compliant.
2005-08-24 22:34:21 +00:00
Georg Brandl
e1b13d2019
Bug #735248 : Fix urllib2.parse_http_list.
2005-08-24 22:20:32 +00:00
Georg Brandl
a5a2088dd7
Bug 1016563: Bug in urllib2 proxy auth
2005-08-24 20:29:32 +00:00
Georg Brandl
b925602f16
Patch [ 1062060 ] fix for 1016880 urllib.urlretrieve silently truncates dwnld
2005-08-24 18:46:39 +00:00
Martin v. Löwis
0a5d4a20e7
Patch #1167716 : Support Unicode filenames in mkpath. Fixes #1121494 .
...
Will backport to 2.4.
2005-08-24 14:55:22 +00:00
Georg Brandl
be3856dcd4
patch [ 1141428 ] more __contains__ tests
2005-08-24 09:08:57 +00:00
Georg Brandl
52715f69e7
[ 1113421 ] New tutorial tests in test_generators.py
2005-08-24 09:02:29 +00:00
Martin v. Löwis
56066d2e55
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.
2005-08-24 07:38:12 +00:00
Georg Brandl
6d2b346140
bug [ 1192315 ] 'clear -1' in pdb
2005-08-24 07:36:17 +00:00
Georg Brandl
38387b8b91
bug [ 728515 ] mmap's resize method resizes the file in win32 but not unix
2005-08-24 07:17:40 +00:00
Martin v. Löwis
faffa15842
Revert previous checkin.
2005-08-24 06:43:09 +00:00
Martin v. Löwis
bc3b06087c
Patch #1262036 : Make tarfile name absolute. Fixes #1257255 .
...
Will backport to 2.4.
2005-08-24 06:06:52 +00:00
Fred Drake
7ed44e52aa
add note about "markupbase" not being intended for direct use
...
(closes SF bug #736659 , patch #901369 )
2005-08-23 04:06:46 +00:00
Kurt B. Kaiser
0cd233f487
Revert previous code elimination, 'filename' is needed.
2005-08-23 03:25:38 +00:00
Kurt B. Kaiser
2618c7fadc
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
2005-08-23 02:27:23 +00:00
Georg Brandl
f33d01d304
bug [ 1266296 ] Mistakes in decimal.Context.subtract documentation
2005-08-22 19:35:18 +00:00
Georg Brandl
f0de6a18bb
Bug #1266283 : lexists() is not exported from os.path
2005-08-22 18:02:59 +00:00
Gregory P. Smith
f21a5f7739
[ 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.
2005-08-21 18:45:59 +00:00
Georg Brandl
33a5f2af59
Fix BZ2File.(x)readlines() for files without a newline.
2005-08-21 14:16:04 +00:00
Raymond Hettinger
a710b331da
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().
2005-08-21 11:03:59 +00:00
Raymond Hettinger
91e27c253c
Implement random.sample() using sets instead of dicts.
2005-08-19 01:36:35 +00:00
Raymond Hettinger
c47e01d020
Numerous fix-ups to C API and docs. Added tests for C API.
2005-08-16 10:44:15 +00:00
Barry Warsaw
e2eca0b709
Port from the Python 2.4 branch, patches for SF bug # 900092,
...
hotshot.stats.load.
2005-08-15 18:14:19 +00:00
Raymond Hettinger
038ca2a551
Teach the sets module to correctly compute s-=s and s^=s as the empty set.
2005-08-13 02:29:58 +00:00
Raymond Hettinger
97979ddc14
* 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.
2005-08-12 23:58:22 +00:00
Neil Schemenauer
cf52c07843
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.
2005-08-12 17:34:58 +00:00
Raymond Hettinger
c991db240c
* 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.
2005-08-11 07:58:45 +00:00
Martin v. Löwis
b813c53cd8
Patch #827386 : Support absolute source paths in msvccompiler.py.
...
Backported to 2.4.
2005-08-07 20:51:04 +00:00
Tim Peters
e9fe7e0ef3
Whitespace normalization (ran reindent.py over the whole tree).
2005-08-07 03:04:58 +00:00
Georg Brandl
2772c679e9
bug [ 1252706 ] poplib list() docstring fix (and docs too)
2005-08-05 21:01:58 +00:00
Walter Dörwald
4e41a4b64c
Disable a few other tests, that can't work if Python is compiled without
...
Unicode support.
2005-08-03 17:09:04 +00:00
Georg Brandl
649f8e7de2
patch [ 1105730 ] Faster commonprefix in macpath, ntpath, etc.
2005-08-03 07:30:12 +00:00
Skip Montanaro
97b2fa229c
Bring cgi.escape docstring slightly more in line with the library ref
...
manual. Closes #1243553 .
2005-08-02 02:50:25 +00:00
Phillip J. Eby
0d6615fd29
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.
2005-08-02 00:46:46 +00:00
Raymond Hettinger
d794666048
* 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.
2005-08-01 21:39:29 +00:00
Fred Drake
50747fc1b9
add support for svn: and svn+ssh: URL schemes to urlparse
2005-07-29 15:56:32 +00:00
Walter Dörwald
6eea789fd2
Disable encoding/decoding test, if unicode is disabled.
2005-07-28 16:49:15 +00:00
Guido van Rossum
49a4b68b8b
Fix a problem in Tkinter introduced by SF patch #869468 (checked in as
...
1.179): delete bogus __hasattr__ and __delattr__ methods on class Tk
that were breaking Tkdnd.
2005-07-26 23:57:46 +00:00
Georg Brandl
9443242463
That was one too much.
2005-07-22 21:52:25 +00:00
Georg Brandl
7eb4b7d177
Fix all wrong instances of "it's".
2005-07-22 21:49:32 +00:00
Georg Brandl
08c02dbb85
[ 1243081 ] repair typos
2005-07-22 18:39:19 +00:00
Walter Dörwald
c9878e1b22
Make attributes and local variables in the StreamReader str objects instead
...
of unicode objects, so that codecs that do a str->str decoding won't promote
the result to unicode. This fixes SF bug #1241507 .
2005-07-20 22:15:39 +00:00
Georg Brandl
ca5feabac2
bug [ 957505 ] SocketServer module documentation misleading
2005-07-18 07:38:44 +00:00
Tim Peters
f5f32b4712
Whitespace normalization.
2005-07-17 23:16:17 +00:00
Georg Brandl
5dbda75a02
- Bug #1015140 : disambiguated the term "article id" in nntplib docs and
...
docstrings to either "article number" or "message id".
2005-07-17 20:27:41 +00:00
Hye-Shik Chang
4e422817eb
Add support for FreeBSD 7.
2005-07-17 02:36:59 +00:00
Georg Brandl
a4a8b820aa
bug [ 1238170 ] threading.Thread uses {} as default argument
2005-07-15 09:13:21 +00:00
Raymond Hettinger
8bfa8935ea
textwrap now processes text chucks at O(n) speed instead of O(n**2).
...
Patch #1209527 (Contributed by Connelly).
2005-07-15 06:53:35 +00:00
Georg Brandl
5c5fe2f445
RFE [ 1216944 ] Add Error Code Dictionary to urllib2
2005-07-14 06:40:47 +00:00
Michael W. Hudson
0edc7a03e2
Fix:
...
[ 1229429 ] missing Py_DECREF in PyObject_CallMethod
Add a test in test_enumerate, which is a bit random, but suffices
(reversed_new calls PyObject_CallMethod under some circumstances).
2005-07-12 10:21:19 +00:00
Phillip J. Eby
5cb784629f
Fix "upload" command garbling and truncating files on Windows. If it's a
...
binary file, use 'rb'!
2005-07-07 15:36:20 +00:00
Raymond Hettinger
82cb9a235d
Add test for hash commutativity.
2005-07-05 05:34:43 +00:00
Piers Lauder
2dfc168bc3
fixed tag generation to avoid null tags
2005-07-05 04:20:07 +00:00
Georg Brandl
9e43acf2f3
bug #1177468 : don't cache /dev/urandom file descriptor in os.urandom
2005-07-04 17:16:07 +00:00
Georg Brandl
9a65d583ac
Add doctest for examples in libweakref.tex to test_weakref.
2005-07-02 19:07:30 +00:00
Georg Brandl
f0af0e7a46
patch [ 1231538 ] Typo fix in compiler/transformer.py (WalkerEror)
2005-07-02 18:37:41 +00:00
Raymond Hettinger
3296e696db
SF bug #1224347 : int/long unification and hex()
...
Hex longs now print with lowercase letters like their int counterparts.
2005-06-29 23:29:56 +00:00
Georg Brandl
22bfdab682
Adapt output file to new Cookie JS output.
2005-06-27 05:51:07 +00:00
Georg Brandl
ecf93c765c
Fix test cases for doctest.
2005-06-26 23:09:51 +00:00
Georg Brandl
12fe9b4ce4
bug [ 839151 ] attempt to access sys.argv when it doesn't exist
2005-06-26 22:53:29 +00:00
Georg Brandl
1f149642c9
bug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec-able
2005-06-26 22:22:31 +00:00
Georg Brandl
0aade9a9f9
bug [ 1155638 ] self.length shield exception in httplib
2005-06-26 22:06:54 +00:00
Georg Brandl
8d457c78b4
bug [ 1175848 ] poorly named variable in urllib2.py
2005-06-26 22:01:35 +00:00
Georg Brandl
07c81d9074
Prevent creating a HTML link to file://?/
2005-06-26 21:57:55 +00:00
Georg Brandl
a2aa1ac42b
bug [ 1100201 ] Cross-site scripting on BaseHTTPServer
2005-06-26 21:33:14 +00:00
Georg Brandl
03a33ea3a8
bug [ 1108948 ] Cookie.py produces invalid code
2005-06-26 21:02:49 +00:00
Kurt B. Kaiser
58bd19095a
SMTP.help() was returning a tuple instead of the promised text.
2005-06-26 18:27:36 +00:00
Raymond Hettinger
da99d1cbfe
SF bug #1224621 : tokenize module does not detect inconsistent dedents
2005-06-21 07:43:58 +00:00
Kurt B. Kaiser
8fa7eb563b
Remove dead code
...
M IdleHistory.py
M PyShell.py
2005-06-21 02:42:17 +00:00
Michael W. Hudson
7390942aa1
test_asynchat is no longer expected to produce output.
...
also, wait for threads to finish before proceeding.
2005-06-20 13:45:34 +00:00
Raymond Hettinger
e5a0a9609f
Apply the _is_special guard.
2005-06-20 09:49:42 +00:00
Kurt B. Kaiser
a7daba6866
<Enter> when cursor is on a previous command retrieves that command. Instead
...
of replacing the input line, the previous command is now appended to the
input line. Indentation is preserved, and undo is enabled.
Patch 1196917 Jeff Shute
Modified Files:
NEWS.txt PyShell.py
2005-06-19 18:56:15 +00:00
Raymond Hettinger
bb999b5925
SF patch #1200018 : Restore GC support to set objects
...
Reverts 1.26 and 1.27.
And adds cycle testing.
2005-06-18 21:00:26 +00:00
Skip Montanaro
9847000267
Add tests for posix O_SHLOCK & O_EXLOCK. Missed checking this in with
...
posixmodule.c 2.335. Really should be considered part of patch #1103951 .
2005-06-17 01:14:49 +00:00
Andrew M. Kuchling
d1badac99c
[Patch #1005892 from Alexandr Zamaraev] Fix two errors in the curses test suite
2005-06-15 18:44:23 +00:00
Michael W. Hudson
1a7285250b
yet another cache to clear when leak hunting.
2005-06-14 09:31:28 +00:00
Walter Dörwald
a00215983b
Port test_long.py to unittest.
2005-06-13 21:44:48 +00:00
Michael W. Hudson
f2ca5af439
Fix bug
...
[ 1180997 ] lax error-checking in new-in-2.4 marshal stuff
which I'd assigned to Martin, but actually turned out to be easy to fix.
Also, a test.
2005-06-13 18:28:46 +00:00
Raymond Hettinger
f9d88ab39e
SF bug #1219361 Fix typo
2005-06-13 01:10:15 +00:00
Kurt B. Kaiser
ca7329c9c1
1. Clarify "tab/space" Error Dialog and "Tab Width" Dialog associated with
...
the Untabify command.
2. Corrected "tab/space" Error Dialog to show correct menu for Untabify.
Patch 1196980 Jeff Shute
M EditorWindow.py
M NEWS.txt
M ScriptBinding.py
2005-06-12 05:19:23 +00:00
Kurt B. Kaiser
df506ea98b
1. Patch 1196895 Jeff Shute:
...
New files are colorized by default, and colorizing is removed when
saving as non-Python files. Patch 1196895 Jeff Shute
Closes Python Bugs 775012 and 800432, partial fix IDLEfork 763524
2. Update help.txt for left/right word delete
M CREDITS.txt
M ColorDelegator.py
M EditorWindow.py
M NEWS.txt
M help.txt
2005-06-12 04:33:30 +00:00
Georg Brandl
e537d6e93e
Patch #1171150 : add a newline to py_compile error output
2005-06-10 17:15:18 +00:00
Raymond Hettinger
68c0453418
Add untokenize() function to allow full round-trip tokenization.
...
Should significantly enhance the utility of the module by supporting
the creation of tools that modify the token stream and writeback the
modified result.
2005-06-10 11:05:19 +00:00
Andrew M. Kuchling
ca69f0248c
[Patch #1002763 ] Allow long ints as terminator values; also, treat a terminator of 0 like the empty string or None
2005-06-09 14:59:45 +00:00
Andrew M. Kuchling
5ac2534bbc
Convert asynchat test to unittest; exercise the client using a numeric value as the terminator
2005-06-09 14:56:31 +00:00
Andrew M. Kuchling
01cb47b59c
[Bug #1074261 , patch #1074381 ] Restrict the size of chunks read from the file in order to avoid overflow or huge memory consumption. Patch by Mark Eichin
2005-06-09 14:19:32 +00:00
Andrew M. Kuchling
a6f68e1b1f
Convert gzip test suite to use unittest
2005-06-09 14:12:36 +00:00
Gregory P. Smith
6564ca72ad
fix import to work with either module name.
2005-06-09 07:11:42 +00:00
Andrew M. Kuchling
6e57c2a653
[Patch #1171487 , bug #1170331 ] Fix error in base64.b32decode when encoding a single null byte; test a null byte in all encodings to be sure it works
2005-06-08 22:51:38 +00:00
Anthony Baxter
422b10fc25
fix broken (unexecuted) test
2005-06-08 04:55:50 +00:00
Anthony Baxter
95a2a4ea70
Tools/scripts/reindent.py _is_ your friend
2005-06-08 04:35:50 +00:00
Andrew M. Kuchling
ecdad8575e
[Bug #1172763 ] dumbdbm uses eval() on lines, so it chokes if there's an extra \r on the end of a line; fixed by stripping off trailing whitespace.
2005-06-07 19:36:10 +00:00
Raymond Hettinger
eb2608415e
Minor namespace clean-up.
2005-06-07 18:52:34 +00:00
Gregory P. Smith
7e87a8a0be
fix more Errors (not Failures) when run using BerkeleyDB <= 4.0
2005-06-06 18:12:24 +00:00
Gregory P. Smith
c9321ccdfc
fix Errors (not Failures) in test cases when running with BerkeleyDB<4.2
2005-06-06 17:59:00 +00:00
Gregory P. Smith
889bca0df1
make the tests that expect uncatchable exceptions from a callback test
...
for them in a roundabout way (catching and parsing stderr)
keeps test output clean.
2005-06-06 17:30:22 +00:00
Gregory P. Smith
9e28205502
test case for pybsddb SF bug id 1215432
2005-06-06 10:26:25 +00:00
Gregory P. Smith
48796c3241
test DB.associate using transactions. somewhat related to SF pybsddb
...
bug #1215432
2005-06-06 09:52:10 +00:00
Vinay Sajip
4c1423bb7a
Documentation clarified re. config socket listener protocol
2005-06-05 20:39:36 +00:00
Skip Montanaro
61aa630d01
Fix missing assignments of marshal.load() values. Closes #1214662 .
2005-06-04 12:55:32 +00:00
Georg Brandl
9166e1a24a
Bug #1196315 : fix weakref.WeakValueDictionary constructor.
2005-06-04 09:20:03 +00:00
Gregory P. Smith
e947706b10
pybsddb 4.3.2:
...
* the has_key() method was not raising a DBError when a database error
had occurred. [SF patch id 1212590]
* added a wrapper for the DBEnv.set_lg_regionmax method [SF patch id 1212590]
* DBKeyEmptyError now derives from KeyError just like DBNotFoundError.
* internally everywhere DB_NOTFOUND was checked for has been updated
to also check for DB_KEYEMPTY. This fixes the semantics of a couple
operations on recno and queue databases to be more intuitive and results
in less unexpected DBKeyEmptyError exceptions being raised.
2005-06-04 06:46:59 +00:00
Tim Peters
5d36a55eaa
Whitespace normalization.
2005-06-03 22:40:27 +00:00
Georg Brandl
6b95f1d963
Bug #1194181 : bz2.BZ2File didn't handle mode 'U' correctly.
2005-06-03 19:47:00 +00:00
Anthony Baxter
451ae18751
[ 1197218 ] test_locale fix on modern linux
...
On more modern linuxes (and probably others) straight 'en_US' isn't a
valid locale. Make the code try a couple of alternates.
backport candidate
2005-06-03 15:04:15 +00:00
Michael W. Hudson
df88846ebc
This is my patch:
...
[ 1180995 ] binary formats for marshalling floats
Adds 2 new type codes for marshal (binary floats and binary complexes), a
new marshal version (2), updates MAGIC and fiddles the de-serializing of
code objects to be less likely to clobber the real reason for failing if
it fails.
2005-06-03 14:41:55 +00:00
Georg Brandl
268e61cf74
Bug #1213894 : os.path.realpath didn't resolve symlinks that were the first
...
component of the path.
2005-06-03 14:28:50 +00:00
Michael W. Hudson
e7fa1af85b
M-x untabify
2005-06-03 13:55:58 +00:00
Gregory P. Smith
e4ed2de260
pybsddb 4.3.1, adds support for DB.set_bt_compare database btree comparison
...
functions written in python.
contributed by <frederic.gobry@epfl.ch>
2005-06-03 07:03:07 +00:00
Andrew M. Kuchling
3554cad009
[Bug #1177831 ] Exercise (?(id)yes|no) for a group other than the first one
2005-06-02 13:38:45 +00:00
Andrew M. Kuchling
c30faa812c
[Bug #1177831 ] Fix generation of code for GROUPREF_EXISTS. Thanks to Andre Malo for the fix.
2005-06-02 13:35:52 +00:00
Neil Schemenauer
f36947032f
Fix compiler.ast.flatten function so that it works on lists.
2005-06-02 05:55:20 +00:00
Andrew M. Kuchling
76276177de
[Bug #1152762 ] Ensure _end_of_line() returns an x-coordinate that's within the text box
2005-06-02 00:10:04 +00:00
Piers Lauder
d80ef02ec0
added GET/SETANNOTATION methods
2005-06-01 23:50:52 +00:00
Michael W. Hudson
ba283e2b7f
This is my patch:
...
[ 1181301 ] make float packing copy bytes when they can
which hasn't been reviewed, despite numerous threats to check it in
anyway if noone reviews it. Please read the diff on the checkin list,
at least!
The basic idea is to examine the bytes of some 'probe values' to see if
the current platform is a IEEE 754-ish platform, and if so
_PyFloat_{Pack,Unpack}{4,8} just copy bytes around.
The rest is hair for testing, and tests.
2005-05-27 15:23:20 +00:00
Michael W. Hudson
ff52286d4a
Fix test_site to not call open('...', 'wU'), as that now raises an error.
...
Is anyone running the test suite regularly at the moment?
2005-05-27 14:58:06 +00:00
Skip Montanaro
bbf12ba7b2
Disallow opening files with modes 'aU' or 'wU' as specified by PEP
...
278. Closes bug 967182.
2005-05-20 03:07:06 +00:00
Tim Peters
fffc4b7b3a
Whitespace normalization.
2005-05-18 02:18:09 +00:00
Armin Rigo
57179feec8
This test relied on short-circuiting details of dictobject.py to avoid
...
crashing, and indirectly on the fact that hash codes in
random.randrange(1000000000) were very unlikely to exhibit collisions.
To see the problem, replace this number with 500 and observe the crash on
either del target[key] or del keys[i].
The fix prevents recursive mutation, just as in the key insertion case.
2005-05-15 13:29:26 +00:00
Skip Montanaro
174dd2219d
Add better datetime support to xmlrpclib module. Closes patch #1120353 .
2005-05-14 20:54:16 +00:00
Kurt B. Kaiser
935ea9a0b2
Improve subprocess link error notification
...
M NEWS.txt
M PyShell.py
M rpc.py
2005-05-10 03:44:24 +00:00
Raymond Hettinger
77d08bcfc2
SF bug #1193890 : calendar.weekheader not found in __all__
2005-05-10 03:20:12 +00:00
Kurt B. Kaiser
20345fb8aa
Use Queue's blocking feature instead of sleeping in the main
...
loop. Patch # 1190163 Michiel de Hoon
2005-05-05 23:29:54 +00:00
Michael W. Hudson
abb103b17a
Don't use 'is not' to compare strings.
...
(spotted by reading pypy-svn :)
2005-05-04 11:59:38 +00:00
Raymond Hettinger
42406e6f27
SF patch #1191489 : Simplify logic in random.py
2005-04-30 09:02:51 +00:00
Brett Cannon
53e9a8b9f3
Fix error in a docstring where a single quote started the docstring but triple
...
quote ended it.
Closes bug #1192777 . Thanks Christopher Smith.
2005-04-30 05:50:19 +00:00
Guido van Rossum
ebbffd42f3
Fixed a typo in docstring I happened upon.
2005-04-30 00:20:35 +00:00
Brett Cannon
c3647ac93e
Make subclasses of int, long, complex, float, and unicode perform type
...
conversion using the proper magic slot (e.g., __int__()). Also move conversion
code out of PyNumber_*() functions in the C API into the nb_* function.
Applied patch #1109424 . Thanks Walter Doewald.
2005-04-26 03:45:26 +00:00
Martin v. Löwis
d7c795e729
Make parse_makefile fallback to environment variables if nothing is
...
defined in the makefile. Get CFLAGS from the Makefile, instead of
getting OPT, BASE_CFLAGS and EXTRA_CFLAGS individually.
2005-04-25 07:14:03 +00:00
Brett Cannon
08cd598c21
Introduced EXTRA_CFLAGS as an environment variable used by the Makefile. Meant
...
to be used for flags that change binary compatibility.
Distutils was tweaked to also use the variable if used during compilation of
the interpreter.
2005-04-24 22:26:38 +00:00
Walter Dörwald
43148c8413
Update test to the current readline() behaviour.
2005-04-21 21:45:36 +00:00
Walter Dörwald
a4eb2d56a4
Fix comment.
2005-04-21 21:42:35 +00:00
Walter Dörwald
bc8e642c1b
If the data read from the bytestream in readline() ends in a '\r' read one more
...
byte, even if the user has passed a size parameter. This extra byte shouldn't
cause a buffer overflow in the tokenizer. The original plan was to return a line
ending in '\r', which might be recognizable as a complete line and skip any '\n'
that was read afterwards. Unfortunately this didn't work, as the tokenizer only
recognizes '\n' as line ends, which in turn lead to joined lines and
SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It
can only happen with a temporarily exhausted bytestream now anyway.)
Fixes parts of SF bugs #1163244 and #1175396 .
2005-04-21 21:32:03 +00:00
Barry Warsaw
b180c06a54
Fix tests dependent on the exception raised by non-settable descriptors.
2005-04-20 19:41:36 +00:00
Tim Peters
e890682e52
Whitespace normalization.
2005-04-20 17:45:13 +00:00
Anthony Baxter
fa7e6b46ef
typo fix, thanks Jeremy Sanders
2005-04-15 06:17:20 +00:00
Brett Cannon
f4189916e3
Flush out support for ``class B(): pass`` syntax by adding support to the
...
'parser' module and 'compiler' package.
Closes patch #1176012 . Thanks logistix.
2005-04-09 02:30:16 +00:00
Brett Cannon
4ebc7e3bd0
Add test for ``class B1(): pass``.
2005-04-09 01:27:37 +00:00
Tim Peters
f754f5fd68
test_default_encoding_issues(): Fully restore sys.setdefaultencoding.
...
test_site often failed under "regrtest.py -r", because this xmlrpc test
left sys with a setdefaultencoding attribute, but loading site.py removes
that attribute and test_site.py verifies the attribute is gone. Changed
this test to get rid of sys.setdefaultencoding if it didn't exist when
this test started.
Don't know whether this is a bugfix (backport) candidate.
2005-04-08 18:00:59 +00:00
Raymond Hettinger
c88a6c75df
SF bug #1168983 : ftplib.py string index out of range
...
* resp[:1] in '123' # after Py2.2, this allowed blank responses to pass.
* replace <> with !=
* provide a usage message for empty command line calls
Backport candidate.
2005-04-05 04:31:09 +00:00
Walter Dörwald
714f87821f
Fix typos.
2005-04-04 21:42:22 +00:00
Walter Dörwald
7a6dc139de
Fix for SF bug #1175396 : readline() will now read one more character, if
...
the last character read is "\r" (and size is None, i.e. we're allowed to
call read() multiple times), so that we can return the correct line ending
(this additional character might be a "\n").
If the stream is temporarily exhausted, we might return the wrong line ending
(if the last character read is "\r" and the next one (after the byte stream
provides more data) is "\n", but at least the atcr member ensure that we
get the correct number of lines (i.e. this "\n" will not be treated as
another line ending.)
2005-04-04 21:38:47 +00:00
Hye-Shik Chang
ac89f6ef29
Fix testcase for 64bit BSD systems: long is 8 bytes for those systems
...
so there's no need to pad after off_t members. And a small typo fix.
2005-04-04 15:21:04 +00:00
Vinay Sajip
4a70486c37
Added threadName and now using re-entrant lock
2005-03-31 20:16:55 +00:00
Walter Dörwald
a6e8a4ad12
Since PyPI only accepts UTF-8 encoded data now, make sure that the data is
...
properly encoded and include the encoding in the Content-Type header.
2005-03-31 13:57:38 +00:00
Michael W. Hudson
e2749cb264
Fix for rather inaccurately titled bug
...
[ 1165306 ] Property access with decorator makes interpreter crash
Don't allow the creation of unbound methods with NULL im_class, because
attempting to call such crashes.
Backport candidate.
2005-03-30 16:32:10 +00:00
Tim Peters
b7e99b642f
SF patch 1167316: doctest.py fails self-test if run directly.
...
Patch by Ilya Sandler.
Bugfix candidate.
2005-03-28 23:50:54 +00:00
Tim Peters
eba28bea9b
Whitespace normalization.
2005-03-28 01:08:02 +00:00
Tim Peters
700f36c752
Two lines in this file had unbalanced parentheses -- couldn't possibly
...
work (SyntaxErrors at compile time).
I slammed in what looked like the obvious fixes, but someone who
understands this file should check my work.
2005-03-28 01:05:48 +00:00
Raymond Hettinger
fdf3bd6630
SF patch #1171417 : bug fix for islice() in docs
2005-03-27 20:11:44 +00:00
Raymond Hettinger
267b868f23
* Fix decimal's handling of foreign types. Now returns NotImplemented
...
instead of raising a TypeError. Allows other types to successfully
implement __radd__() style methods.
* Remove future division import from test suite.
* Remove test suite's shadowing of __builtin__.dir().
2005-03-27 10:47:39 +00:00
Raymond Hettinger
e6c470f255
SF bug #1770766 : weakref proxy has incorrect __nonzero__ behavior.
2005-03-27 03:04:54 +00:00
Martin v. Löwis
ca5d8fea3d
Add missing socket import
2005-03-24 19:40:57 +00:00
Fred Drake
c6699b7dc4
minor cleanup
2005-03-24 07:00:05 +00:00
Martin v. Löwis
8efd90485c
Make SRPMs pyversion 'any'.
2005-03-23 22:16:22 +00:00
Martin v. Löwis
98da562600
Make dist_files a triple, with the Python target version included,
...
so that bdist_wininst can specify 'any'.
2005-03-23 18:54:36 +00:00