]> granicus.if.org Git - python/log
python
15 years agoIssue #4753: By enabling a configure option named '--with-computed-gotos'
Antoine Pitrou [Sun, 25 Jan 2009 16:34:23 +0000 (16:34 +0000)]
Issue #4753: By enabling a configure option named '--with-computed-gotos'
on compilers that support it (notably: gcc, SunPro, icc), the bytecode
evaluation loop is compiled with a new dispatch mechanism which gives
speedups of up to 20%, depending on the system, on various benchmarks.

15 years agoMerged revisions 68920 via svnmerge from
Mark Dickinson [Sun, 25 Jan 2009 10:48:51 +0000 (10:48 +0000)]
Merged revisions 68920 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68920 | mark.dickinson | 2009-01-25 10:39:15 +0000 (Sun, 25 Jan 2009) | 2 lines

  Remove uses of cmp from the decimal module.
........

15 years agoDocument both importlib.machinery.BuiltinImporter and FrozenImporter.
Brett Cannon [Sun, 25 Jan 2009 04:56:30 +0000 (04:56 +0000)]
Document both importlib.machinery.BuiltinImporter and FrozenImporter.

15 years agoAdd the terms "finder", "loader", and "importer" to the glossary.
Brett Cannon [Sun, 25 Jan 2009 04:21:39 +0000 (04:21 +0000)]
Add the terms "finder", "loader", and "importer" to the glossary.

15 years agomerge r68915 to py3k
Jesse Noller [Sun, 25 Jan 2009 03:45:53 +0000 (03:45 +0000)]
merge r68915 to py3k

15 years agoMerged revisions 68903,68906 via svnmerge from
Mark Dickinson [Sat, 24 Jan 2009 21:46:33 +0000 (21:46 +0000)]
Merged revisions 68903,68906 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68903 | mark.dickinson | 2009-01-24 16:40:29 +0000 (Sat, 24 Jan 2009) | 5 lines

  Issue #1672332: Fix unpickling of subnormal floats, which was raising
  ValueError on some platforms as a result of the platform strtod setting
  errno on underflow.
........
  r68906 | mark.dickinson | 2009-01-24 21:08:38 +0000 (Sat, 24 Jan 2009) | 2 lines

  Issue #3657: fix occasional test_pickletools failures.
........

15 years agoMerged revisions 68897 via svnmerge from
Mark Dickinson [Sat, 24 Jan 2009 16:22:21 +0000 (16:22 +0000)]
Merged revisions 68897 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68897 | mark.dickinson | 2009-01-24 16:17:27 +0000 (Sat, 24 Jan 2009) | 2 lines

  Issue #5025: Fix occasional test_kqueue failure on OS X.
........

15 years agoMerged revisions 68893 via svnmerge from
Martin v. Löwis [Sat, 24 Jan 2009 16:19:45 +0000 (16:19 +0000)]
Merged revisions 68893 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68893 | martin.v.loewis | 2009-01-24 16:47:27 +0100 (Sa, 24 Jan 2009) | 3 lines

  Issue #3881: Help Tcl to load even when started through the
  unreadable local symlink to "Program Files" on Vista.
........

15 years agoMerged revisions 68890 via svnmerge from
Mark Dickinson [Sat, 24 Jan 2009 15:56:57 +0000 (15:56 +0000)]
Merged revisions 68890 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68890 | mark.dickinson | 2009-01-24 15:27:44 +0000 (Sat, 24 Jan 2009) | 6 lines

  Issue #4393: fix 3 classes of potential portability problems in longobject.c:
   - fix some places where counters into ob_digit were declared as
     int instead of Py_ssize_t
   - add (twodigit) casts where necessary
   - fix code in _PyLong_AsByteArray that uses << on negative values
........

15 years agoSome minor cleanups in PyLong_FromLong:
Mark Dickinson [Sat, 24 Jan 2009 15:02:35 +0000 (15:02 +0000)]
Some minor cleanups in PyLong_FromLong:
 - fast path wasn't being properly taken for negative ints;
   thanks Victor Stinner for pointing this out.
 - use Py_SAFE_DOWNCAST instead of direct casting to digit
   (it's safer, especially if we ever consider moving to 30-bit
   digits)
 - cleaner way to write negation

15 years agoMerged revisions 68885 via svnmerge from
Martin v. Löwis [Sat, 24 Jan 2009 14:10:07 +0000 (14:10 +0000)]
Merged revisions 68885 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68885 | martin.v.loewis | 2009-01-24 15:00:33 +0100 (Sa, 24 Jan 2009) | 3 lines

  Issue #4710: Extract directories properly in the zipfile module;
  allow adding directories to a zipfile.
........

15 years agoAdd a test for UNC import paths, see issue 3677
Kristján Valur Jónsson [Sat, 24 Jan 2009 10:50:45 +0000 (10:50 +0000)]
Add a test for UNC import paths, see issue 3677

15 years agoIssue 3677: Release the path string on py3k
Kristján Valur Jónsson [Sat, 24 Jan 2009 10:33:25 +0000 (10:33 +0000)]
Issue 3677: Release the path string on py3k

15 years agoFactor common branch in load_long().
Alexandre Vassalotti [Sat, 24 Jan 2009 01:47:57 +0000 (01:47 +0000)]
Factor common branch in load_long().

