]> granicus.if.org Git - python/log
python
16 years agoAdd docstrings.
Raymond Hettinger [Wed, 8 Apr 2009 05:39:38 +0000 (05:39 +0000)]
Add docstrings.

16 years ago- Make timing assertions very generous (a la test_timeout.py)
Jack Diederich [Tue, 7 Apr 2009 23:56:57 +0000 (23:56 +0000)]
- Make timing assertions very generous (a la test_timeout.py)
- Break the gc cycle in negotiation tests
- test the different guarantees of read_lazy and read_very_lazy

16 years agoFix make.bat to match makefile changes
Raymond Hettinger [Tue, 7 Apr 2009 21:43:51 +0000 (21:43 +0000)]
Fix make.bat to match makefile changes

16 years agoeliminate more race conditions in telnetlib tests
Jack Diederich [Tue, 7 Apr 2009 20:22:59 +0000 (20:22 +0000)]
eliminate more race conditions in telnetlib tests

16 years agoIssue #5695: Minor tweak to improve the code as suggested by Brett Cannon and as...
Vinay Sajip [Tue, 7 Apr 2009 17:18:24 +0000 (17:18 +0000)]
Issue #5695: Minor tweak to improve the code as suggested by Brett Cannon and as implemented in the Py3K branch.

16 years agorevert unrelated change to test_telnetlib
Benjamin Peterson [Tue, 7 Apr 2009 16:03:04 +0000 (16:03 +0000)]
revert unrelated change to test_telnetlib

16 years agofix since difference formating of SyntaxErrors
Benjamin Peterson [Tue, 7 Apr 2009 15:52:05 +0000 (15:52 +0000)]
fix since difference formating of SyntaxErrors

16 years agofix syntax tests after formatting change
Benjamin Peterson [Tue, 7 Apr 2009 15:15:04 +0000 (15:15 +0000)]
fix syntax tests after formatting change

16 years agosee if this helps the doc builds
Benjamin Peterson [Mon, 6 Apr 2009 22:53:29 +0000 (22:53 +0000)]
see if this helps the doc builds

16 years agoadd create_connection to __all__ #5711
Benjamin Peterson [Mon, 6 Apr 2009 21:53:33 +0000 (21:53 +0000)]
add create_connection to __all__ #5711

16 years ago- Issue #2254: Fix CGIHTTPServer information disclosure. Relative paths are
Gregory P. Smith [Mon, 6 Apr 2009 06:33:26 +0000 (06:33 +0000)]
- Issue #2254: Fix CGIHTTPServer information disclosure.  Relative paths are
  now collapsed within the url properly before looking in cgi_directories.

16 years agotest the telnetlib.Telnet interface more thoroughly
Jack Diederich [Mon, 6 Apr 2009 02:08:44 +0000 (02:08 +0000)]
test the telnetlib.Telnet interface more thoroughly

16 years agonews entry for r71299.
Gregory P. Smith [Sun, 5 Apr 2009 23:48:26 +0000 (23:48 +0000)]
news entry for r71299.

16 years agoFixes issue5705: os.setuid() and friends did not accept the same range of
Gregory P. Smith [Sun, 5 Apr 2009 23:43:58 +0000 (23:43 +0000)]
Fixes issue5705: os.setuid() and friends did not accept the same range of
values that pwd.getpwnam() returns.

16 years agopep8-fied method names
Tarek Ziadé [Sun, 5 Apr 2009 23:03:10 +0000 (23:03 +0000)]
pep8-fied method names

16 years agoFixed #5095: msi missing from Distutils bdist formats
Tarek Ziadé [Sun, 5 Apr 2009 22:51:09 +0000 (22:51 +0000)]
Fixed #5095: msi missing from Distutils bdist formats

16 years agoadded a simplest test to distutils.spawn._nt_quote_args
Tarek Ziadé [Sun, 5 Apr 2009 22:04:38 +0000 (22:04 +0000)]
added a simplest test to distutils.spawn._nt_quote_args

