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

18 years agoFix refcounting bugs related to CONVERT_BINOP.
Martin v. Löwis [Tue, 6 Feb 2007 21:05:30 +0000 (21:05 +0000)]
Fix refcounting bugs related to CONVERT_BINOP.

18 years agoMerged revisions 53538-53622 via svnmerge from
Thomas Wouters [Mon, 5 Feb 2007 01:24:16 +0000 (01:24 +0000)]
Merged revisions 53538-53622 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r53545 | andrew.kuchling | 2007-01-24 21:06:41 +0100 (Wed, 24 Jan 2007) | 1 line

  Strengthen warning about using lock()
........
  r53556 | thomas.heller | 2007-01-25 19:34:14 +0100 (Thu, 25 Jan 2007) | 3 lines

  Fix for #1643874: When calling SysAllocString, create a PyCObject
  which will eventually call SysFreeString to free the BSTR resource.
........
  r53563 | andrew.kuchling | 2007-01-25 21:02:13 +0100 (Thu, 25 Jan 2007) | 1 line

  Add item
........
  r53564 | brett.cannon | 2007-01-25 21:22:02 +0100 (Thu, 25 Jan 2007) | 8 lines

  Fix time.strptime's %U support.  Basically rewrote the algorithm to be more
  generic so that one only has to shift certain values based on whether the week
  was specified to start on Monday or Sunday.  Cut out a lot of edge case code
  compared to the previous version.  Also broke algorithm out into its own
  function (that is private to the module).

  Fixes bug #1643943 (thanks Biran Nahas for the report).
........
  r53570 | brett.cannon | 2007-01-26 00:30:39 +0100 (Fri, 26 Jan 2007) | 4 lines

  Remove specific mention of my name and email address from modules.  Not really
  needed and all bug reports should go to the bug tracker, not directly to me.
  Plus I am not the only person to have edited these files at this point.
........
  r53573 | fred.drake | 2007-01-26 17:28:44 +0100 (Fri, 26 Jan 2007) | 1 line

  fix typo (extraneous ")")
........
  r53575 | georg.brandl | 2007-01-27 18:43:02 +0100 (Sat, 27 Jan 2007) | 4 lines

  Patch #1638243: the compiler package is now able to correctly compile
  a with statement; previously, executing code containing a with statement
  compiled by the compiler package crashed the interpreter.
........
  r53578 | georg.brandl | 2007-01-27 18:59:42 +0100 (Sat, 27 Jan 2007) | 3 lines

  Patch #1634778: add missing encoding aliases for iso8859_15 and
  iso8859_16.
........
  r53579 | georg.brandl | 2007-01-27 20:38:50 +0100 (Sat, 27 Jan 2007) | 2 lines

  Bug #1645944: os.access now returns bool but docstring is not updated
........
  r53590 | brett.cannon | 2007-01-28 21:58:00 +0100 (Sun, 28 Jan 2007) | 2 lines

  Use the thread lock's context manager instead of a try/finally statement.
........
  r53591 | brett.cannon | 2007-01-29 05:41:44 +0100 (Mon, 29 Jan 2007) | 2 lines

  Add a test for slicing an exception.
........
  r53594 | andrew.kuchling | 2007-01-29 21:21:43 +0100 (Mon, 29 Jan 2007) | 1 line

  Minor edits to the curses HOWTO
........
  r53596 | andrew.kuchling | 2007-01-29 21:55:40 +0100 (Mon, 29 Jan 2007) | 1 line

  Various minor edits
........
  r53597 | andrew.kuchling | 2007-01-29 22:28:48 +0100 (Mon, 29 Jan 2007) | 1 line

  More edits
........
  r53601 | tim.peters | 2007-01-30 04:03:46 +0100 (Tue, 30 Jan 2007) | 2 lines

  Whitespace normalization.
........
  r53603 | georg.brandl | 2007-01-30 21:21:30 +0100 (Tue, 30 Jan 2007) | 2 lines

  Bug #1648191: typo in docs.
