]>
granicus.if.org Git - python/log
Neal Norwitz [Sun, 23 Oct 2005 19:22:48 +0000 (19:22 +0000)]
Use PyErr_NoMemory() instead of rolling our own.
Get rid of "int i" unused warnings from Python-ast.c which we are generating.
Neal Norwitz [Sun, 23 Oct 2005 19:06:02 +0000 (19:06 +0000)]
use PyAPI_FUNC instead of DL_IMPORT. are we going to deprecate the old non-Py PREFIXED macros, etc?
Neal Norwitz [Sun, 23 Oct 2005 18:59:17 +0000 (18:59 +0000)]
Use PyErr_NoMemory() instead of rolling our own.
Get rid of "int i" unused warnings from Python-ast.c which we are generating.
Neil Schemenauer [Sun, 23 Oct 2005 18:52:36 +0000 (18:52 +0000)]
Remove unnecessary local variable.
Neil Schemenauer [Sun, 23 Oct 2005 18:50:36 +0000 (18:50 +0000)]
Fix check_unoptimized() function. The only optimized namespaces are
in function blocks. This elimiates spurious warnings about "import *" and
related statements at the class level.
Neil Schemenauer [Sun, 23 Oct 2005 18:37:42 +0000 (18:37 +0000)]
Fix private name mangling. The symtable also must do mangles so that
the scope of names can be correctly determined.
Neil Schemenauer [Sun, 23 Oct 2005 17:21:54 +0000 (17:21 +0000)]
Use PyTuple_Pack instead of Py_BuildValue.
Marc-André Lemburg [Sun, 23 Oct 2005 13:43:40 +0000 (13:43 +0000)]
Add news item for the new charmap codecs.
Mark Hammond [Sun, 23 Oct 2005 10:53:06 +0000 (10:53 +0000)]
Correct error to PyRun_SimpleString macro introduced in AST merge.
Mark Hammond [Sun, 23 Oct 2005 10:50:04 +0000 (10:50 +0000)]
Remove conflict markers and add parsermodule.c to get things building
Raymond Hettinger [Sun, 23 Oct 2005 04:47:13 +0000 (04:47 +0000)]
Add AST files to VC6 build.
Neil Schemenauer [Sun, 23 Oct 2005 04:24:49 +0000 (04:24 +0000)]
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
Neil Schemenauer [Sun, 23 Oct 2005 03:45:42 +0000 (03:45 +0000)]
Don't stop generating code for import statements after the first "import as"
part. Fixes one bug from #
1333982 .
Neil Schemenauer [Sun, 23 Oct 2005 03:38:19 +0000 (03:38 +0000)]
Add an assert.
Neal Norwitz [Sat, 22 Oct 2005 03:51:42 +0000 (03:51 +0000)]
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.
Neil Schemenauer [Fri, 21 Oct 2005 18:11:40 +0000 (18:11 +0000)]
Revert change, func_name of lambda's is back to <lambda>.
Neil Schemenauer [Fri, 21 Oct 2005 18:09:19 +0000 (18:09 +0000)]
Use <lamba> as the function name for lambdas (matches old compiler).
Jeremy Hylton [Fri, 21 Oct 2005 14:58:06 +0000 (14:58 +0000)]
Fix a bunch of imports to use code.h instead of compile.h.
Remove duplicate declarations from compile.h
Marc-André Lemburg [Fri, 21 Oct 2005 14:35:35 +0000 (14:35 +0000)]
Replace the old EBCDIC codecs with new ones using the decoding table.
Marc-André Lemburg [Fri, 21 Oct 2005 14:02:28 +0000 (14:02 +0000)]
Alias iso8859_1 to latin_1 which is the same encoding, but has
a much faster codec implementation.
Marc-André Lemburg [Fri, 21 Oct 2005 13:58:32 +0000 (13:58 +0000)]
Add a few more Mac OS encodings. The mapping tables for these are
available at ftp.unicode.org.
Marc-André Lemburg [Fri, 21 Oct 2005 13:49:12 +0000 (13:49 +0000)]
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.
Marc-André Lemburg [Fri, 21 Oct 2005 13:47:03 +0000 (13:47 +0000)]
Add two new tools to compare codecs and show differences and to
list all installed codecs.
Marc-André Lemburg [Fri, 21 Oct 2005 13:45:17 +0000 (13:45 +0000)]
Moved gencodec.py to the Tools/unicode/ directory.
Added new support for decoding tables.
Cleaned up the implementation a bit.
Armin Rigo [Fri, 21 Oct 2005 12:57:31 +0000 (12:57 +0000)]
ANSI-C-ify the placement of local var declarations.
Michael W. Hudson [Fri, 21 Oct 2005 11:45:01 +0000 (11:45 +0000)]
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.
Michael W. Hudson [Fri, 21 Oct 2005 11:32:20 +0000 (11:32 +0000)]
the ast-branch changed the stack discipline of MAKE_CLOSURE, so we need to
bump MAGIC.
Georg Brandl [Fri, 21 Oct 2005 07:53:44 +0000 (07:53 +0000)]
Add 2.4.2 to LICENSE.
Neal Norwitz [Fri, 21 Oct 2005 06:32:02 +0000 (06:32 +0000)]
add some notes about recent checkins
Neal Norwitz [Fri, 21 Oct 2005 06:26:10 +0000 (06:26 +0000)]
Get the bug # write
Neal Norwitz [Fri, 21 Oct 2005 06:25:33 +0000 (06:25 +0000)]
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.
Neal Norwitz [Fri, 21 Oct 2005 06:24:02 +0000 (06:24 +0000)]
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.
Neal Norwitz [Fri, 21 Oct 2005 06:05:33 +0000 (06:05 +0000)]
Free coding spec (cs) if there was an error to prevent mem leak. Maybe backport candidate
Neal Norwitz [Fri, 21 Oct 2005 06:00:24 +0000 (06:00 +0000)]
Don't use a string exception since it's deprecated
Neal Norwitz [Fri, 21 Oct 2005 05:15:07 +0000 (05:15 +0000)]
Oops, "=" is not a comparison operator
Neal Norwitz [Fri, 21 Oct 2005 04:34:18 +0000 (04:34 +0000)]
Add comment lost from AST merge
Neal Norwitz [Fri, 21 Oct 2005 04:33:02 +0000 (04:33 +0000)]
Remove INT_MIN that came from the AST merge.
INT_MIN is used in Python/compile.c, but it was also used
in Objects/abstract.c Python/getargs.c. If we need it for compile.c,
we can get it from the same place as the other files.
Neal Norwitz [Fri, 21 Oct 2005 04:28:38 +0000 (04:28 +0000)]
Fix some mods that got dropped from the AST merge
Neal Norwitz [Fri, 21 Oct 2005 04:23:36 +0000 (04:23 +0000)]
Use the newer names for APIs after the AST merge
Neal Norwitz [Fri, 21 Oct 2005 04:19:49 +0000 (04:19 +0000)]
Remove dup declarations after AST merge
Jeremy Hylton [Thu, 20 Oct 2005 19:59:25 +0000 (19:59 +0000)]
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.
Marc-André Lemburg [Thu, 20 Oct 2005 19:06:35 +0000 (19:06 +0000)]
Enhance the performance of two important Unicode character
type lookups: whitespace and linebreak.
These lookup tables are from the Python 1.6 version with the addition
of the 205F code point which was added as whitespace code point to Unicode
since then.
Fred Drake [Thu, 20 Oct 2005 17:52:05 +0000 (17:52 +0000)]
add missing word
Jeremy Hylton [Thu, 20 Oct 2005 14:27:21 +0000 (14:27 +0000)]
Disable some tests in anticipation of merging ast-branch to the head
Neal Norwitz [Thu, 20 Oct 2005 05:28:29 +0000 (05:28 +0000)]
Find bsd db v4 on gentoo (2005 i think)
Neal Norwitz [Thu, 20 Oct 2005 04:50:13 +0000 (04:50 +0000)]
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.
Neal Norwitz [Thu, 20 Oct 2005 04:36:08 +0000 (04:36 +0000)]
Get BSD DB working most for version 3.2
Neal Norwitz [Thu, 20 Oct 2005 04:30:15 +0000 (04:30 +0000)]
Get bsddb module to compile with version 3.2 of BSD DB.
Neal Norwitz [Thu, 20 Oct 2005 04:15:52 +0000 (04:15 +0000)]
SF bug #
1331563 ] string_subscript doesn't check for failed PyMem_Malloc. Will backport
Marc-André Lemburg [Wed, 19 Oct 2005 22:39:02 +0000 (22:39 +0000)]
Whitespace corrections.
Marc-André Lemburg [Wed, 19 Oct 2005 22:33:31 +0000 (22:33 +0000)]
Bug fix for [
1331062 ] utf 7 codec broken.
Backport candidate.
Neal Norwitz [Tue, 18 Oct 2005 05:07:49 +0000 (05:07 +0000)]
SF bug #
1328915 , try to word kill a bit more generically. Backport candidate.
Raymond Hettinger [Mon, 17 Oct 2005 03:37:26 +0000 (03:37 +0000)]
Drop permissions for Gregory K Johnson.
Raymond Hettinger [Sun, 16 Oct 2005 11:17:30 +0000 (11:17 +0000)]
Add Nick Coghlan
Raymond Hettinger [Sat, 15 Oct 2005 16:41:53 +0000 (16:41 +0000)]
Teach unquote() to handle unicode inputs
Vinay Sajip [Fri, 14 Oct 2005 09:36:35 +0000 (09:36 +0000)]
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).
Neal Norwitz [Wed, 12 Oct 2005 03:58:14 +0000 (03:58 +0000)]
SF bug #
1323739 , C API doc for PySequence_Tuple duplicated
Fred Drake [Tue, 11 Oct 2005 20:26:05 +0000 (20:26 +0000)]
fix stupid typo
Vinay Sajip [Tue, 11 Oct 2005 13:15:31 +0000 (13:15 +0000)]
Added Host and Content-type headers to requests sent by HTTPHandler (suggested by Steven Vereecken)
Neal Norwitz [Tue, 11 Oct 2005 03:23:45 +0000 (03:23 +0000)]
SF bug #
1323294 , Minor error in the Library Reference doc. Will backport
Marc-André Lemburg [Mon, 10 Oct 2005 19:08:41 +0000 (19:08 +0000)]
Clarify the docs for Py_UNICODE.
Walter Dörwald [Sun, 9 Oct 2005 19:42:27 +0000 (19:42 +0000)]
Bug #
1245379 : Add "unicode-1-1-utf-7" as an alias for "utf-7" as specified
by RFC 1642.
Walter Dörwald [Sun, 9 Oct 2005 19:38:21 +0000 (19:38 +0000)]
Remove trailing spaces.
Walter Dörwald [Sun, 9 Oct 2005 19:28:35 +0000 (19:28 +0000)]
Fix indentation.
Georg Brandl [Sat, 8 Oct 2005 20:47:38 +0000 (20:47 +0000)]
Fix errors in _synthesize because of missing basename attribute of
browser controller classes.
Guido van Rossum [Sat, 8 Oct 2005 20:04:35 +0000 (20:04 +0000)]
Fix unit test failure -- the output received from Python can be empty,
but verify_valid_flag() wasn't expecting that. Will backport.
Vinay Sajip [Fri, 7 Oct 2005 08:35:36 +0000 (08:35 +0000)]
Fixed bug where the logging message was wrongly being demoted from Unicode to string (SF #
1314107 )
Walter Dörwald [Thu, 6 Oct 2005 20:29:57 +0000 (20:29 +0000)]
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.
Hye-Shik Chang [Thu, 6 Oct 2005 15:51:59 +0000 (15:51 +0000)]
Change the internal "undefined codepoint" mark for CJKCodecs decoders
from U+FFFD to U+FFFE which is considered more appropriate. (from
MAL's comment)
Raymond Hettinger [Wed, 5 Oct 2005 11:39:12 +0000 (11:39 +0000)]
SF #
1313496 : bisect C replacement doesn't accept named args
Neal Norwitz [Tue, 4 Oct 2005 04:32:42 +0000 (04:32 +0000)]
Get "make install" working again after adding Lib/test/bad_coding.py
which can't be compiled. Thanks to Mat Martineau for spotting the problem.
Neal Norwitz [Tue, 4 Oct 2005 03:43:43 +0000 (03:43 +0000)]
Make close brace a paren to match open.
Neal Norwitz [Tue, 4 Oct 2005 03:37:29 +0000 (03:37 +0000)]
Armin caught this mistake in bug #973103.
Neal Norwitz [Tue, 4 Oct 2005 03:31:01 +0000 (03:31 +0000)]
open_new_win does not exist. use UNIX consistently, add autoraise parameter to open(). add versionadded tags to open_new_tab
Neal Norwitz [Tue, 4 Oct 2005 03:17:49 +0000 (03:17 +0000)]
Fix pychecker warnings
Kurt B. Kaiser [Mon, 3 Oct 2005 20:08:25 +0000 (20:08 +0000)]
Incorporate Tal Einat's comment on Patch 936169: Fixes alignment problem.
Kurt B. Kaiser [Mon, 3 Oct 2005 19:26:03 +0000 (19:26 +0000)]
Tweak CodeContext.py docstrings, comments, and names.
Raymond Hettinger [Mon, 3 Oct 2005 16:39:51 +0000 (16:39 +0000)]
Correct docs for empty raise when no exception is active.
Fred Drake [Mon, 3 Oct 2005 14:25:40 +0000 (14:25 +0000)]
fix link to subsection (SF bug #
1311674 )
Georg Brandl [Mon, 3 Oct 2005 14:16:44 +0000 (14:16 +0000)]
Patch #754022: Greatly enhanced webbrowser.py.
Neal Norwitz [Mon, 3 Oct 2005 07:46:34 +0000 (07:46 +0000)]
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
Neal Norwitz [Mon, 3 Oct 2005 05:47:38 +0000 (05:47 +0000)]
SF Bug #
1008310 , os.major() os.minor() example and description change. Will backport.
Neal Norwitz [Mon, 3 Oct 2005 05:13:46 +0000 (05:13 +0000)]
Fix SF bug #991735, os.access reports true for read-only directories. Will backport
Neal Norwitz [Mon, 3 Oct 2005 04:48:15 +0000 (04:48 +0000)]
Fix SF bug #976608, Unhelpful error message when mtime of a module is -1
Will backport.
Neal Norwitz [Mon, 3 Oct 2005 03:57:09 +0000 (03:57 +0000)]
SF Bug # 941346, AIX shared library fix
Since I can't test this, I'm just adding a comment. If we get access
to AIX boxes, we can test this and really resolve. Anyone from IBM
want to offer help?
Backport candidate I suppose.
Neal Norwitz [Mon, 3 Oct 2005 00:54:56 +0000 (00:54 +0000)]
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.
Neal Norwitz [Mon, 3 Oct 2005 00:44:06 +0000 (00:44 +0000)]
SF Bug #
1308042 , platform dependent behaviour (Windoze of course) in UDP sockets. Will backport
Neal Norwitz [Mon, 3 Oct 2005 00:38:46 +0000 (00:38 +0000)]
SF patch #
1227568 , Expression AST node not documented.
Neal Norwitz [Mon, 3 Oct 2005 00:36:16 +0000 (00:36 +0000)]
SF patch #
1227568 , bug #
1219273 , Expression AST node not documented. Backport candidate if anyone cares.
Kurt B. Kaiser [Sun, 2 Oct 2005 23:36:46 +0000 (23:36 +0000)]
Increased performance in CodeContext extension Patch 936169 Noam Raphael
Neal Norwitz [Sun, 2 Oct 2005 01:48:49 +0000 (01:48 +0000)]
- 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.
Georg Brandl [Sat, 1 Oct 2005 17:06:00 +0000 (17:06 +0000)]
Fix PyString_Format so that the "%s" format works again when Unicode is not
enabled.
Georg Brandl [Sat, 1 Oct 2005 16:32:31 +0000 (16:32 +0000)]
bug [ 729103 ] Cannot retrieve name of super object
Michael W. Hudson [Fri, 30 Sep 2005 08:20:24 +0000 (08:20 +0000)]
Forward port bugfix:
[
1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code)
(note that this only happens in a threads-disabled build).
Neal Norwitz [Fri, 30 Sep 2005 04:46:49 +0000 (04:46 +0000)]
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.
Georg Brandl [Thu, 29 Sep 2005 20:49:16 +0000 (20:49 +0000)]
patch [
1300515 ] xdrlib.py: pack_fstring() did not use null bytes for padding
Georg Brandl [Thu, 29 Sep 2005 20:24:06 +0000 (20:24 +0000)]
bug [
1298120 ] shlex does not support unicode
Georg Brandl [Thu, 29 Sep 2005 20:16:07 +0000 (20:16 +0000)]
bug [
1296004 ] MemoryError in httplib
Georg Brandl [Thu, 29 Sep 2005 13:40:49 +0000 (13:40 +0000)]
Fix parse errors in readline module when compiling without threads.
Georg Brandl [Wed, 28 Sep 2005 12:53:12 +0000 (12:53 +0000)]
bug [
1306449 ] PyString_AsStringAndSize() return value documented wrong