16 years agoFixed #1491431: distutils.filelist.glob_to_re was broken for some edge cases (detaile...
Tarek Ziadé [Sun, 5 Apr 2009 21:44:08 +0000 (21:44 +0000)]
Fixed #1491431: distutils.filelist.glob_to_re was broken for some edge cases (detailed in the test

16 years agoIssue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)'
Matthias Klose [Sun, 5 Apr 2009 21:19:13 +0000 (21:19 +0000)]
Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)'
to avoid compiler warnings.

16 years ago- Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for
Matthias Klose [Sun, 5 Apr 2009 21:00:48 +0000 (21:00 +0000)]
- Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for
  new arguments introduced in 2.5.

16 years agoNormalize issue referencing style.
Georg Brandl [Sun, 5 Apr 2009 20:23:13 +0000 (20:23 +0000)]
Normalize issue referencing style.

16 years agoAdding assertIs and assertIsNot methods to unittest.TestCase
Michael Foord [Sun, 5 Apr 2009 19:19:28 +0000 (19:19 +0000)]
Adding assertIs and assertIsNot methods to unittest.TestCase

Issue #2578

16 years ago#602893: add indicator for current line in cgitb that doesnt rely on styling alone.
Georg Brandl [Sun, 5 Apr 2009 18:34:58 +0000 (18:34 +0000)]
#602893: add indicator for current line in cgitb that doesnt rely on styling alone.

16 years agoFixed 5694: removed spurious test output in Distutils
Tarek Ziadé [Sun, 5 Apr 2009 18:31:24 +0000 (18:31 +0000)]
Fixed 5694: removed spurious test output in Distutils

16 years ago#5298: clarify docs about GIL by using more consistent wording.
Georg Brandl [Sun, 5 Apr 2009 17:17:42 +0000 (17:17 +0000)]
#5298: clarify docs about GIL by using more consistent wording.

16 years ago#5444: adapt make.bat to new htmlhelp output file name.
Georg Brandl [Sun, 5 Apr 2009 16:30:43 +0000 (16:30 +0000)]
#5444: adapt make.bat to new htmlhelp output file name.

16 years ago#5432: make plistlib docstring a raw string, since it contains examples with backslas...
Georg Brandl [Sun, 5 Apr 2009 15:14:29 +0000 (15:14 +0000)]
#5432: make plistlib docstring a raw string, since it contains examples with backslash escapes.

16 years ago#5471: fix expanduser() for $HOME set to "/".
Georg Brandl [Sun, 5 Apr 2009 14:48:49 +0000 (14:48 +0000)]
#5471: fix expanduser() for $HOME set to "/".

16 years ago#5370: doc update about unpickling objects with custom __getattr__ etc. methods.
Georg Brandl [Sun, 5 Apr 2009 14:40:06 +0000 (14:40 +0000)]
#5370: doc update about unpickling objects with custom __getattr__ etc. methods.

16 years agoAdd NEWS entry for r71237.
Georg Brandl [Sun, 5 Apr 2009 14:25:41 +0000 (14:25 +0000)]
Add NEWS entry for r71237.

16 years ago#1326077: fix traceback formatting of SyntaxErrors. This fixes two differences with...
Georg Brandl [Sun, 5 Apr 2009 14:24:52 +0000 (14:24 +0000)]
#1326077: fix traceback formatting of SyntaxErrors.  This fixes two differences with formatting coming from Python: a) the reproduction of location details in the error message if no line text is given, b) the prefixing of the last line by one space.

16 years agoWhitespace normalization.
Georg Brandl [Sun, 5 Apr 2009 13:16:35 +0000 (13:16 +0000)]
Whitespace normalization.

16 years ago- Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings.
Matthias Klose [Sun, 5 Apr 2009 12:43:08 +0000 (12:43 +0000)]
- Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings.
  (avoiding brown paper typo this time)

16 years ago#5580: no need to use parentheses when converterr() argument is actually a type descr...
Georg Brandl [Sun, 5 Apr 2009 11:54:07 +0000 (11:54 +0000)]
#5580: no need to use parentheses when converterr() argument is actually a type description.

