]> granicus.if.org Git - python/log
python
17 years agoRemove paragraph about old-style classes.
Georg Brandl [Mon, 7 Jan 2008 09:29:34 +0000 (09:29 +0000)]
Remove paragraph about old-style classes.

17 years agoFix reverse Ximenez symptom.
Georg Brandl [Mon, 7 Jan 2008 09:27:36 +0000 (09:27 +0000)]
Fix reverse Ximenez symptom.

17 years agoFix note markup.
Georg Brandl [Mon, 7 Jan 2008 09:16:46 +0000 (09:16 +0000)]
Fix note markup.

17 years agoRemove obsolete note.
Georg Brandl [Mon, 7 Jan 2008 09:13:03 +0000 (09:13 +0000)]
Remove obsolete note.

17 years agoClean up PyString_Size().
Alexandre Vassalotti [Mon, 7 Jan 2008 02:06:10 +0000 (02:06 +0000)]
Clean up PyString_Size().

Removed string_getsize(), since it was only useful when
PyString_AsStringAndSize was able to convert an (ascii)
Unicode object to a C string.

17 years agoMissed one because of indirection.
Georg Brandl [Sun, 6 Jan 2008 21:41:49 +0000 (21:41 +0000)]
Missed one because of indirection.

17 years agoThe final occurrences of exception slicing.
Georg Brandl [Sun, 6 Jan 2008 21:38:54 +0000 (21:38 +0000)]
The final occurrences of exception slicing.

17 years agoFix more exception slicing.
Georg Brandl [Sun, 6 Jan 2008 21:13:42 +0000 (21:13 +0000)]
Fix more exception slicing.

17 years agoFix exception slicing.
Georg Brandl [Sun, 6 Jan 2008 18:23:30 +0000 (18:23 +0000)]
Fix exception slicing.

17 years agoUse consistent note numbers.
Georg Brandl [Sun, 6 Jan 2008 17:39:49 +0000 (17:39 +0000)]
Use consistent note numbers.

17 years agoClarify sentence in tutorial. Thanks to Marek Kubica.
Georg Brandl [Sun, 6 Jan 2008 17:25:36 +0000 (17:25 +0000)]
Clarify sentence in tutorial. Thanks to Marek Kubica.

17 years agoMerged revisions 59774-59783 via svnmerge from
Christian Heimes [Sun, 6 Jan 2008 17:05:40 +0000 (17:05 +0000)]
Merged revisions 59774-59783 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59774 | georg.brandl | 2008-01-06 16:41:50 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1501: document that 0**0 == 1.
........
  r59775 | georg.brandl | 2008-01-06 16:48:20 +0100 (Sun, 06 Jan 2008) | 2 lines

  #759525: document that dir() doesn't return metaclass attrs when given a class as arg.
........
  r59776 | georg.brandl | 2008-01-06 16:55:26 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1615275: clarify return object types of different tempfile factories.
........
  r59777 | georg.brandl | 2008-01-06 17:01:26 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1727024: document that Popen.returncode is set by Popen.poll/wait.
........
  r59778 | georg.brandl | 2008-01-06 17:04:56 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1686390: add example for csv.Sniffer use.
........
  r59779 | georg.brandl | 2008-01-06 17:12:39 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1559684: document that shutil.copy* doesn't copy all metadata on Posix and Windows too.
........
  r59780 | georg.brandl | 2008-01-06 17:17:56 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1582: document __reversed__, patch by Mark Russell.
........
  r59781 | georg.brandl | 2008-01-06 17:22:56 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1499: Document compile() exceptions.
........
  r59782 | georg.brandl | 2008-01-06 17:49:50 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1325: Add docs and tests for zipimporter.archive and zipimporter.prefix.
........

17 years agoMerged revisions 59703-59773 via svnmerge from
Christian Heimes [Sun, 6 Jan 2008 16:59:19 +0000 (16:59 +0000)]
Merged revisions 59703-59773 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59704 | christian.heimes | 2008-01-04 04:15:05 +0100 (Fri, 04 Jan 2008) | 1 line

  Moved include "Python.h" in front of other imports to silence a warning.
........
  r59706 | raymond.hettinger | 2008-01-04 04:22:53 +0100 (Fri, 04 Jan 2008) | 10 lines

  Minor fix-ups to named tuples:

  * Make the _replace() method respect subclassing.

  * Using property() to make _fields read-only wasn't a good idea.
    It caused len(Point._fields) to fail.

  * Add note to _cast() about length checking and alternative with the star-operator.
........
  r59707 | jeffrey.yasskin | 2008-01-04 09:01:23 +0100 (Fri, 04 Jan 2008) | 3 lines

  Make math.{floor,ceil}({int,long}) return float again for backwards
  compatibility after r59671 made them return integral types.
........
  r59709 | christian.heimes | 2008-01-04 14:21:07 +0100 (Fri, 04 Jan 2008) | 1 line

  Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
........
  r59712 | lars.gustaebel | 2008-01-04 15:00:33 +0100 (Fri, 04 Jan 2008) | 5 lines

  Issue #1735: TarFile.extractall() now correctly sets
  directory permissions and times.

  (will backport to 2.5)
........
  r59714 | andrew.kuchling | 2008-01-04 15:47:17 +0100 (Fri, 04 Jan 2008) | 1 line

  Update links to bug/patch tracker
........
  r59716 | christian.heimes | 2008-01-04 16:23:30 +0100 (Fri, 04 Jan 2008) | 1 line

  Added interface to Windows' WSAIoctl and a simple example for a network sniffer.
........
  r59717 | christian.heimes | 2008-01-04 16:29:00 +0100 (Fri, 04 Jan 2008) | 1 line

  And here is the rest of Hirokazu Yamamoto's patch for VS6.0 support. Thanks Hiro!
........
  r59719 | christian.heimes | 2008-01-04 16:34:06 +0100 (Fri, 04 Jan 2008) | 1 line

  Reverted last transaction. It's the wrong branch.
........
  r59721 | christian.heimes | 2008-01-04 16:48:06 +0100 (Fri, 04 Jan 2008) | 1 line

  socket.ioctl is only available on Windows
........
  r59722 | andrew.kuchling | 2008-01-04 19:24:41 +0100 (Fri, 04 Jan 2008) | 1 line

  Fix markup
........
  r59723 | andrew.kuchling | 2008-01-04 19:25:05 +0100 (Fri, 04 Jan 2008) | 1 line

  Fix markup
........
  r59725 | guido.van.rossum | 2008-01-05 01:59:59 +0100 (Sat, 05 Jan 2008) | 3 lines

  Patch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000
  and adds errors for -0x.
........
  r59726 | guido.van.rossum | 2008-01-05 02:21:57 +0100 (Sat, 05 Jan 2008) | 2 lines

  Patch #1698 by Senthil: allow '@' in username when parsed by urlparse.py.
........
  r59727 | raymond.hettinger | 2008-01-05 02:35:43 +0100 (Sat, 05 Jan 2008) | 1 line

  Improve namedtuple's _cast() method with a docstring, new name, and error-checking.
........
  r59728 | raymond.hettinger | 2008-01-05 03:17:24 +0100 (Sat, 05 Jan 2008) | 1 line

  Add error-checking to namedtuple's _replace() method.
........
  r59730 | fred.drake | 2008-01-05 05:38:38 +0100 (Sat, 05 Jan 2008) | 2 lines

  clean up a comment
........
  r59731 | jeffrey.yasskin | 2008-01-05 09:47:13 +0100 (Sat, 05 Jan 2008) | 11 lines

  Continue rolling back pep-3141 changes that changed behavior from 2.5. This
  round included:
   * Revert round to its 2.6 behavior (half away from 0).
   * Because round, floor, and ceil always return float again, it's no
     longer necessary to have them delegate to __xxx___, so I've ripped
     that out of their implementations and the Real ABC. This also helps
     in implementing types that work in both 2.6 and 3.0: you return int
     from the __xxx__ methods, and let it get enabled by the version
     upgrade.
   * Make pow(-1, .5) raise a ValueError again.
