]> granicus.if.org Git - python/log
python
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).

18 years agoRemove test_dumbdbm as failing.
Brett Cannon [Thu, 22 Feb 2007 05:05:21 +0000 (05:05 +0000)]
Remove test_dumbdbm as failing.

18 years agoFix dumbdbm and test_dumbdbm to work with dict views. Bug in dumbdbm was from
Brett Cannon [Thu, 22 Feb 2007 05:04:32 +0000 (05:04 +0000)]
Fix dumbdbm and test_dumbdbm to work with dict views.  Bug in dumbdbm was from
dict views not being iterators but just iterables.

18 years agoFix test_importhooks for dict views.
Brett Cannon [Thu, 22 Feb 2007 04:50:21 +0000 (04:50 +0000)]
Fix test_importhooks for dict views.

18 years agoFix test_iter after the dict views conversion.
Brett Cannon [Thu, 22 Feb 2007 04:49:03 +0000 (04:49 +0000)]
Fix test_iter after the dict views conversion.

18 years agoFix test_iterlen by returning the iterator of dict views. Problem is that
Brett Cannon [Thu, 22 Feb 2007 04:45:13 +0000 (04:45 +0000)]
Fix test_iterlen by returning the iterator of dict views.  Problem is that
iteritems and itervalues' previous object were both an iterator *and* and
iterable.  The tests expected an iterator but were given an iterable.

Should the 2to3 conversion for iter(values|items|keys) change the code to
``iter(dict.keys())`` to be more compatible?

18 years agoFix xml.dom.minidom so it works again after the dict views introduction.
Brett Cannon [Wed, 21 Feb 2007 22:05:37 +0000 (22:05 +0000)]
Fix xml.dom.minidom so it works again after the dict views introduction.

There are some methods in minidom that return dict.keys() directly.  There were
left alone since the tests passed without touching them, but it might be
prudent to just wrap them in a 'list' call to be safe for people expecting a
list.

18 years agoFix test_mutants for dict views.
Brett Cannon [Wed, 21 Feb 2007 21:59:58 +0000 (21:59 +0000)]
Fix test_mutants for dict views.

18 years agoFix test_os from breakage due to dict views.
Brett Cannon [Wed, 21 Feb 2007 21:57:55 +0000 (21:57 +0000)]
Fix test_os from breakage due to dict views.

18 years agoFix plistlib to work with dict views.
Brett Cannon [Wed, 21 Feb 2007 21:18:18 +0000 (21:18 +0000)]
Fix plistlib to work with dict views.

18 years agoSome more test now pass.
Guido van Rossum [Thu, 15 Feb 2007 04:01:01 +0000 (04:01 +0000)]
Some more test now pass.

18 years agoFix the damage to UserDict and its tests.
Guido van Rossum [Thu, 15 Feb 2007 03:49:08 +0000 (03:49 +0000)]
Fix the damage to UserDict and its tests.
Clearly this is not the right way to fix this; UserDict and MixinDict
ought to be redesigned with the new dict API in mind.  But I'm not
claiming to be in charge of library redesign, I only want zero failing
tests.

18 years agoFix for test_dict.py, thanks to Eduardo O Padoan.
Guido van Rossum [Wed, 14 Feb 2007 17:49:04 +0000 (17:49 +0000)]
Fix for test_dict.py, thanks to Eduardo O Padoan.

18 years agoGet rid of some old TO TO items.
Guido van Rossum [Tue, 13 Feb 2007 19:55:23 +0000 (19:55 +0000)]
Get rid of some old TO TO items.

18 years agoList of broken tests at this time. If you fix a test, please update this file.
Guido van Rossum [Tue, 13 Feb 2007 05:46:39 +0000 (05:46 +0000)]
List of broken tests at this time.  If you fix a test, please update this file.

18 years agoMake dict.keys() and dict.items() comparable to sets, using == and !=.
Guido van Rossum [Mon, 12 Feb 2007 02:23:40 +0000 (02:23 +0000)]
Make dict.keys() and dict.items() comparable to sets, using == and !=.
(PEP 3106 requires subset comparisons too, those will come later if someone
really wants them. :-)

18 years agoFix unittest.
Guido van Rossum [Mon, 12 Feb 2007 00:23:56 +0000 (00:23 +0000)]
Fix unittest.