........
  r53605 | brett.cannon | 2007-01-30 22:34:36 +0100 (Tue, 30 Jan 2007) | 8 lines

  No more raising of string exceptions!

  The next step of PEP 352 (for 2.6) causes raising a string exception to trigger
  a TypeError.  Trying to catch a string exception raises a DeprecationWarning.
  References to string exceptions has been removed from the docs since they are
  now just an error.
........
  r53618 | raymond.hettinger | 2007-02-01 22:02:59 +0100 (Thu, 01 Feb 2007) | 1 line

  Bug #1648179:  set.update() not recognizing __iter__ overrides in dict subclasses.
........

18 years ago - Fix conversion glitch in test_pyclbr, which caused a test to not fail
Thomas Wouters [Sat, 3 Feb 2007 21:49:06 +0000 (21:49 +0000)]
 - Fix conversion glitch in test_pyclbr, which caused a test to not fail
   when it should.

 - Remove unneeded classic-class support from pydoc (which would otherwise
   cause test_pyclbr to fail.)

18 years agoMerged revisions 53451-53537 via svnmerge from
Thomas Wouters [Thu, 1 Feb 2007 18:02:27 +0000 (18:02 +0000)]
Merged revisions 53451-53537 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r53454 | brett.cannon | 2007-01-15 20:12:08 +0100 (Mon, 15 Jan 2007) | 3 lines

  Add a note for strptime that just because strftime supports some extra
  directive that is not documented that strptime will as well.
........
  r53458 | vinay.sajip | 2007-01-16 10:50:07 +0100 (Tue, 16 Jan 2007) | 1 line

  Updated rotating file handlers to use _open().
........
  r53459 | marc-andre.lemburg | 2007-01-16 14:03:06 +0100 (Tue, 16 Jan 2007) | 2 lines

  Add news items for the recent pybench and platform changes.
........
  r53460 | sjoerd.mullender | 2007-01-16 17:42:38 +0100 (Tue, 16 Jan 2007) | 4 lines

  Fixed ntpath.expandvars to not replace references to non-existing
  variables with nothing.  Also added tests.
  This fixes bug #494589.
........
  r53464 | neal.norwitz | 2007-01-17 07:23:51 +0100 (Wed, 17 Jan 2007) | 1 line

  Give Calvin Spealman access for python-dev summaries.
........
  r53465 | neal.norwitz | 2007-01-17 09:37:26 +0100 (Wed, 17 Jan 2007) | 1 line

  Remove Calvin since he only has access to the website currently.
........
  r53466 | thomas.heller | 2007-01-17 10:40:34 +0100 (Wed, 17 Jan 2007) | 2 lines

  Replace C++ comments with C comments.