Suggested by Neal Norwitz.

15 years agomerge 68874 to py3kwq!
Jesse Noller [Fri, 23 Jan 2009 14:09:08 +0000 (14:09 +0000)]
merge 68874 to py3kwq!

16 years agoMerged revisions 68457 via svnmerge from
Hirokazu Yamamoto [Fri, 23 Jan 2009 07:23:03 +0000 (07:23 +0000)]
Merged revisions 68457 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68457 | kristjan.jonsson | 2009-01-10 05:10:59 +0900 | 1 line

  Issue 3677:  Fix import from UNC paths on Windows.
........

16 years agoClean up pickle usage examples.
Alexandre Vassalotti [Fri, 23 Jan 2009 05:28:16 +0000 (05:28 +0000)]
Clean up pickle usage examples.

16 years agoIssue 2980: Protocol 0 is not truly restricted to ASCII.
Alexandre Vassalotti [Fri, 23 Jan 2009 04:50:05 +0000 (04:50 +0000)]
Issue 2980: Protocol 0 is not truly restricted to ASCII.

16 years agoRemove obsolete note on binary-mode vs. text-mode file.
Alexandre Vassalotti [Fri, 23 Jan 2009 04:46:05 +0000 (04:46 +0000)]
Remove obsolete note on binary-mode vs. text-mode file.

16 years agoRemove unnecessary copying in load_long().
Alexandre Vassalotti [Fri, 23 Jan 2009 04:43:46 +0000 (04:43 +0000)]
Remove unnecessary copying in load_long().

16 years agoMerged revisions 68750,68776-68777,68811,68842,68859 via svnmerge from
Benjamin Peterson [Fri, 23 Jan 2009 03:26:36 +0000 (03:26 +0000)]
Merged revisions 68750,68776-68777,68811,68842,68859 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68750 | benjamin.peterson | 2009-01-18 16:47:04 -0600 (Sun, 18 Jan 2009) | 1 line

  fix encoding cookie case
........
  r68776 | benjamin.peterson | 2009-01-19 10:17:54 -0600 (Mon, 19 Jan 2009) | 1 line

  move BufferedIOBase into the base class section
........
  r68777 | benjamin.peterson | 2009-01-19 10:18:27 -0600 (Mon, 19 Jan 2009) | 1 line

  add email address
........
  r68811 | benjamin.peterson | 2009-01-20 12:58:27 -0600 (Tue, 20 Jan 2009) | 1 line

  fix url
........
  r68842 | andrew.kuchling | 2009-01-20 20:16:26 -0600 (Tue, 20 Jan 2009) | 1 line

  Markup fixes
........
  r68859 | georg.brandl | 2009-01-22 12:29:28 -0600 (Thu, 22 Jan 2009) | 2 lines

  Clarify wording.
........

16 years agoIgnore pyc and pyo files.
Brett Cannon [Thu, 22 Jan 2009 22:45:00 +0000 (22:45 +0000)]
Ignore pyc and pyo files.

16 years agoAdd some comment markers to more clearly delineate what different parts of the
Brett Cannon [Thu, 22 Jan 2009 22:44:04 +0000 (22:44 +0000)]
Add some comment markers to more clearly delineate what different parts of the
code are for. Also add a note that the import * at the end of the file should
eventually go away.

16 years agoAdd importlib.machinery with its first tenants, BuitinImporter and
Brett Cannon [Thu, 22 Jan 2009 22:43:07 +0000 (22:43 +0000)]
Add importlib.machinery with its first tenants, BuitinImporter and
FrozenImporter. Docs forthcoming.

I plan on all finders and loaders (and most likely hooks) to live
in imoprtlib.machinery. Utility stuff will end up in importlib.util.
Higher-level API stuff will stay on imoprtlib directly (e.g. import_module).

16 years agomerge r68862 to py3k
Jesse Noller [Thu, 22 Jan 2009 21:56:13 +0000 (21:56 +0000)]
merge r68862 to py3k

16 years agoBlocked revisions 68850,68853 via svnmerge
Benjamin Peterson [Thu, 22 Jan 2009 21:50:27 +0000 (21:50 +0000)]
Blocked revisions 68850,68853 via svnmerge

........
  r68850 | raymond.hettinger | 2009-01-21 23:20:47 -0600 (Wed, 21 Jan 2009) | 1 line

  More doc tweaks.
........
  r68853 | raymond.hettinger | 2009-01-22 03:05:43 -0600 (Thu, 22 Jan 2009) | 1 line

  Update comments and add an optimized path for Counter.update().
........

16 years agoFix markup for arguments in importlib docs.
Brett Cannon [Thu, 22 Jan 2009 18:37:20 +0000 (18:37 +0000)]
Fix markup for arguments in importlib docs.

16 years agoFollowup of #4874: also fix multibytecodec.c
Antoine Pitrou [Thu, 22 Jan 2009 11:59:55 +0000 (11:59 +0000)]
Followup of #4874: also fix multibytecodec.c

16 years agoIssue #4874: Most builtin decoders now reject unicode input.
Antoine Pitrou [Thu, 22 Jan 2009 10:11:36 +0000 (10:11 +0000)]
Issue #4874: Most builtin decoders now reject unicode input.

