]> granicus.if.org Git - python/log
python
17 years agoAdded Mark Dickinson.
Facundo Batista [Sun, 6 Jan 2008 21:13:12 +0000 (21:13 +0000)]
Added Mark Dickinson.

17 years agoFix introductory sentence.
Georg Brandl [Sun, 6 Jan 2008 17:21:00 +0000 (17:21 +0000)]
Fix introductory sentence.

17 years ago#1325: Add docs and tests for zipimporter.archive and zipimporter.prefix.
Georg Brandl [Sun, 6 Jan 2008 16:49:50 +0000 (16:49 +0000)]
#1325: Add docs and tests for zipimporter.archive and zipimporter.prefix.

17 years ago#1499: Document compile() exceptions.
Georg Brandl [Sun, 6 Jan 2008 16:22:56 +0000 (16:22 +0000)]
#1499: Document compile() exceptions.

17 years ago#1582: document __reversed__, patch by Mark Russell.
Georg Brandl [Sun, 6 Jan 2008 16:17:56 +0000 (16:17 +0000)]
#1582: document __reversed__, patch by Mark Russell.

17 years ago#1559684: document that shutil.copy* doesn't copy all metadata on Posix and Windows...
Georg Brandl [Sun, 6 Jan 2008 16:12:39 +0000 (16:12 +0000)]
#1559684: document that shutil.copy* doesn't copy all metadata on Posix and Windows too.

17 years ago#1686390: add example for csv.Sniffer use.
Georg Brandl [Sun, 6 Jan 2008 16:04:56 +0000 (16:04 +0000)]
#1686390: add example for csv.Sniffer use.

17 years ago#1727024: document that Popen.returncode is set by Popen.poll/wait.
Georg Brandl [Sun, 6 Jan 2008 16:01:26 +0000 (16:01 +0000)]
#1727024: document that Popen.returncode is set by Popen.poll/wait.

17 years ago#1615275: clarify return object types of different tempfile factories.
Georg Brandl [Sun, 6 Jan 2008 15:55:26 +0000 (15:55 +0000)]
#1615275: clarify return object types of different tempfile factories.

17 years ago#759525: document that dir() doesn't return metaclass attrs when given a class as...
Georg Brandl [Sun, 6 Jan 2008 15:48:20 +0000 (15:48 +0000)]
#759525: document that dir() doesn't return metaclass attrs when given a class as arg.

17 years ago#1501: document that 0**0 == 1.
Georg Brandl [Sun, 6 Jan 2008 15:41:50 +0000 (15:41 +0000)]
#1501: document that 0**0 == 1.

17 years ago#1755097: document default values for [].sort() and sorted().
Georg Brandl [Sun, 6 Jan 2008 15:34:57 +0000 (15:34 +0000)]
#1755097: document default values for [].sort() and sorted().

17 years ago#1680: fix context manager example function name.
Georg Brandl [Sun, 6 Jan 2008 15:30:34 +0000 (15:30 +0000)]
#1680: fix context manager example function name.

17 years ago#1591: Clarify docstring of Popen3.
Georg Brandl [Sun, 6 Jan 2008 14:33:52 +0000 (14:33 +0000)]
#1591: Clarify docstring of Popen3.

17 years ago#1742: don't raise exception on os.path.relpath("a", "a"), but return os.curdir.
Georg Brandl [Sun, 6 Jan 2008 14:27:15 +0000 (14:27 +0000)]
#1742: don't raise exception on os.path.relpath("a", "a"), but return os.curdir.
Reported by Jesse Towner.

17 years ago#1696393: don't check for '.' and '..' in ntpath.walk since
Georg Brandl [Sun, 6 Jan 2008 14:17:36 +0000 (14:17 +0000)]
#1696393: don't check for '.' and '..' in ntpath.walk since
they aren't returned from os.listdir anymore.
Reported by Michael Haggerty.

17 years agoDon't try to package msvcr90 for the moment.
Martin v. Löwis [Sun, 6 Jan 2008 11:13:16 +0000 (11:13 +0000)]
Don't try to package msvcr90 for the moment.

17 years agoPackage using VS 2008.
Martin v. Löwis [Sun, 6 Jan 2008 11:03:43 +0000 (11:03 +0000)]
Package using VS 2008.

