]> granicus.if.org Git - python/log
python
14 years agoFix buglet. If the input was an iterator, the fallback would occur after
Raymond Hettinger [Thu, 23 Dec 2010 21:54:02 +0000 (21:54 +0000)]
Fix buglet.  If the input was an iterator, the fallback would occur after
part of the iterator had been consumed.   Also, fix argument names which
did not match the docs and were a bit misleading.

14 years ago#1155362: allow hh:mm:ss-uuuu like we allow hh:mm:ss+uuuu in parsedate_tz
R. David Murray [Thu, 23 Dec 2010 20:35:46 +0000 (20:35 +0000)]
#1155362: allow hh:mm:ss-uuuu like we allow hh:mm:ss+uuuu in parsedate_tz

Original patch by Thomas Herve.

14 years ago#4496: remove misleading comment and note that self.handlers is obsolete.
R. David Murray [Thu, 23 Dec 2010 19:44:49 +0000 (19:44 +0000)]
#4496: remove misleading comment and note that self.handlers is obsolete.

self.handlers is still used in one urllib2 test, but not by the code iteslf.

14 years agoFix typo in superclass method name
Éric Araujo [Thu, 23 Dec 2010 19:13:05 +0000 (19:13 +0000)]
Fix typo in superclass method name

14 years agoNits: use a real boolean, make one docstring more similar to the other ones
Éric Araujo [Thu, 23 Dec 2010 18:44:31 +0000 (18:44 +0000)]
Nits: use a real boolean, make one docstring more similar to the other ones

14 years agoFix small inaccuracy: there is no index function
Éric Araujo [Thu, 23 Dec 2010 18:41:33 +0000 (18:41 +0000)]
Fix small inaccuracy: there is no index function

14 years agoIssue #10587: Document the meaning of str methods.
Alexander Belopolsky [Thu, 23 Dec 2010 02:58:25 +0000 (02:58 +0000)]
Issue #10587: Document the meaning of str methods.

14 years agoIssue #10254: Fixed a crash and a regression introduced by the implementation of...
Alexander Belopolsky [Thu, 23 Dec 2010 02:27:37 +0000 (02:27 +0000)]
Issue #10254: Fixed a crash and a regression introduced by the implementation of PRI 29.

14 years agoFix ResourceWarning in test_normalization
Antoine Pitrou [Wed, 22 Dec 2010 22:19:15 +0000 (22:19 +0000)]
Fix ResourceWarning in test_normalization

14 years agoAnother trivial typo correction in whatsnew
Michael Foord [Wed, 22 Dec 2010 18:28:51 +0000 (18:28 +0000)]
Another trivial typo correction in whatsnew

14 years agoLogging documentation updates.
Vinay Sajip [Wed, 22 Dec 2010 15:04:15 +0000 (15:04 +0000)]
Logging documentation updates.

14 years agoMinor typo corrections in whatsnew
Michael Foord [Wed, 22 Dec 2010 10:39:04 +0000 (10:39 +0000)]
Minor typo corrections in whatsnew

14 years agoAdd todo
Raymond Hettinger [Wed, 22 Dec 2010 09:11:54 +0000 (09:11 +0000)]
Add todo

14 years agofix a compiler warning about err_msg potentially being used uninitialized.
Gregory P. Smith [Wed, 22 Dec 2010 05:22:17 +0000 (05:22 +0000)]
fix a compiler warning about err_msg potentially being used uninitialized.

14 years agoRemoved unneeded #include
Alexander Belopolsky [Wed, 22 Dec 2010 02:35:20 +0000 (02:35 +0000)]
Removed unneeded #include

14 years agoBoth PEP 3131 and the current implementation use NFKC normalization
Alexander Belopolsky [Wed, 22 Dec 2010 01:37:36 +0000 (01:37 +0000)]
Both PEP 3131 and the current implementation use NFKC normalization
for identifiers.  Fixed the documentation to agree.

14 years ago#4871: check that zipfile password is bytes, and give useful error message.
R. David Murray [Tue, 21 Dec 2010 21:53:37 +0000 (21:53 +0000)]
#4871: check that zipfile password is bytes, and give useful error message.