........
  r59736 | andrew.kuchling | 2008-01-05 16:13:49 +0100 (Sat, 05 Jan 2008) | 1 line

  Fix comment typo
........
  r59738 | thomas.heller | 2008-01-05 18:15:44 +0100 (Sat, 05 Jan 2008) | 1 line

  Add myself.
........
  r59739 | georg.brandl | 2008-01-05 18:49:17 +0100 (Sat, 05 Jan 2008) | 2 lines

  Fix C++-style comment.
........
  r59742 | georg.brandl | 2008-01-05 20:28:16 +0100 (Sat, 05 Jan 2008) | 2 lines

  Remove with_statement future imports from 2.6 docs.
........
  r59743 | georg.brandl | 2008-01-05 20:29:45 +0100 (Sat, 05 Jan 2008) | 2 lines

  Simplify index entries; fix #1712.
........
  r59744 | georg.brandl | 2008-01-05 20:44:22 +0100 (Sat, 05 Jan 2008) | 2 lines

  Doc patch #1730 from Robin Stocker; minor corrections mostly to os.rst.
........
  r59749 | georg.brandl | 2008-01-05 21:29:13 +0100 (Sat, 05 Jan 2008) | 2 lines

  Revert socket.rst to unix-eol.
........
  r59750 | georg.brandl | 2008-01-05 21:33:46 +0100 (Sat, 05 Jan 2008) | 2 lines

  Set native svn:eol-style property for text files.
........
  r59752 | georg.brandl | 2008-01-05 21:46:29 +0100 (Sat, 05 Jan 2008) | 2 lines

  #1719: capitalization error in "UuidCreate".
........
  r59753 | georg.brandl | 2008-01-05 22:02:25 +0100 (Sat, 05 Jan 2008) | 2 lines

  Repair markup.
........
  r59754 | georg.brandl | 2008-01-05 22:10:50 +0100 (Sat, 05 Jan 2008) | 2 lines

  Use markup.
........
  r59757 | christian.heimes | 2008-01-05 22:35:52 +0100 (Sat, 05 Jan 2008) | 1 line

  Final adjustments for #1601
........
  r59758 | guido.van.rossum | 2008-01-05 23:19:06 +0100 (Sat, 05 Jan 2008) | 3 lines

  Patch #1637: fix urlparse for URLs like 'http://x.com?arg=/foo'.
  Fix by John Nagle.