18 years agoFix another unit test.
Guido van Rossum [Mon, 12 Feb 2007 00:22:55 +0000 (00:22 +0000)]
Fix another unit test.

18 years agoMake test_logging pass.
Guido van Rossum [Mon, 12 Feb 2007 00:07:01 +0000 (00:07 +0000)]
Make test_logging pass.

18 years agoCheckin the regenerated Python-ast.c and fix test_optparse.
Georg Brandl [Sun, 11 Feb 2007 23:06:17 +0000 (23:06 +0000)]
Checkin the regenerated Python-ast.c and fix test_optparse.

18 years agoNailed test_weakref.py. Pfew, messy!
Guido van Rossum [Sun, 11 Feb 2007 22:59:48 +0000 (22:59 +0000)]
Nailed test_weakref.py.  Pfew, messy!

18 years agoTwo more trivial fixes.
Guido van Rossum [Sun, 11 Feb 2007 18:54:18 +0000 (18:54 +0000)]
Two more trivial fixes.

18 years agoAnother fix. Partly reverted the tweaks done by the previous fix.
Guido van Rossum [Sun, 11 Feb 2007 18:53:00 +0000 (18:53 +0000)]
Another fix.  Partly reverted the tweaks done by the previous fix.

18 years agoMake test_sax pass.
Guido van Rossum [Sun, 11 Feb 2007 18:44:55 +0000 (18:44 +0000)]
Make test_sax pass.

18 years agoWith the help of the improved fixer, test_with.py is now fixed.
Guido van Rossum [Sun, 11 Feb 2007 07:05:21 +0000 (07:05 +0000)]
With the help of the improved fixer, test_with.py is now fixed.

18 years ago- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
Guido van Rossum [Sun, 11 Feb 2007 06:12:03 +0000 (06:12 +0000)]
- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
  and .keys(), .items(), .values() return dict views.

The dict views aren't fully functional yet; in particular, they can't
be compared to sets yet.  but they are useful as "iterator wells".

There are still 27 failing unit tests; I expect that many of these
have fairly trivial fixes, but there are so many, I could use help.

18 years agoRandom change to make this work unchanged when dict.keys() returns a dict view.
Guido van Rossum [Sat, 10 Feb 2007 22:53:17 +0000 (22:53 +0000)]
Random change to make this work unchanged when dict.keys() returns a dict view.

18 years agoImplement __contains__ for dict_keys and dict_items.
Guido van Rossum [Sat, 10 Feb 2007 18:55:06 +0000 (18:55 +0000)]
Implement __contains__ for dict_keys and dict_items.
(Not for dict_values, where it can't be done faster than
the default implementation which just iterates the elements.)

18 years agoEndow dict views with a proper length method.
Guido van Rossum [Sat, 10 Feb 2007 04:54:19 +0000 (04:54 +0000)]
Endow dict views with a proper length method.

18 years agoVery preliminary work on dict views.
Guido van Rossum [Sat, 10 Feb 2007 01:11:45 +0000 (01:11 +0000)]
Very preliminary work on dict views.

18 years agoNews about softspace.
Guido van Rossum [Fri, 9 Feb 2007 23:52:14 +0000 (23:52 +0000)]
News about softspace.

18 years agoFix the remaining doctest failures.
Guido van Rossum [Fri, 9 Feb 2007 23:39:59 +0000 (23:39 +0000)]
Fix the remaining doctest failures.
One was a modified line that was echoed in an exception;
the other two were softspace problems, fixed clumsily but effectively.

18 years agoIgnore *.py[co].
Guido van Rossum [Fri, 9 Feb 2007 23:38:28 +0000 (23:38 +0000)]
Ignore *.py[co].

18 years agoFix test_frozen.
Guido van Rossum [Fri, 9 Feb 2007 23:27:01 +0000 (23:27 +0000)]
Fix test_frozen.