Previously passing a string in as the password would fail either with
an assertion error or a TypeError with a confusing error message.
Note that a string can't be accepted since zipfile has no way to
guess what encoding should be used to turn it into bytes.

Patch by Victor Stinner.

14 years agoIssue #10750: The `raw` attribute of buffered IO objects is now read-only.
Antoine Pitrou [Tue, 21 Dec 2010 21:20:59 +0000 (21:20 +0000)]
Issue #10750: The `raw` attribute of buffered IO objects is now read-only.

14 years agoDocument the alternate format for :ref:.
Raymond Hettinger [Tue, 21 Dec 2010 20:52:12 +0000 (20:52 +0000)]
Document the alternate format for :ref:.

14 years agoReference the release schedule
Raymond Hettinger [Tue, 21 Dec 2010 20:09:55 +0000 (20:09 +0000)]
Reference the release schedule

14 years agoDeprecate assertDictContainsSubset()
Raymond Hettinger [Tue, 21 Dec 2010 19:24:26 +0000 (19:24 +0000)]
Deprecate assertDictContainsSubset()

14 years agoSuggest sys.maxsize as a reliable way to know whether the interpreter is 64-bit.
Antoine Pitrou [Tue, 21 Dec 2010 18:49:01 +0000 (18:49 +0000)]
Suggest sys.maxsize as a reliable way to know whether the interpreter is 64-bit.
(part of #10735)

14 years agoMake test_compileall more robust by using -S to keep sys.path minimized.
R. David Murray [Tue, 21 Dec 2010 18:24:33 +0000 (18:24 +0000)]
Make test_compileall more robust by using -S to keep sys.path minimized.

Try this again, hopefully the right way this time.

Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
install because it was tyring to write .pyc files to a read-only system
directory during test_no_args_compiles_path.  Having the tests call python
with -S should eliminate the system directories from the path.

14 years agoFix the change made for issue 1243654.
R. David Murray [Tue, 21 Dec 2010 18:07:59 +0000 (18:07 +0000)]
Fix the change made for issue 1243654.

Surprisingly, it turns out there was no test that exercised this code path.

14 years agoRevert incorrect patch made at the wrong time.
R. David Murray [Mon, 20 Dec 2010 19:04:51 +0000 (19:04 +0000)]
Revert incorrect patch made at the wrong time.

14 years agoMake test_compileall more robust by using -S to keep sys.path minimized.
R. David Murray [Mon, 20 Dec 2010 18:08:59 +0000 (18:08 +0000)]
Make test_compileall more robust by using -S to keep sys.path minimized.

Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
install because it was tyring to write .pyc files to a read-only system
directory during test_no_args_compiles_path.  Having subprocess call python
with -S should eliminate the system directories from the path.

14 years agoLogging documentation updates.
Vinay Sajip [Sun, 19 Dec 2010 13:41:26 +0000 (13:41 +0000)]
Logging documentation updates.

14 years agoLogging documentation reorganised.
Vinay Sajip [Sun, 19 Dec 2010 12:56:57 +0000 (12:56 +0000)]
Logging documentation reorganised.

14 years agoTag 3.2 beta 2.
Georg Brandl [Sun, 19 Dec 2010 12:37:34 +0000 (12:37 +0000)]
Tag 3.2 beta 2.

14 years ago#3243 follow-up: remove debugging print and fix docs; data is a bytes object. v3.2b2
Georg Brandl [Sun, 19 Dec 2010 12:33:52 +0000 (12:33 +0000)]
#3243 follow-up: remove debugging print and fix docs; data is a bytes object.

14 years agoIssue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li...
Senthil Kumaran [Sun, 19 Dec 2010 10:49:52 +0000 (10:49 +0000)]
Issue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li and Chris AtLee.

14 years agoBump to 3.2b2.
Georg Brandl [Sun, 19 Dec 2010 10:30:28 +0000 (10:30 +0000)]
Bump to 3.2b2.

14 years agoFix markup error and update suspicious file.
Georg Brandl [Sun, 19 Dec 2010 10:28:46 +0000 (10:28 +0000)]
Fix markup error and update suspicious file.

14 years agoUpdate pydoc topics.
Georg Brandl [Sun, 19 Dec 2010 10:25:28 +0000 (10:25 +0000)]
Update pydoc topics.

14 years agoTemporarily skip test failing with newer ttk.
Georg Brandl [Sun, 19 Dec 2010 10:17:46 +0000 (10:17 +0000)]
Temporarily skip test failing with newer ttk.

14 years ago#6075: make idle work with both Carbon AquaTk and Cocoa AquaTk. Patch by Kevin Walzer...
Georg Brandl [Sun, 19 Dec 2010 10:10:32 +0000 (10:10 +0000)]
#6075: make idle work with both Carbon AquaTk and Cocoa AquaTk. Patch by Kevin Walzer and Ned Deily.

14 years agoLogging documentation update.
Vinay Sajip [Sun, 19 Dec 2010 06:02:31 +0000 (06:02 +0000)]
Logging documentation update.

14 years agoImprovement to fix for issue 9926 to allow TestResult to be reused.
Michael Foord [Sun, 19 Dec 2010 04:07:28 +0000 (04:07 +0000)]
Improvement to fix for issue 9926 to allow TestResult to be reused.

14 years agoFix minor issue in implementation of issue 10470.
Michael Foord [Sun, 19 Dec 2010 03:59:10 +0000 (03:59 +0000)]
Fix minor issue in implementation of issue 10470.

14 years agoIssue 10611. Issue 9857. Improve the way exception handling, including test skipping...
Michael Foord [Sun, 19 Dec 2010 03:19:47 +0000 (03:19 +0000)]
Issue 10611. Issue 9857. Improve the way exception handling, including test skipping, is done inside TestCase.run

14 years ago#10573: use actual/expected consistently in unittest methods. The order of the args...
Ezio Melotti [Sat, 18 Dec 2010 20:00:04 +0000 (20:00 +0000)]
#10573: use actual/expected consistently in unittest methods. The order of the args of assertCountEqual is also changed.

14 years ago#9286: Fix the rfc822 parser to preserve whitespace in address local part.
R. David Murray [Sat, 18 Dec 2010 18:25:38 +0000 (18:25 +0000)]
#9286: Fix the rfc822 parser to preserve whitespace in address local part.

Such addresses are not RFC compliant except under the 'obsolete syntax'
rules, but before this fix the whitespace was dropped from the input,
concatenating the pieces.  That breaks one of the principles of the
email package, that of preserving the input as much as possible.
It also denies the application program the opportunity to apply its
own heuristics to interpretation of such non-compliant addresses.

It is possible users of the email package were depending on the local
part always being a single token, so this fix will not be backported.

14 years agoNEWS entry for r87373
Antoine Pitrou [Sat, 18 Dec 2010 17:59:18 +0000 (17:59 +0000)]
NEWS entry for r87373

14 years ago#10723: add missing builtin exceptions.
Georg Brandl [Sat, 18 Dec 2010 17:51:28 +0000 (17:51 +0000)]
#10723: add missing builtin exceptions.

14 years agoUse lowercase true/false in assertTrue/assertFalse messages.
Ezio Melotti [Sat, 18 Dec 2010 17:31:58 +0000 (17:31 +0000)]
Use lowercase true/false in assertTrue/assertFalse messages.

14 years ago#10404: Use ctl-button-1 for context menus on OSX Idle.
R. David Murray [Sat, 18 Dec 2010 17:19:10 +0000 (17:19 +0000)]
#10404: Use ctl-button-1 for context menus on OSX Idle.

This provides access to the context menus where they previously could
not be accessed due to the way OSX Tk binds buttons.  It also
improves platform consistency.

Patch by Ned Deily.

14 years agoFix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine...
Senthil Kumaran [Sat, 18 Dec 2010 16:55:23 +0000 (16:55 +0000)]
Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou

14 years ago#10728: the default for printing help is sys.stdout, not stderr.
R. David Murray [Sat, 18 Dec 2010 16:39:06 +0000 (16:39 +0000)]
#10728: the default for printing help is sys.stdout, not stderr.

14 years agoFix typo.
Georg Brandl [Sat, 18 Dec 2010 16:21:58 +0000 (16:21 +0000)]
Fix typo.

14 years ago#5587: add a repr to dict_proxy objects. Patch by David Stanek and Daniel Urban.
Ezio Melotti [Sat, 18 Dec 2010 14:59:43 +0000 (14:59 +0000)]
#5587: add a repr to dict_proxy objects.  Patch by David Stanek and Daniel Urban.

14 years agoMake this a note again.
Antoine Pitrou [Sat, 18 Dec 2010 12:33:06 +0000 (12:33 +0000)]
Make this a note again.

14 years agoUse kbd role.
Georg Brandl [Sat, 18 Dec 2010 12:01:15 +0000 (12:01 +0000)]
Use kbd role.

14 years agoTypo fix.
Georg Brandl [Sat, 18 Dec 2010 11:58:12 +0000 (11:58 +0000)]
Typo fix.

14 years agoAdd attribution.
Georg Brandl [Sat, 18 Dec 2010 11:53:25 +0000 (11:53 +0000)]
Add attribution.

14 years agoNits.
Raymond Hettinger [Sat, 18 Dec 2010 11:20:52 +0000 (11:20 +0000)]
Nits.

14 years agoAdd subparser aliases for argparse. Resolves issue 9324. Approved by Georg for beta2...
Steven Bethard [Sat, 18 Dec 2010 11:19:23 +0000 (11:19 +0000)]
Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg for beta2 on the tracker.

14 years agoMinor markup and wording fixups.
Raymond Hettinger [Sat, 18 Dec 2010 10:57:50 +0000 (10:57 +0000)]
Minor markup and wording fixups.

14 years agoMinor wordsmithing and markup fix-ups.
Raymond Hettinger [Sat, 18 Dec 2010 10:48:26 +0000 (10:48 +0000)]
Minor wordsmithing and markup fix-ups.

14 years agoEnhance argparse example to show aliases.
Raymond Hettinger [Sat, 18 Dec 2010 09:41:32 +0000 (09:41 +0000)]
Enhance argparse example to show aliases.

14 years ago#9907: call rl_initialize early when using editline on OSX
R. David Murray [Sat, 18 Dec 2010 03:48:32 +0000 (03:48 +0000)]
#9907: call rl_initialize early when using editline on OSX

editline rl_initialize apparently discards any mappings done before it
is called, which makes tab revert to file completion instead of inserting
a tab.  So now on OSX we call rl_initialize first if we are using
readline, and then re-read the users .editrc (if any) afterward so they
can still override our defaults.

Patch by Ned Deily, modified by Ronald Oussoren.

14 years agoAdd link to a sample solution to a common problem.
Raymond Hettinger [Fri, 17 Dec 2010 23:31:30 +0000 (23:31 +0000)]
Add link to a sample solution to a common problem.

14 years agoFix typo
Daniel Stutzbach [Fri, 17 Dec 2010 22:28:07 +0000 (22:28 +0000)]
Fix typo

14 years agoupdate .gitignore using .hgignore
Victor Stinner [Fri, 17 Dec 2010 22:24:30 +0000 (22:24 +0000)]
update .gitignore using .hgignore

14 years agofix for an embarrassing autoformatting SNAFU. Thanks for your alertness, Antoine.
Łukasz Langa [Fri, 17 Dec 2010 22:05:46 +0000 (22:05 +0000)]
fix for an embarrassing autoformatting SNAFU. Thanks for your alertness, Antoine.

14 years agoconfigparser hype coming up!
Łukasz Langa [Fri, 17 Dec 2010 21:57:32 +0000 (21:57 +0000)]
configparser hype coming up!

14 years ago100% test coverage, better mapping protocol compatibility, some minor bugfixes
Łukasz Langa [Fri, 17 Dec 2010 21:56:32 +0000 (21:56 +0000)]
100% test coverage, better mapping protocol compatibility, some minor bugfixes

14 years agoUpgrade to sqlite3 3.7.4.
Martin v. Löwis [Fri, 17 Dec 2010 21:04:09 +0000 (21:04 +0000)]
Upgrade to sqlite3 3.7.4.

14 years agoIssue2690: Update docs to reflect the change made by issue2690.
Daniel Stutzbach [Fri, 17 Dec 2010 20:53:03 +0000 (20:53 +0000)]
Issue2690: Update docs to reflect the change made by issue2690.

14 years agoUpgrade Tcl/Tk to 8.5.9.
Martin v. Löwis [Fri, 17 Dec 2010 20:43:27 +0000 (20:43 +0000)]
Upgrade Tcl/Tk to 8.5.9.

14 years agoExpand the LBYL glossary entry.
Raymond Hettinger [Fri, 17 Dec 2010 20:19:50 +0000 (20:19 +0000)]
Expand the LBYL glossary entry.

14 years agoIssue #4188: Avoid creating dummy thread objects when logging operations
Antoine Pitrou [Fri, 17 Dec 2010 17:42:16 +0000 (17:42 +0000)]
Issue #4188: Avoid creating dummy thread objects when logging operations
from the threading module (with the internal verbose flag activated).

14 years agoIssue #10711: Remove HTTP 0.9 support from http.client. The `strict`
Antoine Pitrou [Fri, 17 Dec 2010 17:35:56 +0000 (17:35 +0000)]
Issue #10711: Remove HTTP 0.9 support from http.client.  The `strict`
parameter to HTTPConnection and friends is deprecated.

14 years agoIssue 8753: Added documentation for Py_ReprEntr and Py_ReprLeave.
Daniel Stutzbach [Fri, 17 Dec 2010 16:31:32 +0000 (16:31 +0000)]
Issue 8753: Added documentation for Py_ReprEntr and Py_ReprLeave.

14 years ago#10454: clarify the compileall docs and help messages.
R. David Murray [Fri, 17 Dec 2010 16:29:07 +0000 (16:29 +0000)]
#10454: clarify the compileall docs and help messages.

14 years ago#10559: provide instructions for accessing sys.argv when first mentioned.
R. David Murray [Fri, 17 Dec 2010 16:11:40 +0000 (16:11 +0000)]
#10559: provide instructions for accessing sys.argv when first mentioned.

14 years agoFix Issue9721 - urljoin behavior when the relative url starts with ';'
Senthil Kumaran [Fri, 17 Dec 2010 04:48:45 +0000 (04:48 +0000)]
Fix Issue9721 - urljoin behavior when the relative url starts with ';'

14 years agoconfigparser API cleanup: default values now sensible, slightly incompatible.
Łukasz Langa [Fri, 17 Dec 2010 01:32:29 +0000 (01:32 +0000)]
configparser API cleanup: default values now sensible, slightly incompatible.
Backwards compatible alternative values possible as documented.
Done by Łukasz Langa, approved by Raymond and Fred.

14 years agoassert that the regex given to assertRegex is non-empty.
Gregory P. Smith [Thu, 16 Dec 2010 19:23:05 +0000 (19:23 +0000)]
assert that the regex given to assertRegex is non-empty.

14 years ago#10719: restore messages generated on invalid compileall args
R. David Murray [Thu, 16 Dec 2010 19:08:51 +0000 (19:08 +0000)]
#10719: restore messages generated on invalid compileall args

Before the introduction of filename arguments to compileall it gave semi useful
messages about not being able to 'list' names that weren't valid directories.
This fix restores that behavior.  In addition to the test for this case, the
patch also adds a test for the default behavior of compileall when no arguments
are provided, and fixes a bug in one of the previously added tests.

14 years agoIssue #10710: `Misc/setuid-prog.c` is removed from the source tree.
Antoine Pitrou [Thu, 16 Dec 2010 18:25:24 +0000 (18:25 +0000)]
Issue #10710: `Misc/setuid-prog.c` is removed from the source tree.

14 years agoIssue #10714: Limit length of incoming request in http.server to 65536 bytes
Antoine Pitrou [Thu, 16 Dec 2010 16:48:36 +0000 (16:48 +0000)]
Issue #10714: Limit length of incoming request in http.server to 65536 bytes
for security reasons.  Initial patch by Ross Lagerwall.

14 years agoCredit Florent for porting
Antoine Pitrou [Thu, 16 Dec 2010 13:33:56 +0000 (13:33 +0000)]
Credit Florent for porting

14 years agoAdd todo for WSGI
Raymond Hettinger [Thu, 16 Dec 2010 10:06:11 +0000 (10:06 +0000)]
Add todo for WSGI

14 years agoAdd missing docs and directives related to PEP 3147 and byte-compilation
Éric Araujo [Thu, 16 Dec 2010 06:28:48 +0000 (06:28 +0000)]
Add missing docs and directives related to PEP 3147 and byte-compilation

14 years agoEasyDialogs was removed in 3.x. fallback_getpass will always be the answer here.
Brian Curtin [Thu, 16 Dec 2010 03:24:49 +0000 (03:24 +0000)]
EasyDialogs was removed in 3.x. fallback_getpass will always be the answer here.

14 years agoFix one versionchanged
Éric Araujo [Thu, 16 Dec 2010 03:13:05 +0000 (03:13 +0000)]
Fix one versionchanged

14 years agoImprove the ContextDecorator example.
Raymond Hettinger [Thu, 16 Dec 2010 02:24:12 +0000 (02:24 +0000)]
Improve the ContextDecorator example.

14 years agoAdd versionadded directive missing from r78983.
Éric Araujo [Thu, 16 Dec 2010 02:10:11 +0000 (02:10 +0000)]
Add versionadded directive missing from r78983.

14 years agoAcknowledged renaming of SafeConfigParser to ConfigParser.
Łukasz Langa [Thu, 16 Dec 2010 01:42:36 +0000 (01:42 +0000)]
Acknowledged renaming of SafeConfigParser to ConfigParser.

14 years agoAdvertise “python -m test” over test.regrtest (r87296 followup)
Éric Araujo [Thu, 16 Dec 2010 01:40:26 +0000 (01:40 +0000)]
Advertise “python -m test” over test.regrtest (r87296 followup)

14 years agoBroken ConfigParser removed, SafeConfigParser renamed to ConfigParser.
Łukasz Langa [Thu, 16 Dec 2010 01:16:22 +0000 (01:16 +0000)]
Broken ConfigParser removed, SafeConfigParser renamed to ConfigParser.
Life is beatiful once again.

14 years agoThank you ispell.
Raymond Hettinger [Thu, 16 Dec 2010 00:53:05 +0000 (00:53 +0000)]
Thank you ispell.

14 years agoNits
Raymond Hettinger [Thu, 16 Dec 2010 00:30:53 +0000 (00:30 +0000)]
Nits

14 years agoAdvertise “python -m” instead of direct filename.
Éric Araujo [Thu, 16 Dec 2010 00:23:30 +0000 (00:23 +0000)]
Advertise “python -m” instead of direct filename.

14 years agoEntries for ElementTree, collectionsm, functools and ZipFile.
Raymond Hettinger [Thu, 16 Dec 2010 00:21:08 +0000 (00:21 +0000)]
Entries for ElementTree, collectionsm, functools and ZipFile.

14 years agoNo need to generate a link for something that’s just above.
Éric Araujo [Thu, 16 Dec 2010 00:07:01 +0000 (00:07 +0000)]
No need to generate a link for something that’s just above.

14 years agoMake test_threadsignals more lax, and add notes
Antoine Pitrou [Wed, 15 Dec 2010 23:38:50 +0000 (23:38 +0000)]
Make test_threadsignals more lax, and add notes

14 years agoIssue #8844: Regular and recursive lock acquisitions can now be interrupted
Antoine Pitrou [Wed, 15 Dec 2010 22:59:16 +0000 (22:59 +0000)]
Issue #8844: Regular and recursive lock acquisitions can now be interrupted
by signals on platforms using pthreads.  Patch by Reid Kleckner.

14 years agoMark up one missed None in pkgutil.rst (#8851)
Éric Araujo [Wed, 15 Dec 2010 22:37:27 +0000 (22:37 +0000)]
Mark up one missed None in pkgutil.rst (#8851)

14 years agoEntry for decimal and fractions.
Raymond Hettinger [Wed, 15 Dec 2010 22:35:03 +0000 (22:35 +0000)]
Entry for decimal and fractions.