]> granicus.if.org Git - python/log
python
17 years agoAdded a working Text I/O layer, by Mark Russell.
Guido van Rossum [Fri, 6 Apr 2007 17:31:18 +0000 (17:31 +0000)]
Added a working Text I/O layer, by Mark Russell.
This is essentially a checkpoint.

17 years agomake the markup match that of the trunk to avoid insane spread of
Fred Drake [Thu, 29 Mar 2007 23:11:24 +0000 (23:11 +0000)]
make the markup match that of the trunk to avoid insane spread of
mystery italics

17 years agoFix refcounting bug reported by Amaury Forgeot d'Arc.
Guido van Rossum [Thu, 29 Mar 2007 20:49:57 +0000 (20:49 +0000)]
Fix refcounting bug reported by Amaury Forgeot d'Arc.

17 years agoMake readonly members defined in C throw an AttributeError on modification. This...
Collin Winter [Wed, 28 Mar 2007 21:44:53 +0000 (21:44 +0000)]
Make readonly members defined in C throw an AttributeError on modification. This brings them into sync with Python-level attributes. Fixes bug #1687163.

17 years agoMore fixes related to removal of exception slicing.
Guido van Rossum [Wed, 28 Mar 2007 21:03:48 +0000 (21:03 +0000)]
More fixes related to removal of exception slicing.

17 years agoFix errors in bsddb3 tests due to removal of exception slicing.
Guido van Rossum [Wed, 28 Mar 2007 21:02:43 +0000 (21:02 +0000)]
Fix errors in bsddb3 tests due to removal of exception slicing.

(There was also a segfault but it disappeared when the tests
stopped erroring out; I presume the segfault is a pre-existing
problem somewhere in a destructor.)

17 years agoMoving xreload to the sandbox for now.
Guido van Rossum [Wed, 28 Mar 2007 00:30:15 +0000 (00:30 +0000)]
Moving xreload to the sandbox for now.

17 years agoBy default, != returns the opposite of ==, unless the latter returns
Guido van Rossum [Tue, 27 Mar 2007 22:37:34 +0000 (22:37 +0000)]
By default, != returns the opposite of ==, unless the latter returns
NotImplemented.

(Is this worth backporting to 2.6?  It seems so useful...!)

17 years agoLooks like this file wasn't checked in.
Guido van Rossum [Tue, 27 Mar 2007 22:34:34 +0000 (22:34 +0000)]
Looks like this file wasn't checked in.

17 years agoFix two bugs related to the remove of exception subscripting.
Collin Winter [Tue, 27 Mar 2007 04:55:27 +0000 (04:55 +0000)]
Fix two bugs related to the remove of exception subscripting.

17 years agoAddress some XXXs from Neal Norwitz.
Collin Winter [Fri, 23 Mar 2007 22:46:49 +0000 (22:46 +0000)]
Address some XXXs from Neal Norwitz.

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.