]>
granicus.if.org Git - python/log
Neal Norwitz [Mon, 14 Nov 2005 04:25:03 +0000 (04:25 +0000)]
Convert all internal errors from Exception to SystemError
Remove an abort() and let a SystemError be raised.
Neal Norwitz [Mon, 14 Nov 2005 00:47:57 +0000 (00:47 +0000)]
Use convenience function
Neal Norwitz [Mon, 14 Nov 2005 00:18:03 +0000 (00:18 +0000)]
Fix memory leak with bad generator expression
Neal Norwitz [Sun, 13 Nov 2005 21:17:28 +0000 (21:17 +0000)]
remove useless debug print helper. fix a couple of exceptions
Neal Norwitz [Sun, 13 Nov 2005 19:14:20 +0000 (19:14 +0000)]
Whoops, checkin consistent versions of *all* files to stop polluting
a bunch of names
Neal Norwitz [Sun, 13 Nov 2005 18:58:32 +0000 (18:58 +0000)]
Updated gentoo to 2005.0
Neal Norwitz [Sun, 13 Nov 2005 18:55:39 +0000 (18:55 +0000)]
Do a better job of not inlining Py_ADDRESS_IN_RANGE() for newer gcc's.
Perhaps Py_NO_INLINE should be moved to pyport.h or some other header?
Neal Norwitz [Sun, 13 Nov 2005 18:50:34 +0000 (18:50 +0000)]
Fix a lot of memory and ref leaks in error paths.
(Call symtable_exit_block or compiler_exit_scope as appropriate)
Use PyMem_Free on c_future since it was allocated with PyMem_Malloc
Neal Norwitz [Sun, 13 Nov 2005 18:41:28 +0000 (18:41 +0000)]
Prevent name pollution by making lots of internal functions static.
Skip Montanaro [Sun, 13 Nov 2005 15:54:15 +0000 (15:54 +0000)]
delete Python-ast.[ch] in distclean
Neal Norwitz [Sun, 13 Nov 2005 01:08:38 +0000 (01:08 +0000)]
make internal method static
Fredrik Lundh [Sat, 12 Nov 2005 15:55:04 +0000 (15:55 +0000)]
SF#
1343671 .
The removedirs function removes empty directories, it doesn't
empty them.
Fredrik Lundh [Sat, 12 Nov 2005 15:28:52 +0000 (15:28 +0000)]
r903@spiff: Fredrik | 2005-11-12 16:28:37 +0100
removed outdated copyright notices (etc)
Fredrik Lundh [Sat, 12 Nov 2005 15:21:05 +0000 (15:21 +0000)]
r879@spiff: Fredrik | 2005-11-12 14:38:03 +0100
r878@spiff: Fredrik | 2005-11-12 14:37:22 +0100
minor docstring and comment tweaks (wikipedia might not be the
ultimate reference, but it's a lot better than "XXX" ;-)
Fredrik Lundh [Sat, 12 Nov 2005 10:15:14 +0000 (10:15 +0000)]
r858@spiff: Fredrik | 2005-11-10 23:40:04 +0100
#
1346547
added basic error checking to the STARTUPINFO code
in CreateProcess.
Fredrik Lundh [Sat, 12 Nov 2005 10:15:03 +0000 (10:15 +0000)]
r849@spiff: Fredrik | 2005-11-09 10:00:04 +0100
fixed resource leak in _subprocess.CreateProcess when using
explicit environments
Fred Drake [Fri, 11 Nov 2005 19:34:56 +0000 (19:34 +0000)]
update busted comment
Walter Dörwald [Fri, 11 Nov 2005 18:18:51 +0000 (18:18 +0000)]
Change PrettyPrinter.pprint(), so that output is written directly to the
output stream, instead of writing it to a StringIO first and writing the
result of this to the output stream. This should speed up the initial
output.
Georg Brandl [Wed, 9 Nov 2005 21:42:48 +0000 (21:42 +0000)]
Bug #
1338995 : fix problem with new webbrowser.py.
Walter Dörwald [Wed, 9 Nov 2005 17:12:43 +0000 (17:12 +0000)]
Fix typos.
Vinay Sajip [Wed, 9 Nov 2005 13:55:13 +0000 (13:55 +0000)]
Fixed indentation bug in _connect_unixsocket (thanks to Ken Lalonde for reporting it/supplying a patch)
Neal Norwitz [Wed, 9 Nov 2005 07:07:58 +0000 (07:07 +0000)]
SF Bug #
1348477 , regextest can't be pydoc'ed. Will backport.
Neal Norwitz [Wed, 9 Nov 2005 06:59:35 +0000 (06:59 +0000)]
- 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.
Brett Cannon [Mon, 7 Nov 2005 21:42:42 +0000 (21:42 +0000)]
Fix typo in envvar name.
Marc-André Lemburg [Mon, 7 Nov 2005 16:11:02 +0000 (16:11 +0000)]
Patch by pythonic <pythonic@gmail.com> to support Fedora
as Linux distro.
Armin Rigo [Mon, 7 Nov 2005 08:38:00 +0000 (08:38 +0000)]
Added proper reflection on instances of <type 'method-wrapper'>, e.g.
'[].__add__', to match what the other internal descriptor types provide:
'__objclass__' attribute, '__self__' member, and reasonable repr and
comparison.
Added a test.
Armin Rigo [Mon, 7 Nov 2005 07:47:30 +0000 (07:47 +0000)]
svn:ignoring all .pyc and .pyo files in all subdirectories of Lib/ that contain
.py files.
Armin Rigo [Mon, 7 Nov 2005 07:15:48 +0000 (07:15 +0000)]
similar to SF bug 847019: a quick check in the time() constructor, which
accepts strings only for unpickling reasons. This check prevents the honest
mistake of passing a string like '2:59.0' to time() and getting an insane
object.
Ka-Ping Yee [Sat, 5 Nov 2005 05:04:41 +0000 (05:04 +0000)]
Fix SF bug #417833 (pydoc HTTP reload failure) by removing from
sys.modules all submodules of a the given module/package path
when trying to reload a module.
Ka-Ping Yee [Sat, 5 Nov 2005 04:49:18 +0000 (04:49 +0000)]
Accept patch to resolve SF bug #651124.
Neal Norwitz [Thu, 3 Nov 2005 05:07:15 +0000 (05:07 +0000)]
Oops, forgot to add the output file to 41388.
Neal Norwitz [Thu, 3 Nov 2005 05:00:25 +0000 (05:00 +0000)]
Bug #
1346533 , select.poll() doesn't raise an error if timeout > sys.maxint
Need to check return result of PyInt_AsLong()
Will backport.
Neal Norwitz [Thu, 3 Nov 2005 04:39:09 +0000 (04:39 +0000)]
Make consistent with 2.4
Brett Cannon [Wed, 2 Nov 2005 23:04:26 +0000 (23:04 +0000)]
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 .
Brett Cannon [Wed, 2 Nov 2005 22:58:12 +0000 (22:58 +0000)]
Add an import line to a code fragment.
Closes bug #
1346395 .
Andrew M. Kuchling [Wed, 2 Nov 2005 16:36:12 +0000 (16:36 +0000)]
Another comment typo fix
Walter Dörwald [Wed, 2 Nov 2005 08:57:11 +0000 (08:57 +0000)]
Fix typo in comment.
Walter Dörwald [Wed, 2 Nov 2005 08:30:08 +0000 (08:30 +0000)]
Whitespace cleanup.
Neal Norwitz [Wed, 2 Nov 2005 05:54:27 +0000 (05:54 +0000)]
Fix SF #
1345263 , colorsys tests, bug in frange
Fix a typo that caused step to be ignored.
Will backport.
Neal Norwitz [Wed, 2 Nov 2005 05:36:37 +0000 (05:36 +0000)]
Cleanup the previous checkin.
Close the fd in the close method and invalidated it. Don't try
to close a second time when deallocating.
Neal Norwitz [Wed, 2 Nov 2005 05:26:07 +0000 (05:26 +0000)]
Bug #
1344508 , Fix UNIX mmap leaking file descriptors. Will backport.
Vinay Sajip [Mon, 31 Oct 2005 14:27:01 +0000 (14:27 +0000)]
Exception handling now raises KeyboardInterrupt and SystemExit rather than passing to handleError
Vinay Sajip [Mon, 31 Oct 2005 13:14:19 +0000 (13:14 +0000)]
Exception handling now raises KeyboardInterrupt and SystemExit rather than passing to handleError
Martin v. Löwis [Sun, 30 Oct 2005 22:01:41 +0000 (22:01 +0000)]
Remove .cvsignore files, as they live in svn:ignore
properties now.
Fred Drake [Sun, 30 Oct 2005 04:29:49 +0000 (04:29 +0000)]
add missing "and"
Hye-Shik Chang [Sun, 30 Oct 2005 03:05:27 +0000 (03:05 +0000)]
SF Bug #
1341934 : Fix a representation of "\n" to use a proper tag.
Tim Peters [Sun, 30 Oct 2005 01:15:38 +0000 (01:15 +0000)]
test_directories(): This test had no chance of passing on
Windows. Hacked it to pass, but not sure it's worth the
bother.
Martin v. Löwis [Sat, 29 Oct 2005 19:40:21 +0000 (19:40 +0000)]
Add *.pyc to svn:ignore.
Add libpython*.a to .cvsignore and svn:ignore.
Tim Peters [Sat, 29 Oct 2005 02:33:18 +0000 (02:33 +0000)]
_PyUnicode_IsWhitespace(),
_PyUnicode_IsLinebreak():
Changed the declarations to match the definitions.
Don't know why they differed; MSVC warned about it;
don't know why only these two functions use "const".
Someone who does may want to do something saner ;-).
Vinay Sajip [Sat, 29 Oct 2005 00:40:15 +0000 (00:40 +0000)]
Minor update to HTTPHandler documentation to indicate that host:port can be used.
Fred Drake [Fri, 28 Oct 2005 14:39:47 +0000 (14:39 +0000)]
fix typos, mostly in comments
Neal Norwitz [Fri, 28 Oct 2005 05:52:22 +0000 (05:52 +0000)]
Patch #
1338314 , Bug #
1336623 : fix tarfile so it can extract
REGTYPE directories from tarfiles written by old programs.
Will backport.
Martin v. Löwis [Thu, 27 Oct 2005 18:56:22 +0000 (18:56 +0000)]
Update instructions according to Dave Abrahams
instructions.
Marc-André Lemburg [Tue, 25 Oct 2005 11:55:01 +0000 (11:55 +0000)]
Add Makefile which allows easily rebuilding the charmap codecs.
Marc-André Lemburg [Tue, 25 Oct 2005 11:54:04 +0000 (11:54 +0000)]
Add custom mapping files used for generating some of the charmap
codecs.
Marc-André Lemburg [Tue, 25 Oct 2005 11:53:33 +0000 (11:53 +0000)]
Apply some cosmetic fixes to the output of the script.
Only include the decoding map if no table can be generated.
Neil Schemenauer [Tue, 25 Oct 2005 09:16:05 +0000 (09:16 +0000)]
Refactor code for translating "power" nodes.
Neil Schemenauer [Tue, 25 Oct 2005 07:54:54 +0000 (07:54 +0000)]
Write a separate ast_for_testlist_gexp() function instead of overloading
ast_for_testlist(). Also, write a ast_for_class_bases() function and in
the process fix a memory leak. Add some assertions.
Neil Schemenauer [Tue, 25 Oct 2005 06:30:14 +0000 (06:30 +0000)]
Ensure that compiler_exit_scope() is called as necessary to free memory
allocated by compiler_enter_scope(). Change return type for
compiler_exit_scope() to be void.
Marc-André Lemburg [Mon, 24 Oct 2005 12:14:59 +0000 (12:14 +0000)]
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.
Marc-André Lemburg [Mon, 24 Oct 2005 12:07:49 +0000 (12:07 +0000)]
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.
Neal Norwitz [Mon, 24 Oct 2005 01:07:47 +0000 (01:07 +0000)]
use PyAPI_FUNC instead of DL_IMPORT. are we going to deprecate the old non-Py PREFIXED macros, etc?
Neal Norwitz [Mon, 24 Oct 2005 00:30:44 +0000 (00:30 +0000)]
Do not pollute name block_ty, prefix with _Py_
Neal Norwitz [Mon, 24 Oct 2005 00:08:10 +0000 (00:08 +0000)]
Fix problem handling EXTENDED_ARGs from SF bug #
1333982
Neal Norwitz [Mon, 24 Oct 2005 00:01:37 +0000 (00:01 +0000)]
Fix compiler test when run with -u (long mode)
Neal Norwitz [Sun, 23 Oct 2005 23:00:41 +0000 (23:00 +0000)]
Fix problem handling EXTENDED_ARGs from SF bug #
1333982
Neal Norwitz [Sun, 23 Oct 2005 22:40:47 +0000 (22:40 +0000)]
cleanup a bit and reuse instrsize (instruction size). working towards fixing problems with EXTENDED_ARG
Vinay Sajip [Sun, 23 Oct 2005 22:32:59 +0000 (22:32 +0000)]
One-off "No handlers..." error message only raised if raiseExceptions is set.
Andrew M. Kuchling [Sun, 23 Oct 2005 21:52:59 +0000 (21:52 +0000)]
Add paragraphs on AST branch. AST'ers, please suggest corrections
Andrew M. Kuchling [Sun, 23 Oct 2005 21:49:32 +0000 (21:49 +0000)]
Add convenience makefile to check the latest what's new.
The invocation of Python is MacOS-specific; not sure how to make it platform indepedent (but maybe it doesn't matter)
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