17 years agoUse vcbuild for VS 2009.
Martin v. Löwis [Sun, 6 Jan 2008 10:09:48 +0000 (10:09 +0000)]
Use vcbuild for VS 2009.

17 years agoSmall code simplification. Forgot that classmethods can be called from intances.
Raymond Hettinger [Sun, 6 Jan 2008 09:02:24 +0000 (09:02 +0000)]
Small code simplification.  Forgot that classmethods can be called from intances.

17 years agoAdd John Nagle (of issue #1637).
Guido van Rossum [Sat, 5 Jan 2008 22:20:01 +0000 (22:20 +0000)]
Add John Nagle (of issue #1637).

17 years agoPatch #1637: fix urlparse for URLs like 'http://x.com?arg=/foo'.
Guido van Rossum [Sat, 5 Jan 2008 22:19:06 +0000 (22:19 +0000)]
Patch #1637: fix urlparse for URLs like 'http://x.com?arg=/foo'.
Fix by John Nagle.

17 years agoFinal adjustments for #1601
Christian Heimes [Sat, 5 Jan 2008 21:35:52 +0000 (21:35 +0000)]
Final adjustments for #1601

17 years agoUse markup.
Georg Brandl [Sat, 5 Jan 2008 21:10:50 +0000 (21:10 +0000)]
Use markup.

17 years agoRepair markup.
Georg Brandl [Sat, 5 Jan 2008 21:02:25 +0000 (21:02 +0000)]
Repair markup.

17 years ago#1719: capitalization error in "UuidCreate".
Georg Brandl [Sat, 5 Jan 2008 20:46:29 +0000 (20:46 +0000)]
#1719: capitalization error in "UuidCreate".

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

17 years agoRevert socket.rst to unix-eol.
Georg Brandl [Sat, 5 Jan 2008 20:29:13 +0000 (20:29 +0000)]
Revert socket.rst to unix-eol.

17 years agoDoc patch #1730 from Robin Stocker; minor corrections mostly to os.rst.
Georg Brandl [Sat, 5 Jan 2008 19:44:22 +0000 (19:44 +0000)]
Doc patch #1730 from Robin Stocker; minor corrections mostly to os.rst.

17 years agoSimplify index entries; fix #1712.
Georg Brandl [Sat, 5 Jan 2008 19:29:45 +0000 (19:29 +0000)]
Simplify index entries; fix #1712.

17 years agoRemove with_statement future imports from 2.6 docs.
Georg Brandl [Sat, 5 Jan 2008 19:28:16 +0000 (19:28 +0000)]
Remove with_statement future imports from 2.6 docs.

17 years agoFix C++-style comment.
Georg Brandl [Sat, 5 Jan 2008 17:49:17 +0000 (17:49 +0000)]
Fix C++-style comment.

17 years agoAdd myself.
Thomas Heller [Sat, 5 Jan 2008 17:15:44 +0000 (17:15 +0000)]
Add myself.

17 years agoFix comment typo
Andrew M. Kuchling [Sat, 5 Jan 2008 15:13:49 +0000 (15:13 +0000)]
Fix comment typo

17 years agoContinue rolling back pep-3141 changes that changed behavior from 2.5. This
Jeffrey Yasskin [Sat, 5 Jan 2008 08:47:13 +0000 (08:47 +0000)]
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.

17 years agoclean up a comment
Fred Drake [Sat, 5 Jan 2008 04:38:38 +0000 (04:38 +0000)]
clean up a comment

17 years agoAdd error-checking to namedtuple's _replace() method.
Raymond Hettinger [Sat, 5 Jan 2008 02:17:24 +0000 (02:17 +0000)]
Add error-checking to namedtuple's _replace() method.

17 years agoImprove namedtuple's _cast() method with a docstring, new name, and error-checking.
Raymond Hettinger [Sat, 5 Jan 2008 01:35:43 +0000 (01:35 +0000)]
Improve namedtuple's _cast() method with a docstring, new name, and error-checking.

17 years agoPatch #1698 by Senthil: allow '@' in username when parsed by urlparse.py.
Guido van Rossum [Sat, 5 Jan 2008 01:21:57 +0000 (01:21 +0000)]
Patch #1698 by Senthil: allow '@' in username when parsed by urlparse.py.

17 years agoPatch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000
Guido van Rossum [Sat, 5 Jan 2008 00:59:59 +0000 (00:59 +0000)]
Patch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000
and adds errors for -0x.

17 years agoFix markup
Andrew M. Kuchling [Fri, 4 Jan 2008 18:25:05 +0000 (18:25 +0000)]
Fix markup

17 years agoFix markup
Andrew M. Kuchling [Fri, 4 Jan 2008 18:24:41 +0000 (18:24 +0000)]
Fix markup

17 years agosocket.ioctl is only available on Windows
Christian Heimes [Fri, 4 Jan 2008 15:48:06 +0000 (15:48 +0000)]
socket.ioctl is only available on Windows

17 years agoReverted last transaction. It's the wrong branch.
Christian Heimes [Fri, 4 Jan 2008 15:34:06 +0000 (15:34 +0000)]
Reverted last transaction. It's the wrong branch.

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:29:00 +0000 (15:29 +0000)]
And here is the rest of Hirokazu Yamamoto's patch for VS6.0 support. Thanks Hiro!

17 years agoAdded interface to Windows' WSAIoctl and a simple example for a network sniffer.
Christian Heimes [Fri, 4 Jan 2008 15:23:30 +0000 (15:23 +0000)]
Added interface to Windows' WSAIoctl and a simple example for a network sniffer.

17 years agoUpdate links to bug/patch tracker
Andrew M. Kuchling [Fri, 4 Jan 2008 14:47:17 +0000 (14:47 +0000)]
Update links to bug/patch tracker

17 years agoIssue #1735: TarFile.extractall() now correctly sets
Lars Gustäbel [Fri, 4 Jan 2008 14:00:33 +0000 (14:00 +0000)]
Issue #1735: TarFile.extractall() now correctly sets
directory permissions and times.

(will backport to 2.5)

17 years agoBug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
Christian Heimes [Fri, 4 Jan 2008 13:21:07 +0000 (13:21 +0000)]
Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.

17 years agoMake math.{floor,ceil}({int,long}) return float again for backwards
Jeffrey Yasskin [Fri, 4 Jan 2008 08:01:23 +0000 (08:01 +0000)]
Make math.{floor,ceil}({int,long}) return float again for backwards
compatibility after r59671 made them return integral types.

17 years agoMinor fix-ups to named tuples:
Raymond Hettinger [Fri, 4 Jan 2008 03:22:53 +0000 (03:22 +0000)]
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.

17 years agoMoved include "Python.h" in front of other imports to silence a warning.
Christian Heimes [Fri, 4 Jan 2008 03:15:05 +0000 (03:15 +0000)]
Moved include "Python.h" in front of other imports to silence a warning.

17 years agoAdded _struct._clearcache() for regression tests
Christian Heimes [Fri, 4 Jan 2008 02:54:42 +0000 (02:54 +0000)]
Added _struct._clearcache() for regression tests

17 years agoFixed refleak tests for _struct changes
Christian Heimes [Fri, 4 Jan 2008 02:46:19 +0000 (02:46 +0000)]
Fixed refleak tests for _struct changes

17 years agoAdd math items; other edits
Andrew M. Kuchling [Fri, 4 Jan 2008 02:31:40 +0000 (02:31 +0000)]
Add math items; other edits

17 years agoTypo fix
Andrew M. Kuchling [Fri, 4 Jan 2008 02:26:00 +0000 (02:26 +0000)]
Typo fix

17 years agoPartial port of r59682 from py3k.
Amaury Forgeot d'Arc [Fri, 4 Jan 2008 02:04:15 +0000 (02:04 +0000)]
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.

17 years agoFilled in some XXX comments
Christian Heimes [Fri, 4 Jan 2008 02:03:25 +0000 (02:03 +0000)]
Filled in some XXX comments

17 years agoFixed math.copysign() on Windows
Christian Heimes [Fri, 4 Jan 2008 01:48:50 +0000 (01:48 +0000)]
Fixed math.copysign() on Windows

17 years agoAdd items
Andrew M. Kuchling [Fri, 4 Jan 2008 01:16:12 +0000 (01:16 +0000)]
Add items

17 years agoMarkup fixes; grammar tweaks
Andrew M. Kuchling [Fri, 4 Jan 2008 01:15:50 +0000 (01:15 +0000)]
Markup fixes; grammar tweaks

17 years agoBug #1481296: Fixed long(float('nan'))!=0L.
Christian Heimes [Fri, 4 Jan 2008 00:37:34 +0000 (00:37 +0000)]
Bug #1481296: Fixed long(float('nan'))!=0L.

17 years agoFixed #1687: plistlib.py restricts <integer> to Python int when writing
Christian Heimes [Fri, 4 Jan 2008 00:04:52 +0000 (00:04 +0000)]
Fixed #1687: plistlib.py restricts <integer> to Python int when writing

17 years agoFinish-up the struct module optimizations started at the Iceland NFS sprint.
Raymond Hettinger [Fri, 4 Jan 2008 00:01:15 +0000 (00:01 +0000)]
Finish-up the struct module optimizations started at the Iceland NFS sprint.

17 years agoBug #1301: fixed a bad assert in _tkinter.
Guido van Rossum [Thu, 3 Jan 2008 23:54:04 +0000 (23:54 +0000)]
Bug #1301: fixed a bad assert in _tkinter.

17 years agoAdded copysign(x, y) function to the math module
Christian Heimes [Thu, 3 Jan 2008 22:32:26 +0000 (22:32 +0000)]
Added copysign(x, y) function to the math module

17 years agoModified PyImport_Import and PyImport_ImportModule to always use absolute imports...
Christian Heimes [Thu, 3 Jan 2008 22:16:32 +0000 (22:16 +0000)]
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

17 years agoSome build bots don't compile mathmodule. There is an issue with the long definition...
Christian Heimes [Thu, 3 Jan 2008 21:14:48 +0000 (21:14 +0000)]
Some build bots don't compile mathmodule. There is an issue with the long definition of pi and euler

17 years agoAdded math.isinf() and math.isnan()
Christian Heimes [Thu, 3 Jan 2008 20:23:15 +0000 (20:23 +0000)]
Added math.isinf() and math.isnan()

17 years agoIssue #1700, reported by Nguyen Quan Son, fix by Fredruk Lundh:
Guido van Rossum [Thu, 3 Jan 2008 19:12:44 +0000 (19:12 +0000)]
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.)