........
  r59759 | guido.van.rossum | 2008-01-05 23:20:01 +0100 (Sat, 05 Jan 2008) | 2 lines

  Add John Nagle (of issue #1637).
........
  r59765 | raymond.hettinger | 2008-01-06 10:02:24 +0100 (Sun, 06 Jan 2008) | 1 line

  Small code simplification.  Forgot that classmethods can be called from intances.
........
  r59766 | martin.v.loewis | 2008-01-06 11:09:48 +0100 (Sun, 06 Jan 2008) | 2 lines

  Use vcbuild for VS 2009.
........
  r59767 | martin.v.loewis | 2008-01-06 12:03:43 +0100 (Sun, 06 Jan 2008) | 2 lines

  Package using VS 2008.
........
  r59768 | martin.v.loewis | 2008-01-06 12:13:16 +0100 (Sun, 06 Jan 2008) | 2 lines

  Don't try to package msvcr90 for the moment.
........
  r59769 | georg.brandl | 2008-01-06 15:17:36 +0100 (Sun, 06 Jan 2008) | 4 lines

  #1696393: don't check for '.' and '..' in ntpath.walk since
  they aren't returned from os.listdir anymore.
  Reported by Michael Haggerty.
........
  r59770 | georg.brandl | 2008-01-06 15:27:15 +0100 (Sun, 06 Jan 2008) | 3 lines

  #1742: don't raise exception on os.path.relpath("a", "a"), but return os.curdir.
  Reported by Jesse Towner.
........
  r59771 | georg.brandl | 2008-01-06 15:33:52 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1591: Clarify docstring of Popen3.
........
  r59772 | georg.brandl | 2008-01-06 16:30:34 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1680: fix context manager example function name.
........
  r59773 | georg.brandl | 2008-01-06 16:34:57 +0100 (Sun, 06 Jan 2008) | 2 lines

  #1755097: document default values for [].sort() and sorted().
........

17 years agoAdd some missing news. Add some periods.
Guido van Rossum [Sun, 6 Jan 2008 00:44:20 +0000 (00:44 +0000)]
Add some missing news.  Add some periods.

17 years agoAdd unit tests for the newlines property of IncrementalNewlineDecoder.
Alexandre Vassalotti [Sun, 6 Jan 2008 00:34:32 +0000 (00:34 +0000)]
Add unit tests for the newlines property of IncrementalNewlineDecoder.

17 years agoIssue #1393: object_richcompare() returns NotImplemented instead of
Guido van Rossum [Sun, 6 Jan 2008 00:09:11 +0000 (00:09 +0000)]
Issue #1393: object_richcompare() returns NotImplemented instead of
 False if the objects aren't equal, to give the other side a chance.

17 years agoFix bug introduced by r59746.
Georg Brandl [Sat, 5 Jan 2008 21:20:19 +0000 (21:20 +0000)]
Fix bug introduced by r59746.

17 years agoBig fat todo.
Georg Brandl [Sat, 5 Jan 2008 21:16:33 +0000 (21:16 +0000)]
Big fat todo.

17 years agoSet native svn:eol-style property for text files.
Georg Brandl [Sat, 5 Jan 2008 20:41:27 +0000 (20:41 +0000)]
Set native svn:eol-style property for text files.

17 years agoRemove versionadded/changed directives merged as an oversight.
Georg Brandl [Sat, 5 Jan 2008 20:11:13 +0000 (20:11 +0000)]
Remove versionadded/changed directives merged as an oversight.

17 years agoMake math.floor and math.ceil return ints instead of floats.
Jeffrey Yasskin [Sat, 5 Jan 2008 20:03:11 +0000 (20:03 +0000)]
Make math.floor and math.ceil return ints instead of floats.

17 years agoRemove several mentions of old Python versions that don't apply anymore.
Georg Brandl [Sat, 5 Jan 2008 20:00:55 +0000 (20:00 +0000)]
Remove several mentions of old Python versions that don't apply anymore.

17 years agoTypo.
Georg Brandl [Sat, 5 Jan 2008 19:25:53 +0000 (19:25 +0000)]
Typo.

17 years agoRemove dead code brought in by merge glitch @ r59667
Kurt B. Kaiser [Sat, 5 Jan 2008 19:03:18 +0000 (19:03 +0000)]
Remove dead code brought in by merge glitch @ r59667

17 years agoFix merge glitch.
Guido van Rossum [Sat, 5 Jan 2008 16:46:23 +0000 (16:46 +0000)]
Fix merge glitch.

17 years agoInterpreter wasn't displaying the location of a SyntaxError
Kurt B. Kaiser [Sat, 5 Jan 2008 04:32:22 +0000 (04:32 +0000)]
Interpreter wasn't displaying the location of a SyntaxError
Issue1692

17 years agoAnd here is the rest of Hirokazu Yamamoto's patch for VS6.0 support. Thanks Hiro!
Christian Heimes [Fri, 4 Jan 2008 15:35:04 +0000 (15:35 +0000)]
And here is the rest of Hirokazu Yamamoto's patch for VS6.0 support. Thanks Hiro!

(This time, it's the correct branch :)

17 years agoSome VS 6.0 compatibility fixes from Hirokazu Yamamoto which are also useful for...
Christian Heimes [Fri, 4 Jan 2008 13:33:00 +0000 (13:33 +0000)]
Some VS 6.0 compatibility fixes from Hirokazu Yamamoto which are also useful for later versions of MSVC. VS6 claims that fortran is a reserved word

17 years agoFixed #1733: Maybe PC/VS7.1/pythoncore.vcproj is missing Modules/md5module.c
Christian Heimes [Fri, 4 Jan 2008 12:57:11 +0000 (12:57 +0000)]
Fixed #1733: Maybe PC/VS7.1/pythoncore.vcproj is missing Modules/md5module.c

17 years agoFixed test_long
Christian Heimes [Fri, 4 Jan 2008 03:22:53 +0000 (03:22 +0000)]
Fixed test_long

17 years agoMerged revisions 59696-59702 via svnmerge from
Christian Heimes [Fri, 4 Jan 2008 03:08:33 +0000 (03:08 +0000)]
Merged revisions 59696-59702 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59696 | amaury.forgeotdarc | 2008-01-04 03:04:15 +0100 (Fri, 04 Jan 2008) | 11 lines

  Partial port of r59682 from py3k.

  On Windows, when import fails to load a dll module, the message says
  "error code 193" instead of a more informative text.

  It turns out that FormatMessage needs additional parameters for some error codes.
  For example: 193 means "%1 is not a valid Win32 application".
  Since it is impossible to know which parameter to pass, we use
  FORMAT_MESSAGE_IGNORE_INSERTS to get the raw message, which is still better
  than the number.
........
  r59698 | andrew.kuchling | 2008-01-04 03:26:00 +0100 (Fri, 04 Jan 2008) | 1 line

  Typo fix
........
  r59699 | andrew.kuchling | 2008-01-04 03:31:40 +0100 (Fri, 04 Jan 2008) | 1 line

  Add math items; other edits
........
  r59700 | christian.heimes | 2008-01-04 03:46:19 +0100 (Fri, 04 Jan 2008) | 1 line

  Fixed refleak tests for _struct changes
........
  r59701 | christian.heimes | 2008-01-04 03:54:42 +0100 (Fri, 04 Jan 2008) | 1 line

  Added _struct._clearcache() for regression tests
........

17 years agoMerged revisions 59680-59695 via svnmerge from
Christian Heimes [Fri, 4 Jan 2008 03:06:10 +0000 (03:06 +0000)]
Merged revisions 59680-59695 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59686 | guido.van.rossum | 2008-01-04 00:54:04 +0100 (Fri, 04 Jan 2008) | 2 lines

  Bug #1301: fixed a bad assert in _tkinter.
........
  r59687 | raymond.hettinger | 2008-01-04 01:01:15 +0100 (Fri, 04 Jan 2008) | 3 lines

  Finish-up the struct module optimizations started at the Iceland NFS sprint.
........
  r59688 | christian.heimes | 2008-01-04 01:04:52 +0100 (Fri, 04 Jan 2008) | 1 line

  Fixed #1687: plistlib.py restricts <integer> to Python int when writing
........
  r59689 | christian.heimes | 2008-01-04 01:37:34 +0100 (Fri, 04 Jan 2008) | 1 line

  Bug #1481296: Fixed long(float('nan'))!=0L.
........
  r59691 | andrew.kuchling | 2008-01-04 02:15:50 +0100 (Fri, 04 Jan 2008) | 1 line

  Markup fixes; grammar tweaks
........
  r59692 | andrew.kuchling | 2008-01-04 02:16:12 +0100 (Fri, 04 Jan 2008) | 1 line

  Add items
........
  r59694 | christian.heimes | 2008-01-04 02:48:50 +0100 (Fri, 04 Jan 2008) | 1 line

  Fixed math.copysign() on Windows
........
  r59695 | christian.heimes | 2008-01-04 03:03:25 +0100 (Fri, 04 Jan 2008) | 1 line

  Filled in some XXX comments
........

17 years agoNEWS entry for r59682.
Amaury Forgeot d'Arc [Fri, 4 Jan 2008 01:21:27 +0000 (01:21 +0000)]
NEWS entry for r59682.

17 years agoFixed unichr() -> chr()
Christian Heimes [Fri, 4 Jan 2008 00:47:51 +0000 (00:47 +0000)]
Fixed unichr() -> chr()

17 years agoOn Windows, when import fails to load a dll module, the message says
Amaury Forgeot d'Arc [Thu, 3 Jan 2008 23:42:13 +0000 (23:42 +0000)]
On Windows, when import fails to load a dll module, the message says
"error code 193" instead of a more informative text.

It turns out that FormatMessage needs additional parameters for some error codes.
For example: 193 means "%1 is not a valid Win32 application".
Since it is impossible to know which parameter to pass, we use
FORMAT_MESSAGE_IGNORE_INSERTS to get the raw message, which is still better
than the number.

Also use the Unicode version of the API, to deal with accented letters.

17 years agoMore PyImport_ImportModule -> PyImport_ImportModuleNoBlock
Christian Heimes [Thu, 3 Jan 2008 23:05:47 +0000 (23:05 +0000)]
More PyImport_ImportModule -> PyImport_ImportModuleNoBlock

17 years agoMerged revisions 59666-59679 via svnmerge from
Christian Heimes [Thu, 3 Jan 2008 23:01:04 +0000 (23:01 +0000)]
Merged revisions 59666-59679 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59666 | christian.heimes | 2008-01-02 19:28:32 +0100 (Wed, 02 Jan 2008) | 1 line

  Made vs9to8 Unix compatible
........
  r59669 | guido.van.rossum | 2008-01-02 20:00:46 +0100 (Wed, 02 Jan 2008) | 2 lines

  Patch #1696.  Don't attempt to close None in dry-run mode.
........
  r59671 | jeffrey.yasskin | 2008-01-03 03:21:52 +0100 (Thu, 03 Jan 2008) | 6 lines

  Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just
  the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361,
  r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new
  documentation. The only significant difference is that round(x) returns a float
  to preserve backward-compatibility. See http://bugs.python.org/issue1689.
........
  r59672 | christian.heimes | 2008-01-03 16:41:30 +0100 (Thu, 03 Jan 2008) | 1 line

  Issue #1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj
........
  r59675 | guido.van.rossum | 2008-01-03 20:12:44 +0100 (Thu, 03 Jan 2008) | 4 lines

  Issue #1700, reported by Nguyen Quan Son, fix by Fredruk Lundh:
  Regular Expression inline flags not handled correctly for some unicode
  characters.  (Forward port from 2.5.2.)
........
  r59676 | christian.heimes | 2008-01-03 21:23:15 +0100 (Thu, 03 Jan 2008) | 1 line

  Added math.isinf() and math.isnan()
........
  r59677 | christian.heimes | 2008-01-03 22:14:48 +0100 (Thu, 03 Jan 2008) | 1 line

  Some build bots don't compile mathmodule. There is an issue with the long definition of pi and euler
........
  r59678 | christian.heimes | 2008-01-03 23:16:32 +0100 (Thu, 03 Jan 2008) | 2 lines

  Modified PyImport_Import and PyImport_ImportModule to always use absolute imports by calling __import__ with an explicit level of 0
  Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
........
  r59679 | christian.heimes | 2008-01-03 23:32:26 +0100 (Thu, 03 Jan 2008) | 1 line

  Added copysign(x, y) function to the math module
........

17 years agoShow in the sys.version string (bot not elsewhere) that this is more
Guido van Rossum [Wed, 2 Jan 2008 23:19:13 +0000 (23:19 +0000)]
Show in the sys.version string (bot not elsewhere) that this is more
than the 3.0a2 release.

17 years agoMerged revisions 59642-59665 via svnmerge from
Christian Heimes [Wed, 2 Jan 2008 18:30:52 +0000 (18:30 +0000)]
Merged revisions 59642-59665 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59653 | martin.v.loewis | 2008-01-01 22:05:17 +0100 (Tue, 01 Jan 2008) | 3 lines

  Return results from Python callbacks to Tcl as Tcl objects.
  Fixes Tk issue #1851526
........
  r59654 | martin.v.loewis | 2008-01-01 22:08:18 +0100 (Tue, 01 Jan 2008) | 4 lines

  Always convert Text.index result to string.
  This improves compatibility with Tcl 8.5, which would
  otherwise return textindex objects.
........
  r59655 | martin.v.loewis | 2008-01-01 22:09:07 +0100 (Tue, 01 Jan 2008) | 2 lines

  News item for r59653.
........
  r59656 | martin.v.loewis | 2008-01-02 00:00:00 +0100 (Wed, 02 Jan 2008) | 1 line

  Don't link with Tix; Tix is loaded dynamically by Tcl.
........
  r59657 | martin.v.loewis | 2008-01-02 00:00:48 +0100 (Wed, 02 Jan 2008) | 1 line

  Use Visual Studio 2009 on the build slaves.
........
  r59658 | martin.v.loewis | 2008-01-02 00:36:24 +0100 (Wed, 02 Jan 2008) | 1 line

  Test in PCbuild directory.
........
  r59661 | kurt.kaiser | 2008-01-02 05:11:28 +0100 (Wed, 02 Jan 2008) | 6 lines

  Issue1177
  r58207 and r58247 patch logic is reversed.  I noticed this when I
  tried to use urllib to retrieve a file which required auth.

  Fix that and add a test for 401 error to verify.
........
  r59662 | kurt.kaiser | 2008-01-02 06:23:38 +0100 (Wed, 02 Jan 2008) | 2 lines

  Change docstrings to comments so test output will display normally.
........
  r59665 | christian.heimes | 2008-01-02 18:43:40 +0100 (Wed, 02 Jan 2008) | 5 lines

  Removed PCbuild8/ directory and added a new build directory for VS 2005
  based on the VS 2008 build directory to PC/VS8.0. The script
  PCbuild/vs8to9.py was added to sync changes from PCbuild to PC/VS8.0.

  Kristjan, the initial creator of the PCbuild8 directory is fine with the replacement. I've moved the new version of the VS 2005 build directory next to the other legacy build directories. The new sync script is based on the work of wreck and syncs changes in the project, property and solution files.
........

17 years agoFixed merge accident
Christian Heimes [Wed, 2 Jan 2008 11:45:46 +0000 (11:45 +0000)]
Fixed merge accident

17 years agoGet rid of raw_input() emulation, use its reincarnation as input().
Guido van Rossum [Wed, 2 Jan 2008 03:52:38 +0000 (03:52 +0000)]
Get rid of raw_input() emulation, use its reincarnation as input().
See Issue 1707.

17 years agoFix issue #1707. When raw_input() was removed, it was incorrectly replaced
Guido van Rossum [Wed, 2 Jan 2008 02:55:27 +0000 (02:55 +0000)]
Fix issue #1707.  When raw_input() was removed, it was incorrectly replaced
with sys.stdin.readline().  I wonder how many other places are affected
by the same bug?

17 years agoPatch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.
Guido van Rossum [Tue, 1 Jan 2008 16:30:47 +0000 (16:30 +0000)]
Patch #1703 by Philip Jenvey -- getpass() should flush after writing prompt.

17 years agoMerged revisions 59628-59641 via svnmerge from
Christian Heimes [Tue, 1 Jan 2008 14:42:15 +0000 (14:42 +0000)]
Merged revisions 59628-59641 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59631 | christian.heimes | 2007-12-31 20:16:56 +0100 (Mon, 31 Dec 2007) | 1 line

  Fixed path
........
  r59632 | christian.heimes | 2007-12-31 20:20:57 +0100 (Mon, 31 Dec 2007) | 1 line

  Fixed path to _ssl.c in Windows make file
........
  r59633 | christian.heimes | 2007-12-31 20:23:22 +0100 (Mon, 31 Dec 2007) | 1 line

  Fixed path to _ssl.c in Windows make file, take two
........
  r59634 | christian.heimes | 2007-12-31 20:25:22 +0100 (Mon, 31 Dec 2007) | 1 line

  Fixed path to _ssl.c in Windows make file, take three ...
........
  r59635 | neal.norwitz | 2008-01-01 00:48:47 +0100 (Tue, 01 Jan 2008) | 1 line

  Fix refleak
........
  r59637 | guido.van.rossum | 2008-01-01 05:15:29 +0100 (Tue, 01 Jan 2008) | 5 lines

  Fix an odd error which would only occur close to new year's eve, due
  to use of datetime.datetime.now() instead of utcnow() for comparison.
  (I think the test can still fail if it's executed pretty much *at*
  new year's eve, but that's not worth fixing.)
........
  r59638 | christian.heimes | 2008-01-01 14:40:26 +0100 (Tue, 01 Jan 2008) | 1 line

  MSI uses back slashes as path separators
........
  r59639 | christian.heimes | 2008-01-01 14:52:57 +0100 (Tue, 01 Jan 2008) | 1 line

  Added new wininst files to msi.py and adjusted some paths
........
  r59640 | christian.heimes | 2008-01-01 14:58:16 +0100 (Tue, 01 Jan 2008) | 1 line

  The root of the project is two levels up from PC/VS7.1
........
  r59641 | christian.heimes | 2008-01-01 15:37:32 +0100 (Tue, 01 Jan 2008) | 1 line

  Added support for new Windows build dirs in PC/ to distutils.sysconfig
........

17 years agoMerge changes from 59576 from trunk to p3yk branch; these were skipped
Guido van Rossum [Tue, 1 Jan 2008 04:06:48 +0000 (04:06 +0000)]
Merge changes from 59576 from trunk to p3yk branch; these were skipped
in the regular merge.  Fixes issue #1693.

17 years agoRemoved doubledigit from Makefile
Christian Heimes [Mon, 31 Dec 2007 17:27:19 +0000 (17:27 +0000)]
Removed doubledigit from Makefile

17 years agoFixed svn merge issues
Christian Heimes [Mon, 31 Dec 2007 16:44:35 +0000 (16:44 +0000)]
Fixed svn merge issues

17 years agoMerged revisions 59625-59627 via svnmerge from
Christian Heimes [Mon, 31 Dec 2007 16:18:22 +0000 (16:18 +0000)]
Merged revisions 59625-59627 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59627 | christian.heimes | 2007-12-31 17:17:13 +0100 (Mon, 31 Dec 2007) | 1 line

  Fixed include paths of PC/VS7.1
........

17 years agoFixed svn:ignore
Christian Heimes [Mon, 31 Dec 2007 16:16:18 +0000 (16:16 +0000)]
Fixed svn:ignore

17 years agoMerged revisions 59605-59624 via svnmerge from
Christian Heimes [Mon, 31 Dec 2007 16:14:33 +0000 (16:14 +0000)]
Merged revisions 59605-59624 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59606 | georg.brandl | 2007-12-29 11:57:00 +0100 (Sat, 29 Dec 2007) | 2 lines

  Some cleanup in the docs.
........
  r59611 | martin.v.loewis | 2007-12-29 19:49:21 +0100 (Sat, 29 Dec 2007) | 2 lines

  Bug #1699: Define _BSD_SOURCE only on OpenBSD.
........
  r59612 | raymond.hettinger | 2007-12-29 23:09:34 +0100 (Sat, 29 Dec 2007) | 1 line

  Simpler documentation for itertools.tee().  Should be backported.
........
  r59613 | raymond.hettinger | 2007-12-29 23:16:24 +0100 (Sat, 29 Dec 2007) | 1 line

  Improve docs for itertools.groupby().  The use of xrange(0) to create a unique object is less obvious than object().
........
  r59620 | christian.heimes | 2007-12-31 15:47:07 +0100 (Mon, 31 Dec 2007) | 3 lines

  Added wininst-9.0.exe executable for VS 2008
  Integrated bdist_wininst into PCBuild9 directory
........
  r59621 | christian.heimes | 2007-12-31 15:51:18 +0100 (Mon, 31 Dec 2007) | 1 line

  Moved PCbuild directory to PC/VS7.1
........
  r59622 | christian.heimes | 2007-12-31 15:59:26 +0100 (Mon, 31 Dec 2007) | 1 line

  Fix paths for build bot
........
  r59623 | christian.heimes | 2007-12-31 16:02:41 +0100 (Mon, 31 Dec 2007) | 1 line

  Fix paths for build bot, part 2
........
  r59624 | christian.heimes | 2007-12-31 16:18:55 +0100 (Mon, 31 Dec 2007) | 1 line

  Renamed PCBuild9 directory to PCBuild
........

17 years agoDon't close sys.stdin with quit() if sys.stdin wraps fd 0. Otherwise it will raise...
Christian Heimes [Mon, 31 Dec 2007 03:07:24 +0000 (03:07 +0000)]
Don't close sys.stdin with quit() if sys.stdin wraps fd 0. Otherwise it will raise a warning: Lib/io.py:1221: RuntimeWarning: Trying to close unclosable fd

17 years agoUse strings for all entity values, as that is now possible
Martin v. Löwis [Sat, 29 Dec 2007 18:38:41 +0000 (18:38 +0000)]
Use strings for all entity values, as that is now possible
with a Unicode string type.

17 years agoTwo nits.
Georg Brandl [Sat, 29 Dec 2007 10:57:11 +0000 (10:57 +0000)]
Two nits.

17 years agoMerged revisions 59595-59604 via svnmerge from
Christian Heimes [Fri, 28 Dec 2007 14:08:13 +0000 (14:08 +0000)]
Merged revisions 59595-59604 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59596 | brett.cannon | 2007-12-24 20:58:25 +0100 (Mon, 24 Dec 2007) | 4 lines

  Fix the docstrings of time.localtime() and gmtime() for the tm_mday field.

  Will backport.
........
  r59598 | brett.cannon | 2007-12-25 00:43:30 +0100 (Tue, 25 Dec 2007) | 3 lines

  Make trailing whitespace explicit (including when it is an all-whitespace
  line).
........
  r59599 | brett.cannon | 2007-12-25 01:14:34 +0100 (Tue, 25 Dec 2007) | 7 lines

  Actually execute the tests for the getter/setter/deleter tests on properties.
  Also fix the test by having the test classes inherit from object.

  Are the getter/setter/deleter attributes supposed to be able to chain?  As of
  right now they can't as the property tries to call what the property returns,
  which is another property when they are chained.
........
  r59600 | brett.cannon | 2007-12-25 07:44:59 +0100 (Tue, 25 Dec 2007) | 2 lines

  Remove a straggling debugging print line.
........
  r59604 | kurt.kaiser | 2007-12-28 05:18:01 +0100 (Fri, 28 Dec 2007) | 2 lines

  Configure Dialog: improved layout for keybinding.  Patch 1457 Tal Einat.
........

17 years agohelp() was not paging to the shell. Issue1650.
Kurt B. Kaiser [Fri, 28 Dec 2007 03:57:56 +0000 (03:57 +0000)]
help() was not paging to the shell.  Issue1650.

17 years agoFix the reset() method of IncrementalNewlineDecoder to
Alexandre Vassalotti [Fri, 28 Dec 2007 01:24:22 +0000 (01:24 +0000)]
Fix the reset() method of IncrementalNewlineDecoder to
also reset self.seennl.

17 years agoMerged revisions 59565-59594 via svnmerge from
Christian Heimes [Mon, 24 Dec 2007 08:52:31 +0000 (08:52 +0000)]
Merged revisions 59565-59594 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59568 | facundo.batista | 2007-12-19 13:53:01 +0100 (Wed, 19 Dec 2007) | 3 lines

  Some minor cleanups.  Thanks Mark Dickinson.
........
  r59573 | raymond.hettinger | 2007-12-19 19:13:31 +0100 (Wed, 19 Dec 2007) | 1 line

  Fix issue 1661: Flags argument silently ignored in re functions with compiled regexes.
........
  r59574 | guido.van.rossum | 2007-12-19 20:41:06 +0100 (Wed, 19 Dec 2007) | 7 lines

  Patch #1583 by Adam Olsen.

  This adds signal.set_wakeup_fd(fd) which sets a file descriptor to
  which a zero byte will be written whenever a C exception handler runs.

  I added a simple C API as well, PySignal_SetWakeupFd(fd).
........
  r59575 | raymond.hettinger | 2007-12-19 23:14:34 +0100 (Wed, 19 Dec 2007) | 1 line

  Bigger range for non-extended opargs.
........
  r59576 | guido.van.rossum | 2007-12-19 23:51:13 +0100 (Wed, 19 Dec 2007) | 5 lines

  Patch #1549 by Thomas Herve.
  This changes the rules for when __hash__ is inherited slightly,
  by allowing it to be inherited when one or more of __lt__, __le__,
  __gt__, __ge__ are overridden, as long as __eq__ and __ne__ aren't.
........
  r59577 | raymond.hettinger | 2007-12-20 02:25:05 +0100 (Thu, 20 Dec 2007) | 1 line

  Add comments
........
  r59578 | brett.cannon | 2007-12-20 11:09:52 +0100 (Thu, 20 Dec 2007) | 3 lines

  Add tests for the warnings module; specifically formatwarning and showwarning.
  Still need tests for warn_explicit and simplefilter.
........
  r59582 | guido.van.rossum | 2007-12-20 18:28:10 +0100 (Thu, 20 Dec 2007) | 2 lines

  Patch #1672 by Joseph Armbruster.  Use tempdir() to get a temporary directory.
........
  r59584 | georg.brandl | 2007-12-20 22:03:02 +0100 (Thu, 20 Dec 2007) | 2 lines

  Fix refleak introduced in r59576.
........
  r59586 | guido.van.rossum | 2007-12-21 00:48:28 +0100 (Fri, 21 Dec 2007) | 4 lines

  Improve performance of built-in any()/all() by avoiding PyIter_Next() --
  using a trick found in ifilter().
  Feel free to backport to 2.5.
........
  r59591 | andrew.kuchling | 2007-12-22 18:27:02 +0100 (Sat, 22 Dec 2007) | 1 line

  Add item
........

17 years agoDocument os.device_encoding.
Georg Brandl [Fri, 21 Dec 2007 08:45:42 +0000 (08:45 +0000)]
Document os.device_encoding.

17 years agoFix docstring of types.py.
Georg Brandl [Fri, 21 Dec 2007 08:16:54 +0000 (08:16 +0000)]
Fix docstring of types.py.

17 years agoFix role usage.
Georg Brandl [Fri, 21 Dec 2007 08:15:02 +0000 (08:15 +0000)]
Fix role usage.

17 years agoFix thoroughly misleading comment
Nick Coghlan [Fri, 21 Dec 2007 07:31:17 +0000 (07:31 +0000)]
Fix thoroughly misleading comment

17 years agoDrop _PyLong_FitsInLong. Fixes #1666.
Martin v. Löwis [Thu, 20 Dec 2007 22:57:23 +0000 (22:57 +0000)]
Drop _PyLong_FitsInLong. Fixes #1666.

17 years agoFix issue #1667. The _Printer() class was using sys.stdin.readline()
Guido van Rossum [Thu, 20 Dec 2007 18:42:56 +0000 (18:42 +0000)]
Fix issue #1667.  The _Printer() class was using sys.stdin.readline()
instead of input() to read the user's input (since at some point in
the past raw_input() was removed), but the code used to decode the
input wasn't changed.  Fixed it by going back to input(), which has
since been added back with the same semantics as the old raw_input().

17 years agoUpdate to the world tool for Python 3. Provided by quentin.gallet-gilles via
Barry Warsaw [Thu, 20 Dec 2007 15:55:58 +0000 (15:55 +0000)]
Update to the world tool for Python 3.  Provided by quentin.gallet-gilles via
tracker issue 1671:

http://bugs.python.org/issue1671

In addition to updating the code for Py3k, this updates ccTLDs to their
10-Oct-2006 revision.

(Minor stylistic additions and whitespace normalization by Barry.)

17 years agoFixed #1673. I hope it works. I don't have access to a Windows box right now.
Christian Heimes [Thu, 20 Dec 2007 14:44:41 +0000 (14:44 +0000)]
Fixed #1673. I hope it works. I don't have access to a Windows box right now.

17 years agoRemoved test from test_import. It will never work on all systems, see #1377
Christian Heimes [Thu, 20 Dec 2007 13:16:07 +0000 (13:16 +0000)]
Removed test from test_import. It will never work on all systems, see #1377

17 years ago#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
Christian Heimes [Wed, 19 Dec 2007 02:45:37 +0000 (02:45 +0000)]
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.

17 years agoMerged revisions 59541-59561 via svnmerge from
Christian Heimes [Wed, 19 Dec 2007 02:07:34 +0000 (02:07 +0000)]
Merged revisions 59541-59561 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59544 | raymond.hettinger | 2007-12-18 01:13:45 +0100 (Tue, 18 Dec 2007) | 1 line

  Add more namedtuple() test cases.  Neaten the code and comments.
........
  r59545 | christian.heimes | 2007-12-18 04:38:03 +0100 (Tue, 18 Dec 2007) | 3 lines

  Fixed for #1601: IDLE not working correctly on Windows (Py30a2/IDLE30a1)

  Amaury's ideas works great. Should we build the Python core with WINVER=0x0500 and _WIN32_WINNT=0x0500, too?
........
  r59546 | christian.heimes | 2007-12-18 10:00:13 +0100 (Tue, 18 Dec 2007) | 1 line

  Make it a bit easier to test Tcl/Tk and idle from a build dir.
........
  r59547 | christian.heimes | 2007-12-18 10:12:10 +0100 (Tue, 18 Dec 2007) | 1 line

  Removed several unused files from the PCbuild9 directory. They are relics from the past.
........
  r59548 | raymond.hettinger | 2007-12-18 19:26:18 +0100 (Tue, 18 Dec 2007) | 29 lines

  Speed-up dictionary constructor by about 10%.

  New opcode, STORE_MAP saves the compiler from awkward stack manipulations
  and specializes for dicts using PyDict_SetItem instead of PyObject_SetItem.

  Old disassembly:
                0 BUILD_MAP                0
                3 DUP_TOP
                4 LOAD_CONST               1 (1)
                7 ROT_TWO
                8 LOAD_CONST               2 ('x')
               11 STORE_SUBSCR
               12 DUP_TOP
               13 LOAD_CONST               3 (2)
               16 ROT_TWO
               17 LOAD_CONST               4 ('y')
               20 STORE_SUBSCR

  New disassembly:
                0 BUILD_MAP                0
                3 LOAD_CONST               1 (1)
                6 LOAD_CONST               2 ('x')
                9 STORE_MAP
               10 LOAD_CONST               3 (2)
               13 LOAD_CONST               4 ('y')
               16 STORE_MAP
........
  r59549 | thomas.heller | 2007-12-18 20:00:34 +0100 (Tue, 18 Dec 2007) | 2 lines

  Issue #1642: Fix segfault in ctypes when trying to delete attributes.
........
  r59551 | guido.van.rossum | 2007-12-18 21:10:42 +0100 (Tue, 18 Dec 2007) | 2 lines

  Issue #1645 by Alberto Bertogli.  Fix a comment.
........
  r59553 | raymond.hettinger | 2007-12-18 22:24:09 +0100 (Tue, 18 Dec 2007) | 12 lines

  Give meaning to the oparg for BUILD_MAP:  estimated size of the dictionary.

  Allows dictionaries to be pre-sized (upto 255 elements) saving time lost
  to re-sizes with their attendant mallocs and re-insertions.

  Has zero effect on small dictionaries (5 elements or fewer), a slight
  benefit for dicts upto 22 elements (because they had to resize once
  anyway), and more benefit for dicts upto 255 elements (saving multiple
  resizes during the build-up and reducing the number of collisions on
  the first insertions).  Beyond 255 elements, there is no addional benefit.
........
  r59554 | christian.heimes | 2007-12-18 22:56:09 +0100 (Tue, 18 Dec 2007) | 1 line

  Fixed #1649: IDLE error: dictionary changed size during iteration
........
  r59557 | raymond.hettinger | 2007-12-18 23:21:27 +0100 (Tue, 18 Dec 2007) | 1 line

  Simplify and speedup _asdict() for named tuples.
........
  r59558 | christian.heimes | 2007-12-19 00:22:54 +0100 (Wed, 19 Dec 2007) | 3 lines

  Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).

  The patch unifies float("inf") and repr(float("inf")) on all platforms.