16 years agoUpdate comments and add an optimized path for Counter.update().
Raymond Hettinger [Thu, 22 Jan 2009 09:09:55 +0000 (09:09 +0000)]
Update comments and add an optimized path for Counter.update().

16 years agoMore doc tweaks.
Raymond Hettinger [Thu, 22 Jan 2009 05:27:37 +0000 (05:27 +0000)]
More doc tweaks.

16 years agoBlocked revisions 68760,68793,68813,68826,68829,68831 via svnmerge
Benjamin Peterson [Thu, 22 Jan 2009 03:21:11 +0000 (03:21 +0000)]
Blocked revisions 68760,68793,68813,68826,68829,68831 via svnmerge

........
  r68760 | vinay.sajip | 2009-01-19 00:49:19 -0600 (Mon, 19 Jan 2009) | 1 line

  Added more cross-reference targets and tidied up list of useful handlers.
........
  r68793 | raymond.hettinger | 2009-01-19 21:36:36 -0600 (Mon, 19 Jan 2009) | 1 line

  Make merging easier by formattng comment blocks the same in Py3.1
........
  r68813 | raymond.hettinger | 2009-01-20 14:34:19 -0600 (Tue, 20 Jan 2009) | 3 lines

  Issue 4998:  __slots__ on Fractions was useless.
........
  r68826 | vinay.sajip | 2009-01-20 16:43:17 -0600 (Tue, 20 Jan 2009) | 1 line

  Issue 5013: Fixed bug in FileHandler when delay was set.
........
  r68829 | vinay.sajip | 2009-01-20 17:16:08 -0600 (Tue, 20 Jan 2009) | 1 line

  Issue 5013: Fixed bug in FileHandler when delay was set - added fix for RotatingFileHandler and changed header comment slightly.
........
  r68831 | raymond.hettinger | 2009-01-20 17:42:54 -0600 (Tue, 20 Jan 2009) | 1 line

  Beautify and cleanup the references section.
........

16 years agoBlocked revisions 68843,68845 via svnmerge
Benjamin Peterson [Thu, 22 Jan 2009 02:24:32 +0000 (02:24 +0000)]
Blocked revisions 68843,68845 via svnmerge

........
  r68843 | raymond.hettinger | 2009-01-21 14:31:50 -0600 (Wed, 21 Jan 2009) | 1 line

  Simplify explanation of multiset operations by removing restrictions on negative inputs.
........
  r68845 | raymond.hettinger | 2009-01-21 17:12:51 -0600 (Wed, 21 Jan 2009) | 1 line

  Tighten-up the docs for Counter().
........

16 years agoTighten-up the docs for Counter().
Raymond Hettinger [Wed, 21 Jan 2009 23:14:07 +0000 (23:14 +0000)]
Tighten-up the docs for Counter().

16 years agoSimplify explanation of multiset operations by removing restrictions on negative...
Raymond Hettinger [Wed, 21 Jan 2009 20:36:27 +0000 (20:36 +0000)]
Simplify explanation of multiset operations by removing restrictions on negative inputs.

16 years agomerge r68839 forward to py3k
Jesse Noller [Wed, 21 Jan 2009 02:15:48 +0000 (02:15 +0000)]
merge r68839 forward to py3k

16 years agoMerged revisions 68835 via svnmerge from
Antoine Pitrou [Wed, 21 Jan 2009 00:55:13 +0000 (00:55 +0000)]
Merged revisions 68835 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68835 | antoine.pitrou | 2009-01-21 01:45:36 +0100 (mer., 21 janv. 2009) | 6 lines

  Issue #5008: When a file is opened in append mode with the new IO library,
  do an explicit seek to the end of file (so that e.g. tell() returns the
  file size rather than 0). This is consistent with the behaviour of the
  traditional 2.x file object.
........

16 years agoIssue 5013: Fixed bug in FileHandler when delay was set - added fix for RotatingFileH...
Vinay Sajip [Wed, 21 Jan 2009 00:19:28 +0000 (00:19 +0000)]
Issue 5013: Fixed bug in FileHandler when delay was set - added fix for RotatingFileHandler and changed header comment slightly.

16 years agoBeautify and cleanup the references section.
Raymond Hettinger [Tue, 20 Jan 2009 23:44:31 +0000 (23:44 +0000)]
Beautify and cleanup the references section.

16 years agoRevert part of r68799 which unintentionally updated this file.
Raymond Hettinger [Tue, 20 Jan 2009 21:25:32 +0000 (21:25 +0000)]
Revert part of r68799 which unintentionally updated this file.

16 years agoIssue 4842, patch 2/2: int('3L') should be invalid in Python 3.x.
Mark Dickinson [Tue, 20 Jan 2009 20:45:53 +0000 (20:45 +0000)]
Issue 4842, patch 2/2:  int('3L') should be invalid in Python 3.x.

16 years agoIssue #4842, patch 1/2: fix pickle in Python 3.x so that pickling with the
Mark Dickinson [Tue, 20 Jan 2009 20:43:58 +0000 (20:43 +0000)]
Issue #4842, patch 1/2: fix pickle in Python 3.x so that pickling with the
'L' opcode always appends an 'L' on output, just as 2.x does.  When
unpickling, remove the trailing 'L' (if present) before passing the
result to PyLong_FromString.

