]> granicus.if.org Git - python/log
python
17 years agoWhen removing indexing/slicing on exceptions some places were changed
Brett Cannon [Wed, 21 Mar 2007 22:26:20 +0000 (22:26 +0000)]
When removing indexing/slicing on exceptions some places were changed
inappropriately from ``e[0]`` to ``e.message`` instead of ``e.args[0]``.  The
reason it needs to be the last option is the dichotomy of 'message' and 'args':
'message' can be the empty string but args[0] can have a value if more than one
argument was passed.

17 years agoFix refleak in compiler.
Guido van Rossum [Wed, 21 Mar 2007 21:26:58 +0000 (21:26 +0000)]
Fix refleak in compiler.
(A symbol table entry was leaked every time a class was compiled.)

17 years agoRemove isCallable() and sequenceIncludes() from the operator module.
Collin Winter [Wed, 21 Mar 2007 20:10:51 +0000 (20:10 +0000)]
Remove isCallable() and sequenceIncludes() from the operator module.

17 years agoLittle fixes:
Neal Norwitz [Wed, 21 Mar 2007 04:45:04 +0000 (04:45 +0000)]
Little fixes:
 * make some module variables static to prevent name pollution
 * Add some comments to clarify what's going on and some XXXs to address
 * Add a space after "for" before (
 * exc_value and tb can be NULL in some cases
 * Get working on Windows (I think)

17 years agoPatch #1680961: remove sys.exitfunc and replace it with a private C API. Also, reimpl...
Collin Winter [Wed, 21 Mar 2007 02:57:17 +0000 (02:57 +0000)]
Patch #1680961: remove sys.exitfunc and replace it with a private C API. Also, reimplement atexit in C so it can take advantage of this private API.

17 years agoUse the local python binary to build the docs, not whatever 'python' is on the PATH...
Collin Winter [Wed, 21 Mar 2007 02:14:12 +0000 (02:14 +0000)]
Use the local python binary to build the docs, not whatever 'python' is on the PATH (which is probably Python 2.x, and we need 3.x).

17 years agoRun 2to3 over Doc/tools/.
Collin Winter [Wed, 21 Mar 2007 02:11:39 +0000 (02:11 +0000)]
Run 2to3 over Doc/tools/.

17 years agoMake test_socket_ssl.py pass by fixing some code that was
Guido van Rossum [Mon, 19 Mar 2007 22:26:27 +0000 (22:26 +0000)]
Make test_socket_ssl.py pass by fixing some code that was
incorrectly assuming that err.message was the Py3k way of
writing err[0] in 2.x.  The correct spelling is err.args[0].

17 years agoUse input() now that it is available.
Guido van Rossum [Mon, 19 Mar 2007 22:23:59 +0000 (22:23 +0000)]
Use input() now that it is available.

17 years ago"from ... import x" should not be a syntax error... make
Georg Brandl [Mon, 19 Mar 2007 18:56:50 +0000 (18:56 +0000)]
"from ... import x" should not be a syntax error... make
import_stmt accept ELLIPSes and DOTs.

17 years agoFix the compiler package w.r.t. the new metaclass syntax.
Guido van Rossum [Mon, 19 Mar 2007 17:56:01 +0000 (17:56 +0000)]
Fix the compiler package w.r.t. the new metaclass syntax.
(It is still broken w.r.t. the new nonlocal keyword.)

Remove a series of debug prints I accidentally left in test_ast.py.

17 years agoNEWS item for PEP 3115.
Georg Brandl [Sun, 18 Mar 2007 20:18:31 +0000 (20:18 +0000)]
NEWS item for PEP 3115.

17 years agoRefactor astgen.py with 2to3.
Georg Brandl [Sun, 18 Mar 2007 19:52:24 +0000 (19:52 +0000)]
Refactor astgen.py with 2to3.

17 years agoMake ELLIPSIS a separate token. This makes it a syntax error to write ". . ."...
Georg Brandl [Sun, 18 Mar 2007 19:01:53 +0000 (19:01 +0000)]
Make ELLIPSIS a separate token. This makes it a syntax error to write ". .    ." for Ellipsis.

17 years agoRemove the deprecated and useless "pend" argument from
Georg Brandl [Sun, 18 Mar 2007 18:35:15 +0000 (18:35 +0000)]
Remove the deprecated and useless "pend" argument from
PyFloat_FromString. (fixes bug #1650903)

17 years agoUpdate the silly version number.
Guido van Rossum [Sun, 18 Mar 2007 16:10:35 +0000 (16:10 +0000)]
Update the silly version number.

17 years agoImplement PEP 3115 -- new metaclass syntax and semantics.
Guido van Rossum [Sun, 18 Mar 2007 15:41:51 +0000 (15:41 +0000)]
Implement PEP 3115 -- new metaclass syntax and semantics.
The compiler package hasn't been updated yet; test_compiler.py fails.
Otherwise all tests seem to be passing now.  There are no occurrences
of __metaclass__ left in the standard library.
Docs have not been updated.

17 years agoBug 1679498: remove unused instance variables _readable, _writable and
Guido van Rossum [Sun, 18 Mar 2007 03:42:15 +0000 (03:42 +0000)]
Bug 1679498: remove unused instance variables _readable, _writable and
_seekable.

17 years agoBug 1679498: unset variable 'bs'.
Guido van Rossum [Sun, 18 Mar 2007 03:36:28 +0000 (03:36 +0000)]
Bug 1679498: unset variable 'bs'.

17 years agoAdd some XXX comments and fix BufferedReader signature.
Guido van Rossum [Thu, 15 Mar 2007 18:59:31 +0000 (18:59 +0000)]
Add some XXX comments and fix BufferedReader signature.

17 years agoAdd Mike Verdone (co-author of io.py and PEP 3116).
Guido van Rossum [Thu, 15 Mar 2007 18:09:35 +0000 (18:09 +0000)]
Add Mike Verdone (co-author of io.py and PEP 3116).
Daniel Stutzbach (already in) is main author of _fileio.c.

17 years agoCheck the keys of the locals dict -- they need not be a list.
Georg Brandl [Mon, 12 Mar 2007 13:15:14 +0000 (13:15 +0000)]
Check the keys of the locals dict -- they need not be a list.

17 years agoPatch #1591665: implement the __dir__() special function lookup in PyObject_Dir.
Georg Brandl [Sat, 10 Mar 2007 22:13:27 +0000 (22:13 +0000)]
Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir.

17 years agoAdd a missing forward declaration for PyFileIO_Type. The _fileio module now compiles...
Collin Winter [Thu, 8 Mar 2007 21:46:15 +0000 (21:46 +0000)]
Add a missing forward declaration for PyFileIO_Type. The _fileio module now compiles with --with-pydebug.

17 years agoMove test_unittest, test_doctest and test_doctest2 higher up in the test order
Collin Winter [Thu, 8 Mar 2007 19:54:43 +0000 (19:54 +0000)]
Move test_unittest, test_doctest and test_doctest2 higher up in the test order

17 years agoFix another unittest that broke due to dict views (more precisely, due
Guido van Rossum [Thu, 8 Mar 2007 01:17:51 +0000 (01:17 +0000)]
Fix another unittest that broke due to dict views (more precisely, due
to the cowboy way they are currently hacked in).

17 years agoFix embarrassing syntax mix.
Guido van Rossum [Thu, 8 Mar 2007 01:02:00 +0000 (01:02 +0000)]
Fix embarrassing syntax mix.

17 years agoCheck in Daniel Stutzbach's _fileio.c and test_fileio.py
Guido van Rossum [Thu, 8 Mar 2007 00:43:48 +0000 (00:43 +0000)]
Check in Daniel Stutzbach's _fileio.c and test_fileio.py
(see SF#1671314) with small tweaks.
The io module now uses this instead of its own implementation
of the FileIO class, if it can import _fileio.

17 years agoDelete TESTFN after the test.
Guido van Rossum [Wed, 7 Mar 2007 22:59:39 +0000 (22:59 +0000)]
Delete TESTFN after the test.

17 years agoChange the specs for readinto() -- it should *not* shorten the buffer to
Guido van Rossum [Wed, 7 Mar 2007 05:23:25 +0000 (05:23 +0000)]
Change the specs for readinto() -- it should *not* shorten the buffer to
the amount of data read.

17 years agoNew version from Mike Verdone (sat in my inbox since 2/27).
Guido van Rossum [Wed, 7 Mar 2007 01:00:12 +0000 (01:00 +0000)]
New version from Mike Verdone (sat in my inbox since 2/27).

I cleaned up whitespace but otherwise didn't change it.

This will need work to reflect the tentative decision to drop nonblocking I/O
support from the buffering layers.

17 years agoAddendum of patch #1669633: additional tests for bytes methods.
Georg Brandl [Tue, 6 Mar 2007 19:16:20 +0000 (19:16 +0000)]
Addendum of patch #1669633: additional tests for bytes methods.

18 years agoFinal part of SF# 1607548 by Tony Lownds: fix pydoc and inspect.
Guido van Rossum [Wed, 28 Feb 2007 22:03:49 +0000 (22:03 +0000)]
Final part of SF# 1607548 by Tony Lownds: fix pydoc and inspect.

18 years agoregenerated to reflect the addition of 'nonlocal' and removal of 'print'
Jack Diederich [Wed, 28 Feb 2007 20:21:30 +0000 (20:21 +0000)]
regenerated to reflect the addition of 'nonlocal' and removal of 'print'

18 years agoRegenerate symbol.py.
Guido van Rossum [Wed, 28 Feb 2007 00:40:24 +0000 (00:40 +0000)]
Regenerate symbol.py.
This fixes test_compiler, test_transformer, and test_parser.

18 years agoUse __builtin__, not __builtins__.
Brett Cannon [Wed, 28 Feb 2007 00:32:07 +0000 (00:32 +0000)]
Use __builtin__, not __builtins__.

18 years agoFix test_pep352 to deal with the removal of the 'exceptions' module.
Brett Cannon [Wed, 28 Feb 2007 00:01:43 +0000 (00:01 +0000)]
Fix test_pep352 to deal with the removal of the 'exceptions' module.

18 years agoFix off-by-one bug in memmove() call in bytes_insert().
Guido van Rossum [Tue, 27 Feb 2007 20:57:45 +0000 (20:57 +0000)]
Fix off-by-one bug in memmove() call in bytes_insert().
Fix by Pete Shinners (for his own bug :-).

18 years agoFix httplib for removal of slicing from exceptions.
Brett Cannon [Tue, 27 Feb 2007 20:16:38 +0000 (20:16 +0000)]
Fix httplib for removal of slicing from exceptions.

18 years agoCommit version bump.
Brett Cannon [Tue, 27 Feb 2007 20:16:01 +0000 (20:16 +0000)]
Commit version bump.

18 years agoSF patch #1670209, Remove Py_PROTO from socket by Pete Shinners.
Neal Norwitz [Tue, 27 Feb 2007 19:06:23 +0000 (19:06 +0000)]
SF patch #1670209, Remove Py_PROTO from socket by Pete Shinners.

18 years agoSF patch #1669633, add methods for bytes from Pete Shinners.
Neal Norwitz [Tue, 27 Feb 2007 19:02:19 +0000 (19:02 +0000)]
SF patch #1669633, add methods for bytes from Pete Shinners.

18 years agoFix breakage from removing exceptions module
Neal Norwitz [Tue, 27 Feb 2007 18:58:52 +0000 (18:58 +0000)]
Fix breakage from removing exceptions module

18 years agoMike Verdone's checkpoint, cleaned up.
Guido van Rossum [Tue, 27 Feb 2007 17:19:33 +0000 (17:19 +0000)]
Mike Verdone's checkpoint, cleaned up.
Also implemented Neal's suggestion (add fileno() to SocketIO)
and some unrelated changes, e.g. remove Google copyright
and make BytesIO a subclass of BufferedIOBase.

18 years agoAdd news about nonlocal statement
Jeremy Hylton [Tue, 27 Feb 2007 15:53:28 +0000 (15:53 +0000)]
Add news about nonlocal statement

18 years agoAdded some comments and docstrings. More is needed.
Guido van Rossum [Tue, 27 Feb 2007 15:45:13 +0000 (15:45 +0000)]
Added some comments and docstrings.  More is needed.

18 years agoRemove a few stray tabs from bytesobject.c.
Georg Brandl [Tue, 27 Feb 2007 08:49:18 +0000 (08:49 +0000)]
Remove a few stray tabs from bytesobject.c.

18 years agoImplement bytes.fromhex(), with tests.
Georg Brandl [Tue, 27 Feb 2007 08:40:54 +0000 (08:40 +0000)]
Implement bytes.fromhex(), with tests.

18 years agoI assume this was supposed to be Py_ssize_t since there are no uses of plain ssize_t.
Neal Norwitz [Tue, 27 Feb 2007 06:57:32 +0000 (06:57 +0000)]
I assume this was supposed to be Py_ssize_t since there are no uses of plain ssize_t.

18 years agoProvisional implementation of PEP 3104.
Jeremy Hylton [Tue, 27 Feb 2007 06:50:52 +0000 (06:50 +0000)]
Provisional implementation of PEP 3104.

Add nonlocal_stmt to Grammar and Nonlocal node to AST.  They both
parallel the definitions for globals.  The symbol table treats
variables declared as nonlocal just like variables that are free
implicitly.

This change is missing the language spec changes, but makes some
decisions about what the spec should say via the unittests.  The PEP
is silent on a number of decisions, so we should review those before
claiming that nonlocal is complete.

Thomas Wouters made the grammer and ast changes.  Jeremy Hylton added
the symbol table changes and the tests.  Pete Shinners and Neal
Norwitz helped review the code.

18 years agoAdd some XXX comments for Guido to look at.
Neal Norwitz [Tue, 27 Feb 2007 06:26:14 +0000 (06:26 +0000)]
Add some XXX comments for Guido to look at.

18 years agoCheckpoint for new I/O library.
Guido van Rossum [Tue, 27 Feb 2007 05:47:44 +0000 (05:47 +0000)]
Checkpoint for new I/O library.

18 years agoFix some silly uses of KEYS, ITEMS, VALUES.
Guido van Rossum [Tue, 27 Feb 2007 05:47:18 +0000 (05:47 +0000)]
Fix some silly uses of KEYS, ITEMS, VALUES.

18 years agoRemove duplicate refs to int from int/long unification presumably. (There might...
Neal Norwitz [Tue, 27 Feb 2007 03:41:04 +0000 (03:41 +0000)]
Remove duplicate refs to int from int/long unification presumably.  (There might be more refs like these.)

18 years agoRemove the ability to slice/index on exceptions per PEP 352.
Brett Cannon [Tue, 27 Feb 2007 00:15:55 +0000 (00:15 +0000)]
Remove the ability to slice/index on exceptions per PEP 352.

18 years agoTweak the fix for test_traceback since the fix for it to run on its own broke
Brett Cannon [Tue, 27 Feb 2007 00:12:43 +0000 (00:12 +0000)]
Tweak the fix for test_traceback since the fix for it to run on its own broke
it under regrtest.  'traceback' likes to strip out the module name if it is
__main__ or __builtin__ but not in other cases.

18 years agoFix a broken test in test_traceback where the module name was being tacked on
Brett Cannon [Mon, 26 Feb 2007 23:33:27 +0000 (23:33 +0000)]
Fix a broken test in test_traceback where the module name was being tacked on
needlessly.

18 years agoAdd TODO
Neal Norwitz [Mon, 26 Feb 2007 23:12:28 +0000 (23:12 +0000)]
Add TODO

18 years agoRemove the exceptions builtin module, all the exceptions are already builtin.
Neal Norwitz [Mon, 26 Feb 2007 22:22:47 +0000 (22:22 +0000)]
Remove the exceptions builtin module, all the exceptions are already builtin.

18 years agoFix another loop over a dict that may change... :-(
Guido van Rossum [Mon, 26 Feb 2007 22:21:25 +0000 (22:21 +0000)]
Fix another loop over a dict that may change... :-(

18 years agoAdd -d/--debug option to print traceback without -v/--verbose.
Guido van Rossum [Mon, 26 Feb 2007 22:01:28 +0000 (22:01 +0000)]
Add -d/--debug option to print traceback without -v/--verbose.

18 years agoMake it so TypeError is raised if an instance of an object is put in an
Brett Cannon [Mon, 26 Feb 2007 22:01:14 +0000 (22:01 +0000)]
Make it so TypeError is raised if an instance of an object is put in an
'except' clause.  Also refactor some code to help keep Neal Norwitz happy.

18 years agoThe raw_input name was removed, but the implementation was moved to input.
Neal Norwitz [Mon, 26 Feb 2007 21:42:55 +0000 (21:42 +0000)]
The raw_input name was removed, but the implementation was moved to input.
So don't declare that it was removed, just leave the original description.

18 years agoraw_input() really was removed, only input() was resurrected.
Neal Norwitz [Mon, 26 Feb 2007 21:35:59 +0000 (21:35 +0000)]
raw_input() really was removed, only input() was resurrected.

18 years agoTwo more patches by Tony Lownds (SF# 1607548).
Guido van Rossum [Mon, 26 Feb 2007 21:23:50 +0000 (21:23 +0000)]
Two more patches by Tony Lownds (SF# 1607548).

(1)
Combines the code paths for MAKE_FUNCTION and MAKE_CLOSURE.
Fixes a crash where functions with closures and either annotations or
keyword-only arguments result in MAKE_CLOSURE, but only
MAKE_FUNCTION has the code to handle annotations or keyword-only
arguments.
Includes enough tests to trigger the bug.

(2)
Change peepholer to not bail in the presence of EXTENDED_ARG +
MAKE_FUNCTION.
Enforce the natural 16-bit limit of annotations in compile.c.

Also update Misc/NEWS with the "input = raw_input" change.

18 years agoYou can no longer catch non-BaseException objects; TypeError is raised if such
Brett Cannon [Mon, 26 Feb 2007 21:10:16 +0000 (21:10 +0000)]
You can no longer catch non-BaseException objects; TypeError is raised if such
an object is listed in an 'except' clause.

18 years agoWhoops, fix build breakage. There were still a few uses of the bool type.
Neal Norwitz [Mon, 26 Feb 2007 19:14:12 +0000 (19:14 +0000)]
Whoops, fix build breakage.  There were still a few uses of the bool type.
Remove the last few uses of bool/true/false.

18 years agobool is no longer required, it was only used for the print statement
Neal Norwitz [Mon, 26 Feb 2007 19:04:49 +0000 (19:04 +0000)]
bool is no longer required, it was only used for the print statement

18 years agoMerged revisions 53912-53951 via svnmerge from
Thomas Wouters [Mon, 26 Feb 2007 18:20:15 +0000 (18:20 +0000)]
Merged revisions 53912-53951 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r53919 | thomas.wouters | 2007-02-25 23:12:31 +0100 (Sun, 25 Feb 2007) | 8 lines

  Backported r51621 from p3yk:

  Don't use a fixed temporary name (gdbm).
  Don't use our own temp name creation (dbm).
  Should be backported to 2.5.
........
  r53935 | georg.brandl | 2007-02-26 14:51:29 +0100 (Mon, 26 Feb 2007) | 2 lines

  Backport from Py3k branch: fix refleak in PyString_Format.
........
  r53943 | jeremy.hylton | 2007-02-26 17:14:51 +0100 (Mon, 26 Feb 2007) | 2 lines

  Reformat long lines.
........
  r53947 | neal.norwitz | 2007-02-26 18:01:08 +0100 (Mon, 26 Feb 2007) | 1 line

  Add Steven Bethard to help out with patches.
........
  r53949 | georg.brandl | 2007-02-26 18:09:03 +0100 (Mon, 26 Feb 2007) | 3 lines

  Fix typo.
........
  r53951 | neal.norwitz | 2007-02-26 19:10:47 +0100 (Mon, 26 Feb 2007) | 5 lines

  Fix a couple of problems in generating the AST code:
   * use %r instead of backticks since backticks are going away in Py3k
   * PyArena_Malloc() already sets PyErr_NoMemory so we don't need to do it again
   * the signature for ast2obj_int incorrectly used a bool, rather than a long
........

18 years agoAdd raw_input() back, named input(). Revive the old unittests too.
Guido van Rossum [Mon, 26 Feb 2007 16:59:55 +0000 (16:59 +0000)]
Add raw_input() back, named input().  Revive the old unittests too.

18 years agoAdd a partial list of limitations, stripping out some corresponding XXX comments.
Guido van Rossum [Mon, 26 Feb 2007 16:57:52 +0000 (16:57 +0000)]
Add a partial list of limitations, stripping out some corresponding XXX comments.

18 years agoChange a test to be more predictable.
Guido van Rossum [Mon, 26 Feb 2007 15:59:50 +0000 (15:59 +0000)]
Change a test to be more predictable.
The problem with using random.random is that several modules and tests do
"from random in random" which confuses pickle.whichmodule().

18 years agoAnother refleak, this time in PyLong_AsLong. Fixes leaks showing in
Georg Brandl [Mon, 26 Feb 2007 14:46:30 +0000 (14:46 +0000)]
Another refleak, this time in PyLong_AsLong. Fixes leaks showing in
test_getargs2 and test_email.

18 years agoUse better idiom to sort keys.
Guido van Rossum [Mon, 26 Feb 2007 14:08:27 +0000 (14:08 +0000)]
Use better idiom to sort keys.

18 years agoFix a refleak in the MAKE_FUNCTION opcode in ceval.c.
Georg Brandl [Mon, 26 Feb 2007 13:58:18 +0000 (13:58 +0000)]
Fix a refleak in the MAKE_FUNCTION opcode in ceval.c.

18 years agoFix a refleak in PyString_Format.
Georg Brandl [Mon, 26 Feb 2007 13:48:28 +0000 (13:48 +0000)]
Fix a refleak in PyString_Format.

18 years agoFix refleaks in function objects caused by kwdefaults not being allocated.
Georg Brandl [Mon, 26 Feb 2007 12:28:57 +0000 (12:28 +0000)]
Fix refleaks in function objects caused by kwdefaults not being allocated.

Should func_new be extended to support a "kwdefaults" arg?

18 years agoFix leak in the print function.
Georg Brandl [Mon, 26 Feb 2007 10:35:10 +0000 (10:35 +0000)]
Fix leak in the print function.

18 years agoFix token.py main code vs. dict views.
Georg Brandl [Mon, 26 Feb 2007 09:41:19 +0000 (09:41 +0000)]
Fix token.py main code vs. dict views.

18 years agoFix a bizarre error where test_pickletools fails if preceded by test_pyclbr.
Guido van Rossum [Mon, 26 Feb 2007 07:07:02 +0000 (07:07 +0000)]
Fix a bizarre error where test_pickletools fails if preceded by test_pyclbr.
The fix is in neither, but in pickle.py where a loop over sys.modules.items()
could modify sys.modules, occasionally.

18 years agoDon't confound Neil S on b"a"[0] = b"b".
Guido van Rossum [Mon, 26 Feb 2007 05:44:27 +0000 (05:44 +0000)]
Don't confound Neil S on b"a"[0] = b"b".

18 years agoput a missing curly brace
George Yoshida [Mon, 26 Feb 2007 01:58:37 +0000 (01:58 +0000)]
put a missing curly brace

18 years agoThese comments aren't relevant for 3k. They were to support modules compiled
Neal Norwitz [Sun, 25 Feb 2007 23:47:19 +0000 (23:47 +0000)]
These comments aren't relevant for 3k.  They were to support modules compiled
before the PyNumberMethods were added which was 2.0 I think.

18 years agoFix merge bug (lost line causing syntax error).
Guido van Rossum [Sun, 25 Feb 2007 22:37:36 +0000 (22:37 +0000)]
Fix merge bug (lost line causing syntax error).

18 years agoUse Glyph's trick to ensure that __globals__ is set properly.
Guido van Rossum [Sun, 25 Feb 2007 21:22:21 +0000 (21:22 +0000)]
Use Glyph's trick to ensure that __globals__ is set properly.

18 years agoAdd a proper unit test for xreload.py.
Guido van Rossum [Sun, 25 Feb 2007 21:03:54 +0000 (21:03 +0000)]
Add a proper unit test for xreload.py.

18 years agoChange all the function attributes from func_* -> __*__. This gets rid
Neal Norwitz [Sun, 25 Feb 2007 20:55:47 +0000 (20:55 +0000)]
Change all the function attributes from func_* -> __*__.  This gets rid
of func_name, func_dict and func_doc as they already exist as __name__,
__dict__ and __doc__.

18 years agoMerged revisions 53875-53911 via svnmerge from
Thomas Wouters [Sun, 25 Feb 2007 20:39:11 +0000 (20:39 +0000)]
Merged revisions 53875-53911 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r53899 | neal.norwitz | 2007-02-25 16:52:27 +0100 (Sun, 25 Feb 2007) | 1 line

  Add more details when releasing interned strings
........
  r53900 | neal.norwitz | 2007-02-25 16:53:36 +0100 (Sun, 25 Feb 2007) | 1 line

  Whitespace only changes
........
  r53901 | jeremy.hylton | 2007-02-25 16:57:45 +0100 (Sun, 25 Feb 2007) | 8 lines

  Fix crash in exec when unicode filename can't be decoded.

  I can't think of an easy way to test this behavior.  It only occurs
  when the file system default encoding and the interpreter default
  encoding are different, such that you can open the file but not decode
  its name.
........
  r53902 | jeremy.hylton | 2007-02-25 17:01:58 +0100 (Sun, 25 Feb 2007) | 2 lines

  Put declarations before code.
........
  r53910 | fred.drake | 2007-02-25 18:56:27 +0100 (Sun, 25 Feb 2007) | 3 lines

  - SF patch #1657613: add documentation for the Element interface
  - clean up bogus use of the {datadescni} environment everywhere
........
  r53911 | neal.norwitz | 2007-02-25 20:44:48 +0100 (Sun, 25 Feb 2007) | 17 lines

  Variation of patch # 1624059 to speed up checking if an object is a subclass
  of some of the common builtin types.

  Use a bit in tp_flags for each common builtin type.  Check the bit
  to determine if any instance is a subclass of these common types.
  The check avoids a function call and O(n) search of the base classes.
  The check is done in the various Py*_Check macros rather than calling
  PyType_IsSubtype().

  All the bits are set in tp_flags when the type is declared
  in the Objects/*object.c files because PyType_Ready() is not called
  for all the types.  Should PyType_Ready() be called for all types?
  If so and the change is made, the changes to the Objects/*object.c files
  can be reverted (remove setting the tp_flags).  Objects/typeobject.c
  would also have to be modified to add conditions
  for Py*_CheckExact() in addition to each the PyType_IsSubtype check.
........

18 years agoAdd support for static and class methods.
Guido van Rossum [Sun, 25 Feb 2007 16:19:20 +0000 (16:19 +0000)]
Add support for static and class methods.

18 years agoFix typo
Neal Norwitz [Sun, 25 Feb 2007 15:02:38 +0000 (15:02 +0000)]
Fix typo

18 years agoFirst draft of a different solution to the reload() problem.
Guido van Rossum [Sun, 25 Feb 2007 05:08:26 +0000 (05:08 +0000)]
First draft of a different solution to the reload() problem.

18 years agoMake bytes_repr return a string containing a b"" literal.
Georg Brandl [Sat, 24 Feb 2007 19:41:35 +0000 (19:41 +0000)]
Make bytes_repr return a string containing a b"" literal.

18 years agoMerged revisions 53859-53874 via svnmerge from
Thomas Wouters [Fri, 23 Feb 2007 20:24:22 +0000 (20:24 +0000)]
Merged revisions 53859-53874 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r53861 | neal.norwitz | 2007-02-23 01:22:39 +0100 (Fri, 23 Feb 2007) | 1 line

  Fix typo in comment
........
  r53864 | brett.cannon | 2007-02-23 15:28:25 +0100 (Fri, 23 Feb 2007) | 3 lines

  Refactor PEP 352 tests to make it easier in the future to make sure certain
  things cannot be raised or caught.
........

18 years agoPrevent regeneration.
Thomas Wouters [Fri, 23 Feb 2007 20:11:29 +0000 (20:11 +0000)]
Prevent regeneration.

18 years agoTouch file to regenerate Python-ast.[ch]
Thomas Wouters [Fri, 23 Feb 2007 20:00:10 +0000 (20:00 +0000)]
Touch file to regenerate Python-ast.[ch]

18 years agoBytes literal.
Thomas Wouters [Fri, 23 Feb 2007 19:56:57 +0000 (19:56 +0000)]
Bytes literal.

18 years agoMerged revisions 53623-53858 via svnmerge from
Thomas Wouters [Fri, 23 Feb 2007 15:07:44 +0000 (15:07 +0000)]
Merged revisions 53623-53858 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r53624 | peter.astrand | 2007-02-02 20:06:36 +0100 (Fri, 02 Feb 2007) | 1 line

  We had several if statements checking the value of a fd. This is unsafe, since valid fds might be zero. We should check for not None instead.
........
  r53635 | kurt.kaiser | 2007-02-05 07:03:18 +0100 (Mon, 05 Feb 2007) | 2 lines

  Add 'raw' support to configHandler. Patch 1650174 Tal Einat.
........
  r53641 | kurt.kaiser | 2007-02-06 00:02:16 +0100 (Tue, 06 Feb 2007) | 5 lines

  1. Calltips now 'handle' tuples in the argument list (display '<tuple>' :)
     Suggested solution by Christos Georgiou, Bug 791968.
  2. Clean up tests, were not failing when they should have been.
  4. Remove some camelcase and an unneeded try/except block.
........
  r53644 | kurt.kaiser | 2007-02-06 04:21:40 +0100 (Tue, 06 Feb 2007) | 2 lines

  Clean up ModifiedInterpreter.runcode() structure
........
  r53646 | peter.astrand | 2007-02-06 16:37:50 +0100 (Tue, 06 Feb 2007) | 1 line

  Applied patch 1124861.3.patch to solve bug #1124861: Automatically create pipes on Windows, if GetStdHandle fails. Will backport.
........
  r53648 | lars.gustaebel | 2007-02-06 19:38:13 +0100 (Tue, 06 Feb 2007) | 4 lines

  Patch #1652681: create nonexistent files in append mode and
  allow appending to empty files.
........
  r53649 | kurt.kaiser | 2007-02-06 20:09:43 +0100 (Tue, 06 Feb 2007) | 4 lines

  Updated patch (CodeContext.061217.patch) to
  [ 1362975 ] CodeContext - Improved text indentation
  Tal Einat 16Dec06
........
  r53650 | kurt.kaiser | 2007-02-06 20:21:19 +0100 (Tue, 06 Feb 2007) | 2 lines

  narrow exception per [ 1540849 ] except too broad
........
  r53653 | kurt.kaiser | 2007-02-07 04:39:41 +0100 (Wed, 07 Feb 2007) | 4 lines

  [ 1621265 ] Auto-completion list placement
  Move AC window below input line unless not enough space, then put it above.
  Patch: Tal Einat
........
  r53654 | kurt.kaiser | 2007-02-07 09:07:13 +0100 (Wed, 07 Feb 2007) | 2 lines

  Handle AttributeError during calltip lookup
........
  r53656 | raymond.hettinger | 2007-02-07 21:08:22 +0100 (Wed, 07 Feb 2007) | 3 lines

  SF #1615701:  make d.update(m) honor __getitem__() and keys() in dict subclasses
........
  r53658 | raymond.hettinger | 2007-02-07 22:04:20 +0100 (Wed, 07 Feb 2007) | 1 line

  SF: 1397711 Set docs conflated immutable and hashable
........
  r53660 | raymond.hettinger | 2007-02-07 22:42:17 +0100 (Wed, 07 Feb 2007) | 1 line

  Check for a common user error with defaultdict().
........
  r53662 | raymond.hettinger | 2007-02-07 23:24:07 +0100 (Wed, 07 Feb 2007) | 1 line

  Bug #1575169: operator.isSequenceType() now returns False for subclasses of dict.
........
  r53664 | raymond.hettinger | 2007-02-08 00:49:03 +0100 (Thu, 08 Feb 2007) | 1 line

  Silence compiler warning
........
  r53666 | raymond.hettinger | 2007-02-08 01:07:32 +0100 (Thu, 08 Feb 2007) | 1 line

  Do not let overflows in enumerate() and count() pass silently.
........
  r53668 | raymond.hettinger | 2007-02-08 01:50:39 +0100 (Thu, 08 Feb 2007) | 1 line

  Bypass set specific optimizations for set and frozenset subclasses.
........
  r53670 | raymond.hettinger | 2007-02-08 02:42:35 +0100 (Thu, 08 Feb 2007) | 1 line

  Fix docstring bug
........
  r53671 | martin.v.loewis | 2007-02-08 10:13:36 +0100 (Thu, 08 Feb 2007) | 3 lines

  Bug #1653736: Complain about keyword arguments to time.isoformat.
  Will backport to 2.5.
........
  r53679 | kurt.kaiser | 2007-02-08 23:58:18 +0100 (Thu, 08 Feb 2007) | 6 lines

  Corrected some bugs in AutoComplete.  Also, Page Up/Down in ACW implemented;
  mouse and cursor selection in ACWindow implemented; double Tab inserts current
  selection and closes ACW (similar to double-click and Return); scroll wheel now
  works in ACW.  Added AutoComplete instructions to IDLE Help.
........
  r53689 | martin.v.loewis | 2007-02-09 13:19:32 +0100 (Fri, 09 Feb 2007) | 3 lines

  Bug #1653736: Properly discard third argument to slot_nb_inplace_power.
  Will backport.
........
  r53691 | martin.v.loewis | 2007-02-09 13:36:48 +0100 (Fri, 09 Feb 2007) | 4 lines

  Bug #1600860: Search for shared python library in LIBDIR, not
  lib/python/config, on "linux" and "gnu" systems.
  Will backport.
........
  r53693 | martin.v.loewis | 2007-02-09 13:58:49 +0100 (Fri, 09 Feb 2007) | 2 lines

  Update broken link. Will backport to 2.5.
........
  r53697 | georg.brandl | 2007-02-09 19:48:41 +0100 (Fri, 09 Feb 2007) | 2 lines

  Bug #1656078: typo in in profile docs.
........
  r53731 | brett.cannon | 2007-02-11 06:36:00 +0100 (Sun, 11 Feb 2007) | 3 lines

  Change a very minor inconsistency (that is purely cosmetic) in the AST
  definition.
........
  r53735 | skip.montanaro | 2007-02-11 19:24:37 +0100 (Sun, 11 Feb 2007) | 1 line

  fix trace.py --ignore-dir
........
  r53741 | brett.cannon | 2007-02-11 20:44:41 +0100 (Sun, 11 Feb 2007) | 3 lines

  Check in changed Python-ast.c from a cosmetic change to Python.asdl (in
  r53731).
........
  r53751 | brett.cannon | 2007-02-12 04:51:02 +0100 (Mon, 12 Feb 2007) | 5 lines

  Modify Parser/asdl_c.py so that the __version__ number for Python/Python-ast.c
  is specified at the top of the file.  Also add a note that Python/Python-ast.c
  needs to be committed separately after a change to the AST grammar to capture
  the revision number of the change (which is what __version__ is set to).
........
  r53752 | lars.gustaebel | 2007-02-12 10:25:53 +0100 (Mon, 12 Feb 2007) | 3 lines

  Bug #1656581: Point out that external file objects are supposed to be
  at position 0.
........
  r53754 | martin.v.loewis | 2007-02-12 13:21:10 +0100 (Mon, 12 Feb 2007) | 3 lines

  Patch 1463026: Support default namespace in XMLGenerator.
  Fixes #847665. Will backport.
........
  r53757 | armin.rigo | 2007-02-12 17:23:24 +0100 (Mon, 12 Feb 2007) | 4 lines

  Fix the line to what is my guess at the original author's meaning.
  (The line has no effect anyway, but is present because it's
  customary call the base class __init__).
........
  r53763 | martin.v.loewis | 2007-02-13 09:34:45 +0100 (Tue, 13 Feb 2007) | 3 lines

  Patch #685268: Consider a package's __path__ in imputil.
  Will backport.
........
  r53765 | martin.v.loewis | 2007-02-13 10:49:38 +0100 (Tue, 13 Feb 2007) | 2 lines

  Patch #698833: Support file decryption in zipfile.
........
  r53766 | martin.v.loewis | 2007-02-13 11:10:39 +0100 (Tue, 13 Feb 2007) | 3 lines

  Patch #1517891: Make 'a' create the file if it doesn't exist.
  Fixes #1514451.
........
  r53767 | martin.v.loewis | 2007-02-13 13:08:24 +0100 (Tue, 13 Feb 2007) | 3 lines

  Bug #1658794: Remove extraneous 'this'.
  Will backport to 2.5.
........
  r53769 | martin.v.loewis | 2007-02-13 13:14:19 +0100 (Tue, 13 Feb 2007) | 3 lines

  Patch #1657276: Make NETLINK_DNRTMSG conditional.
  Will backport.
........
  r53771 | lars.gustaebel | 2007-02-13 17:09:24 +0100 (Tue, 13 Feb 2007) | 4 lines

  Patch #1647484: Renamed GzipFile's filename attribute to name. The
  filename attribute is still accessible as a property that emits a
  DeprecationWarning.
........
  r53772 | lars.gustaebel | 2007-02-13 17:24:00 +0100 (Tue, 13 Feb 2007) | 3 lines

  Strip the '.gz' extension from the filename that is written to the
  gzip header.
........
  r53774 | martin.v.loewis | 2007-02-14 11:07:37 +0100 (Wed, 14 Feb 2007) | 2 lines

  Patch #1432399: Add HCI sockets.
........
  r53775 | martin.v.loewis | 2007-02-14 12:30:07 +0100 (Wed, 14 Feb 2007) | 2 lines

  Update 1432399 to removal of _BT_SOCKADDR_MEMB.
........
  r53776 | martin.v.loewis | 2007-02-14 12:30:56 +0100 (Wed, 14 Feb 2007) | 3 lines

  Ignore directory time stamps when considering
  whether to rerun libffi configure.
........
  r53778 | lars.gustaebel | 2007-02-14 15:45:12 +0100 (Wed, 14 Feb 2007) | 4 lines

  A missing binary mode in AppendTest caused failures in Windows
  Buildbot.
........
  r53782 | martin.v.loewis | 2007-02-15 10:51:35 +0100 (Thu, 15 Feb 2007) | 2 lines

  Patch #1397848: add the reasoning behind no-resize-on-shrinkage.
........
  r53783 | georg.brandl | 2007-02-15 11:37:59 +0100 (Thu, 15 Feb 2007) | 2 lines

  Make functools.wraps() docs a bit clearer.
........
  r53785 | georg.brandl | 2007-02-15 12:29:04 +0100 (Thu, 15 Feb 2007) | 2 lines

  Patch #1494140: Add documentation for the new struct.Struct object.
........
  r53787 | georg.brandl | 2007-02-15 12:29:55 +0100 (Thu, 15 Feb 2007) | 2 lines

  Add missing \versionadded.
........
  r53800 | brett.cannon | 2007-02-15 23:54:39 +0100 (Thu, 15 Feb 2007) | 11 lines

  Update the encoding package's search function to use absolute imports when
  calling __import__.  This helps make the expected search locations for encoding
  modules be more explicit.

  One could use an explicit value for __path__ when making the call to __import__
  to force the exact location searched for encodings.  This would give the most
  strict search path possible if one is worried about malicious code being
  imported.  The unfortunate side-effect of that is that if __path__ was modified
  on 'encodings' on purpose in a safe way it would not be picked up in future
  __import__ calls.
........
  r53801 | brett.cannon | 2007-02-16 20:33:01 +0100 (Fri, 16 Feb 2007) | 2 lines

  Make the __import__ call in encodings.__init__ absolute with a level 0 call.
........
  r53809 | vinay.sajip | 2007-02-16 23:36:24 +0100 (Fri, 16 Feb 2007) | 1 line

  Minor fix for currentframe (SF #1652788).
........
  r53818 | raymond.hettinger | 2007-02-19 03:03:19 +0100 (Mon, 19 Feb 2007) | 3 lines

  Extend work on revision 52962:  Eliminate redundant calls to PyObject_Hash().
........
  r53820 | raymond.hettinger | 2007-02-19 05:08:43 +0100 (Mon, 19 Feb 2007) | 1 line

  Add merge() function to heapq.
........
  r53821 | raymond.hettinger | 2007-02-19 06:28:28 +0100 (Mon, 19 Feb 2007) | 1 line

  Add tie-breaker count to preserve sort stability.
........
  r53822 | raymond.hettinger | 2007-02-19 07:59:32 +0100 (Mon, 19 Feb 2007) | 1 line

  Use C heapreplace() instead of slower _siftup() in pure python.
........
  r53823 | raymond.hettinger | 2007-02-19 08:30:21 +0100 (Mon, 19 Feb 2007) | 1 line

  Add test for merge stability
........
  r53824 | raymond.hettinger | 2007-02-19 10:14:10 +0100 (Mon, 19 Feb 2007) | 1 line

  Provide an example of defaultdict with non-zero constant factory function.
........
  r53825 | lars.gustaebel | 2007-02-19 10:54:47 +0100 (Mon, 19 Feb 2007) | 2 lines

  Moved misplaced news item.
........
  r53826 | martin.v.loewis | 2007-02-19 11:55:19 +0100 (Mon, 19 Feb 2007) | 3 lines

  Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()
  functions on platforms where the underlying system calls are available.
........
  r53827 | raymond.hettinger | 2007-02-19 19:15:04 +0100 (Mon, 19 Feb 2007) | 1 line

  Fixup docstrings for merge().
........
  r53829 | raymond.hettinger | 2007-02-19 21:44:04 +0100 (Mon, 19 Feb 2007) | 1 line

  Fixup set/dict interoperability.
........
  r53837 | raymond.hettinger | 2007-02-21 06:20:38 +0100 (Wed, 21 Feb 2007) | 1 line

  Add itertools.izip_longest().
........
  r53838 | raymond.hettinger | 2007-02-21 18:22:05 +0100 (Wed, 21 Feb 2007) | 1 line

  Remove filler struct item and fix leak.
........

18 years agoFix the last two tests.
Guido van Rossum [Thu, 22 Feb 2007 23:55:25 +0000 (23:55 +0000)]
Fix the last two tests.
Thanks to Brett for fixing so many before!
I see some tracebacks from threads when testing test_bsddbd3 (on OSX)
but the test claims to pass, so I'm ignoring these.

18 years agoFix test_bsddb3 (along with something bsddb) to work with dict views.
Brett Cannon [Thu, 22 Feb 2007 06:40:59 +0000 (06:40 +0000)]
Fix test_bsddb3 (along with something bsddb) to work with dict views.

18 years agoFix obvious problems from switch to dict views. Some tests still fail over
Brett Cannon [Thu, 22 Feb 2007 06:12:19 +0000 (06:12 +0000)]
Fix obvious problems from switch to dict views.  Some tests still fail over
some reference count issue (I think).