........
  r59559 | raymond.hettinger | 2007-12-19 00:51:15 +0100 (Wed, 19 Dec 2007) | 1 line

  Users demand iterable input for named tuples. The author capitulates.
........
  r59560 | raymond.hettinger | 2007-12-19 01:21:06 +0100 (Wed, 19 Dec 2007) | 1 line

  Beef-up tests for dict literals
........
  r59561 | raymond.hettinger | 2007-12-19 01:27:21 +0100 (Wed, 19 Dec 2007) | 1 line

  Zap a duplicate line
........

17 years agoMerged revisions 59512-59540 via svnmerge from
Christian Heimes [Mon, 17 Dec 2007 20:04:13 +0000 (20:04 +0000)]
Merged revisions 59512-59540 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59513 | raymond.hettinger | 2007-12-15 01:07:25 +0100 (Sat, 15 Dec 2007) | 6 lines

  Optimize PyList_AsTuple(). Improve cache performance by doing the
  pointer copy and object increment in one pass.  For small lists,
  save the overhead of the call to memcpy() -- this comes up in
  calls like f(*listcomp).
........
  r59519 | christian.heimes | 2007-12-15 06:38:35 +0100 (Sat, 15 Dec 2007) | 2 lines

  Fixed #1624: Remove output comparison for test_pep277
  I had to modify Brett's patch slightly.