16 years agoBlocked revisions 68764,68766 via svnmerge
Benjamin Peterson [Tue, 20 Jan 2009 18:50:52 +0000 (18:50 +0000)]
Blocked revisions 68764,68766 via svnmerge

........
  r68764 | benjamin.peterson | 2009-01-19 09:04:35 -0600 (Mon, 19 Jan 2009) | 3 lines

  Removed merge tracking for "svnmerge" for
  svn+ssh://pythondev@svn.python.org/python/branches/trunk-math
........
  r68766 | benjamin.peterson | 2009-01-19 09:06:33 -0600 (Mon, 19 Jan 2009) | 3 lines

  Removed merge tracking for "svnmerge" for
  svn+ssh://pythondev@svn.python.org/python/branches/tnelson-trunk-bsddb-47-upgrade
........

16 years agoMerged revisions 68797,68801 via svnmerge from
Benjamin Peterson [Tue, 20 Jan 2009 15:01:54 +0000 (15:01 +0000)]
Merged revisions 68797,68801 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68797 | raymond.hettinger | 2009-01-20 01:11:47 -0600 (Tue, 20 Jan 2009) | 11 lines

  Don't disrupt automatic url target name generation
  with manually specified, conflicting names.

  Before:
      http://docs.python.org/dev/library/collections.html#id1

  After:
      http://docs.python.org/dev/library/collections.html#counter-objects
........
  r68801 | raymond.hettinger | 2009-01-20 04:46:23 -0600 (Tue, 20 Jan 2009) | 5 lines

  Use Georg's new permalinks to documentation by version number.
  That assures that IDLE's help always points to the correct
  version and the latest update with all bug fixes.
........

16 years agoBlocked revisions 68807 via svnmerge
Benjamin Peterson [Tue, 20 Jan 2009 14:33:15 +0000 (14:33 +0000)]
Blocked revisions 68807 via svnmerge

........
  r68807 | benjamin.peterson | 2009-01-20 08:31:08 -0600 (Tue, 20 Jan 2009) | 1 line

  backport r68802 (bugfix)
........

16 years agoBlocked revisions 68803,68805 via svnmerge
Benjamin Peterson [Tue, 20 Jan 2009 14:24:13 +0000 (14:24 +0000)]
Blocked revisions 68803,68805 via svnmerge

........
  r68803 | raymond.hettinger | 2009-01-20 06:59:36 -0600 (Tue, 20 Jan 2009) | 1 line

  Fix typos.
........
  r68805 | benjamin.peterson | 2009-01-20 08:21:16 -0600 (Tue, 20 Jan 2009) | 1 line

  allow unicode keyword arguments for the ** syntax #4978
........

16 years agoFix typos.
Raymond Hettinger [Tue, 20 Jan 2009 13:00:59 +0000 (13:00 +0000)]
Fix typos.

16 years agoFix typo
Antoine Pitrou [Tue, 20 Jan 2009 11:42:11 +0000 (11:42 +0000)]
Fix typo

16 years agoIssue 4998: Decimal should not subclass or register with numbers.Real.
Raymond Hettinger [Tue, 20 Jan 2009 07:24:44 +0000 (07:24 +0000)]
Issue 4998: Decimal should not subclass or register with numbers.Real.

16 years agoForward port r68797: Fix-up jump targets in collections docs.
Raymond Hettinger [Tue, 20 Jan 2009 07:15:22 +0000 (07:15 +0000)]
Forward port r68797: Fix-up jump targets in collections docs.

16 years agoBlocked revisions 68789,68792 via svnmerge
Benjamin Peterson [Tue, 20 Jan 2009 04:02:27 +0000 (04:02 +0000)]
Blocked revisions 68789,68792 via svnmerge

........
  r68789 | raymond.hettinger | 2009-01-19 19:19:26 -0600 (Mon, 19 Jan 2009) | 6 lines

  Build-outs for Counter() class:
  * Constructor and update() support keyword args (like their dict counterparts).
  * The 'del' statement no longer raises KeyError for missing values.
  * Add multiset operations:  __add__, __sub__, __and__, __or__.
........
  r68792 | raymond.hettinger | 2009-01-19 20:24:38 -0600 (Mon, 19 Jan 2009) | 1 line

  Add Counter() to __all__.
........

16 years agoForward port r68792 and r68789 putting Counter in __all__ and adding Counter buildouts.
Raymond Hettinger [Tue, 20 Jan 2009 03:41:22 +0000 (03:41 +0000)]
Forward port r68792 and r68789 putting Counter in __all__ and adding Counter buildouts.

16 years agoDocument the (very small) public API for importlib. As time goes on and some
Brett Cannon [Tue, 20 Jan 2009 02:21:27 +0000 (02:21 +0000)]
Document the (very small) public API for importlib. As time goes on and some
key refactorings occur more of the API will be exposed and documented.

16 years agoClarify how the specify the name of a module with the 'module' directive.
Brett Cannon [Tue, 20 Jan 2009 02:09:18 +0000 (02:09 +0000)]
Clarify how the specify the name of a module with the 'module' directive.

16 years agomerge r68787 to py3k
Jesse Noller [Tue, 20 Jan 2009 00:23:01 +0000 (00:23 +0000)]
merge r68787 to py3k