16 years ago#5615: make it possible to configure --without-threads again.
Georg Brandl [Sun, 5 Apr 2009 11:07:14 +0000 (11:07 +0000)]
#5615: make it possible to configure --without-threads again.

16 years agoIssue #5695: Moved logging.captureWarnings() call inside with statement in WarningsTe...
Vinay Sajip [Sun, 5 Apr 2009 11:06:24 +0000 (11:06 +0000)]
Issue #5695: Moved logging.captureWarnings() call inside with statement in WarningsTest.test_warnings.

16 years ago#1726172: dont raise an unexpected IndexError if a voidresp() call has an empty response.
Georg Brandl [Sun, 5 Apr 2009 10:48:47 +0000 (10:48 +0000)]
#1726172: dont raise an unexpected IndexError if a voidresp() call has an empty response.

16 years ago#1718017: document the relation of os.path and the posixpath, ntpath etc. modules...
Georg Brandl [Sun, 5 Apr 2009 10:41:02 +0000 (10:41 +0000)]
#1718017: document the relation of os.path and the posixpath, ntpath etc. modules better.

16 years agoAvoid sure signs of a diseased mind.
Georg Brandl [Sun, 5 Apr 2009 10:32:26 +0000 (10:32 +0000)]
Avoid sure signs of a diseased mind.

16 years agoNormalize spelling of Mac OS X.
Georg Brandl [Sun, 5 Apr 2009 10:29:57 +0000 (10:29 +0000)]
Normalize spelling of Mac OS X.

16 years ago#1742837: expand HTTP server docs, and fix SocketServer ones to document methods...
Georg Brandl [Sun, 5 Apr 2009 10:24:20 +0000 (10:24 +0000)]
#1742837: expand HTTP server docs, and fix SocketServer ones to document methods as methods, not functions.

16 years agoInclude tkinter.h only after including tk.h (or the equivalent for another platform).
Guilherme Polo [Sun, 5 Apr 2009 02:11:19 +0000 (02:11 +0000)]
Include tkinter.h only after including tk.h (or the equivalent for another platform).

16 years agoChange the way unittest.TestSuite use their tests to always access them through itera...
Michael Foord [Sun, 5 Apr 2009 01:15:01 +0000 (01:15 +0000)]
Change the way unittest.TestSuite use their tests to always access them through iteration. Non behavior changing, this allows you to create custom subclasses that override __iter__.

Issue #5693

16 years agocompare types with is
Benjamin Peterson [Sun, 5 Apr 2009 01:04:38 +0000 (01:04 +0000)]
compare types with is

16 years agonote how using iter* are unsafe while mutating and document iter(dict)
Benjamin Peterson [Sat, 4 Apr 2009 23:46:34 +0000 (23:46 +0000)]
note how using iter* are unsafe while mutating and document iter(dict)

16 years agoIssue #5470: Package zipdir.zip.
Martin v. Löwis [Sat, 4 Apr 2009 18:44:44 +0000 (18:44 +0000)]
Issue #5470: Package zipdir.zip.

16 years agoNo behavior change.
Hirokazu Yamamoto [Sat, 4 Apr 2009 17:20:05 +0000 (17:20 +0000)]
No behavior change.

16 years agorevert r71159 since it broke the build
Benjamin Peterson [Sat, 4 Apr 2009 16:05:51 +0000 (16:05 +0000)]
revert r71159 since it broke the build

16 years ago- Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings.
Matthias Klose [Sat, 4 Apr 2009 15:51:23 +0000 (15:51 +0000)]
- Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings.

16 years ago- Issue #3845: In PyRun_SimpleFileExFlags avoid invalid memory access with
Matthias Klose [Sat, 4 Apr 2009 14:18:13 +0000 (14:18 +0000)]
- Issue #3845: In PyRun_SimpleFileExFlags avoid invalid memory access with
  short file names.

16 years ago#5601: clarify that webbrowser is not meant for file names.
Georg Brandl [Sat, 4 Apr 2009 13:45:49 +0000 (13:45 +0000)]
#5601: clarify that webbrowser is not meant for file names.