........
  r59520 | georg.brandl | 2007-12-15 10:34:59 +0100 (Sat, 15 Dec 2007) | 2 lines

  Add note about future import needed for with statement.
........
  r59522 | georg.brandl | 2007-12-15 10:36:37 +0100 (Sat, 15 Dec 2007) | 2 lines

  Argh, wrong version.
........
  r59524 | georg.brandl | 2007-12-16 12:06:09 +0100 (Sun, 16 Dec 2007) | 2 lines

  Dummy commit to investigate #1617.
........
  r59525 | georg.brandl | 2007-12-16 12:21:48 +0100 (Sun, 16 Dec 2007) | 2 lines

  Revert dummy commit now that the build slave is building.
........
  r59527 | georg.brandl | 2007-12-16 16:47:46 +0100 (Sun, 16 Dec 2007) | 2 lines

  Remove orphaned footnote reference.
........
  r59528 | georg.brandl | 2007-12-16 16:53:49 +0100 (Sun, 16 Dec 2007) | 2 lines

  Remove gratuitous unicode character.
........
  r59529 | georg.brandl | 2007-12-16 16:59:19 +0100 (Sun, 16 Dec 2007) | 2 lines

  Remove another unnecessary Unicode character.
........
  r59530 | georg.brandl | 2007-12-16 17:00:36 +0100 (Sun, 16 Dec 2007) | 2 lines

  Remove curious space-like characters.