18 years agoKill off softspace completely (except in formatter.py which seems to have
Guido van Rossum [Fri, 9 Feb 2007 23:20:19 +0000 (23:20 +0000)]
Kill off softspace completely (except in formatter.py which seems to have
a different feature with the same name).
The change to test_doctest.txt reduces the doctest failures to 3.

18 years agoRedue the failure rate to 13 tests. Bah.
Guido van Rossum [Fri, 9 Feb 2007 22:43:47 +0000 (22:43 +0000)]
Redue the failure rate to 13 tests.  Bah.

18 years agoFix the roundtripping function.
Guido van Rossum [Fri, 9 Feb 2007 22:43:10 +0000 (22:43 +0000)]
Fix the roundtripping function.

18 years agoFairly subtle fix for failing tests.
Guido van Rossum [Fri, 9 Feb 2007 22:36:02 +0000 (22:36 +0000)]
Fairly subtle fix for failing tests.

18 years agoTrivial fix for test_profile.py.
Guido van Rossum [Fri, 9 Feb 2007 22:28:28 +0000 (22:28 +0000)]
Trivial fix for test_profile.py.

18 years agoFound another difference between old and new print:
Guido van Rossum [Fri, 9 Feb 2007 22:27:36 +0000 (22:27 +0000)]
Found another difference between old and new print:
old print would suppress the softspace after \t.

18 years agoMore prints embedded in strings.
Guido van Rossum [Fri, 9 Feb 2007 22:18:41 +0000 (22:18 +0000)]
More prints embedded in strings.

18 years agoFix a bogus end=' ' here.
Guido van Rossum [Fri, 9 Feb 2007 22:16:54 +0000 (22:16 +0000)]
Fix a bogus end=' ' here.

18 years agoTwo tests fixed with one fix.
Guido van Rossum [Fri, 9 Feb 2007 22:11:20 +0000 (22:11 +0000)]
Two tests fixed with one fix.

18 years agoFix another test.
Guido van Rossum [Fri, 9 Feb 2007 22:09:01 +0000 (22:09 +0000)]
Fix another test.

18 years agoSome more tests pass now. (Also test_compiler.py with -u all.)
Guido van Rossum [Fri, 9 Feb 2007 21:54:58 +0000 (21:54 +0000)]
Some more tests pass now.  (Also test_compiler.py with -u all.)

18 years ago* Remove PRINT_ITEM(_TO), PRINT_NEWLINE(_TO) opcodes.
Georg Brandl [Fri, 9 Feb 2007 21:28:07 +0000 (21:28 +0000)]
* Remove PRINT_ITEM(_TO), PRINT_NEWLINE(_TO) opcodes.
* Fix some docstrings and one Print -> print.
* Fix test_{class,code,descrtut,dis,extcall,parser,popen,pkg,subprocess,syntax,traceback}.
  These were the ones that generated code with a print statement.
  In most remaining failing tests there's an issue with the soft space.

18 years agoFix an unfortunate mis-conversion: sometimes "print x," must be
Guido van Rossum [Fri, 9 Feb 2007 20:50:08 +0000 (20:50 +0000)]
Fix an unfortunate mis-conversion: sometimes "print x," must be
converted to "print(x, end=' ')", but other times it must be converted
to "print(x, end='')".  There's no easy way to find out, because it
depends on whether x ends with a newline.  I'm sure I'll find more
like this.

18 years agoRevert doubly-converted doctests.
Guido van Rossum [Fri, 9 Feb 2007 20:33:44 +0000 (20:33 +0000)]
Revert doubly-converted doctests.

18 years agoFix a bunch of doctests with the -d option of refactor.py.
Guido van Rossum [Fri, 9 Feb 2007 20:13:25 +0000 (20:13 +0000)]
Fix a bunch of doctests with the -d option of refactor.py.
We still have 27 failing tests (down from 39).

18 years agoNote that print is a function now.
Guido van Rossum [Fri, 9 Feb 2007 05:42:38 +0000 (05:42 +0000)]
Note that print is a function now.

18 years agoFix most trivially-findable print statements.
Guido van Rossum [Fri, 9 Feb 2007 05:37:30 +0000 (05:37 +0000)]
Fix most trivially-findable print statements.

There's one major and one minor category still unfixed:
doctests are the major category (and I hope to be able to augment the
refactoring tool to refactor bona fide doctests soon);
other code generating print statements in strings is the minor category.

(Oh, and I don't know if the compiler package works.)

18 years agoEssential changes for print function changes.
Guido van Rossum [Fri, 9 Feb 2007 05:32:43 +0000 (05:32 +0000)]
Essential changes for print function changes.
Lib will be changed in a separate run.

18 years agoRemove bogus INCREF of ziptuple: it is a
Martin v. Löwis [Tue, 6 Feb 2007 21:30:59 +0000 (21:30 +0000)]
Remove bogus INCREF of ziptuple: it is a
freshly-allocated tuple object.