16 years ago#5642: clarify map() compatibility to the builtin.
Georg Brandl [Sat, 4 Apr 2009 13:42:39 +0000 (13:42 +0000)]
#5642: clarify map() compatibility to the builtin.

16 years agoReplace the localized min/max calls with normal if/else
Raymond Hettinger [Sat, 4 Apr 2009 08:46:58 +0000 (08:46 +0000)]
Replace the localized min/max calls with normal if/else

16 years agoAllow multiple IDLE GUI/subprocess pairs to exist
Kurt B. Kaiser [Sat, 4 Apr 2009 07:03:48 +0000 (07:03 +0000)]
Allow multiple IDLE GUI/subprocess pairs to exist
simultaneously. Thanks to David Scherer for suggesting
the use of an ephemeral port for the GUI.
Patch 1529142 Weeble.

16 years agoFix error in description of 'oct' (issue 5678).
R. David Murray [Sat, 4 Apr 2009 06:39:56 +0000 (06:39 +0000)]
Fix error in description of 'oct' (issue 5678).

16 years agoAdd helpful link.
Raymond Hettinger [Sat, 4 Apr 2009 05:37:47 +0000 (05:37 +0000)]
Add helpful link.

16 years agoClarified warning about logging use from asynchronous signal handlers.
Vinay Sajip [Fri, 3 Apr 2009 21:58:16 +0000 (21:58 +0000)]
Clarified warning about logging use from asynchronous signal handlers.

16 years agoFix 'the the' duplication
Andrew M. Kuchling [Fri, 3 Apr 2009 21:45:29 +0000 (21:45 +0000)]
Fix 'the the' duplication

16 years agoFix 'the the'; grammar fix
Andrew M. Kuchling [Fri, 3 Apr 2009 21:44:49 +0000 (21:44 +0000)]
Fix 'the the'; grammar fix

16 years agoAdd some items
Andrew M. Kuchling [Fri, 3 Apr 2009 21:43:00 +0000 (21:43 +0000)]
Add some items

16 years agoAdded warning about logging use from asynchronous signal handlers.
Vinay Sajip [Fri, 3 Apr 2009 10:23:18 +0000 (10:23 +0000)]
Added warning about logging use from asynchronous signal handlers.

16 years agoFixed compile error on windows.
Hirokazu Yamamoto [Fri, 3 Apr 2009 03:54:08 +0000 (03:54 +0000)]
Fixed compile error on windows.

16 years agoLocalize the function lookup in timeit.
Raymond Hettinger [Fri, 3 Apr 2009 02:43:54 +0000 (02:43 +0000)]
Localize the function lookup in timeit.

16 years agoUpdate docs for namedtuple's renaming change.
Raymond Hettinger [Thu, 2 Apr 2009 22:34:17 +0000 (22:34 +0000)]
Update docs for namedtuple's renaming change.

16 years agoHave namedtuple's field renamer assign names that
Raymond Hettinger [Thu, 2 Apr 2009 22:25:40 +0000 (22:25 +0000)]
Have namedtuple's field renamer assign names that
are consistent with the corresponding tuple index.

16 years agoIssue #2396: backport the memoryview object.
Antoine Pitrou [Thu, 2 Apr 2009 21:18:34 +0000 (21:18 +0000)]
Issue #2396: backport the memoryview object.

16 years agosys.long_info attributes should be ints, not longs
Mark Dickinson [Thu, 2 Apr 2009 18:39:37 +0000 (18:39 +0000)]
sys.long_info attributes should be ints, not longs

16 years agoPyErr_NormalizeException may not set an error, so convert the PyErr_SetObject
Georg Brandl [Thu, 2 Apr 2009 18:09:04 +0000 (18:09 +0000)]
PyErr_NormalizeException may not set an error, so convert the PyErr_SetObject
call on hitting the recursion limit into just assigning it to the arguments provided.

16 years agoActually the displayhook should print the repr.
Georg Brandl [Thu, 2 Apr 2009 17:43:07 +0000 (17:43 +0000)]
Actually the displayhook should print the repr.

