]> granicus.if.org Git - python/log
python
17 years agoChange amd64 buildbot scripts to use Visual Studio 2008, and
Thomas Heller [Wed, 9 Jan 2008 21:35:04 +0000 (21:35 +0000)]
Change amd64 buildbot scripts to use Visual Studio 2008, and
to use the required versions of external sources.
External sources are not yet built, so the build-step fails to
built some targets.

17 years agoFixed #1776. __import__() no longer imports modules by file name
Christian Heimes [Wed, 9 Jan 2008 19:56:33 +0000 (19:56 +0000)]
Fixed #1776. __import__() no longer imports modules by file name

17 years agovs9to8 sync
Christian Heimes [Wed, 9 Jan 2008 14:46:10 +0000 (14:46 +0000)]
vs9to8 sync

17 years agoRelated to patch #1114: fix another place where attr_t is assumed to be a long
Andrew M. Kuchling [Wed, 9 Jan 2008 12:27:41 +0000 (12:27 +0000)]
Related to patch #1114: fix another place where attr_t is assumed to be a long

17 years agoSet the output file in the _ctypes Debug|x64 configuration.
Thomas Heller [Wed, 9 Jan 2008 11:19:19 +0000 (11:19 +0000)]
Set the output file in the _ctypes Debug|x64 configuration.

17 years agoFix typo
Raymond Hettinger [Wed, 9 Jan 2008 03:13:20 +0000 (03:13 +0000)]
Fix typo

17 years agominor cleaning
Fred Drake [Wed, 9 Jan 2008 03:11:28 +0000 (03:11 +0000)]
minor cleaning

17 years agoSyntax highlighting only works when >>> lines are accompanied by ... lines
Raymond Hettinger [Wed, 9 Jan 2008 03:02:23 +0000 (03:02 +0000)]
Syntax highlighting only works when >>> lines are accompanied by ... lines

17 years agoIssue 846388. Adds a call to PyErr_CheckSignals to
Facundo Batista [Tue, 8 Jan 2008 21:10:12 +0000 (21:10 +0000)]
Issue 846388. Adds a call to PyErr_CheckSignals to
SRE_MATCH so that signal handlers can be invoked during
long regular expression matches.  It also adds a new
error return value indicating that an exception
occurred in a signal handler during the match, allowing
exceptions in the signal handler to propagate up to the
main loop.  Thanks Josh Hoyt and Ralf Schmitt.

17 years agoBetter method for associating .py files with the interpreter.
Georg Brandl [Tue, 8 Jan 2008 19:42:30 +0000 (19:42 +0000)]
Better method for associating .py files with the interpreter.

17 years agoFix markup errors from r59857 and clarify key.__enter__/__exit__ docs
Georg Brandl [Tue, 8 Jan 2008 16:18:26 +0000 (16:18 +0000)]
Fix markup errors from r59857 and clarify key.__enter__/__exit__ docs

17 years agoAdded __enter__ and __exit__ functions to HKEY object
Christian Heimes [Tue, 8 Jan 2008 15:46:10 +0000 (15:46 +0000)]
Added __enter__ and __exit__ functions to HKEY object
Added ExpandEnvironmentStrings to the _winreg module.

17 years agoUse relative instead of absolute filenames in the C-level tracebacks.
Thomas Heller [Tue, 8 Jan 2008 15:15:09 +0000 (15:15 +0000)]
Use relative instead of absolute filenames in the C-level tracebacks.
This prevents traceback prints pointing to files in this way:

  File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function'

17 years agoPatch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platfo...
Andrew M. Kuchling [Tue, 8 Jan 2008 14:56:02 +0000 (14:56 +0000)]
Patch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platforms where attr_t isn't a C long

17 years agoPatch 1137: allow assigning to .buffer_size attribute of PyExpat.parser objects
Andrew M. Kuchling [Tue, 8 Jan 2008 14:30:55 +0000 (14:30 +0000)]
Patch 1137: allow assigning to .buffer_size attribute of PyExpat.parser objects

17 years agoIssue #1757: The hash of a Decimal instance is no longer affected
Facundo Batista [Tue, 8 Jan 2008 12:25:20 +0000 (12:25 +0000)]
Issue #1757: The hash of a Decimal instance is no longer affected
by the current context.  Thanks Mark Dickinson.

17 years agoIt's verbose, not debug
Christian Heimes [Tue, 8 Jan 2008 03:40:04 +0000 (03:40 +0000)]
It's verbose, not debug

17 years agoDocs on named tuple's naming conventions and limits of subclassing
Raymond Hettinger [Tue, 8 Jan 2008 02:24:15 +0000 (02:24 +0000)]
Docs on named tuple's naming conventions and limits of subclassing

17 years agoExpand comment.
Raymond Hettinger [Tue, 8 Jan 2008 02:02:05 +0000 (02:02 +0000)]
Expand comment.

17 years agoDocumentation nits.
Raymond Hettinger [Mon, 7 Jan 2008 21:33:51 +0000 (21:33 +0000)]
Documentation nits.

17 years agoUse get() instead of pop() for the optimized version of _replace().
Raymond Hettinger [Mon, 7 Jan 2008 20:56:05 +0000 (20:56 +0000)]
Use get() instead of pop() for the optimized version of _replace().

17 years agoMinor markup fix
Raymond Hettinger [Mon, 7 Jan 2008 20:17:35 +0000 (20:17 +0000)]
Minor markup fix

17 years agoCleanup named tuple subclassing example.
Raymond Hettinger [Mon, 7 Jan 2008 20:07:38 +0000 (20:07 +0000)]
Cleanup named tuple subclassing example.