........
  r59532 | georg.brandl | 2007-12-16 20:36:51 +0100 (Sun, 16 Dec 2007) | 2 lines

  Adapt conf.py to new option names.
........
  r59533 | christian.heimes | 2007-12-16 22:39:43 +0100 (Sun, 16 Dec 2007) | 1 line

  Fixed #1638: %zd configure test fails on Linux
........
  r59536 | georg.brandl | 2007-12-17 00:11:16 +0100 (Mon, 17 Dec 2007) | 2 lines

  Simplify.
........
  r59537 | georg.brandl | 2007-12-17 00:13:29 +0100 (Mon, 17 Dec 2007) | 2 lines

  Use PEP 8.
........
  r59539 | georg.brandl | 2007-12-17 00:15:07 +0100 (Mon, 17 Dec 2007) | 2 lines

  Don't use quotes for non-string code.
........
  r59540 | facundo.batista | 2007-12-17 15:18:42 +0100 (Mon, 17 Dec 2007) | 4 lines

  Removed the private _rounding_decision: it was not needed, and the code
  is now simpler.  Thanks Mark Dickinson.
........

17 years agoFix sys.maxsize docs.
Georg Brandl [Sat, 15 Dec 2007 09:55:35 +0000 (09:55 +0000)]
Fix sys.maxsize docs.