........
  r53472 | andrew.kuchling | 2007-01-17 20:55:06 +0100 (Wed, 17 Jan 2007) | 1 line

  [Part of bug #1599254] Add suggestion to Mailbox docs to use Maildir, and warn user to lock/unlock mailboxes when modifying them
........
  r53475 | georg.brandl | 2007-01-17 22:09:04 +0100 (Wed, 17 Jan 2007) | 2 lines

  Bug #1637967: missing //= operator in list.
........
  r53477 | georg.brandl | 2007-01-17 22:19:58 +0100 (Wed, 17 Jan 2007) | 2 lines

  Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs.
........
  r53481 | neal.norwitz | 2007-01-18 06:40:58 +0100 (Thu, 18 Jan 2007) | 1 line

  Try reverting part of r53145 that seems to cause the Windows buildbots to fail in test_uu.UUFileTest.test_encode
........
  r53482 | fred.drake | 2007-01-18 06:42:30 +0100 (Thu, 18 Jan 2007) | 1 line

  add missing version entry
........
  r53483 | neal.norwitz | 2007-01-18 07:20:55 +0100 (Thu, 18 Jan 2007) | 7 lines

  This test doesn't pass on Windows.  The cause seems to be that chmod
  doesn't support the same funcationality as on Unix.  I'm not sure if
  this fix is the best (or if it will even work)--it's a test to see
  if the buildbots start passing again.

  It might be better to not even run this test if it's windows (or non-posix).
........
  r53488 | neal.norwitz | 2007-01-19 06:53:33 +0100 (Fri, 19 Jan 2007) | 1 line

  SF #1635217, Fix unbalanced paren
........
  r53489 | martin.v.loewis | 2007-01-19 07:42:22 +0100 (Fri, 19 Jan 2007) | 3 lines

  Prefix AST symbols with _Py_. Fixes #1637022.
  Will backport.
........
  r53497 | martin.v.loewis | 2007-01-19 19:01:38 +0100 (Fri, 19 Jan 2007) | 2 lines

  Add UUIDs for 2.5.1 and 2.5.2
........
  r53499 | raymond.hettinger | 2007-01-19 19:07:18 +0100 (Fri, 19 Jan 2007) | 1 line

  SF# 1635892:  Fix docs for betavariate's input parameters .
........
  r53503 | martin.v.loewis | 2007-01-20 15:05:39 +0100 (Sat, 20 Jan 2007) | 2 lines

  Merge 53501 and 53502 from 25 branch:
  Add /GS- for AMD64 and Itanium builds where missing.
........
  r53504 | walter.doerwald | 2007-01-20 18:28:31 +0100 (Sat, 20 Jan 2007) | 2 lines

  Port test_resource.py to unittest.
........
  r53505 | walter.doerwald | 2007-01-20 19:19:33 +0100 (Sat, 20 Jan 2007) | 2 lines

  Add argument tests an calls of resource.getrusage().
........
  r53506 | walter.doerwald | 2007-01-20 20:03:17 +0100 (Sat, 20 Jan 2007) | 2 lines

  resource.RUSAGE_BOTH might not exist.
........
  r53507 | walter.doerwald | 2007-01-21 00:07:28 +0100 (Sun, 21 Jan 2007) | 2 lines

  Port test_new.py to unittest.
........
  r53508 | martin.v.loewis | 2007-01-21 10:33:07 +0100 (Sun, 21 Jan 2007) | 2 lines

  Patch #1610575: Add support for _Bool to struct.
........
  r53509 | georg.brandl | 2007-01-21 11:28:43 +0100 (Sun, 21 Jan 2007) | 3 lines

  Bug #1486663: don't reject keyword arguments for subclasses of builtin
  types.
........
  r53511 | georg.brandl | 2007-01-21 11:35:10 +0100 (Sun, 21 Jan 2007) | 2 lines

  Patch #1627441: close sockets properly in urllib2.
........
  r53517 | georg.brandl | 2007-01-22 20:40:21 +0100 (Mon, 22 Jan 2007) | 3 lines

  Use new email module names (#1637162, #1637159, #1637157).
........
  r53518 | andrew.kuchling | 2007-01-22 21:26:40 +0100 (Mon, 22 Jan 2007) | 1 line

  Improve pattern used for mbox 'From' lines; add a simple test
........
  r53519 | andrew.kuchling | 2007-01-22 21:27:50 +0100 (Mon, 22 Jan 2007) | 1 line

  Make comment match the code
........
  r53522 | georg.brandl | 2007-01-22 22:10:33 +0100 (Mon, 22 Jan 2007) | 2 lines

  Bug #1249573: fix rfc822.parsedate not accepting a certain date format
........
  r53524 | georg.brandl | 2007-01-22 22:23:41 +0100 (Mon, 22 Jan 2007) | 2 lines

  Bug #1627316: handle error in condition/ignore pdb commands more gracefully.
........
  r53526 | lars.gustaebel | 2007-01-23 12:17:33 +0100 (Tue, 23 Jan 2007) | 4 lines

  Patch #1507247: tarfile.py: use current umask for intermediate
  directories.
........
  r53527 | thomas.wouters | 2007-01-23 14:42:00 +0100 (Tue, 23 Jan 2007) | 13 lines

  SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize

  When running the interpreter in an environment that would cause it to set
  stdout/stderr/stdin's encoding, having a sitecustomize that would replace
  them with something other than PyFile objects would crash the interpreter.
  Fix it by simply ignoring the encoding-setting for non-files.

  This could do with a test, but I can think of no maintainable and portable
  way to test this bug, short of adding a sitecustomize.py to the buildsystem
  and have it always run with it (hmmm....)
........
  r53528 | thomas.wouters | 2007-01-23 14:50:49 +0100 (Tue, 23 Jan 2007) | 4 lines

  Add news entry about last checkin (oops.)
........
  r53531 | martin.v.loewis | 2007-01-23 22:11:47 +0100 (Tue, 23 Jan 2007) | 4 lines

  Make PyTraceBack_Here use the current thread, not the
  frame's thread state. Fixes #1579370.
  Will backport.
........
  r53535 | brett.cannon | 2007-01-24 00:21:22 +0100 (Wed, 24 Jan 2007) | 5 lines

  Fix crasher for when an object's __del__ creates a new weakref to itself.
  Patch only fixes new-style classes; classic classes still buggy.

  Closes bug #1377858.  Already backported.
........
  r53536 | walter.doerwald | 2007-01-24 01:42:19 +0100 (Wed, 24 Jan 2007) | 2 lines

  Port test_popen.py to unittest.
........

18 years agoUpdate news about int/long unification.
Guido van Rossum [Tue, 30 Jan 2007 00:00:40 +0000 (00:00 +0000)]
Update news about int/long unification.

18 years agoAdd missing entry for PEP 3102 (keyword-only arguments).
Brett Cannon [Mon, 29 Jan 2007 23:44:37 +0000 (23:44 +0000)]
Add missing entry for PEP 3102 (keyword-only arguments).

18 years agoFix minor grammar typo.
Brett Cannon [Mon, 29 Jan 2007 23:43:38 +0000 (23:43 +0000)]
Fix minor grammar typo.

18 years agoFix L-suffixed literal straggler.
Guido van Rossum [Mon, 15 Jan 2007 17:02:51 +0000 (17:02 +0000)]
Fix L-suffixed literal straggler.

18 years agoRip out 'long' and 'L'-suffixed integer literals.
Guido van Rossum [Mon, 15 Jan 2007 16:59:06 +0000 (16:59 +0000)]
Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)

18 years agoMerged revisions 53304-53433,53435-53450 via svnmerge from
Thomas Wouters [Mon, 15 Jan 2007 15:49:28 +0000 (15:49 +0000)]
Merged revisions 53304-53433,53435-53450 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r53304 | vinay.sajip | 2007-01-09 15:50:28 +0100 (Tue, 09 Jan 2007) | 1 line

  Bug #1627575: Added _open() method to FileHandler which can be used to reopen files. The FileHandler instance now saves the encoding (which can be None) in an attribute called "encoding".
........
  r53305 | vinay.sajip | 2007-01-09 15:51:36 +0100 (Tue, 09 Jan 2007) | 1 line

  Added entry about addition of _open() method to logging.FileHandler.
........
  r53306 | vinay.sajip | 2007-01-09 15:54:56 +0100 (Tue, 09 Jan 2007) | 1 line

  Added a docstring
........
  r53316 | thomas.heller | 2007-01-09 20:19:33 +0100 (Tue, 09 Jan 2007) | 4 lines

  Verify the sizes of the basic ctypes data types against the struct
  module.

  Will backport to release25-maint.
........
  r53340 | gustavo.niemeyer | 2007-01-10 17:13:40 +0100 (Wed, 10 Jan 2007) | 3 lines

  Mention in the int() docstring that a base zero has meaning, as
  stated in http://docs.python.org/lib/built-in-funcs.html as well.
........
  r53341 | gustavo.niemeyer | 2007-01-10 17:15:48 +0100 (Wed, 10 Jan 2007) | 2 lines

  Minor change in int() docstring for proper spacing.
........
  r53358 | thomas.heller | 2007-01-10 21:12:13 +0100 (Wed, 10 Jan 2007) | 1 line

  Change the ctypes version number to "1.1.0".
........
  r53361 | thomas.heller | 2007-01-10 21:51:19 +0100 (Wed, 10 Jan 2007) | 1 line

  Must change the version number in the _ctypes extension as well.
........
  r53362 | guido.van.rossum | 2007-01-11 00:12:56 +0100 (Thu, 11 Jan 2007) | 3 lines

  Fix the signature of log_error().  (A subclass that did the right thing
  was getting complaints from pychecker.)
........
  r53370 | matthias.klose | 2007-01-11 11:26:31 +0100 (Thu, 11 Jan 2007) | 2 lines

  - Make the documentation match the code and the docstring
........
  r53375 | matthias.klose | 2007-01-11 12:44:04 +0100 (Thu, 11 Jan 2007) | 2 lines

  - idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
........
  r53381 | raymond.hettinger | 2007-01-11 19:22:55 +0100 (Thu, 11 Jan 2007) | 1 line

  SF #1486663 -- Allow keyword args in subclasses of set() and frozenset().
........
  r53388 | thomas.heller | 2007-01-11 22:18:56 +0100 (Thu, 11 Jan 2007) | 4 lines

  Fixes for 64-bit Windows: In ctypes.wintypes, correct the definitions
  of HANDLE, WPARAM, LPARAM data types.  Make parameterless foreign
  function calls work.
........
  r53390 | thomas.heller | 2007-01-11 22:23:12 +0100 (Thu, 11 Jan 2007) | 2 lines

  Correct the comments: the code is right.
........
  r53393 | brett.cannon | 2007-01-12 08:27:52 +0100 (Fri, 12 Jan 2007) | 3 lines

  Fix error where the end of a funcdesc environment was accidentally moved too
  far down.
........
  r53397 | anthony.baxter | 2007-01-12 10:35:56 +0100 (Fri, 12 Jan 2007) | 3 lines

  add parsetok.h as a dependency - previously, changing this file doesn't
  cause the right files to be rebuilt.
........
  r53401 | thomas.heller | 2007-01-12 21:08:19 +0100 (Fri, 12 Jan 2007) | 3 lines

  Avoid warnings in the test suite because ctypes.wintypes cannot be
  imported on non-windows systems.
........
  r53402 | thomas.heller | 2007-01-12 21:17:34 +0100 (Fri, 12 Jan 2007) | 6 lines

  patch #1610795: BSD version of ctypes.util.find_library, by Martin
  Kammerhofer.

  release25-maint backport candidate, but the release manager has to
  decide.
........
  r53403 | thomas.heller | 2007-01-12 21:21:53 +0100 (Fri, 12 Jan 2007) | 3 lines

  patch #1610795: BSD version of ctypes.util.find_library, by Martin
  Kammerhofer.
........
  r53406 | brett.cannon | 2007-01-13 01:29:49 +0100 (Sat, 13 Jan 2007) | 2 lines

  Deprecate the sets module.
........
  r53407 | georg.brandl | 2007-01-13 13:31:51 +0100 (Sat, 13 Jan 2007) | 3 lines

  Fix typo.
........
  r53409 | marc-andre.lemburg | 2007-01-13 22:00:08 +0100 (Sat, 13 Jan 2007) | 16 lines

  Bump version number and change copyright year.

  Add new API linux_distribution() which supports reading the full distribution
  name and also knows how to parse LSB-style release files.

  Redirect the old dist() API to the new API (using the short distribution name
  taken from the release file filename).

  Add branch and revision to _sys_version().

  Add work-around for Cygwin to libc_ver().

  Add support for IronPython (thanks for Anthony Baxter) and make
  Jython support more robust.
........
  r53410 | neal.norwitz | 2007-01-13 22:22:37 +0100 (Sat, 13 Jan 2007) | 1 line

  Fix grammar in docstrings
........
  r53411 | marc-andre.lemburg | 2007-01-13 23:32:21 +0100 (Sat, 13 Jan 2007) | 9 lines

  Add parameter sys_version to _sys_version().

  Change the cache for _sys_version() to take the parameter into account.

  Add support for parsing the IronPython 1.0.1 sys.version value - even
  though it still returns '1.0.0'; the version string no longer includes
  the patch level.
........
  r53412 | peter.astrand | 2007-01-13 23:35:35 +0100 (Sat, 13 Jan 2007) | 1 line

  Fix for bug #1634343: allow specifying empty arguments on Windows
........
  r53414 | marc-andre.lemburg | 2007-01-13 23:59:36 +0100 (Sat, 13 Jan 2007) | 14 lines

  Add Python implementation to the machine details.

  Pretty-print the Python version used for running PyBench.

  Let the user know when calibration has finished.

  [ 1563844 ] pybench support for IronPython:

  Simplify Unicode version detection.

  Make garbage collection and check interval settings optional if
  the Python implementation doesn't support thess (e.g. IronPython).
........
  r53415 | marc-andre.lemburg | 2007-01-14 00:13:54 +0100 (Sun, 14 Jan 2007) | 5 lines

  Use defaults if sys.executable isn't set (e.g. on Jython).

  This change allows running PyBench under Jython.
........
  r53416 | marc-andre.lemburg | 2007-01-14 00:15:33 +0100 (Sun, 14 Jan 2007) | 3 lines

  Jython doesn't have sys.setcheckinterval() - ignore it in that case.
........
  r53420 | gerhard.haering | 2007-01-14 02:43:50 +0100 (Sun, 14 Jan 2007) | 29 lines

  Merged changes from standalone version 2.3.3. This should probably all be
  merged into the 2.5 maintenance branch:

  - self->statement was not checked while fetching data, which could
    lead to crashes if you used the pysqlite API in unusual ways.
    Closing the cursor and continuing to fetch data was enough.

  - Converters are stored in a converters dictionary. The converter name
    is uppercased first. The old upper-casing algorithm was wrong and
    was replaced by a simple call to the Python string's upper() method
    instead.

  -Applied patch by Glyph Lefkowitz that fixes the problem with
   subsequent SQLITE_SCHEMA errors.

  - Improvement to the row type: rows can now be iterated over and have a keys()
    method. This improves compatibility with both tuple and dict a lot.

  - A bugfix for the subsecond resolution in timestamps.

  - Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are
    checked for. Now they work as documented.

  - gcc on Linux sucks. It exports all symbols by default in shared
    libraries, so if symbols are not unique it can lead to problems with
    symbol lookup.  pysqlite used to crash under Apache when mod_cache
    was enabled because both modules had the symbol cache_init. I fixed
    this by applying the prefix pysqlite_ almost everywhere. Sigh.
........
  r53423 | guido.van.rossum | 2007-01-14 04:46:33 +0100 (Sun, 14 Jan 2007) | 2 lines

  Remove a dependency of this test on $COLUMNS.
........
  r53425 | ka-ping.yee | 2007-01-14 05:25:15 +0100 (Sun, 14 Jan 2007) | 3 lines

  Handle old-style instances more gracefully (display documentation on
  the relevant class instead of documentation on <type 'instance'>).
........
  r53440 | vinay.sajip | 2007-01-14 22:49:59 +0100 (Sun, 14 Jan 2007) | 1 line

  Added WatchedFileHandler (based on SF patch #1598415)
........
  r53441 | vinay.sajip | 2007-01-14 22:50:50 +0100 (Sun, 14 Jan 2007) | 1 line

  Added documentation for WatchedFileHandler (based on SF patch #1598415)
........
  r53442 | guido.van.rossum | 2007-01-15 01:02:35 +0100 (Mon, 15 Jan 2007) | 2 lines

  Doc patch matching r53434 (htonl etc. now always take/return positive ints).
........

18 years agoNo more tests are broken AFAIK.
Guido van Rossum [Mon, 15 Jan 2007 00:38:25 +0000 (00:38 +0000)]
No more tests are broken AFAIK.

18 years agoFix the sqlite failure -- it was the usual, PyInt_Check -> PyInt_CheckExact.
Guido van Rossum [Mon, 15 Jan 2007 00:31:49 +0000 (00:31 +0000)]
Fix the sqlite failure -- it was the usual, PyInt_Check -> PyInt_CheckExact.
Clarify some OverflowError messages from the various PyLong_AsXXX methods.

18 years agoFix pickletools doctests -- all we get nowadays is longs.
Guido van Rossum [Mon, 15 Jan 2007 00:21:46 +0000 (00:21 +0000)]
Fix pickletools doctests -- all we get nowadays is longs.
(Hmm... Shouldn't longs of certain sizes be pickled using 'I' opcodes? Later.)

18 years agoFix repr.py -- it was triggering on the type name 'long', should be 'int'.
Guido van Rossum [Mon, 15 Jan 2007 00:14:39 +0000 (00:14 +0000)]
Fix repr.py -- it was triggering on the type name 'long', should be 'int'.

18 years agoMerged revisions 53434 via svnmerge from
Guido van Rossum [Mon, 15 Jan 2007 00:07:32 +0000 (00:07 +0000)]
Merged revisions 53434 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r53434 | guido.van.rossum | 2007-01-14 09:03:32 -0800 (Sun, 14 Jan 2007) | 3 lines

  Patch #1635058 by Mark Roberts: ensure that htonl and friends never accept or
  return negative numbers, per the underlying C implementation.
........

18 years agoOne more test breakage hits the dust. The test was clearly in the wrong.
Guido van Rossum [Sun, 14 Jan 2007 18:52:06 +0000 (18:52 +0000)]
One more test breakage hits the dust.  The test was clearly in the wrong.

18 years agoFix new bug in ftplib.py introduced by exception scope limitation.
Guido van Rossum [Sun, 14 Jan 2007 18:43:49 +0000 (18:43 +0000)]
Fix new bug in ftplib.py introduced by exception scope limitation.

18 years agoHonesty before all.
Guido van Rossum [Sun, 14 Jan 2007 16:55:36 +0000 (16:55 +0000)]
Honesty before all.

18 years agoFix cPickle breakage due to last-minute change to the name of the 'long' type
Guido van Rossum [Sun, 14 Jan 2007 04:02:16 +0000 (04:02 +0000)]
Fix cPickle breakage due to last-minute change to the name of the 'long' type
(it's not called 'int' :-).

18 years agoNews about int/long unification and except syntax change.
Guido van Rossum [Sun, 14 Jan 2007 03:42:30 +0000 (03:42 +0000)]
News about int/long unification and except syntax change.

18 years agoMerged the int/long unification branch, by very crude means (sorry Thomas!).
Guido van Rossum [Sun, 14 Jan 2007 03:31:43 +0000 (03:31 +0000)]
Merged the int/long unification branch, by very crude means (sorry Thomas!).
I banged on the code (beyond what's in that branch) to make fewer tests fail;
the only tests that fail now are:
  test_descr -- can't pickle ints?!
  test_pickletools -- ???
  test_socket -- See python.org/sf/1619659
  test_sqlite -- ???
I'll deal with those later.

18 years agoFix pybench so it works -- Larry Hastings.
Guido van Rossum [Sat, 13 Jan 2007 23:54:39 +0000 (23:54 +0000)]
Fix pybench so it works -- Larry Hastings.

18 years agoSome more changes related to the new except syntax and semantics,
Guido van Rossum [Wed, 10 Jan 2007 18:51:35 +0000 (18:51 +0000)]
Some more changes related to the new except syntax and semantics,
by Collin Winter.