]> granicus.if.org Git - python/log
python
14 years agoAdded logging documentation cross-references.
Vinay Sajip [Sun, 26 Dec 2010 21:22:33 +0000 (21:22 +0000)]
Added logging documentation cross-references.

14 years ago#5258/#10642: print fn, line, traceback and continue when .pth file is broken
R. David Murray [Sun, 26 Dec 2010 19:54:29 +0000 (19:54 +0000)]
#5258/#10642: print fn, line, traceback and continue when .pth file is broken

If a .pth file contained an error, it could cause a traceback in site.py,
terminating its processing.  In 2.7 and 3.2, the interpreter will then not
start.  Previously, a message would print saying to use -v to get the
traceback.  In either case, the traceback generated for a failed .pth file did
not include the .pth filename, making it difficult to debug the problem.  Now
site.py reports not only the .pth filename but also the line number causing the
error, and just skips the remainder of the file.

14 years agoImproved logging cookbook for logging with multiprocessing.
Vinay Sajip [Sun, 26 Dec 2010 18:47:51 +0000 (18:47 +0000)]
Improved logging cookbook for logging with multiprocessing.

14 years agoFix typo (#10770)
Éric Araujo [Sun, 26 Dec 2010 17:53:27 +0000 (17:53 +0000)]
Fix typo (#10770)

14 years agorevert 87478
Terry Reedy [Sun, 26 Dec 2010 03:48:35 +0000 (03:48 +0000)]
revert 87478

14 years agoRemove unexistent parameter (#3216)
Éric Araujo [Sun, 26 Dec 2010 02:38:05 +0000 (02:38 +0000)]
Remove unexistent parameter (#3216)

14 years agoFix typo spotted by Rodrigo Bernardo Pimentel (#9891)
Éric Araujo [Sun, 26 Dec 2010 02:18:49 +0000 (02:18 +0000)]
Fix typo spotted by Rodrigo Bernardo Pimentel (#9891)

14 years agoIssue #10763: subprocess.communicate() closes stdout and stderr if both are
Victor Stinner [Sat, 25 Dec 2010 22:40:32 +0000 (22:40 +0000)]
Issue #10763: subprocess.communicate() closes stdout and stderr if both are
pipes (bug specific to Windows).

Improve also the unit test: write a portable unit test.

14 years agoAssign closed handles to None to make errors more obvious if they are used.
Brian Quinlan [Sat, 25 Dec 2010 00:18:27 +0000 (00:18 +0000)]
Assign closed handles to None to make errors more obvious if they are used.

14 years agoBetter reporting of test failures on Windows.
Brian Quinlan [Fri, 24 Dec 2010 23:10:41 +0000 (23:10 +0000)]
Better reporting of test failures on Windows.

14 years ago#1693546: don't add quotes around RFC 2231 encoded values.
R. David Murray [Fri, 24 Dec 2010 22:36:49 +0000 (22:36 +0000)]
#1693546: don't add quotes around RFC 2231 encoded values.

The RFC is bit hard to understand on this point, but the examples
clearly show that parameter values that are encoded according
to its charset/language rules don't have surrounding quotes, and
the ABNF does not allow for quotes.  So when we produce such
encoded values, we no longer add quotes.

14 years agoMatch current tracker name, though I do not know if still active.
Terry Reedy [Fri, 24 Dec 2010 21:59:03 +0000 (21:59 +0000)]
Match current tracker name, though I do not know if still active.

14 years agoAdopt symmetric names for arguments (actual/expected --> first/second).
Raymond Hettinger [Fri, 24 Dec 2010 21:51:48 +0000 (21:51 +0000)]
Adopt symmetric names for arguments (actual/expected --> first/second).

14 years agoLogging documentation updates.
Vinay Sajip [Fri, 24 Dec 2010 12:03:48 +0000 (12:03 +0000)]
Logging documentation updates.

14 years agoKeep helper functions private.
Raymond Hettinger [Fri, 24 Dec 2010 11:24:00 +0000 (11:24 +0000)]
Keep helper functions private.

14 years agoPut diff output in useful order (when the elements were first seen).
Raymond Hettinger [Fri, 24 Dec 2010 11:20:30 +0000 (11:20 +0000)]
Put diff output in useful order (when the elements were first seen).

14 years agoAdd direct tests for the util functions.
Raymond Hettinger [Fri, 24 Dec 2010 10:30:06 +0000 (10:30 +0000)]
Add direct tests for the util functions.

14 years agoAdd news entry for 87471.
Raymond Hettinger [Fri, 24 Dec 2010 10:04:00 +0000 (10:04 +0000)]
Add news entry for 87471.

14 years agoImprove diff for assertCountEqual() to actually show the differing counts.
Raymond Hettinger [Fri, 24 Dec 2010 10:02:22 +0000 (10:02 +0000)]
Improve diff for assertCountEqual() to actually show the differing counts.

New output looks like this:

Traceback (most recent call last):
  File "test.py", line 5, in test_ce
    self.assertCountEqual('abracadabra xx', 'simsalabim xx')
AssertionError: Element counts were not equal:
Expected 5, got 2:  'a'
Expected 2, got 1:  'b'
Expected 0, got 2:  'i'
Expected 0, got 2:  'm'
Expected 0, got 1:  'l'
Expected 0, got 2:  's'
Expected 1, got 0:  'c'
Expected 1, got 0:  'd'
Expected 2, got 0:  'r'

14 years agoAdded an XXX note to describe timedelta/timedelta feature.
Alexander Belopolsky [Fri, 24 Dec 2010 04:22:40 +0000 (04:22 +0000)]
Added an XXX note to describe timedelta/timedelta feature.

14 years agoFix some mistakes- Issue3243 (r87399) Correcting the operator precendence
Senthil Kumaran [Fri, 24 Dec 2010 04:03:59 +0000 (04:03 +0000)]
Fix some mistakes- Issue3243 (r87399)  Correcting the operator precendence
problem with Content-Length header and uncommenting the test.

14 years agoFix docstring.
Raymond Hettinger [Fri, 24 Dec 2010 00:58:34 +0000 (00:58 +0000)]
Fix docstring.

14 years agoFix docs and comment for r87454.
Raymond Hettinger [Fri, 24 Dec 2010 00:52:54 +0000 (00:52 +0000)]
Fix docs and comment for r87454.

14 years agoAdd test for r87454.
Raymond Hettinger [Fri, 24 Dec 2010 00:48:47 +0000 (00:48 +0000)]
Add test for r87454.

14 years agoIssue #9063: Corrected the tzinfo example.
Alexander Belopolsky [Fri, 24 Dec 2010 00:24:11 +0000 (00:24 +0000)]
Issue #9063: Corrected the tzinfo example.

14 years agoupdate comment
Benjamin Peterson [Thu, 23 Dec 2010 23:45:39 +0000 (23:45 +0000)]
update comment

14 years agoFix syntax typo
Éric Araujo [Thu, 23 Dec 2010 23:18:41 +0000 (23:18 +0000)]
Fix syntax typo

14 years agoIssue 10730: mimetypes module - add .svgz to mimetypes.suffix_map and .svg to types_map.
Terry Reedy [Thu, 23 Dec 2010 23:10:28 +0000 (23:10 +0000)]
Issue 10730: mimetypes module - add .svgz to mimetypes.suffix_map and .svg to types_map.
Addition OKed by GB on IRC (R. David Murray). No backport.

14 years agokill some function imports
Benjamin Peterson [Thu, 23 Dec 2010 22:53:42 +0000 (22:53 +0000)]
kill some function imports

14 years agouse native tenary condition
Benjamin Peterson [Thu, 23 Dec 2010 22:49:38 +0000 (22:49 +0000)]
use native tenary condition

14 years agofix docstring
Benjamin Peterson [Thu, 23 Dec 2010 22:17:42 +0000 (22:17 +0000)]
fix docstring

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.