17 years agoIssue #1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj
Christian Heimes [Thu, 3 Jan 2008 15:41:30 +0000 (15:41 +0000)]
Issue #1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj

17 years agoBackport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just
Jeffrey Yasskin [Thu, 3 Jan 2008 02:21:52 +0000 (02:21 +0000)]
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.

17 years agoPatch #1696. Don't attempt to close None in dry-run mode.
Guido van Rossum [Wed, 2 Jan 2008 19:00:46 +0000 (19:00 +0000)]
Patch #1696.  Don't attempt to close None in dry-run mode.

17 years agoMade vs9to8 Unix compatible
Christian Heimes [Wed, 2 Jan 2008 18:28:32 +0000 (18:28 +0000)]
Made vs9to8 Unix compatible

17 years agoRemoved PCbuild8/ directory and added a new build directory for VS 2005
Christian Heimes [Wed, 2 Jan 2008 17:43:40 +0000 (17:43 +0000)]
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 agoChange docstrings to comments so test output will display normally.
Kurt B. Kaiser [Wed, 2 Jan 2008 05:23:38 +0000 (05:23 +0000)]
Change docstrings to comments so test output will display normally.

17 years agoIssue1177
Kurt B. Kaiser [Wed, 2 Jan 2008 04:11:28 +0000 (04:11 +0000)]
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.

