]> granicus.if.org Git - python/log
python
18 years agoAdded a comment about last change in urllib2.py (all 2xx responses
Facundo Batista [Tue, 24 Apr 2007 13:54:38 +0000 (13:54 +0000)]
Added a comment about last change in urllib2.py (all 2xx responses
are ok now).

18 years agoSome new year updates.
Georg Brandl [Tue, 24 Apr 2007 10:36:42 +0000 (10:36 +0000)]
Some new year updates.

18 years agoFix SF #1703110, Incorrect example for add_password() (use uri, not host)
Neal Norwitz [Tue, 24 Apr 2007 04:53:12 +0000 (04:53 +0000)]
Fix SF #1703110, Incorrect example for add_password() (use uri, not host)

18 years agoRemove code that hasn't been called in years.
Collin Winter [Tue, 24 Apr 2007 04:09:52 +0000 (04:09 +0000)]
Remove code that hasn't been called in years.

18 years agoConvert PyUnit -> unittest.
Collin Winter [Tue, 24 Apr 2007 03:43:46 +0000 (03:43 +0000)]
Convert PyUnit -> unittest.

18 years agoAs specified in RFC 2616, 2xx code indicates that the client's
Facundo Batista [Mon, 23 Apr 2007 17:08:31 +0000 (17:08 +0000)]
As specified in RFC 2616, 2xx code indicates that the client's
request was successfully received, understood, and accepted.
Now in these cases no error is raised. Also fixed tests.

18 years agoAdded tests for other methods of SSL object. Now we cover
Facundo Batista [Sun, 22 Apr 2007 01:18:56 +0000 (01:18 +0000)]
Added tests for other methods of SSL object. Now we cover
all the object methods. This is the final step to close
the #451607 bug.

18 years agoBug #1704790: bind name "sys" locally in __del__ method so that it is
Georg Brandl [Sat, 21 Apr 2007 20:35:38 +0000 (20:35 +0000)]
Bug #1704790: bind name "sys" locally in __del__ method so that it is
not cleared before __del__ is run.

18 years agoAdd an optional address to copy the failure mails to.
Neal Norwitz [Fri, 20 Apr 2007 05:20:38 +0000 (05:20 +0000)]
Add an optional address to copy the failure mails to.

Detect a conflict in the only file that should have outstanding changes
when this script is run.  This doesn't matter on the trunk, but does
when run on a branch.  Trunk always has the date set to today in
boilerplate.tex.  Each time a release is cut with a different date,
a conflict occurs.  (We could copy a known good version, but then
we would lose changes to this file.)

18 years agoFix a usage of the dangerous pattern decref - modify field - incref.
Armin Rigo [Thu, 19 Apr 2007 14:56:48 +0000 (14:56 +0000)]
Fix a usage of the dangerous pattern decref - modify field - incref.

18 years agoRevert r53997 as per
Armin Rigo [Thu, 19 Apr 2007 14:44:48 +0000 (14:44 +0000)]
Revert r53997 as per
http://mail.python.org/pipermail/python-dev/2007-March/071796.html .

I've kept a couple of still-valid extra tests in test_descr, but didn't
bother to sort through the new comments and refactorings added in r53997
to see if some of them could be kept.  If so, they could go in a
follow-up check-in.

18 years agoSF #1703270, add missing declaration in readline.c to avoid compiler warning.
Neal Norwitz [Thu, 19 Apr 2007 05:52:37 +0000 (05:52 +0000)]
SF #1703270, add missing declaration in readline.c to avoid compiler warning.

18 years agoSilence a compiler warning about incompatible pointer types.
Brett Cannon [Thu, 19 Apr 2007 03:44:17 +0000 (03:44 +0000)]
Silence a compiler warning about incompatible pointer types.

18 years agoAdd Travis Oliphant.
Martin v. Löwis [Tue, 17 Apr 2007 05:02:01 +0000 (05:02 +0000)]
Add Travis Oliphant.

18 years agoCheck the availability of the urlfetch resource earlier than before.
Collin Winter [Mon, 16 Apr 2007 22:10:32 +0000 (22:10 +0000)]
Check the availability of the urlfetch resource earlier than before.

18 years agoSF #1701207, Fix bogus assertion (and test it!)
Neal Norwitz [Mon, 16 Apr 2007 07:37:55 +0000 (07:37 +0000)]
SF #1701207, Fix bogus assertion (and test it!)

18 years agoWhen __slots__ are set to a unicode string, make it work the same as
Neal Norwitz [Sat, 14 Apr 2007 05:25:50 +0000 (05:25 +0000)]
When __slots__ are set to a unicode string, make it work the same as
setting a plain string, ie don't expand to single letter identifiers.

18 years agoAdd the necessary dependency for the Windows VC6 build to ensure 'pythoncore'
Trent Mick [Fri, 13 Apr 2007 23:22:05 +0000 (23:22 +0000)]
Add the necessary dependency for the Windows VC6 build to ensure 'pythoncore'
is built before '_ctypes' is attempted.
Will backport to 2.5 once it is unfrozen for 2.5.1.

18 years agoFix potential crash in path manipulation on windows
Kristján Valur Jónsson [Fri, 13 Apr 2007 22:20:13 +0000 (22:20 +0000)]
Fix potential crash in path manipulation on windows

18 years agoFix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars...
Kristján Valur Jónsson [Fri, 13 Apr 2007 22:07:33 +0000 (22:07 +0000)]
Fix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars in frameobject.c which can occur with opcodes > 127

18 years agoPort r54805 from python25-maint branch:
Barry Warsaw [Fri, 13 Apr 2007 18:47:14 +0000 (18:47 +0000)]
Port r54805 from python25-maint branch:

Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read.  Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write.  This will definitely happen on Mac OS X and could potentially
happen on other platforms.  See the comment for details.

18 years agoFix utf-8-sig incremental decoder, which didn't recognise a BOM when the
Walter Dörwald [Thu, 12 Apr 2007 10:35:00 +0000 (10:35 +0000)]
Fix utf-8-sig incremental decoder, which didn't recognise a BOM when the
first chunk fed to the decoder started with a BOM, but was longer than 3 bytes.

18 years agoPatch #1695862: remove the cleanup code, now that Windows buildbots are green
Žiga Seilnacht [Thu, 12 Apr 2007 08:46:51 +0000 (08:46 +0000)]
Patch #1695862: remove the cleanup code, now that Windows buildbots are green
again.

18 years agoPatch #1698951: clarify deprecation message in rexec and Bastion
Georg Brandl [Thu, 12 Apr 2007 07:01:19 +0000 (07:01 +0000)]
Patch #1698951: clarify deprecation message in rexec and Bastion

18 years agoSF 1193128: Let str.translate(None) be an identity transformation
Raymond Hettinger [Thu, 12 Apr 2007 04:10:00 +0000 (04:10 +0000)]
SF 1193128:  Let str.translate(None) be an identity transformation

18 years agoRepair missing spaces after \UNIX.
Georg Brandl [Wed, 11 Apr 2007 23:28:44 +0000 (23:28 +0000)]
Repair missing spaces after \UNIX.

18 years agoExceptions are no longer old-style instances. Fix accordingly.
Georg Brandl [Wed, 11 Apr 2007 19:25:11 +0000 (19:25 +0000)]
Exceptions are no longer old-style instances. Fix accordingly.

18 years agoSF 1191699: Make slices picklable
Raymond Hettinger [Wed, 11 Apr 2007 18:40:58 +0000 (18:40 +0000)]
SF 1191699:  Make slices picklable

18 years agoAdd some missing NULL checks which trigger crashes on low-memory conditions.
Georg Brandl [Wed, 11 Apr 2007 17:16:24 +0000 (17:16 +0000)]
Add some missing NULL checks which trigger crashes on low-memory conditions.
Found by Victor Stinner. Will backport when 2.5 branch is unfrozen.

18 years agoDescribe undocumented third argument to touchline()
Andrew M. Kuchling [Wed, 11 Apr 2007 13:47:13 +0000 (13:47 +0000)]
Describe undocumented third argument to touchline()

18 years agoPoint readers at the patch submission instructions
Andrew M. Kuchling [Wed, 11 Apr 2007 13:42:25 +0000 (13:42 +0000)]
Point readers at the patch submission instructions

18 years agoAdd window.chgat() method, submitted via e-mail by Fabian Kreutz
Andrew M. Kuchling [Wed, 11 Apr 2007 13:39:00 +0000 (13:39 +0000)]
Add window.chgat() method, submitted via e-mail by Fabian Kreutz

18 years agoRepair a duplicate label and some obsolete uses of \setindexsubitem.
Georg Brandl [Tue, 10 Apr 2007 21:39:38 +0000 (21:39 +0000)]
Repair a duplicate label and some obsolete uses of \setindexsubitem.

18 years agoGeneral clean-up. Lot of margin corrections, comments, some typos.
Facundo Batista [Tue, 10 Apr 2007 12:58:45 +0000 (12:58 +0000)]
General clean-up. Lot of margin corrections, comments, some typos.
Exceptions now are raised in the new style. And a mockup class is
now also new style. Thanks Santiago Pereson.

18 years agoTypo fix.
Collin Winter [Tue, 10 Apr 2007 04:44:49 +0000 (04:44 +0000)]
Typo fix.

18 years agoMinor fix to the tests pass ok even with -O.
Facundo Batista [Tue, 10 Apr 2007 03:00:37 +0000 (03:00 +0000)]
Minor fix to the tests pass ok even with -O.

18 years agoPatch #1695862: remove old test directory that causes test_urllib failures
Žiga Seilnacht [Mon, 9 Apr 2007 19:10:29 +0000 (19:10 +0000)]
Patch #1695862: remove old test directory that causes test_urllib failures
on Windows buildbots.  The change is a one time fix and will be removed
after a successful buildbot run.

18 years agoAdded optional timeout to SocketHandler.makeSocket (SF #1695948)
Vinay Sajip [Mon, 9 Apr 2007 16:16:10 +0000 (16:16 +0000)]
Added optional timeout to SocketHandler.makeSocket (SF #1695948)

18 years agoDoc that file.next() has undefined behaviour when called on a file opened with
Brett Cannon [Sun, 8 Apr 2007 04:29:32 +0000 (04:29 +0000)]
Doc that file.next() has undefined behaviour when called on a file opened with
'w'.  Closes bug #1569057.

To be backported once 2.5 branch is unfrozen.

18 years agoConvert test_fileinput to use unittest.
Collin Winter [Sat, 7 Apr 2007 04:40:43 +0000 (04:40 +0000)]
Convert test_fileinput to use unittest.

18 years agoConvert test_module to use unittest.
Collin Winter [Fri, 6 Apr 2007 20:03:11 +0000 (20:03 +0000)]
Convert test_module to use unittest.

18 years agoConvert test_gc to use unittest.
Collin Winter [Fri, 6 Apr 2007 20:00:05 +0000 (20:00 +0000)]
Convert test_gc to use unittest.

18 years agoImport cleanup in test_crypt.
Collin Winter [Fri, 6 Apr 2007 19:32:32 +0000 (19:32 +0000)]
Import cleanup in test_crypt.

18 years agoConvert test_stringprep to use unittest.
Collin Winter [Fri, 6 Apr 2007 19:27:40 +0000 (19:27 +0000)]
Convert test_stringprep to use unittest.

18 years agoSome grammar fixes
Andrew M. Kuchling [Fri, 6 Apr 2007 01:11:58 +0000 (01:11 +0000)]
Some grammar fixes

18 years agoConvert test_normalization to use unittest.
Collin Winter [Thu, 5 Apr 2007 20:08:56 +0000 (20:08 +0000)]
Convert test_normalization to use unittest.

18 years agoConvert test_long_future to use unittest.
Collin Winter [Thu, 5 Apr 2007 20:05:07 +0000 (20:05 +0000)]
Convert test_long_future to use unittest.

18 years agoBug #1563759: struct.unpack doens't support buffer protocol objects
Raymond Hettinger [Thu, 5 Apr 2007 18:00:03 +0000 (18:00 +0000)]
Bug #1563759: struct.unpack doens't support buffer protocol objects

18 years agoFix WalkTests.test_traversal() on Windows. The cleanup in
Žiga Seilnacht [Wed, 4 Apr 2007 18:38:47 +0000 (18:38 +0000)]
Fix WalkTests.test_traversal() on Windows.  The cleanup in
MakedirTests.setUp() can now be removed.

18 years agoMake test_softspace use unittest.
Collin Winter [Wed, 4 Apr 2007 18:36:30 +0000 (18:36 +0000)]
Make test_softspace use unittest.

18 years agoMake test_getopt use unittest.
Collin Winter [Wed, 4 Apr 2007 18:33:40 +0000 (18:33 +0000)]
Make test_getopt use unittest.

18 years agoBug #1686475: Support stat'ing open files on Windows again.
Martin v. Löwis [Wed, 4 Apr 2007 18:30:36 +0000 (18:30 +0000)]
Bug #1686475: Support stat'ing open files on Windows again.
Will backport to 2.5.

18 years agoStop using test_support.verify().
Collin Winter [Wed, 4 Apr 2007 18:16:24 +0000 (18:16 +0000)]
Stop using test_support.verify().

18 years agoClean up imports.
Collin Winter [Wed, 4 Apr 2007 18:14:17 +0000 (18:14 +0000)]
Clean up imports.

18 years agoFix a race condition in this test -- instead of assuming that it will take
Guido van Rossum [Wed, 4 Apr 2007 17:43:02 +0000 (17:43 +0000)]
Fix a race condition in this test -- instead of assuming that it will take
the test server thread at most 0.5 seconds to get ready, use an event
variable.

18 years agoFixed the way that the .pem files are looked for, and changed
Facundo Batista [Wed, 4 Apr 2007 14:10:40 +0000 (14:10 +0000)]
Fixed the way that the .pem files are looked for, and changed
how to kill the process in win32 to use the _handle attribute.

18 years agoChanged the whole structure of startup and checking if the
Facundo Batista [Tue, 3 Apr 2007 21:15:34 +0000 (21:15 +0000)]
Changed the whole structure of startup and checking if the
server is available. Hope to not get more false alarms.

18 years agoImplement a contextmanager test.test_support.catch_warning that can
Walter Dörwald [Tue, 3 Apr 2007 18:33:29 +0000 (18:33 +0000)]
Implement a contextmanager test.test_support.catch_warning that can
be used to catch the last warning issued by the warning framework.

Change test_warnings.py and test_structmembers.py to use this
new contextmanager.

18 years agoAdded a SSL server to test_socket_ssl.py to be able to test
Facundo Batista [Tue, 3 Apr 2007 17:29:48 +0000 (17:29 +0000)]
Added a SSL server to test_socket_ssl.py to be able to test
locally. Now, it checks if have openssl available and run
those specific tests (it starts openssl at the beggining of
all the tests and then kills it at the end).

18 years agoAdd tests for the filename.
Walter Dörwald [Tue, 3 Apr 2007 16:53:43 +0000 (16:53 +0000)]
Add tests for the filename.

Test that the stacklevel is handled correctly.

18 years agoDocument that CatchWarningTests is reused by test_structmembers.py.
Walter Dörwald [Tue, 3 Apr 2007 16:16:24 +0000 (16:16 +0000)]
Document that CatchWarningTests is reused by test_structmembers.py.

18 years agoMove the functionality for catching warnings in test_warnings.py into a separate
Walter Dörwald [Tue, 3 Apr 2007 16:08:10 +0000 (16:08 +0000)]
Move the functionality for catching warnings in test_warnings.py into a separate
class to that reusing the functionality in test_structmembers.py doesn't rerun
the tests from test_warnings.py.

18 years agoNow using unittest for the tests infraestructure. Also split the
Facundo Batista [Tue, 3 Apr 2007 14:05:08 +0000 (14:05 +0000)]
Now using unittest for the tests infraestructure. Also split the
tests in those who need the network, and that who doesn't.

18 years agoFix the strange case of
Georg Brandl [Tue, 3 Apr 2007 07:04:27 +0000 (07:04 +0000)]
Fix the strange case of

\begin{methoddesc}[NNTP]{...}

where

\ifx#1\@undefined ended up comparing N and N, therefore executing
the true part of the conditional, blowing up at \@undefined.

18 years ago- Fix an off-by-one bug in locale.strxfrm().
Matthias Klose [Tue, 3 Apr 2007 04:35:59 +0000 (04:35 +0000)]
- Fix an off-by-one bug in locale.strxfrm().

  patch taken from http://bugs.debian.org/416934.

18 years agoSF #1382213: Tutorial section 9.5.1 ignores MRO for new-style classes
Raymond Hettinger [Tue, 3 Apr 2007 01:39:43 +0000 (01:39 +0000)]
SF #1382213:  Tutorial section 9.5.1 ignores MRO for new-style classes

18 years agoSF 1602378 Clarify docstrings for bisect
Raymond Hettinger [Tue, 3 Apr 2007 00:02:11 +0000 (00:02 +0000)]
SF 1602378 Clarify docstrings for bisect

18 years agoFix warnings about object.__init__() signature.
Guido van Rossum [Mon, 2 Apr 2007 23:55:37 +0000 (23:55 +0000)]
Fix warnings about object.__init__() signature.
Two (test_array and test_descr) were bug IMO; the third (copy_reg)
is a work-around which recognizes that object.__init__() doesn't do
anything.

18 years agoArray module's buffer interface can now handle empty arrays.
Raymond Hettinger [Mon, 2 Apr 2007 22:54:21 +0000 (22:54 +0000)]
Array module's buffer interface can now handle empty arrays.

18 years agoSF #1693079: Cannot save empty array in shelve
Raymond Hettinger [Mon, 2 Apr 2007 17:29:30 +0000 (17:29 +0000)]
SF #1693079:  Cannot save empty array in shelve

18 years agoFix the class name of strings.
Georg Brandl [Sun, 1 Apr 2007 23:31:30 +0000 (23:31 +0000)]
Fix the class name of strings.

18 years agoRemove bogus entry.
Georg Brandl [Sun, 1 Apr 2007 23:29:10 +0000 (23:29 +0000)]
Remove bogus entry.

18 years agoSome semantic fixes.
Georg Brandl [Sun, 1 Apr 2007 22:47:31 +0000 (22:47 +0000)]
Some semantic fixes.

18 years agoExplicit class names.
Georg Brandl [Sun, 1 Apr 2007 22:40:12 +0000 (22:40 +0000)]
Explicit class names.

18 years agoLots of explicit class names for method and member descs.
Georg Brandl [Sun, 1 Apr 2007 22:39:10 +0000 (22:39 +0000)]
Lots of explicit class names for method and member descs.

18 years agoAnother fix.
Georg Brandl [Sun, 1 Apr 2007 21:39:52 +0000 (21:39 +0000)]
Another fix.

18 years agoFix a lot of markup and meta-information glitches.
Georg Brandl [Sun, 1 Apr 2007 21:29:15 +0000 (21:29 +0000)]
Fix a lot of markup and meta-information glitches.

18 years agoFix the test for recreating the locale cache object by not worrying about if
Brett Cannon [Sun, 1 Apr 2007 19:46:19 +0000 (19:46 +0000)]
Fix the test for recreating the locale cache object by not worrying about if
one of the test locales cannot be set.

18 years agotime.strptime's caching of its locale object was being recreated when the
Brett Cannon [Sun, 1 Apr 2007 18:47:27 +0000 (18:47 +0000)]
time.strptime's caching of its locale object was being recreated when the
locale changed but not used during the function call it was recreated during.

The test in this checkin is untested (OS X does not have the proper locale
support for me to test), although the fix for the bug this deals with
was tested by the OP (#1290505).  Once the buildbots verify the test at least
doesn't fail it becomes a backport candidate.

18 years agoSF #1685563, MSVCCompiler creates redundant and long PATH strings
Neal Norwitz [Sun, 1 Apr 2007 18:24:22 +0000 (18:24 +0000)]
SF #1685563, MSVCCompiler creates redundant and long PATH strings

If MSVCCompiler.initialize() was called multiple times, the path
would get duplicated.  On Windows, this is a problem because the
path is limited to 4k.  There's no benefit in adding a path multiple
times, so prevent that from occuring.  We also normalize the path
before checking for duplicates so things like /a and /a/ won't both
be stored.

Will backport.

18 years agoShut up an occaisonal buildbot error due to test files being left around.
Collin Winter [Sat, 31 Mar 2007 19:31:34 +0000 (19:31 +0000)]
Shut up an occaisonal buildbot error due to test files being left around.

18 years agoBug #1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS
Georg Brandl [Sat, 31 Mar 2007 18:56:11 +0000 (18:56 +0000)]
Bug #1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS
returned by python-config if Python was built with --enable-shared
because that prevented the shared library from being used.

18 years agoFix method names. Will backport.
Neal Norwitz [Sat, 31 Mar 2007 18:54:18 +0000 (18:54 +0000)]
Fix method names.  Will backport.

18 years agoTypo fix.
Georg Brandl [Sat, 31 Mar 2007 11:59:54 +0000 (11:59 +0000)]
Typo fix.

18 years agoDuplicate label fix.
Georg Brandl [Sat, 31 Mar 2007 11:58:36 +0000 (11:58 +0000)]
Duplicate label fix.

18 years agoMarkup fix.
Georg Brandl [Sat, 31 Mar 2007 11:54:58 +0000 (11:54 +0000)]
Markup fix.

18 years agorepair string literal.
Georg Brandl [Sat, 31 Mar 2007 10:17:31 +0000 (10:17 +0000)]
repair string literal.

18 years agoMarkup fix.
Georg Brandl [Fri, 30 Mar 2007 19:14:02 +0000 (19:14 +0000)]
Markup fix.

18 years agoDuplicate label fix.
Georg Brandl [Fri, 30 Mar 2007 19:01:38 +0000 (19:01 +0000)]
Duplicate label fix.

18 years agoAdd item. (Oops, accidentally checked this in on my branch)
Andrew M. Kuchling [Fri, 30 Mar 2007 18:00:15 +0000 (18:00 +0000)]
Add item.  (Oops, accidentally checked this in on my branch)

18 years agoMarkup fix.
Georg Brandl [Fri, 30 Mar 2007 17:48:39 +0000 (17:48 +0000)]
Markup fix.

18 years agoDuplicate label fix.
Georg Brandl [Fri, 30 Mar 2007 17:47:21 +0000 (17:47 +0000)]
Duplicate label fix.

18 years agoLabel name fix.
Georg Brandl [Fri, 30 Mar 2007 17:39:39 +0000 (17:39 +0000)]
Label name fix.

18 years agoMarkup fix.
Georg Brandl [Fri, 30 Mar 2007 15:49:05 +0000 (15:49 +0000)]
Markup fix.

18 years agoBump the patch level version of distutils since there were a few bug fixes since
Marc-André Lemburg [Fri, 30 Mar 2007 15:01:42 +0000 (15:01 +0000)]
Bump the patch level version of distutils since there were a few bug fixes since
the 2.5.0 release.

18 years agoBug #1688274: add documentation for C-level class objects.
Collin Winter [Fri, 30 Mar 2007 14:01:25 +0000 (14:01 +0000)]
Bug #1688274: add documentation for C-level class objects.

18 years agoAdded the posibility to pass the timeout to FTP.connect, not only when
Facundo Batista [Fri, 30 Mar 2007 13:00:35 +0000 (13:00 +0000)]
Added the posibility to pass the timeout to FTP.connect, not only when
instantiating the class. Docs and tests are updated.

18 years agoAdded timout parameter to telnetlib.Telnet. Also created
Facundo Batista [Thu, 29 Mar 2007 18:22:35 +0000 (18:22 +0000)]
Added timout parameter to telnetlib.Telnet. Also created
test_telnetlib.py with a basic test and timeout ones.
Docs are also updated.

18 years agoIn Windows' time.clock(), when QueryPerformanceFrequency() fails,
Georg Brandl [Thu, 29 Mar 2007 12:42:07 +0000 (12:42 +0000)]
In Windows' time.clock(), when QueryPerformanceFrequency() fails,
the C lib's clock() is used, but it must be divided by CLOCKS_PER_SEC
as for the POSIX implementation (thanks to #pypy).

18 years agoThese are actually methods.
Georg Brandl [Thu, 29 Mar 2007 07:41:32 +0000 (07:41 +0000)]
These are actually methods.