16 years agoAdd missing iteritems() call to the for loop in mailbox.MH.get_message().
R. David Murray [Thu, 2 Apr 2009 14:05:35 +0000 (14:05 +0000)]
Add missing iteritems() call to the for loop in mailbox.MH.get_message().

Fixes issue2625.

16 years agoStore the functions in the _type_equality_funcs as wrapped objects that are deep...
Michael Foord [Thu, 2 Apr 2009 05:51:54 +0000 (05:51 +0000)]
Store the functions in the _type_equality_funcs as wrapped objects that are deep copyable.

This allows for the deep copying of TestCase instances.

Issue 5660

16 years agoAdd custom initializer argument to multiprocess.Manager*, courtesy of lekma
Jesse Noller [Thu, 2 Apr 2009 05:17:26 +0000 (05:17 +0000)]
Add custom initializer argument to multiprocess.Manager*, courtesy of lekma

16 years agoClarify that datetime strftime does not produce leap seconds and datetime
R. David Murray [Thu, 2 Apr 2009 04:34:04 +0000 (04:34 +0000)]
Clarify that datetime strftime does not produce leap seconds and datetime
strptime does not accept it in the strftime behavior section of the
datetime docs.

Closes issue 2568.

16 years agoIssue 3551: Raise ValueError if the size causes ERROR_NO_SYSTEM_RESOURCES
Jesse Noller [Thu, 2 Apr 2009 04:22:09 +0000 (04:22 +0000)]
Issue 3551: Raise ValueError if the size causes ERROR_NO_SYSTEM_RESOURCES

16 years agoFix two issues introduced by issue #71031 by changing the signature of
Brett Cannon [Thu, 2 Apr 2009 03:34:53 +0000 (03:34 +0000)]
Fix two issues introduced by issue #71031 by changing the signature of
PyImport_AppendInittab() to take a const char *.

16 years agoBetter exception messages for unittest assert methods.
Michael Foord [Thu, 2 Apr 2009 03:20:38 +0000 (03:20 +0000)]
Better exception messages for unittest assert methods.

- unittest.assertNotEqual() now uses the inequality operator (!=) instead
  of the equality operator.

- Default assertTrue and assertFalse messages are now useful.

- TestCase has a longMessage attribute. This defaults to False, but if set to True
  useful error messages are shown in addition to explicit messages passed to assert methods.

Issue #5663

16 years agoPyImport_AppendInittab() took a char * as a first argument even though that
Brett Cannon [Thu, 2 Apr 2009 03:17:39 +0000 (03:17 +0000)]
PyImport_AppendInittab() took a char * as a first argument even though that
string was stored beyond the life of the call. Changed the signature to be
const char * to help make this point.

Closes issue #1419652.

16 years agoFixing the issue4860. Escaping embedded '"' character in js_output() method of Morsel.
Senthil Kumaran [Thu, 2 Apr 2009 03:00:34 +0000 (03:00 +0000)]
Fixing the issue4860. Escaping embedded '"' character in js_output() method of Morsel.

16 years agofix error handling
Benjamin Peterson [Thu, 2 Apr 2009 02:52:46 +0000 (02:52 +0000)]
fix error handling

16 years agoIn PyErr_GivenExceptionMatches, temporarily bump the recursion
Georg Brandl [Thu, 2 Apr 2009 02:47:44 +0000 (02:47 +0000)]
In PyErr_GivenExceptionMatches, temporarily bump the recursion
limit, so that in the most common case PyObject_IsSubclass will
not raise a recursion error we have to ignore anyway.

16 years agoRemove port spec from run.py and fix bug where
Kurt B. Kaiser [Thu, 2 Apr 2009 02:44:54 +0000 (02:44 +0000)]
Remove port spec from run.py and fix bug where
subprocess fails to extract port from command line
when warnings are present.