16 years agoBlocked revisions 68785 via svnmerge
Benjamin Peterson [Mon, 19 Jan 2009 21:11:05 +0000 (21:11 +0000)]
Blocked revisions 68785 via svnmerge

........
  r68785 | benjamin.peterson | 2009-01-19 15:08:37 -0600 (Mon, 19 Jan 2009) | 1 line

  I'm sick of these deprecations warnings in test_os
........

16 years agoMerged revisions 68779 via svnmerge from
Benjamin Peterson [Mon, 19 Jan 2009 21:00:09 +0000 (21:00 +0000)]
Merged revisions 68779 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68779 | benjamin.peterson | 2009-01-19 11:37:42 -0600 (Mon, 19 Jan 2009) | 1 line

  make bad file descriptor tests more robust
........

16 years agoMerged revisions 68763,68773 via svnmerge from
Benjamin Peterson [Mon, 19 Jan 2009 17:53:36 +0000 (17:53 +0000)]
Merged revisions 68763,68773 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68763 | kristjan.jonsson | 2009-01-19 07:10:27 -0600 (Mon, 19 Jan 2009) | 2 lines

  Issue 4957
  Let os.ftruncate raise OSError like documented.
........
  r68773 | benjamin.peterson | 2009-01-19 09:51:27 -0600 (Mon, 19 Jan 2009) | 1 line

  simplify code
........

16 years agomerge r68768 to py3k
Jesse Noller [Mon, 19 Jan 2009 16:23:53 +0000 (16:23 +0000)]
merge r68768 to py3k

16 years agofix compiler warning
Benjamin Peterson [Mon, 19 Jan 2009 15:19:46 +0000 (15:19 +0000)]
fix compiler warning

16 years agoreenable the invalid fd test for fdopen
Benjamin Peterson [Mon, 19 Jan 2009 15:15:02 +0000 (15:15 +0000)]
reenable the invalid fd test for fdopen

16 years agoMerged revisions 68755 via svnmerge from
Benjamin Peterson [Mon, 19 Jan 2009 15:11:51 +0000 (15:11 +0000)]
Merged revisions 68755 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68755 | benjamin.peterson | 2009-01-18 18:08:08 -0600 (Sun, 18 Jan 2009) | 1 line

  raise an OSError for invalid fds #4991
........

16 years agoRemove a debugging print statement that accidentally got left in.
Brett Cannon [Mon, 19 Jan 2009 07:07:58 +0000 (07:07 +0000)]
Remove a debugging print statement that accidentally got left in.

16 years agoFix a typo in some code that is not tested or supported yet.
Brett Cannon [Mon, 19 Jan 2009 06:56:16 +0000 (06:56 +0000)]
Fix a typo in some code that is not tested or supported yet.

Closes issue 4993. Thanks Antoine Pitrou for the catch.

16 years agoBlocked revisions 68544-68545,68597 via svnmerge
Benjamin Peterson [Sun, 18 Jan 2009 22:58:55 +0000 (22:58 +0000)]
Blocked revisions 68544-68545,68597 via svnmerge

........
  r68544 | kristjan.jonsson | 2009-01-12 03:20:34 -0600 (Mon, 12 Jan 2009) | 1 line

  Update Misc/NEWS for issue 3582
........
  r68545 | kristjan.jonsson | 2009-01-12 03:24:04 -0600 (Mon, 12 Jan 2009) | 1 line

  Misc/NEWS for issue 4293
........
  r68597 | benjamin.peterson | 2009-01-13 17:43:50 -0600 (Tue, 13 Jan 2009) | 1 line

  fix test_xmlrpc failures #4939
........

16 years agoMerged revisions 68546 via svnmerge from
Benjamin Peterson [Sun, 18 Jan 2009 22:46:33 +0000 (22:46 +0000)]
Merged revisions 68546 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68546 | raymond.hettinger | 2009-01-12 04:37:32 -0600 (Mon, 12 Jan 2009) | 1 line

  Optimize heapq.nsmallest/nlargest for cases where n==1 or n>=size.
........

16 years agoMerged revisions 68633,68648,68667,68706,68718,68720-68721,68724-68727,68739 via...
Benjamin Peterson [Sun, 18 Jan 2009 22:27:04 +0000 (22:27 +0000)]
Merged revisions 68633,68648,68667,68706,68718,68720-68721,68724-68727,68739 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68633 | thomas.heller | 2009-01-16 12:53:44 -0600 (Fri, 16 Jan 2009) | 3 lines

  Change an example in the docs to avoid a mistake when the code is copy
  pasted and changed afterwards.
........
  r68648 | benjamin.peterson | 2009-01-16 22:28:57 -0600 (Fri, 16 Jan 2009) | 1 line

  use enumerate
........
  r68667 | amaury.forgeotdarc | 2009-01-17 14:18:59 -0600 (Sat, 17 Jan 2009) | 3 lines

  #4077: No need to append \n when calling Py_FatalError
  + fix a declaration to make it match the one in pythonrun.h
........
  r68706 | benjamin.peterson | 2009-01-17 19:28:46 -0600 (Sat, 17 Jan 2009) | 1 line

  fix grammar
