]> granicus.if.org Git - python/log
python
18 years agoMove icon files into DLLs dir. Fixes #1477968.
Martin v. Löwis [Fri, 12 May 2006 13:57:36 +0000 (13:57 +0000)]
Move icon files into DLLs dir. Fixes #1477968.

18 years agoDynamically allocate path name buffer for Unicode
Martin v. Löwis [Fri, 12 May 2006 12:27:28 +0000 (12:27 +0000)]
Dynamically allocate path name buffer for Unicode
path name in listdir. Fixes #1431582.
Stop overallocating MAX_PATH characters for ANSI
path names. Stop assigning to errno.

18 years agoSF patch #1473132: Improve docs for tp_clear and tp_traverse,
Tim Peters [Fri, 12 May 2006 01:57:59 +0000 (01:57 +0000)]
SF patch #1473132:  Improve docs for tp_clear and tp_traverse,
by Collin Winter.

Bugfix candidate (but I'm not going to bother).

18 years agoTypo fix.
Georg Brandl [Thu, 11 May 2006 19:57:09 +0000 (19:57 +0000)]
Typo fix.

18 years agoBaseThreadedTestCase.setup(): stop special-casing WindowsError.
Tim Peters [Thu, 11 May 2006 16:37:42 +0000 (16:37 +0000)]
BaseThreadedTestCase.setup():  stop special-casing WindowsError.

Rev 45964 fiddled with WindowsError, and broke test_bsddb3 on all
the Windows buildbot slaves as a result.  This should repair it.

18 years agotypo fix
Andrew M. Kuchling [Thu, 11 May 2006 16:32:24 +0000 (16:32 +0000)]
typo fix

18 years agoGrammar fix
George Yoshida [Thu, 11 May 2006 15:53:27 +0000 (15:53 +0000)]
Grammar fix

18 years agoChange WindowsError to carry the Win32 error code in winerror,
Martin v. Löwis [Thu, 11 May 2006 13:28:43 +0000 (13:28 +0000)]
Change WindowsError to carry the Win32 error code in winerror,
and the DOS error code in errno. Revert changes where
WindowsError catch blocks unnecessarily special-case OSError.

18 years agoDon't mask a no memory error with a less meaningful one as discussed on python-checkins
Neal Norwitz [Thu, 11 May 2006 07:51:59 +0000 (07:51 +0000)]
Don't mask a no memory error with a less meaningful one as discussed on python-checkins

18 years agoDetect if %zd is supported by printf() during configure and sets
Brett Cannon [Thu, 11 May 2006 05:11:33 +0000 (05:11 +0000)]
Detect if %zd is supported by printf() during configure and sets
PY_FORMAT_SIZE_T appropriately.  Removes warnings on
OS X under gcc 4.0.1 when PY_FORMAT_SIZE_T is set to "" instead of "z" as is
needed.

18 years agoFix two small errors in argument lists.
Georg Brandl [Wed, 10 May 2006 20:09:23 +0000 (20:09 +0000)]
Fix two small errors in argument lists.

18 years agoClarify description of exception handling
Andrew M. Kuchling [Wed, 10 May 2006 17:19:04 +0000 (17:19 +0000)]
Clarify description of exception handling

18 years agoPatch #721464: pdb.Pdb instances can now be given explicit stdin and
Georg Brandl [Wed, 10 May 2006 17:13:20 +0000 (17:13 +0000)]
Patch #721464: pdb.Pdb instances can now be given explicit stdin and
stdout arguments, making it possible to redirect input and output
for remote debugging.

18 years agoPatch #1484695: Update the tarfile module to version 0.8. This fixes
Georg Brandl [Wed, 10 May 2006 16:26:03 +0000 (16:26 +0000)]
Patch #1484695: Update the tarfile module to version 0.8. This fixes
a couple of issues, notably handling of long file names using the
GNU LONGNAME extension.

18 years agoBug #1484978: curses.panel: clarify that Panel objects are destroyed on garbage colle...
Georg Brandl [Wed, 10 May 2006 16:11:44 +0000 (16:11 +0000)]
Bug #1484978: curses.panel: clarify that Panel objects are destroyed on garbage collection.

18 years agoBug #1485447: subprocess: document that the "cwd" parameter isn't used to find the...
Georg Brandl [Wed, 10 May 2006 16:09:03 +0000 (16:09 +0000)]
Bug #1485447: subprocess: document that the "cwd" parameter isn't used to find the executable. Misc. other markup fixes.

18 years agoBug #1482988: indicate more prominently that the Stats class is in the pstats module.
Georg Brandl [Wed, 10 May 2006 15:59:06 +0000 (15:59 +0000)]
Bug #1482988: indicate more prominently that the Stats class is in the pstats module.

18 years agoIgnore reflog.txt, too.
Thomas Wouters [Wed, 10 May 2006 15:04:11 +0000 (15:04 +0000)]
Ignore reflog.txt, too.

18 years agoFix problems found by Coverity.
Neal Norwitz [Wed, 10 May 2006 06:57:58 +0000 (06:57 +0000)]
Fix problems found by Coverity.

longobject.c: also fix an ssize_t problem
  <a> could have been NULL, so hoist the size calc to not use <a>.

_ssl.c: under fail: self is DECREF'd, but it would have been NULL.

_elementtree.c: delete self if there was an error.

_csv.c: I'm not sure if lineterminator could have been anything other than
a string.  However, other string method calls are checked, so check this
one too.

18 years agoVariant of patch #1478292. doctest.register_optionflag(name)
Tim Peters [Wed, 10 May 2006 02:43:01 +0000 (02:43 +0000)]
Variant of patch #1478292.  doctest.register_optionflag(name)
shouldn't create a new flag when `name` is already the name of
an option flag.

18 years agoDisable a test that is unreliable.
Thomas Heller [Tue, 9 May 2006 20:20:15 +0000 (20:20 +0000)]
Disable a test that is unreliable.

18 years agoMicro optimization. In the first case, we know that frame->f_exc_type
Neal Norwitz [Tue, 9 May 2006 05:38:56 +0000 (05:38 +0000)]
Micro optimization.  In the first case, we know that frame->f_exc_type
is NULL, so there's no reason to do anything with it.  In the second case,
we know frame->f_exc_type is not NULL, so we can just do an INCREF.

18 years agoPatch #1478993: take advantage of BaseException/Exception split in cookielib
Georg Brandl [Mon, 8 May 2006 17:48:01 +0000 (17:48 +0000)]
Patch #1478993: take advantage of BaseException/Exception split in cookielib

18 years agoPatch #1479302: Make urllib2 digest auth and basic auth play together.
Georg Brandl [Mon, 8 May 2006 17:36:08 +0000 (17:36 +0000)]
Patch #1479302: Make urllib2 digest auth and basic auth play together.

18 years agoAdd test for rev. 45934.
Georg Brandl [Mon, 8 May 2006 17:28:47 +0000 (17:28 +0000)]
Add test for rev. 45934.

18 years agoAdd missing PyMem_Free.
Martin v. Löwis [Mon, 8 May 2006 05:25:56 +0000 (05:25 +0000)]
Add missing PyMem_Free.

18 years agoPatch #1483395: add new TLDs to cookielib
Georg Brandl [Sun, 7 May 2006 20:44:34 +0000 (20:44 +0000)]
Patch #1483395: add new TLDs to cookielib

18 years agoMinor language edit
Andrew M. Kuchling [Sun, 7 May 2006 17:14:53 +0000 (17:14 +0000)]
Minor language edit

18 years ago[Patch #1479977] Revised version of urllib2 HOWTO, edited by John J. Lee
Andrew M. Kuchling [Sun, 7 May 2006 17:12:12 +0000 (17:12 +0000)]
[Patch #1479977] Revised version of urllib2 HOWTO, edited by John J. Lee

18 years agoHandle ERROR_ALREADY_EXISTS.
Martin v. Löwis [Sat, 6 May 2006 20:04:08 +0000 (20:04 +0000)]
Handle ERROR_ALREADY_EXISTS.

18 years agoPort access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.
Martin v. Löwis [Sat, 6 May 2006 16:32:54 +0000 (16:32 +0000)]
Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.

18 years agoUse \versionchanged for the feature change
George Yoshida [Sat, 6 May 2006 14:16:51 +0000 (14:16 +0000)]
Use \versionchanged for the feature change

18 years agodescribe optional arguments for DocFileSuite
George Yoshida [Sat, 6 May 2006 13:09:45 +0000 (13:09 +0000)]
describe optional arguments for DocFileSuite

18 years agoClean up.
Thomas Heller [Fri, 5 May 2006 19:14:24 +0000 (19:14 +0000)]
Clean up.

18 years agooops - the function is exported as 'my_free', not 'free'.
Thomas Heller [Fri, 5 May 2006 18:46:27 +0000 (18:46 +0000)]
oops - the function is exported as 'my_free', not 'free'.

18 years agoFix memory leaks in the ctypes test suite, reported by valgrind, by
Thomas Heller [Fri, 5 May 2006 18:43:24 +0000 (18:43 +0000)]
Fix memory leaks in the ctypes test suite, reported by valgrind, by
free()ing the memory we allocate.

18 years agoExport the 'free' standard C function for use in the test suite.
Thomas Heller [Fri, 5 May 2006 18:42:14 +0000 (18:42 +0000)]
Export the 'free' standard C function for use in the test suite.

18 years agoUpdate checks to consider Windows error numbers.
Martin v. Löwis [Thu, 4 May 2006 14:27:52 +0000 (14:27 +0000)]
Update checks to consider Windows error numbers.

18 years agoDrop now-unnecessary arguments to posix_2str.
Martin v. Löwis [Thu, 4 May 2006 12:04:27 +0000 (12:04 +0000)]
Drop now-unnecessary arguments to posix_2str.

18 years agoImplement os.{chdir,rename,rmdir,remove} using Win32 directly.
Martin v. Löwis [Thu, 4 May 2006 10:08:42 +0000 (10:08 +0000)]
Implement os.{chdir,rename,rmdir,remove} using Win32 directly.

18 years agoPatch #1475845: Raise IndentationError for unexpected indent.
Martin v. Löwis [Thu, 4 May 2006 05:51:03 +0000 (05:51 +0000)]
Patch #1475845: Raise IndentationError for unexpected indent.

18 years agoBug #1481530: allow "from os.path import ..." with imputil
Georg Brandl [Thu, 4 May 2006 05:08:10 +0000 (05:08 +0000)]
Bug #1481530: allow "from os.path import ..." with imputil

18 years agoDon't fail the tests when libglut.so or libgle.so cannot be loaded.
Thomas Heller [Wed, 3 May 2006 18:35:39 +0000 (18:35 +0000)]
Don't fail the tests when libglut.so or libgle.so cannot be loaded.

18 years agoBug #1385040: don't allow "def foo(a=1, b): pass" in the compiler package.
Georg Brandl [Wed, 3 May 2006 18:18:32 +0000 (18:18 +0000)]
Bug #1385040: don't allow "def foo(a=1, b): pass" in the compiler package.

18 years agoBug #1472191: convert breakpoint indices to ints before comparing them to ints
Georg Brandl [Wed, 3 May 2006 18:12:33 +0000 (18:12 +0000)]
Bug #1472191: convert breakpoint indices to ints before comparing them to ints

18 years agoRFE #1472176: In httplib, don't encode the netloc and hostname with "idna" if not...
Georg Brandl [Wed, 3 May 2006 18:03:22 +0000 (18:03 +0000)]
RFE #1472176: In httplib, don't encode the netloc and hostname with "idna" if not necessary.

18 years agoAdd seamonkey to list of Windows browsers too.
Georg Brandl [Wed, 3 May 2006 17:46:13 +0000 (17:46 +0000)]
Add seamonkey to list of Windows browsers too.

18 years agoGet rid of a couple more context object references, fix some markup and clarify what...
Nick Coghlan [Wed, 3 May 2006 13:17:49 +0000 (13:17 +0000)]
Get rid of a couple more context object references, fix some markup and clarify what happens when a generator context function swallows an exception.

18 years agoFinish bringing SVN into line with latest version of PEP 343 by getting rid of all...
Nick Coghlan [Wed, 3 May 2006 13:02:47 +0000 (13:02 +0000)]
Finish bringing SVN into line with latest version of PEP 343 by getting rid of all remaining references to context objects that I could find. Without a __context__() method context objects no longer exist. Also get test_with working again, and adopt a suggestion from Neal for decimal.Context.get_manager()

18 years agoMove network tests from test_urllib2 to test_urllib2net.
Georg Brandl [Wed, 3 May 2006 05:15:10 +0000 (05:15 +0000)]
Move network tests from test_urllib2 to test_urllib2net.

18 years agoPatch #1480067: don't redirect HTTP digest auth in urllib2
Georg Brandl [Wed, 3 May 2006 05:05:02 +0000 (05:05 +0000)]
Patch #1480067: don't redirect HTTP digest auth in urllib2

18 years agoCorrect some formulations, fix XXX comments.
Martin v. Löwis [Wed, 3 May 2006 04:52:04 +0000 (04:52 +0000)]
Correct some formulations, fix XXX comments.

18 years agoWhitespace normalization.
Tim Peters [Wed, 3 May 2006 04:46:14 +0000 (04:46 +0000)]
Whitespace normalization.

18 years agofix up whitespace in prompt strings
Fred Drake [Wed, 3 May 2006 02:29:39 +0000 (02:29 +0000)]
fix up whitespace in prompt strings

18 years agoone more place to avoid extra markup (how many will there be?)
Fred Drake [Wed, 3 May 2006 02:29:09 +0000 (02:29 +0000)]
one more place to avoid extra markup (how many will there be?)

18 years agoone more place to avoid extra markup
Fred Drake [Wed, 3 May 2006 02:27:40 +0000 (02:27 +0000)]
one more place to avoid extra markup

18 years agoat least comment on why curly-quotes are not enabled
Fred Drake [Wed, 3 May 2006 02:12:47 +0000 (02:12 +0000)]
at least comment on why curly-quotes are not enabled

18 years agoavoid ugly markup based on the unfortunate conversions of ">>" and "<<" to
Fred Drake [Wed, 3 May 2006 02:04:40 +0000 (02:04 +0000)]
avoid ugly markup based on the unfortunate conversions of ">>" and "<<" to
guillemets; no need for magic here

18 years agotell LaTeX2HTML to:
Fred Drake [Wed, 3 May 2006 01:48:24 +0000 (01:48 +0000)]
tell LaTeX2HTML to:
- use UTF-8 output
- not mess with the >>> prompt!

18 years agoremove unnecessary assignment
Fred Drake [Wed, 3 May 2006 01:46:52 +0000 (01:46 +0000)]
remove unnecessary assignment

18 years agoUpdate context manager section for removal of __context__
Andrew M. Kuchling [Tue, 2 May 2006 22:47:49 +0000 (22:47 +0000)]
Update context manager section for removal of __context__

18 years agoUse open() instead of file()
Andrew M. Kuchling [Tue, 2 May 2006 21:44:33 +0000 (21:44 +0000)]
Use open() instead of file()

18 years agoHopefully this will fix the spurious failures of test_mailbox.py that I'm
Guido van Rossum [Tue, 2 May 2006 20:47:36 +0000 (20:47 +0000)]
Hopefully this will fix the spurious failures of test_mailbox.py that I'm
experiencing.  (This code and mailbox.py itself are full of calls to file()
that should be calls to open() -- but I'm not fixing those.)

18 years agoDocumentation bug: PySet_Pop() returns a new reference (because the
Armin Rigo [Tue, 2 May 2006 19:52:32 +0000 (19:52 +0000)]
Documentation bug: PySet_Pop() returns a new reference (because the
caller becomes the owner of that reference).

18 years agoGet rid of __context__, per the latest changes to PEP 343 and python-dev
Guido van Rossum [Tue, 2 May 2006 19:47:52 +0000 (19:47 +0000)]
Get rid of __context__, per the latest changes to PEP 343 and python-dev
discussion.
There are two places of documentation that still mention __context__:
Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without
spending a whole lot of time thinking about it; and whatsnew, which Andrew
usually likes to change himself.

18 years agoFix the formatting of KeyboardInterrupt -- a bad issubclass() call.
Guido van Rossum [Tue, 2 May 2006 17:36:09 +0000 (17:36 +0000)]
Fix the formatting of KeyboardInterrupt -- a bad issubclass() call.

18 years agoProvide encoding as keyword argument; soften warning paragraph about encodings
Andrew M. Kuchling [Tue, 2 May 2006 11:30:03 +0000 (11:30 +0000)]
Provide encoding as keyword argument; soften warning paragraph about encodings

18 years agoReplaced my dumb way of calculating seconds to midnight with Tim Peters' much more...
Vinay Sajip [Tue, 2 May 2006 08:35:36 +0000 (08:35 +0000)]
Replaced my dumb way of calculating seconds to midnight with Tim Peters' much more sensible suggestion. What was I thinking ?!?

18 years agoFix breakage from patch 1471883 (r45800 & r45808) on OSF/1.
Neal Norwitz [Tue, 2 May 2006 07:27:47 +0000 (07:27 +0000)]
Fix breakage from patch 1471883 (r45800 & r45808) on OSF/1.
The problem was that pyconfig.h was being included before some system headers
which caused redefinitions and other breakage.  This moves system headers
after expat_config.h which includes pyconfig.h.

18 years agoSF #1479988: add methods to allow access to weakrefs for the
Fred Drake [Tue, 2 May 2006 06:53:59 +0000 (06:53 +0000)]
SF #1479988: add methods to allow access to weakrefs for the
weakref.WeakKeyDictionary and weakref.WeakValueDictionary

18 years agoTry to fix breakage caused by patch #1479181, r45850
Neal Norwitz [Tue, 2 May 2006 06:23:22 +0000 (06:23 +0000)]
Try to fix breakage caused by patch #1479181, r45850

18 years agoSF #1479181: split open() and file() from being aliases for each other.
Neal Norwitz [Tue, 2 May 2006 04:43:14 +0000 (04:43 +0000)]
SF #1479181: split open() and file() from being aliases for each other.

18 years agoMarkup fixes
Andrew M. Kuchling [Mon, 1 May 2006 17:06:54 +0000 (17:06 +0000)]
Markup fixes

18 years agoAdd item
Andrew M. Kuchling [Mon, 1 May 2006 16:32:49 +0000 (16:32 +0000)]
Add item

18 years agoMarkup fixes; add some XXX comments noting problems
Andrew M. Kuchling [Mon, 1 May 2006 16:30:25 +0000 (16:30 +0000)]
Markup fixes; add some XXX comments noting problems

18 years agoadd dependency
Fred Drake [Mon, 1 May 2006 16:28:54 +0000 (16:28 +0000)]
add dependency

18 years agoRename parameters to match the documentation (which
Martin v. Löwis [Mon, 1 May 2006 16:14:16 +0000 (16:14 +0000)]
Rename parameters to match the documentation (which
in turn matches Microsoft's documentation).
Drop unused parameter in CAB.append.

18 years agoAdd msilib documentation.
Martin v. Löwis [Mon, 1 May 2006 16:12:44 +0000 (16:12 +0000)]
Add msilib documentation.

18 years agoRename uisample to text, drop all non-text tables.
Martin v. Löwis [Mon, 1 May 2006 15:56:03 +0000 (15:56 +0000)]
Rename uisample to text, drop all non-text tables.

18 years agoFurther integration of the documentation for the sqlite3 module. There's still
Gerhard Häring [Mon, 1 May 2006 15:14:48 +0000 (15:14 +0000)]
Further integration of the documentation for the sqlite3 module. There's still
quite some content to move over from the pysqlite manual, but it's a start now.

18 years agoSome ElementTree fixes: import from xml, not xmlcore; fix case of module name; mentio...
Andrew M. Kuchling [Mon, 1 May 2006 12:45:02 +0000 (12:45 +0000)]
Some ElementTree fixes: import from xml, not xmlcore; fix case of module name; mention list() instead of getchildren()

18 years agoWork around deadlock risk. Will backport.
Martin v. Löwis [Mon, 1 May 2006 06:28:01 +0000 (06:28 +0000)]
Work around deadlock risk. Will backport.

18 years ago- minor clarification in section title
Fred Drake [Mon, 1 May 2006 06:25:58 +0000 (06:25 +0000)]
- minor clarification in section title
- markup adjustments
(there is clearly much to be done in this section)

18 years agoPort forward from 2.4 branch:
Barry Warsaw [Mon, 1 May 2006 03:03:02 +0000 (03:03 +0000)]
Port forward from 2.4 branch:

Patch #1464708 from William McVey: fixed handling of nested comments in mail
addresses.  E.g.

"Foo ((Foo Bar)) <foo@example.com>"

Fixes for both rfc822.py and email package.  This patch needs to be back
ported to Python 2.3 for email 2.5.

18 years agoAdd item
Andrew M. Kuchling [Sun, 30 Apr 2006 21:19:49 +0000 (21:19 +0000)]
Add item

18 years agoAdd urllib2 HOWTO from Michael Foord
Andrew M. Kuchling [Sun, 30 Apr 2006 21:19:31 +0000 (21:19 +0000)]
Add urllib2 HOWTO from Michael Foord

18 years agoPatch #1479438: add \keyword markup for "with".
Georg Brandl [Sun, 30 Apr 2006 19:34:19 +0000 (19:34 +0000)]
Patch #1479438: add \keyword markup for "with".

18 years agoPatch #1472854: make the rlcompleter.Completer class usable on non-
Georg Brandl [Sun, 30 Apr 2006 18:14:54 +0000 (18:14 +0000)]
Patch #1472854: make the rlcompleter.Completer class usable on non-
UNIX platforms.

18 years agoFix another problem in inspect: if the module for an object cannot be found, don...
Georg Brandl [Sun, 30 Apr 2006 17:42:26 +0000 (17:42 +0000)]
Fix another problem in inspect: if the module for an object cannot be found, don't try to give its __dict__ to linecache.

18 years agoFix infinite regress when inspecting <string> or <stdin> frames.
Phillip J. Eby [Sun, 30 Apr 2006 15:59:26 +0000 (15:59 +0000)]
Fix infinite regress when inspecting <string> or <stdin> frames.

18 years agoBug #1473625: stop cPickle making float dumps locale dependent in protocol 0.
Georg Brandl [Sun, 30 Apr 2006 11:13:56 +0000 (11:13 +0000)]
Bug #1473625: stop cPickle making float dumps locale dependent in protocol 0.

On the way, add a decorator to test_support to facilitate running single
test functions in different locales with automatic cleanup.

18 years agoPatch #1470976: don't NLST files when retrieving over FTP.
Georg Brandl [Sun, 30 Apr 2006 09:23:59 +0000 (09:23 +0000)]
Patch #1470976: don't NLST files when retrieving over FTP.

18 years agoIn stdlib, use hashlib instead of deprecated md5 and sha modules.
Georg Brandl [Sun, 30 Apr 2006 08:57:35 +0000 (08:57 +0000)]
In stdlib, use hashlib instead of deprecated md5 and sha modules.

18 years agoPatch #1470846: fix urllib2 ProxyBasicAuthHandler.
Georg Brandl [Sun, 30 Apr 2006 07:06:11 +0000 (07:06 +0000)]
Patch #1470846: fix urllib2 ProxyBasicAuthHandler.

18 years agoUse \versionchanged instead of \versionadded for new parameter support.
George Yoshida [Sun, 30 Apr 2006 03:49:56 +0000 (03:49 +0000)]
Use \versionchanged instead of \versionadded for new parameter support.

18 years agoAdd two items
Andrew M. Kuchling [Sun, 30 Apr 2006 01:07:09 +0000 (01:07 +0000)]
Add two items

18 years agoThis is the start of documentation for the sqlite3 module. Please feel free to
Gerhard Häring [Sat, 29 Apr 2006 23:12:41 +0000 (23:12 +0000)]
This is the start of documentation for the sqlite3 module. Please feel free to
find a better place for the link to it than alongside bsddb & friends.

18 years agoFix docstring for contextfactory; mentioned old contextmanager name.
Brett Cannon [Sat, 29 Apr 2006 21:29:50 +0000 (21:29 +0000)]
Fix docstring for contextfactory; mentioned old contextmanager name.

18 years agoFurther changes for #1471883: Edit Misc/NEWS, and
Martin v. Löwis [Sat, 29 Apr 2006 12:37:25 +0000 (12:37 +0000)]
Further changes for #1471883: Edit Misc/NEWS, and
add expat_config.h.

18 years agoAdd item
Andrew M. Kuchling [Sat, 29 Apr 2006 12:10:43 +0000 (12:10 +0000)]
Add item