16 years agoIssue 3110: Additional protection for SEM_VALUE_MAX on platforms, thanks to Martin...
Jesse Noller [Thu, 2 Apr 2009 02:32:55 +0000 (02:32 +0000)]
Issue 3110: Additional protection for SEM_VALUE_MAX on platforms, thanks to Martin Loewis

16 years agoFix test_doctest, missed two assignments to curframe.
Georg Brandl [Thu, 2 Apr 2009 02:00:01 +0000 (02:00 +0000)]
Fix test_doctest, missed two assignments to curframe.

16 years agohandle SEEK_ constants in test_io
Benjamin Peterson [Thu, 2 Apr 2009 01:03:17 +0000 (01:03 +0000)]
handle SEEK_ constants in test_io

16 years agothis should be :noindex:
Benjamin Peterson [Thu, 2 Apr 2009 00:12:47 +0000 (00:12 +0000)]
this should be :noindex:

16 years agofix markup
Benjamin Peterson [Thu, 2 Apr 2009 00:11:52 +0000 (00:11 +0000)]
fix markup

16 years agoissue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis...
Jesse Noller [Thu, 2 Apr 2009 00:03:28 +0000 (00:03 +0000)]
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help

16 years agoTypo fix
Andrew M. Kuchling [Thu, 2 Apr 2009 00:02:14 +0000 (00:02 +0000)]
Typo fix

16 years agoCache the f_locals dict of the current frame, since every access to frame.f_locals...
Georg Brandl [Wed, 1 Apr 2009 23:32:17 +0000 (23:32 +0000)]
Cache the f_locals dict of the current frame, since every access to frame.f_locals overrides its contents with the real locals which undoes modifications made by the debugging user.

16 years agoremove double underscores
Benjamin Peterson [Wed, 1 Apr 2009 23:15:49 +0000 (23:15 +0000)]
remove double underscores

16 years agoAdd my initials to Misc/developers.txt. Names are now sorted by number of
Brett Cannon [Wed, 1 Apr 2009 23:01:12 +0000 (23:01 +0000)]
Add my initials to Misc/developers.txt. Names are now sorted by number of
characters in the person's name.

16 years agoIn Pdb, stop assigning values to __builtin__._ which interferes with the one commonly...
Georg Brandl [Wed, 1 Apr 2009 21:54:21 +0000 (21:54 +0000)]
In Pdb, stop assigning values to __builtin__._ which interferes with the one commonly installed by gettext.

16 years agoAdd tests checking the CSV module's ability to handle
R. David Murray [Wed, 1 Apr 2009 21:26:18 +0000 (21:26 +0000)]
Add tests checking the CSV module's ability to handle
embedded newlines in quoted field values.

16 years agoadd seek constants to __all__
Benjamin Peterson [Wed, 1 Apr 2009 21:12:54 +0000 (21:12 +0000)]
add seek constants to __all__

16 years agoRevert accidental checkin.
Georg Brandl [Wed, 1 Apr 2009 21:06:30 +0000 (21:06 +0000)]
Revert accidental checkin.

16 years agoAdd NEWS item.
Georg Brandl [Wed, 1 Apr 2009 21:05:44 +0000 (21:05 +0000)]
Add NEWS item.

16 years ago#4572: add SEEK_* values as constants in io.py.
Georg Brandl [Wed, 1 Apr 2009 21:00:55 +0000 (21:00 +0000)]
#4572: add SEEK_* values as constants in io.py.

16 years agoAdd link to an alternative generator with a long-period.
Raymond Hettinger [Wed, 1 Apr 2009 20:50:58 +0000 (20:50 +0000)]
Add link to an alternative generator with a long-period.

16 years agoFix for issue5040. Adding test for Content-Length
Senthil Kumaran [Wed, 1 Apr 2009 20:26:33 +0000 (20:26 +0000)]
Fix for issue5040. Adding test for Content-Length

16 years agobounds check arguments to mmap.move(). All of them. Really.
Jack Diederich [Wed, 1 Apr 2009 20:26:13 +0000 (20:26 +0000)]
bounds check arguments to mmap.move().  All of them.  Really.
fixes crasher on OS X 10.5