........
  r68718 | georg.brandl | 2009-01-18 04:42:35 -0600 (Sun, 18 Jan 2009) | 1 line

  #4976: union() and intersection() take multiple args, but talk about "the other".
........
  r68720 | georg.brandl | 2009-01-18 04:45:22 -0600 (Sun, 18 Jan 2009) | 1 line

  #4974: fix redundant mention of lists and tuples.
........
  r68721 | georg.brandl | 2009-01-18 04:48:16 -0600 (Sun, 18 Jan 2009) | 1 line

  #4914: trunc is in math.
........
  r68724 | georg.brandl | 2009-01-18 07:24:10 -0600 (Sun, 18 Jan 2009) | 1 line

  #4979: correct result range for some random functions.
........
  r68725 | georg.brandl | 2009-01-18 07:47:26 -0600 (Sun, 18 Jan 2009) | 1 line

  #4857: fix augmented assignment target spec.
........
  r68726 | georg.brandl | 2009-01-18 08:41:52 -0600 (Sun, 18 Jan 2009) | 1 line

  #4923: clarify what was added.
........
  r68727 | georg.brandl | 2009-01-18 12:25:30 -0600 (Sun, 18 Jan 2009) | 1 line

  #4986: augassigns are not expressions.
........
  r68739 | benjamin.peterson | 2009-01-18 15:11:38 -0600 (Sun, 18 Jan 2009) | 1 line

  fix test that wasn't working as expected #4990
........

16 years agoMerged revisions 68568,68665 via svnmerge from
Benjamin Peterson [Sun, 18 Jan 2009 22:10:38 +0000 (22:10 +0000)]
Merged revisions 68568,68665 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68568 | georg.brandl | 2009-01-13 02:11:07 -0600 (Tue, 13 Jan 2009) | 2 lines

  Fix call signature and markup.
........
  r68665 | amaury.forgeotdarc | 2009-01-17 11:11:50 -0600 (Sat, 17 Jan 2009) | 3 lines

  #4930: Slightly cleaner (and faster) code in type creation:
  compare slots by address, not by name.
........

16 years agomerge cl r68737 to py3k
Jesse Noller [Sun, 18 Jan 2009 21:12:58 +0000 (21:12 +0000)]
merge cl r68737 to py3k

16 years agoMerged revisions 68547,68607,68610,68618,68621-68622,68649,68722 via svnmerge from
Benjamin Peterson [Sun, 18 Jan 2009 21:02:37 +0000 (21:02 +0000)]
Merged revisions 68547,68607,68610,68618,68621-68622,68649,68722 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68547 | kristjan.jonsson | 2009-01-12 12:09:27 -0600 (Mon, 12 Jan 2009) | 1 line

  Add tests for invalid format specifiers in strftime, and for handling of invalid file descriptors in the os module.
........
  r68607 | kristjan.jonsson | 2009-01-14 04:50:57 -0600 (Wed, 14 Jan 2009) | 2 lines

  Re-enable all tests for windows platforms.
  Also, explicitly connect to the IPV4 address.  On windows platforms supporting AF_INET6, the SocketProxy would connect using socket.create_connection('localhost', port) which would cycle through all address families and try to connect.  It would try connecting using AF_INET6 first and this would cause a delay of up to a second.
........
  r68610 | kristjan.jonsson | 2009-01-15 03:09:13 -0600 (Thu, 15 Jan 2009) | 3 lines

  Fix recently introduced test cases.
  For datetime, gentoo didn't seem to mind the %e format for strftime.  So, we just excercise those instead making sure that we don't crash.
  For test_os, two cases were incorrect.
........
  r68618 | kristjan.jonsson | 2009-01-15 11:20:21 -0600 (Thu, 15 Jan 2009) | 1 line

  Issue 4929:  Handle socket errors when receiving
........
  r68621 | kristjan.jonsson | 2009-01-15 16:40:03 -0600 (Thu, 15 Jan 2009) | 1 line

  Fix two test cases in test_os.  ftruncate raises IOError unlike all the others which raise OSError.  And close() on some platforms doesn't complain when given an invalid file descriptor.
........
  r68622 | kristjan.jonsson | 2009-01-15 16:46:26 -0600 (Thu, 15 Jan 2009) | 1 line

  Make all the invalid fd tests for os subject to the function being available.
........
  r68649 | benjamin.peterson | 2009-01-16 22:39:05 -0600 (Fri, 16 Jan 2009) | 1 line

  trying to find some fpathconf() settings that all unixs support...
........
  r68722 | kristjan.jonsson | 2009-01-18 04:58:44 -0600 (Sun, 18 Jan 2009) | 1 line

  issue 4293:  make test_capi.py more robutst, it times out on some platforms, presumably waiting for threads.  Lower the thread count to 16.
........

16 years agoIssue #4815: Offer conversion to UTF-8 if source files have
Martin v. Löwis [Sun, 18 Jan 2009 20:23:36 +0000 (20:23 +0000)]
Issue #4815: Offer conversion to UTF-8 if source files have
no encoding declaration and are not encoded in UTF-8.

16 years agoIssue #4008: Fix problems with non-ASCII source files.
Martin v. Löwis [Sun, 18 Jan 2009 20:15:42 +0000 (20:15 +0000)]
Issue #4008: Fix problems with non-ASCII source files.