17 years agoTest in PCbuild directory.
Martin v. Löwis [Tue, 1 Jan 2008 23:36:24 +0000 (23:36 +0000)]
Test in PCbuild directory.

17 years agoUse Visual Studio 2009 on the build slaves.
Martin v. Löwis [Tue, 1 Jan 2008 23:00:48 +0000 (23:00 +0000)]
Use Visual Studio 2009 on the build slaves.

17 years agoDon't link with Tix; Tix is loaded dynamically by Tcl.
Martin v. Löwis [Tue, 1 Jan 2008 23:00:00 +0000 (23:00 +0000)]
Don't link with Tix; Tix is loaded dynamically by Tcl.

17 years agoNews item for r59653.
Martin v. Löwis [Tue, 1 Jan 2008 21:09:07 +0000 (21:09 +0000)]
News item for r59653.

17 years agoAlways convert Text.index result to string.
Martin v. Löwis [Tue, 1 Jan 2008 21:08:18 +0000 (21:08 +0000)]
Always convert Text.index result to string.
This improves compatibility with Tcl 8.5, which would
otherwise return textindex objects.

17 years agoReturn results from Python callbacks to Tcl as Tcl objects.
Martin v. Löwis [Tue, 1 Jan 2008 21:05:17 +0000 (21:05 +0000)]
Return results from Python callbacks to Tcl as Tcl objects.
Fixes Tk issue #1851526

