Walter Dörwald
09f0dd5842
Use basestring instead of type.StringType for checking whether a input
...
or output file is a file name instead of a file object. This enables
unicode file names as arguments to uu.encode() and uu.decode().
2005-11-21 19:10:07 +00:00
Neal Norwitz
7bcabc60a3
Fix a few more memory leaks
...
Document more info about the benefits of configuring without
pymalloc when running valgrind
2005-11-20 23:58:38 +00:00
Neal Norwitz
497b19a8a2
Updated gentoo to 2005.0
2005-11-13 18:58:32 +00:00
Neal Norwitz
67715f0420
- SF Bug #1350188 , "setdlopenflags" leads to crash upon "import"
...
It was possible dlerror() returns a NULL pointer, use a default error
message in this case.
2005-11-09 06:59:35 +00:00
Brett Cannon
789fd005e0
Fix typo in envvar name.
2005-11-07 21:42:42 +00:00
Neal Norwitz
0f46bbf781
Bug #1346533 , select.poll() doesn't raise an error if timeout > sys.maxint
...
Need to check return result of PyInt_AsLong()
Will backport.
2005-11-03 05:00:25 +00:00
Brett Cannon
5d0bf9446b
Change time.strptime() to raise ValueError whenever there is an error in the
...
format string. Before exceptions generated by the internal code propagated up
to the user and were not helpful.
Closes bug #1340337 .
2005-11-02 23:04:26 +00:00
Neal Norwitz
cf4863831c
Fix SF #1345263 , colorsys tests, bug in frange
...
Fix a typo that caused step to be ignored.
Will backport.
2005-11-02 05:54:27 +00:00
Neal Norwitz
7b631793ab
Bug #1344508 , Fix UNIX mmap leaking file descriptors. Will backport.
2005-11-02 05:26:07 +00:00
Fred Drake
db390c1ad8
fix typos, mostly in comments
2005-10-28 14:39:47 +00:00
Neal Norwitz
f339654280
Patch #1338314 , Bug #1336623 : fix tarfile so it can extract
...
REGTYPE directories from tarfiles written by old programs.
Will backport.
2005-10-28 05:52:22 +00:00
Marc-André Lemburg
a5bafc43d7
Add news item for the new charmap codecs.
2005-10-23 13:43:40 +00:00
Neal Norwitz
fed9b3ece3
add some notes about recent checkins
2005-10-21 06:32:02 +00:00
Neal Norwitz
b6570f51c5
Get the bug # write
2005-10-21 06:26:10 +00:00
Neal Norwitz
16af734bec
Incorrect code was generated for:
...
foo(a = i for i in range(10))
This should have generated a SyntaxError. Fix the Grammar so
it raises a SyntaxError and test it.
2005-10-21 06:25:33 +00:00
Jeremy Hylton
3e0055f8c6
Merge ast-branch to head
...
This change implements a new bytecode compiler, based on a
transformation of the parse tree to an abstract syntax defined in
Parser/Python.asdl.
The compiler implementation is not complete, but it is in stable
enough shape to run the entire test suite excepting two disabled
tests.
2005-10-20 19:59:25 +00:00
Raymond Hettinger
079144199c
Drop permissions for Gregory K Johnson.
2005-10-17 03:37:26 +00:00
Raymond Hettinger
dc4efd0a74
Add Nick Coghlan
2005-10-16 11:17:30 +00:00
Walter Dörwald
007f8dfde2
Bug #1245379 : Add "unicode-1-1-utf-7" as an alias for "utf-7" as specified
...
by RFC 1642.
2005-10-09 19:42:27 +00:00
Walter Dörwald
a05834e59c
Remove trailing spaces.
2005-10-09 19:38:21 +00:00
Walter Dörwald
6611a8b0dc
Fix indentation.
2005-10-09 19:28:35 +00:00
Walter Dörwald
d1c1e10f70
Part of SF patch #1313939 : Speedup charmap decoding by extending
...
PyUnicode_DecodeCharmap() the accept a unicode string as the mapping
argument which is used as a mapping table.
This code isn't used by any of the codecs yet.
2005-10-06 20:29:57 +00:00
Georg Brandl
e8f244305e
Patch #754022 : Greatly enhanced webbrowser.py.
2005-10-03 14:16:44 +00:00
Neal Norwitz
76390de83c
suppress more errors on my box, most are gentoo specific. Py_ADDRESS_IN_RANGE is x86_64 specific and the readline memory leaks should be generally applicable
2005-10-03 07:46:34 +00:00
Neal Norwitz
708e51a6b1
Fix SF bug #976608 , Unhelpful error message when mtime of a module is -1
...
Will backport.
2005-10-03 04:48:15 +00:00
Neal Norwitz
11bd119226
SF bug #887946 , segfault if redirecting directory
...
Also provide a warning if a directory is passed on the command line.
Add minimal command line test.
Will backport.
2005-10-03 00:54:56 +00:00
Neal Norwitz
c5cdcba2d9
SF patch #1227568 , Expression AST node not documented.
2005-10-03 00:38:46 +00:00
Neal Norwitz
40d3781416
- Fix segfault with invalid coding.
...
- SF Bug #772896 , unknown encoding results in MemoryError, which is not helpful
I will only backport the segfault fix. I'll let Anthony decide if he wants
the other changes backported. I will do the backport if asked.
2005-10-02 01:48:49 +00:00
Georg Brandl
8b813db2ef
bug [ 729103 ] Cannot retrieve name of super object
2005-10-01 16:32:31 +00:00
Neal Norwitz
484d9a409a
Patch #1309009 , Fix segfault in pyexpat when the XML document is
...
in latin_1, but Python incorrectly assumes it is in UTF-8 format
Will backport.
2005-09-30 04:46:49 +00:00
Georg Brandl
aa93517de8
patch [ 1300515 ] xdrlib.py: pack_fstring() did not use null bytes for padding
2005-09-29 20:49:16 +00:00
Georg Brandl
80ba8e8549
bug [ 1296004 ] MemoryError in httplib
2005-09-29 20:16:07 +00:00
Georg Brandl
e677adc43a
Fix parse errors in readline module when compiling without threads.
2005-09-29 13:40:49 +00:00
Raymond Hettinger
6b27cda643
Convert iterator __len__() methods to a private API.
2005-09-24 21:23:05 +00:00
Hye-Shik Chang
9ceebd5445
Patch #1288833 : Removed thread lock from socket.getaddrinfo on
...
FreeBSD 5.3 and later versions which got thread-safe getaddrinfo(3).
(Reported by Maxim Sobolev)
2005-09-24 14:58:47 +00:00
Michael W. Hudson
10402a306f
Patches #1298449 and #1298499 : Add some missing checks for error
...
returns in cStringIO.c. Thanks to Andrew Bennetts.
This must be a backport candidate.
2005-09-22 09:19:01 +00:00
Neal Norwitz
058bde1944
SF Patch #1297028 , cjkcodecs does not initialize type pointer
...
Fix segfault. I tried to write a test, but it wouldn't crash
when running regrtest. This really should have some sort of test.
Should definitely be backported.
2005-09-21 06:44:25 +00:00
Guido van Rossum
630db60a55
- On 64-bit platforms, when __len__() returns a value that cannot be
...
represented as a C int, raise OverflowError.
(Forward port from 2.4.2; the patch to classobject.c was already in
but needed a correction in the error message text.)
2005-09-20 18:49:54 +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
Neal Norwitz
cfe7dd96cf
Note fix of memory leak.
2005-09-19 06:49:27 +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
Martin v. Löwis
8b291e2d66
Patch #1213831 : Fix typo in unicodedata._getcode.
...
Will backport to Python 2.4.
2005-09-18 08:17:56 +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
Georg Brandl
fb1ef85b0b
*** empty log message ***
2005-09-14 20:53:32 +00:00
Georg Brandl
3225242a39
bug [ 1274828 ] splitunc not documented
2005-09-14 20:42:00 +00:00
Georg Brandl
80bbf3f6c8
Complete format code support in getargs.c::skipitem(), which is called when
...
evaluating keyword arguments.
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: Python/getargs.c
CVS: ----------------------------------------------------------------------
2005-09-14 19:38:29 +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
Guido van Rossum
539c662f10
- Changes donated by Elemental Security to make it work on HP-UX 11 on
...
Itanium2 with HP's 64-bit compiler (SF patch #1225212 ).
2005-09-14 17:49:54 +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