16 years agoCorrect issue number for 68728 checkin
Jesse Noller [Sun, 18 Jan 2009 19:45:18 +0000 (19:45 +0000)]
Correct issue number for 68728 checkin

16 years agoIssues #10867: remove old cPickle imports from multiprocessing
Jesse Noller [Sun, 18 Jan 2009 19:44:02 +0000 (19:44 +0000)]
Issues #10867: remove old cPickle imports from multiprocessing

16 years ago#4975: fix bytes/str issue.
Georg Brandl [Sun, 18 Jan 2009 10:43:58 +0000 (10:43 +0000)]
#4975: fix bytes/str issue.

16 years ago#4983: clarify what "byte sequence" is.
Georg Brandl [Sun, 18 Jan 2009 10:40:25 +0000 (10:40 +0000)]
#4983: clarify what "byte sequence" is.

16 years ago#4984: fix number of types.
Georg Brandl [Sun, 18 Jan 2009 10:38:16 +0000 (10:38 +0000)]
#4984: fix number of types.

16 years agoTests of case-sensitivity were being executed on OSs which did not have a
Brett Cannon [Sun, 18 Jan 2009 06:55:05 +0000 (06:55 +0000)]
Tests of case-sensitivity were being executed on OSs which did not have a
case-insensitive file system, leading to test failures. This was due to using
the TestCase objects directly instead of the guard in the test_main() function.
Move over to a class decorator instead to control if the tests should be run.

16 years agoMerge r68708 to py3k, fixes 4449
Jesse Noller [Sun, 18 Jan 2009 03:11:38 +0000 (03:11 +0000)]
Merge r68708 to py3k, fixes 4449

16 years agoBlocked revisions 68705 via svnmerge
Benjamin Peterson [Sun, 18 Jan 2009 01:29:28 +0000 (01:29 +0000)]
Blocked revisions 68705 via svnmerge

........
  r68705 | benjamin.peterson | 2009-01-17 19:28:09 -0600 (Sat, 17 Jan 2009) | 1 line

  bytearrays are mutable sequences
........

16 years agoNOTES for importlib should mention the ultimate end-goal for the package.
Brett Cannon [Sun, 18 Jan 2009 00:36:55 +0000 (00:36 +0000)]
NOTES for importlib should mention the ultimate end-goal for the package.

16 years agoSkip over any file or folder that starts with a dot (e.g. .svn).
Brett Cannon [Sun, 18 Jan 2009 00:36:22 +0000 (00:36 +0000)]
Skip over any file or folder that starts with a dot (e.g. .svn).

16 years agoMerged revisions 68678 via svnmerge from
Amaury Forgeot d'Arc [Sun, 18 Jan 2009 00:29:02 +0000 (00:29 +0000)]
Merged revisions 68678 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68678 | amaury.forgeotdarc | 2009-01-17 23:43:50 +0100 (Sat, 17 Jan 2009) | 3 lines

  follow-up of #3997: since 0xFFFF numbers are not enough to indicate a zip64 format,
  always try to read the "zip64 end of directory structure".
........

16 years agoAdd initial implementation of importlib. See the NOTES files for what is
Brett Cannon [Sun, 18 Jan 2009 00:24:28 +0000 (00:24 +0000)]
Add initial implementation of importlib. See the NOTES files for what is
planned for the package.

There are no docs yet, but they are coming once the API for the first new
function, importlib.import_module() is finalized.

16 years agoMerged revisions 68459 via svnmerge from
Benjamin Peterson [Sun, 18 Jan 2009 00:08:45 +0000 (00:08 +0000)]
Merged revisions 68459 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68459 | kristjan.jonsson | 2009-01-09 14:27:16 -0600 (Fri, 09 Jan 2009) | 1 line

  Issue 4336:  Let users of HTTPConnection.endheaders() submit a message body to the function if required.
........

16 years agoMerged revisions 68458 via svnmerge from
Benjamin Peterson [Sun, 18 Jan 2009 00:04:57 +0000 (00:04 +0000)]
Merged revisions 68458 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68458 | kristjan.jonsson | 2009-01-09 14:23:16 -0600 (Fri, 09 Jan 2009) | 1 line

  Issue 4336:  HTTPRequest._send_output() now deals with the case of the message body not being a string.  This allows clients to use endheaders(message_body) instead of endheaders() + send(message_body) without making any extra checks.
........

16 years agofix compiler warning
Benjamin Peterson [Sat, 17 Jan 2009 23:46:54 +0000 (23:46 +0000)]
fix compiler warning

16 years agoMerged revisions 68460 via svnmerge from
Benjamin Peterson [Sat, 17 Jan 2009 23:43:58 +0000 (23:43 +0000)]
Merged revisions 68460 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68460 | kristjan.jonsson | 2009-01-09 14:31:26 -0600 (Fri, 09 Jan 2009) | 1 line

  Issue 4293:  Make Py_AddPendingCall() thread safe
........

16 years agoI'm just going to assume that all of these revisions don't need to be merge, since...
Benjamin Peterson [Sat, 17 Jan 2009 23:28:17 +0000 (23:28 +0000)]
I'm just going to assume that all of these revisions don't need to be merge, since it's not indicated:

Blocked revisions 68559,68562,68565-68567,68569,68603-68605 via svnmerge