17 years agoAdded support for new Windows build dirs in PC/ to distutils.sysconfig
Christian Heimes [Tue, 1 Jan 2008 14:37:32 +0000 (14:37 +0000)]
Added support for new Windows build dirs in PC/ to distutils.sysconfig

17 years agoThe root of the project is two levels up from PC/VS7.1
Christian Heimes [Tue, 1 Jan 2008 13:58:16 +0000 (13:58 +0000)]
The root of the project is two levels up from PC/VS7.1

17 years agoAdded new wininst files to msi.py and adjusted some paths
Christian Heimes [Tue, 1 Jan 2008 13:52:57 +0000 (13:52 +0000)]
Added new wininst files to msi.py and adjusted some paths

17 years agoMSI uses back slashes as path separators
Christian Heimes [Tue, 1 Jan 2008 13:40:26 +0000 (13:40 +0000)]
MSI uses back slashes as path separators

17 years agoFix an odd error which would only occur close to new year's eve, due
Guido van Rossum [Tue, 1 Jan 2008 04:15:29 +0000 (04:15 +0000)]
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.)

17 years agoFix refleak
Neal Norwitz [Mon, 31 Dec 2007 23:48:47 +0000 (23:48 +0000)]
Fix refleak

17 years agoFixed path to _ssl.c in Windows make file, take three ...
Christian Heimes [Mon, 31 Dec 2007 19:25:22 +0000 (19:25 +0000)]
Fixed path to _ssl.c in Windows make file, take three ...

17 years agoFixed path to _ssl.c in Windows make file, take two
Christian Heimes [Mon, 31 Dec 2007 19:23:22 +0000 (19:23 +0000)]
Fixed path to _ssl.c in Windows make file, take two

17 years agoFixed path to _ssl.c in Windows make file
Christian Heimes [Mon, 31 Dec 2007 19:20:57 +0000 (19:20 +0000)]
Fixed path to _ssl.c in Windows make file

17 years agoFixed path
Christian Heimes [Mon, 31 Dec 2007 19:16:56 +0000 (19:16 +0000)]
Fixed path

17 years agoFixed include paths of PC/VS7.1
Christian Heimes [Mon, 31 Dec 2007 16:17:13 +0000 (16:17 +0000)]
Fixed include paths of PC/VS7.1

17 years agoRenamed PCBuild9 directory to PCBuild
Christian Heimes [Mon, 31 Dec 2007 15:18:55 +0000 (15:18 +0000)]
Renamed PCBuild9 directory to PCBuild

17 years agoFix paths for build bot, part 2
Christian Heimes [Mon, 31 Dec 2007 15:02:41 +0000 (15:02 +0000)]
Fix paths for build bot, part 2

17 years agoFix paths for build bot
Christian Heimes [Mon, 31 Dec 2007 14:59:26 +0000 (14:59 +0000)]
Fix paths for build bot

17 years agoMoved PCbuild directory to PC/VS7.1
Christian Heimes [Mon, 31 Dec 2007 14:51:18 +0000 (14:51 +0000)]
Moved PCbuild directory to PC/VS7.1

17 years agoAdded wininst-9.0.exe executable for VS 2008
Christian Heimes [Mon, 31 Dec 2007 14:47:07 +0000 (14:47 +0000)]
Added wininst-9.0.exe executable for VS 2008
Integrated bdist_wininst into PCBuild9 directory

17 years agoImprove docs for itertools.groupby(). The use of xrange(0) to create a unique object...
Raymond Hettinger [Sat, 29 Dec 2007 22:16:24 +0000 (22:16 +0000)]
Improve docs for itertools.groupby().  The use of xrange(0) to create a unique object is less obvious than object().