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
d9cf593b49
Cosmetic change: make all hex literals use upper case hex so that they
...
look more like the Unicode Consortium files.
Add ending new-line to all source files.
2005-10-24 12:14:59 +00:00
Marc-André Lemburg
3c72ded23d
Removed the decoding_map from the codecs where this is possible.
...
Replaced the tis_620, cp1140 and koi8_u codecs with new ones
based on custom mapping files.
2005-10-24 12:07:49 +00:00
Neal Norwitz
6ab080cd40
Fix problem handling EXTENDED_ARGs from SF bug # 1333982
2005-10-24 00:08:10 +00:00
Neal Norwitz
f8950654e3
Fix compiler test when run with -u (long mode)
2005-10-24 00:01:37 +00:00
Vinay Sajip
1e86beb3f8
One-off "No handlers..." error message only raised if raiseExceptions is set.
2005-10-23 22:32:59 +00:00
Neil Schemenauer
d403c45386
Fix arigo's funky LOAD_NAME bug: implicit globals inside classes have
...
historically been looked up using LOAD_NAME, not LOAD_GLOBAL.
looked up by LOAD_NAME, not
2005-10-23 04:24:49 +00:00
Neal Norwitz
ebc3457937
Revert previous checkin:
...
According to Jeremy, the comment only made sense when
the yield was disallowed. Now it's testing that the yield
is allowed, so it's not bad and the outer finally is irrelevant.
2005-10-22 03:51:42 +00:00
Neil Schemenauer
ab541bb98e
Revert change, func_name of lambda's is back to <lambda>.
2005-10-21 18:11:40 +00:00
Marc-André Lemburg
0f00ba8bd8
Replace the old EBCDIC codecs with new ones using the decoding table.
2005-10-21 14:35:35 +00:00
Marc-André Lemburg
7797be7b3b
Alias iso8859_1 to latin_1 which is the same encoding, but has
...
a much faster codec implementation.
2005-10-21 14:02:28 +00:00
Marc-André Lemburg
75c9e8392e
Add a few more Mac OS encodings. The mapping tables for these are
...
available at ftp.unicode.org.
2005-10-21 13:58:32 +00:00
Marc-André Lemburg
a1129f4b9b
Replace the old charmap codecs with new ones generated from the current
...
mapping tables available at ftp.unicode.org.
These new codecs include and use character decoding tables which speeds
up decoding by a few factors.
2005-10-21 13:49:12 +00:00
Michael W. Hudson
b2308bb9be
Fix bug:
...
[ 1327110 ] wrong TypeError traceback in generator expressions
by removing the code that can stomp on the users' TypeError raised by the
iterable argument to ''.join() -- PySequence_Fast (now?) gives a perfectly
reasonable message itself. Also, a couple of tests.
2005-10-21 11:45:01 +00:00
Neal Norwitz
37c0844b35
Fix SF bug #1167751 , Argument genexp corner case
...
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.
I'm uncertain whether this should be backported. It makes
something that was Syntactically valid invalid. However,
the code would either be completely broken or do the wrong thing.
2005-10-21 06:24:02 +00:00
Neal Norwitz
1e8659b963
Don't use a string exception since it's deprecated
2005-10-21 06:00:24 +00:00
Neal Norwitz
f21c8ed58a
Add comment lost from AST merge
2005-10-21 04:34:18 +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
Jeremy Hylton
bc2a62fcfd
Disable some tests in anticipation of merging ast-branch to the head
2005-10-20 14:27:21 +00:00
Neal Norwitz
b0e32e2b71
Fix SF bug # 1330039, patch # 1331635 from Lars Gustaebel (tarfile maintainer)
...
Problem: if two files are assigned the same inode
number by the filesystem, the second one will be added
as a hardlink to the first, which means that the
content will be lost.
The patched code checks if the file's st_nlink is
greater 1. So only for files that actually have several
links pointing to them hardlinks will be created, which
is what GNU tar does.
Will backport.
2005-10-20 04:50:13 +00:00
Neal Norwitz
40563eddf1
Get BSD DB working most for version 3.2
2005-10-20 04:36:08 +00:00
Raymond Hettinger
4b0f20def3
Teach unquote() to handle unicode inputs
2005-10-15 16:41:53 +00:00
Vinay Sajip
239322b97e
Optimised Placeholders handling of child loggers by using a dict rather than a list (much slower in the pathological case of hundreds of child Loggers to a Placeholder - problem reported by Ryan Blazecka).
2005-10-14 09:36:35 +00:00
Vinay Sajip
b79350601b
Added Host and Content-type headers to requests sent by HTTPHandler (suggested by Steven Vereecken)
2005-10-11 13:15:31 +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
Georg Brandl
b980113a8d
Fix errors in _synthesize because of missing basename attribute of
...
browser controller classes.
2005-10-08 20:47:38 +00:00
Guido van Rossum
c252c5964c
Fix unit test failure -- the output received from Python can be empty,
...
but verify_valid_flag() wasn't expecting that. Will backport.
2005-10-08 20:04:35 +00:00
Vinay Sajip
43d6e812c8
Fixed bug where the logging message was wrongly being demoted from Unicode to string (SF #1314107 )
2005-10-07 08:35:36 +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
Raymond Hettinger
cc9a951f35
SF #1313496 : bisect C replacement doesn't accept named args
2005-10-05 11:39:12 +00:00
Neal Norwitz
196f733d93
Fix pychecker warnings
2005-10-04 03:17:49 +00:00
Kurt B. Kaiser
389482ccbe
Incorporate Tal Einat's comment on Patch 936169: Fixes alignment problem.
2005-10-03 20:08:25 +00:00
Kurt B. Kaiser
0a1357930a
Tweak CodeContext.py docstrings, comments, and names.
2005-10-03 19:26:03 +00:00
Georg Brandl
e8f244305e
Patch #754022 : Greatly enhanced webbrowser.py.
2005-10-03 14:16:44 +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
Kurt B. Kaiser
74910225df
Increased performance in CodeContext extension Patch 936169 Noam Raphael
2005-10-02 23:36: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
Armin Rigo
dd5c023af5
some more fixes and tests for inspect.getsource(), triggered by crashes
...
from the PyPy project as well as the SF bug #1295909 .
2005-09-25 11:45:45 +00:00
Raymond Hettinger
6b27cda643
Convert iterator __len__() methods to a private API.
2005-09-24 21:23:05 +00:00
Peter Astrand
3a708dfc88
Changed license header: Now simply referring to PSF. This closes bug
...
1138653.
2005-09-23 17:37:29 +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
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