........
  r68559 | raymond.hettinger | 2009-01-12 16:58:41 -0600 (Mon, 12 Jan 2009) | 1 line

  Issue 1696199: Add collections.Counter().
........
  r68562 | raymond.hettinger | 2009-01-12 19:05:03 -0600 (Mon, 12 Jan 2009) | 7 lines

  Simplify Counter() API.  Replace items keyword argument
  with a mapping.  Makes Counter() idempotent, makes update()
  API the same as Counter.__init__(), makes a more readable
  repr, makes the API more dict-like, and allows Steven
  Bethard's update() example to work.
........
  r68565 | raymond.hettinger | 2009-01-12 21:49:43 -0600 (Mon, 12 Jan 2009) | 1 line

  Minor documentation tweaks and simpler update() example.
........
  r68566 | raymond.hettinger | 2009-01-12 22:13:53 -0600 (Mon, 12 Jan 2009) | 1 line

  Fixup and simplify docstrings and doctests.
........
  r68567 | raymond.hettinger | 2009-01-12 22:50:35 -0600 (Mon, 12 Jan 2009) | 1 line

  Speed-up __repr__.  Eliminate duplicate tests.  Use a from-irmport.
........
  r68569 | raymond.hettinger | 2009-01-13 02:38:14 -0600 (Tue, 13 Jan 2009) | 7 lines

  Add table of idioms/patterns for using Counter objects.
  Improve the appearance and flow of the References section -- it used
  to have a box around it that wasn't distinct from the preceding code
  boxes and it had a weird bolding pattern and hanging indents that
  made the section disproportionately large.
........
  r68603 | raymond.hettinger | 2009-01-13 18:15:21 -0600 (Tue, 13 Jan 2009) | 1 line

  Minor doc tweaks.
........
  r68604 | raymond.hettinger | 2009-01-13 19:15:06 -0600 (Tue, 13 Jan 2009) | 1 line

  Add tests for __init__() and update() with no args.
........
  r68605 | raymond.hettinger | 2009-01-13 19:39:51 -0600 (Tue, 13 Jan 2009) | 1 line

  Fix-up indentation of sample code blocks for namedtuple mthod definitions.
........

16 years agoMerged revisions 68676 via svnmerge from
Benjamin Peterson [Sat, 17 Jan 2009 22:41:18 +0000 (22:41 +0000)]
Merged revisions 68676 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68676 | benjamin.peterson | 2009-01-17 16:27:54 -0600 (Sat, 17 Jan 2009) | 1 line

  fix inspect.isclass() on instances with a custom __getattr__ #1225107
........

16 years agoReplace PyNumber_Int with PyNumber_Long.
Mark Dickinson [Sat, 17 Jan 2009 21:57:11 +0000 (21:57 +0000)]
Replace PyNumber_Int with PyNumber_Long.

16 years agoIssue #4838: When a module is deallocated, free the memory backing the optional modul...
Antoine Pitrou [Sat, 17 Jan 2009 21:06:43 +0000 (21:06 +0000)]
Issue #4838: When a module is deallocated, free the memory backing the optional module state data.

16 years agoMerged revisions 68661 via svnmerge from
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 16:42:26 +0000 (16:42 +0000)]
Merged revisions 68661 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68661 | amaury.forgeotdarc | 2009-01-17 17:40:17 +0100 (Sat, 17 Jan 2009) | 5 lines

  #3997: zipfiles generated with more than 65536 files could not be opened
  with other applications.

  Reviewed by Martin, will backport to 2.6 and 3.0
........

16 years agoRemove attempted long->int conversions in py3k version of float.as_integer_ratio.
Mark Dickinson [Sat, 17 Jan 2009 10:48:28 +0000 (10:48 +0000)]
Remove attempted long->int conversions in py3k version of float.as_integer_ratio.

16 years agoFix a few more references to long integers in the docs.
Mark Dickinson [Sat, 17 Jan 2009 10:21:23 +0000 (10:21 +0000)]
Fix a few more references to long integers in the docs.

16 years agoIssue #4910, patch 3/3: rename nb_long to nb_reserved
Mark Dickinson [Sat, 17 Jan 2009 10:04:45 +0000 (10:04 +0000)]
Issue #4910, patch 3/3:  rename nb_long to nb_reserved

16 years agoRemove a couple of references to long in the c-api docs
Mark Dickinson [Sat, 17 Jan 2009 09:45:37 +0000 (09:45 +0000)]
Remove a couple of references to long in the c-api docs

16 years agofix inspect.formatargspec on functions with keyword-only arguments without defaults...
Benjamin Peterson [Sat, 17 Jan 2009 04:15:01 +0000 (04:15 +0000)]
fix inspect.formatargspec on functions with keyword-only arguments without defaults #4959

16 years agoMake test_io faster
Antoine Pitrou [Sat, 17 Jan 2009 02:40:13 +0000 (02:40 +0000)]
Make test_io faster

16 years agoDefine PY_SSIZE_T_CLEAN at the top of the dbm module. This should fix the
Mark Dickinson [Fri, 16 Jan 2009 19:31:13 +0000 (19:31 +0000)]
Define PY_SSIZE_T_CLEAN at the top of the dbm module.  This should fix the
segfaults on the PPC64/Debian buildbots.