17 years agoFixed #1630
Christian Heimes [Sat, 15 Dec 2007 01:28:04 +0000 (01:28 +0000)]
Fixed #1630
sys.maxint was still documented and sys.float_info an sys.subversion were missing

17 years agoMerged revisions 59488-59511 via svnmerge from
Christian Heimes [Sat, 15 Dec 2007 01:27:15 +0000 (01:27 +0000)]
Merged revisions 59488-59511 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59489 | christian.heimes | 2007-12-14 03:33:57 +0100 (Fri, 14 Dec 2007) | 1 line

  Silence a warning about an unsed variable in debug builds
........
  r59490 | christian.heimes | 2007-12-14 03:35:23 +0100 (Fri, 14 Dec 2007) | 2 lines

  Fixed bug #1620: New @spam.getter property syntax modifies the property in place.
  I added also the feature that a @prop.getter decorator does not overwrite the doc string of the property if it was given as an argument to property().
........
  r59491 | raymond.hettinger | 2007-12-14 03:49:47 +0100 (Fri, 14 Dec 2007) | 1 line

  Cleaner method naming convention
........
  r59492 | christian.heimes | 2007-12-14 04:02:34 +0100 (Fri, 14 Dec 2007) | 1 line

  Fixed a warning in _codecs_iso2022.c and some non C89 conform // comments.
........
  r59493 | christian.heimes | 2007-12-14 05:38:13 +0100 (Fri, 14 Dec 2007) | 1 line

  Fixed warning in ssl module
........
  r59500 | raymond.hettinger | 2007-12-14 19:08:20 +0100 (Fri, 14 Dec 2007) | 1 line

  Add line spacing for readability
........
  r59501 | raymond.hettinger | 2007-12-14 19:12:21 +0100 (Fri, 14 Dec 2007) | 3 lines

  Update method names for named tuples.
........
  r59503 | georg.brandl | 2007-12-14 20:03:36 +0100 (Fri, 14 Dec 2007) | 3 lines

  Add a section about nested listcomps to the tutorial.
  Thanks to Ian Bruntlett and Robert Lehmann.
........
  r59504 | raymond.hettinger | 2007-12-14 20:19:59 +0100 (Fri, 14 Dec 2007) | 1 line

  Faster and simpler _replace() method
........
  r59505 | raymond.hettinger | 2007-12-14 22:51:50 +0100 (Fri, 14 Dec 2007) | 1 line

  Add usage note
........
  r59507 | andrew.kuchling | 2007-12-14 23:41:18 +0100 (Fri, 14 Dec 2007) | 1 line

  Remove warning about URL
........
  r59510 | andrew.kuchling | 2007-12-14 23:52:36 +0100 (Fri, 14 Dec 2007) | 1 line

  Bump the version number, and make a few small edits
........
  r59511 | christian.heimes | 2007-12-15 00:42:36 +0100 (Sat, 15 Dec 2007) | 2 lines

  Fixed bug #1628
  The detection now works on Unix with Makefile, Makefile with VPATH and on Windows.
........

17 years agoupdate to fix leak in SSL code
Bill Janssen [Fri, 14 Dec 2007 22:08:56 +0000 (22:08 +0000)]
update to fix leak in SSL code

17 years agoCouple of corrections to open() doc as per email from GvR.
Mark Summerfield [Fri, 14 Dec 2007 18:23:42 +0000 (18:23 +0000)]
Couple of corrections to open() doc as per email from GvR.

17 years agoUpdated open() to more accurately reflect io.open()'s documentation.
Mark Summerfield [Fri, 14 Dec 2007 10:07:44 +0000 (10:07 +0000)]
Updated open() to more accurately reflect io.open()'s documentation.

17 years agoMerged revisions 59465-59487 via svnmerge from
Christian Heimes [Fri, 14 Dec 2007 01:24:44 +0000 (01:24 +0000)]
Merged revisions 59465-59487 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59467 | georg.brandl | 2007-12-11 17:32:49 +0100 (Tue, 11 Dec 2007) | 2 lines

  Add another GHOP contributor.
........
  r59468 | kurt.kaiser | 2007-12-11 20:35:12 +0100 (Tue, 11 Dec 2007) | 3 lines

  IDLE_tabbedpages.071101.patch Tal Einat
  Cosmetic changes, one bug.  Remove tabpage.py, replaced by tabbedpages.py
........
  r59471 | gerhard.haering | 2007-12-11 22:07:40 +0100 (Tue, 11 Dec 2007) | 9 lines

  Forward-port of commit 59184.

  - Backported a workaround for a bug in SQLite 3.2.x/3.3.x versions where a
    statement recompilation with no bound parameters lead to a segfault
  - Backported a fix necessary because of an SQLite API change in version
    3.5.
    This prevents segfaults when executing empty queries, like our test suite
    does
........
  r59475 | christian.heimes | 2007-12-12 19:09:06 +0100 (Wed, 12 Dec 2007) | 1 line

  Fixed a nasty problem in the xxmodule.c
........
  r59478 | raymond.hettinger | 2007-12-13 01:08:37 +0100 (Thu, 13 Dec 2007) | 1 line

  Fix bug 1604. deque.__init__() did not clear existing contents like list.__init__. Not a backport candidate.
........
  r59480 | alexandre.vassalotti | 2007-12-13 18:58:23 +0100 (Thu, 13 Dec 2007) | 2 lines

  Fix issue #1313119: urlparse "caches" parses regardless of encoding
........
  r59482 | christian.heimes | 2007-12-13 20:23:16 +0100 (Thu, 13 Dec 2007) | 1 line

  Fixed bug #1613: Makefile's VPATH feature is broken
........
  r59484 | guido.van.rossum | 2007-12-13 21:50:10 +0100 (Thu, 13 Dec 2007) | 3 lines

  Patch #1608.  Someone with access to autoconf 2.61 or higher needs to
  run it and check in the resulting configure file.
........
  r59485 | thomas.heller | 2007-12-13 22:20:29 +0100 (Thu, 13 Dec 2007) | 1 line

  Ran autoconf.
........
  r59486 | raymond.hettinger | 2007-12-13 23:55:52 +0100 (Thu, 13 Dec 2007) | 1 line

  Simplify implementation of __replace__()
........
  r59487 | raymond.hettinger | 2007-12-14 00:52:59 +0100 (Fri, 14 Dec 2007) | 1 line

  Small speedup
........

17 years agoShell was not colorizing due to bug introduced at r57998, Bug 1586.
Kurt B. Kaiser [Thu, 13 Dec 2007 03:38:16 +0000 (03:38 +0000)]
Shell was not colorizing due to bug introduced at r57998,  Bug 1586.