17 years agoFixed indention problem that caused the second TIPC test to run on systems without...
Christian Heimes [Mon, 7 Jan 2008 19:58:41 +0000 (19:58 +0000)]
Fixed indention problem that caused the second TIPC test to run on systems without TIPC

17 years agoAdded section about adding contextual information to log output.
Vinay Sajip [Mon, 7 Jan 2008 19:40:10 +0000 (19:40 +0000)]
Added section about adding contextual information to log output.

17 years agoClarify metaclass docs and add example.
Georg Brandl [Mon, 7 Jan 2008 19:17:10 +0000 (19:17 +0000)]
Clarify metaclass docs and add example.

17 years agoFix two further doc build warnings.
Georg Brandl [Mon, 7 Jan 2008 18:57:03 +0000 (18:57 +0000)]
Fix two further doc build warnings.

17 years agoFix inconsistent title levels -- it made the whole doc build crash horribly.
Raymond Hettinger [Mon, 7 Jan 2008 18:52:19 +0000 (18:52 +0000)]
Fix inconsistent title levels -- it made the whole doc build crash horribly.

17 years ago#467924, patch by Alan McIntyre: Add ZipFile.extract and ZipFile.extractall.
Georg Brandl [Mon, 7 Jan 2008 18:47:44 +0000 (18:47 +0000)]
#467924, patch by Alan McIntyre: Add ZipFile.extract and ZipFile.extractall.

17 years agoFix #define ordering.
Georg Brandl [Mon, 7 Jan 2008 18:41:34 +0000 (18:41 +0000)]
Fix #define ordering.

17 years agoRestructure urllib doc structure.
Georg Brandl [Mon, 7 Jan 2008 18:23:27 +0000 (18:23 +0000)]
Restructure urllib doc structure.

17 years agoMake Python compile with --disable-unicode.
Georg Brandl [Mon, 7 Jan 2008 18:16:36 +0000 (18:16 +0000)]
Make Python compile with --disable-unicode.

17 years agopatch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.
Georg Brandl [Mon, 7 Jan 2008 17:25:53 +0000 (17:25 +0000)]
patch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.

17 years agoPatch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envva...
Georg Brandl [Mon, 7 Jan 2008 17:09:35 +0000 (17:09 +0000)]
Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.

17 years agoRestore "somenamedtuple" as the "class" for named tuple attrs.
Georg Brandl [Mon, 7 Jan 2008 16:43:47 +0000 (16:43 +0000)]
Restore "somenamedtuple" as the "class" for named tuple attrs.

17 years agoAdded a hyperlink from sequence types to mutable sequence types.
Mark Summerfield [Mon, 7 Jan 2008 16:42:08 +0000 (16:42 +0000)]
Added a hyperlink from sequence types to mutable sequence types.

17 years ago#1755: typo.
Georg Brandl [Mon, 7 Jan 2008 16:41:57 +0000 (16:41 +0000)]
#1755: typo.

17 years agoIssue #1646: Make socket support TIPC. The socket module now has support
Christian Heimes [Mon, 7 Jan 2008 16:12:44 +0000 (16:12 +0000)]
Issue #1646: Make socket support TIPC. The socket module now has support
for TIPC under Linux, see http://tipc.sf.net/ for more information.
Thanks to Alberto Bertogli for the patch

17 years agoUpdated docs for basicConfig to indicate it's a no-op if handlers have been defined...
Vinay Sajip [Mon, 7 Jan 2008 15:30:36 +0000 (15:30 +0000)]
Updated docs for basicConfig to indicate it's a no-op if handlers have been defined for the root logger.

17 years agoClean up markup.
Georg Brandl [Mon, 7 Jan 2008 09:18:17 +0000 (09:18 +0000)]
Clean up markup.

17 years agoConsistency nit.
Georg Brandl [Mon, 7 Jan 2008 09:16:08 +0000 (09:16 +0000)]
Consistency nit.

17 years agoChange virtual class name of __iter__ to "object" in order to make it linkable.
Georg Brandl [Mon, 7 Jan 2008 09:07:38 +0000 (09:07 +0000)]
Change virtual class name of __iter__ to "object" in order to make it linkable.

17 years agoAdd another named tuple subclassing example.
Raymond Hettinger [Mon, 7 Jan 2008 09:03:49 +0000 (09:03 +0000)]
Add another named tuple subclassing example.

17 years agoFix issue 1747: allow classic classes to be checked for being subclasses of
Jeffrey Yasskin [Mon, 7 Jan 2008 06:09:40 +0000 (06:09 +0000)]
Fix issue 1747: allow classic classes to be checked for being subclasses of
ABCs.

17 years agoCleanup subclassing example to more clearly show fixed-width print format.
Raymond Hettinger [Mon, 7 Jan 2008 05:50:35 +0000 (05:50 +0000)]
Cleanup subclassing example to more clearly show fixed-width print format.

17 years agoAdd subclassing example to docs for named tuples.
Raymond Hettinger [Mon, 7 Jan 2008 04:24:49 +0000 (04:24 +0000)]
Add subclassing example to docs for named tuples.

17 years agoRemove latex trace.
Georg Brandl [Sun, 6 Jan 2008 23:22:27 +0000 (23:22 +0000)]
Remove latex trace.

17 years agoSpeed-up named tuple's _make() constructor.
Raymond Hettinger [Sun, 6 Jan 2008 22:11:54 +0000 (22:11 +0000)]
Speed-up named tuple's _make() constructor.

17 years agoAdd tutorial section about coding style.
Georg Brandl [Sun, 6 Jan 2008 22:05:40 +0000 (22:05 +0000)]
Add tutorial section about coding style.

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.