17 years agoExplicitly close pipes so test_ctypes won't appear to randomly leak
Guido van Rossum [Wed, 12 Dec 2007 20:26:00 +0000 (20:26 +0000)]
Explicitly close pipes so test_ctypes won't appear to randomly leak
+33 or -33 references.  (See discussion in #1597.)

17 years agoAdd a comment to explain why we have to restore the original value.
Thomas Heller [Wed, 12 Dec 2007 20:01:44 +0000 (20:01 +0000)]
Add a comment to explain why we have to restore the original value.

17 years agomaxint->maxsize. Wouldn't import.
Kurt B. Kaiser [Wed, 12 Dec 2007 17:22:06 +0000 (17:22 +0000)]
maxint->maxsize.  Wouldn't import.

17 years agoBump version
Kurt B. Kaiser [Wed, 12 Dec 2007 17:13:19 +0000 (17:13 +0000)]
Bump version

17 years agoThis test checks and modifies the value of an integer stored in a dll.
Thomas Heller [Wed, 12 Dec 2007 08:32:02 +0000 (08:32 +0000)]
This test checks and modifies the value of an integer stored in a dll.
Restore the original value after modifying it so that subsequent tests
will not fail.  Fixes the failure in issue 1597.

17 years agoFixed #1593 spacing of the builtin_format function is inconsistent. Thanks to Joseph...
Christian Heimes [Tue, 11 Dec 2007 20:20:39 +0000 (20:20 +0000)]
Fixed #1593 spacing of the builtin_format function is inconsistent. Thanks to Joseph for the fix

17 years agoIssue #1587: Added instancemethod wrapper for PyCFunctions. The Python C API
Christian Heimes [Tue, 11 Dec 2007 19:56:40 +0000 (19:56 +0000)]
Issue #1587: Added instancemethod wrapper for PyCFunctions. The Python C API
has gained a new type *PyInstanceMethod_Type* and the functions
*PyInstanceMethod_Check(o)*, *PyInstanceMethod_New(func)* and
*PyInstanceMethod_Function(im)*.

17 years agoAdded note about 1585 to Misc/NEWS
Christian Heimes [Tue, 11 Dec 2007 09:00:01 +0000 (09:00 +0000)]
Added note about 1585 to Misc/NEWS

17 years agoMerged revisions 59450-59464 via svnmerge from
Christian Heimes [Tue, 11 Dec 2007 01:06:40 +0000 (01:06 +0000)]
Merged revisions 59450-59464 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59455 | guido.van.rossum | 2007-12-10 21:42:53 +0100 (Mon, 10 Dec 2007) | 2 lines

  Remove a 2.2-ism.
........
  r59459 | christian.heimes | 2007-12-10 23:28:56 +0100 (Mon, 10 Dec 2007) | 4 lines

  Backport of r59456:59458 from py3k to trunk
  Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'.

  Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.
........
  r59460 | guido.van.rossum | 2007-12-11 00:00:12 +0100 (Tue, 11 Dec 2007) | 4 lines

  Patch #1643738 by Ulisses Furquim -- make the is_tripped variable
  in signalmodule.c more robust.  Includes Martin von Loewis's suggestion
  to set is_tripped after .tripped.
........
  r59463 | kurt.kaiser | 2007-12-11 01:04:57 +0100 (Tue, 11 Dec 2007) | 2 lines

  format_paragraph_event wasn't returning 'break'
........
  r59464 | christian.heimes | 2007-12-11 01:54:34 +0100 (Tue, 11 Dec 2007) | 3 lines

  The new float repr causes too much trouble and pain. I'm disabling the feature until we have sorted out the issues on all machines. 64bit machines seem to have issues and Guido has reported even worse.
  Guido: It's pretty bad actually -- repr(1e5) comes out as '1.0'... Ditto for
  repr(1eN) for most N... Both in 2.6 and in 3.0...
........

17 years agoMinor cleanup in the gc module.
Amaury Forgeot d'Arc [Mon, 10 Dec 2007 23:58:35 +0000 (23:58 +0000)]
Minor cleanup in the gc module.
Removed gc.DEBUG_OBJECT: there is only one kind of objects.
Now gc.DEBUG_COLLECTABLE or gc.DEBUG_UNCOLLECTABLE can be used alone to print the
corresponding list of objects.

Also removed a footnote about version 2.2, and a comment explaining some deleted code.

17 years agoAdded missing file
Christian Heimes [Mon, 10 Dec 2007 22:27:18 +0000 (22:27 +0000)]
Added missing file

17 years agoIssue #1580: New free format floating point representation based on "Floating-Point...
Christian Heimes [Mon, 10 Dec 2007 22:19:17 +0000 (22:19 +0000)]
Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'.

Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.

17 years agoTwo IDLE errors in Option->Configure menu.
Amaury Forgeot d'Arc [Mon, 10 Dec 2007 22:09:44 +0000 (22:09 +0000)]
Two IDLE errors in Option->Configure menu.
Reported by Mark Summerfield.

17 years agoFixed doc xml rpc tests and server
Christian Heimes [Mon, 10 Dec 2007 20:18:07 +0000 (20:18 +0000)]
Fixed doc xml rpc tests and server

17 years agoMake Decimal a subclass of Real and Inexact.
Guido van Rossum [Mon, 10 Dec 2007 20:04:04 +0000 (20:04 +0000)]
Make Decimal a subclass of Real and Inexact.

17 years agoUpdated release notes (to match what's on python.org/download/releases/3.0/).
Guido van Rossum [Mon, 10 Dec 2007 19:25:42 +0000 (19:25 +0000)]
Updated release notes (to match what's on python.org/download/releases/3.0/).

17 years agoFixed #1578: Problems in win_getpass
Christian Heimes [Mon, 10 Dec 2007 17:02:00 +0000 (17:02 +0000)]
Fixed #1578: Problems in win_getpass

17 years agoMerged revisions 59441-59449 via svnmerge from
Christian Heimes [Mon, 10 Dec 2007 16:18:49 +0000 (16:18 +0000)]
Merged revisions 59441-59449 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59442 | georg.brandl | 2007-12-09 22:15:07 +0100 (Sun, 09 Dec 2007) | 5 lines

  Two fixes in DocXMLRPCServer:
  * remove parameter default that didn't make sense
  * properly escape values in output
  Thanks to Jeff Wheeler from GHOP!
........
  r59444 | georg.brandl | 2007-12-09 23:38:26 +0100 (Sun, 09 Dec 2007) | 2 lines

  Add Jeff Wheeler.
........
  r59445 | georg.brandl | 2007-12-09 23:39:12 +0100 (Sun, 09 Dec 2007) | 2 lines

  Add DocXMLRPCServer test from GHOP task #136, written by Jeff Wheeler.
........
  r59447 | christian.heimes | 2007-12-10 16:12:41 +0100 (Mon, 10 Dec 2007) | 1 line

  Added wide char api variants of getch and putch to msvcrt module. The wide char methods are required to fix #1578 in py3k. I figured out that they might be useful in 2.6, too.
........
  r59448 | christian.heimes | 2007-12-10 16:39:09 +0100 (Mon, 10 Dec 2007) | 1 line

  Stupid save all didn't safe it all ...
........

17 years agoFixed issue #1564: The set implementation should special-case PyUnicode instead of...
Christian Heimes [Mon, 10 Dec 2007 15:50:56 +0000 (15:50 +0000)]
Fixed issue #1564: The set implementation should special-case PyUnicode instead of PyString
I moved the unicode_eq to stringlib/eq.h to keep the function static and possible inline for setobject.c and dictobject.h. I also removed the unused _PyString_Eq method. If it's required in the future it can be added to eq.h

17 years agotypo
Skip Montanaro [Sun, 9 Dec 2007 23:05:36 +0000 (23:05 +0000)]
typo

17 years agoIssue #1573, second attempt:
Amaury Forgeot d'Arc [Sun, 9 Dec 2007 21:49:48 +0000 (21:49 +0000)]
Issue #1573, second attempt:
"def f(*, **kw)" now raises a SyntaxError.

17 years agoMerged revisions 59423-59440 via svnmerge from
Christian Heimes [Sun, 9 Dec 2007 15:58:13 +0000 (15:58 +0000)]
Merged revisions 59423-59440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59427 | georg.brandl | 2007-12-08 18:56:07 +0100 (Sat, 08 Dec 2007) | 2 lines

  Adapt style.
........
  r59435 | brett.cannon | 2007-12-09 06:09:37 +0100 (Sun, 09 Dec 2007) | 2 lines

  Use a versionchanged directive.
........
  r59436 | georg.brandl | 2007-12-09 09:54:02 +0100 (Sun, 09 Dec 2007) | 2 lines

  #1575: the Mac readme is now one level up.
........
  r59437 | georg.brandl | 2007-12-09 09:59:45 +0100 (Sun, 09 Dec 2007) | 2 lines

  Remove all tabs in that file.
........

17 years ago#1571: clarify removal of ``L`` suffix from long int repr.
Georg Brandl [Sun, 9 Dec 2007 09:04:01 +0000 (09:04 +0000)]
#1571: clarify removal of ``L`` suffix from long int repr.