]> granicus.if.org Git - python/log
python
15 years agoFix a py3k warning in the sndhdr module (found with test_email)
Antoine Pitrou [Wed, 14 Oct 2009 18:31:05 +0000 (18:31 +0000)]
Fix a py3k warning in the sndhdr module (found with test_email)

15 years agoFix py3k warnings in the socket module
Antoine Pitrou [Wed, 14 Oct 2009 18:27:32 +0000 (18:27 +0000)]
Fix py3k warnings in the socket module

15 years agoFix a py3k warning in the StringIO module (exhibited in test_codecencodings_cn)
Antoine Pitrou [Wed, 14 Oct 2009 18:12:54 +0000 (18:12 +0000)]
Fix a py3k warning in the StringIO module (exhibited in test_codecencodings_cn)

15 years agoSilence a py3k warning claiming to affect Lib/calendar.py
Antoine Pitrou [Wed, 14 Oct 2009 18:09:45 +0000 (18:09 +0000)]
Silence a py3k warning claiming to affect Lib/calendar.py

15 years agoFix py3k warnings in bsddb
Antoine Pitrou [Wed, 14 Oct 2009 18:01:33 +0000 (18:01 +0000)]
Fix py3k warnings in bsddb

15 years agoFix a test_atexit failure when run with -3
Antoine Pitrou [Wed, 14 Oct 2009 17:34:31 +0000 (17:34 +0000)]
Fix a test_atexit failure when run with -3

15 years agoFix py3k warnings in the aifc module
Antoine Pitrou [Wed, 14 Oct 2009 17:30:52 +0000 (17:30 +0000)]
Fix py3k warnings in the aifc module

15 years agoIssue #1754094: Improve the stack depth calculation in the compiler.
Neil Schemenauer [Wed, 14 Oct 2009 17:17:14 +0000 (17:17 +0000)]
Issue #1754094: Improve the stack depth calculation in the compiler.
There should be no other effect than a small decrease in memory use.
Patch by Christopher Tur Lesniewski-Laas.

15 years ago#7126: os.environ changes *do* take effect in subprocesses started with os.system().
Georg Brandl [Wed, 14 Oct 2009 15:57:46 +0000 (15:57 +0000)]
#7126: os.environ changes *do* take effect in subprocesses started with os.system().

15 years ago#7125: fix typo.
Georg Brandl [Wed, 14 Oct 2009 15:51:48 +0000 (15:51 +0000)]
#7125: fix typo.

15 years agoEnhanced Issue 7058 patch, which will not be backported. Refactors the
R. David Murray [Wed, 14 Oct 2009 13:58:07 +0000 (13:58 +0000)]
Enhanced Issue 7058 patch, which will not be backported.  Refactors the
code, adds checks for stdin/out/err, cwd, and sys.path, and adds a new
section in the summary for tests that modify the environment (thanks to
Ezio Melotti for that suggestion).

15 years ago#7112: Fix compilation warning in unicodetype_db.h
Amaury Forgeot d'Arc [Tue, 13 Oct 2009 21:29:34 +0000 (21:29 +0000)]
#7112: Fix compilation warning in unicodetype_db.h
makeunicodedata now generates double literals

15 years agoFix markup.
Georg Brandl [Tue, 13 Oct 2009 18:10:59 +0000 (18:10 +0000)]
Fix markup.

15 years agoVarious link, textual, and markup fixes
Andrew M. Kuchling [Tue, 13 Oct 2009 16:11:49 +0000 (16:11 +0000)]
Various link, textual, and markup fixes

15 years agoLink to PEP
Andrew M. Kuchling [Tue, 13 Oct 2009 15:49:33 +0000 (15:49 +0000)]
Link to PEP

15 years agoplatform we don't care about
Benjamin Peterson [Mon, 12 Oct 2009 01:26:07 +0000 (01:26 +0000)]
platform we don't care about

15 years agoUpdate Misc/README.
Georg Brandl [Sun, 11 Oct 2009 21:17:14 +0000 (21:17 +0000)]
Update Misc/README.

15 years agoAdd find_recursionlimit.py to README.
Georg Brandl [Sun, 11 Oct 2009 21:14:37 +0000 (21:14 +0000)]
Add find_recursionlimit.py to README.

15 years agoMove find_recursionlimit.py to Tools/scripts; it is out of place in Misc.
Georg Brandl [Sun, 11 Oct 2009 21:10:07 +0000 (21:10 +0000)]
Move find_recursionlimit.py to Tools/scripts; it is out of place in Misc.

15 years agoIssue #7084: Fix a (very unlikely) crash when printing a list from one
Antoine Pitrou [Sun, 11 Oct 2009 21:03:26 +0000 (21:03 +0000)]
Issue #7084: Fix a (very unlikely) crash when printing a list from one
thread, and mutating it from another one.  Patch by Scott Dial.

15 years agoFix broken links found by "make linkcheck". scipy.org seems to be done right now...
Georg Brandl [Sun, 11 Oct 2009 20:16:16 +0000 (20:16 +0000)]
Fix broken links found by "make linkcheck".  scipy.org seems to be done right now, so I could not verify links going there.

15 years agoAdd the Python FAQ lists to the documentation. Copied from sandbox/faq. Many thanks...
Georg Brandl [Sun, 11 Oct 2009 18:31:23 +0000 (18:31 +0000)]
Add the Python FAQ lists to the documentation.  Copied from sandbox/faq.  Many thanks to AMK for the preparation work.

15 years agoOverhaul of Demo/xml.
Georg Brandl [Sun, 11 Oct 2009 15:06:44 +0000 (15:06 +0000)]
Overhaul of Demo/xml.

15 years agoRemove ftpstats script, the daemon whose log files it reads is long gone.
Georg Brandl [Sun, 11 Oct 2009 14:49:37 +0000 (14:49 +0000)]
Remove ftpstats script, the daemon whose log files it reads is long gone.

15 years agoUpdate lpwatch script.
Georg Brandl [Sun, 11 Oct 2009 14:23:49 +0000 (14:23 +0000)]
Update lpwatch script.

15 years agoFix variable.
Georg Brandl [Sun, 11 Oct 2009 12:03:01 +0000 (12:03 +0000)]
Fix variable.

15 years agoUse getopt in script.py demo.
Georg Brandl [Sun, 11 Oct 2009 12:00:18 +0000 (12:00 +0000)]
Use getopt in script.py demo.

15 years agoSet missing executable property on scripts
Mark Dickinson [Sun, 11 Oct 2009 10:01:17 +0000 (10:01 +0000)]
Set missing executable property on scripts

15 years agoFix 'primes 0 1'
Mark Dickinson [Sun, 11 Oct 2009 09:35:57 +0000 (09:35 +0000)]
Fix 'primes 0 1'

15 years agoUpdate primes script.
Georg Brandl [Sun, 11 Oct 2009 08:48:28 +0000 (08:48 +0000)]
Update primes script.

15 years agoRemove useless script "mkrcs" and update README.
Georg Brandl [Sun, 11 Oct 2009 08:45:03 +0000 (08:45 +0000)]
Remove useless script "mkrcs" and update README.

15 years agoUpdate markov demo.
Georg Brandl [Sun, 11 Oct 2009 08:39:16 +0000 (08:39 +0000)]
Update markov demo.

15 years agoUpdate morse script, avoid globals, use iterators.
Georg Brandl [Sun, 11 Oct 2009 08:18:44 +0000 (08:18 +0000)]
Update morse script, avoid globals, use iterators.

15 years agoFixed Issue6894, urllib2 doesn't respect "no_proxy" environment
Senthil Kumaran [Sun, 11 Oct 2009 02:00:07 +0000 (02:00 +0000)]
Fixed Issue6894, urllib2 doesn't respect "no_proxy" environment

15 years agoModernize all around (dont ask me how useful that script is nowadays...)
Georg Brandl [Sat, 10 Oct 2009 22:26:45 +0000 (22:26 +0000)]
Modernize all around (dont ask me how useful that script is nowadays...)

15 years agoStyle fixes.
Georg Brandl [Sat, 10 Oct 2009 22:03:43 +0000 (22:03 +0000)]
Style fixes.

15 years agoModernize factorisation demo (mostly augassign.)
Georg Brandl [Sat, 10 Oct 2009 21:55:11 +0000 (21:55 +0000)]
Modernize factorisation demo (mostly augassign.)

15 years agoShow use of range() step argument nicely.
Georg Brandl [Sat, 10 Oct 2009 21:47:31 +0000 (21:47 +0000)]
Show use of range() step argument nicely.

15 years agoRemove outdated comment and fix a few style issues.
Georg Brandl [Sat, 10 Oct 2009 21:43:21 +0000 (21:43 +0000)]
Remove outdated comment and fix a few style issues.

15 years agoremove script which uses long gone module
Benjamin Peterson [Sat, 10 Oct 2009 21:15:58 +0000 (21:15 +0000)]
remove script which uses long gone module

15 years agoRemove unneeded "L" suffixes.
Georg Brandl [Sat, 10 Oct 2009 21:10:05 +0000 (21:10 +0000)]
Remove unneeded "L" suffixes.

15 years agoBring old demo up-to-date.
Georg Brandl [Sat, 10 Oct 2009 21:07:35 +0000 (21:07 +0000)]
Bring old demo up-to-date.

15 years agoIssue #7055: test___all__ now greedily detects all modules which have an
Antoine Pitrou [Sat, 10 Oct 2009 20:52:11 +0000 (20:52 +0000)]
Issue #7055: test___all__ now greedily detects all modules which have an
__all__ attribute, rather than using a hardcoded and incomplete list.

15 years agoIssue #7086: Added TCP support to SysLogHandler and tidied up some anachronisms in...
Vinay Sajip [Sat, 10 Oct 2009 20:32:36 +0000 (20:32 +0000)]
Issue #7086: Added TCP support to SysLogHandler and tidied up some anachronisms in the code.

15 years agoreplace has_key with 'in' operator
Benjamin Peterson [Fri, 9 Oct 2009 22:15:50 +0000 (22:15 +0000)]
replace has_key with 'in' operator

15 years agoreplace callable()
Benjamin Peterson [Fri, 9 Oct 2009 22:05:45 +0000 (22:05 +0000)]
replace callable()

15 years agoIssue #7082: When falling back to the MIME 'name' parameter, the
R. David Murray [Fri, 9 Oct 2009 21:50:54 +0000 (21:50 +0000)]
Issue #7082: When falling back to the MIME 'name' parameter, the
correct place to look for it is the Content-Type header.

Patch by Darren Worrall.

15 years agofix some coding style
Benjamin Peterson [Fri, 9 Oct 2009 21:48:14 +0000 (21:48 +0000)]
fix some coding style

15 years agohttp://bugs.python.org/issue7029
Kristján Valur Jónsson [Fri, 9 Oct 2009 14:32:19 +0000 (14:32 +0000)]
http://bugs.python.org/issue7029
a non-default timer wasn't actually used by the individual Tests.

15 years agodeath to old CVS keyword
Benjamin Peterson [Fri, 9 Oct 2009 03:11:36 +0000 (03:11 +0000)]
death to old CVS keyword

15 years agoIssue #7051: Clarify behaviour of 'g' and 'G'-style formatting.
Mark Dickinson [Thu, 8 Oct 2009 20:02:25 +0000 (20:02 +0000)]
Issue #7051:  Clarify behaviour of 'g' and 'G'-style formatting.

15 years agoUpdate decimal test data to the most recent set from Mike Cowlishaw.
Mark Dickinson [Thu, 8 Oct 2009 16:28:39 +0000 (16:28 +0000)]
Update decimal test data to the most recent set from Mike Cowlishaw.

15 years agoIssue #7078: _struct.__doc__ was being ignored. Import it into struct.
Mark Dickinson [Thu, 8 Oct 2009 15:54:10 +0000 (15:54 +0000)]
Issue #7078:  _struct.__doc__ was being ignored.  Import it into struct.
Also add description of '?' struct format character.  Thanks Gabriel
Genellina for the patch.

15 years agoEnsure that _scproxy gets build even when --disable-toolbox-glue
Ronald Oussoren [Thu, 8 Oct 2009 08:04:15 +0000 (08:04 +0000)]
Ensure that _scproxy gets build even when --disable-toolbox-glue
is specified on OSX. Fixes a regression in 2.6.3.

15 years agoIssue #7048: logb should round its result when that result doesn't fit
Mark Dickinson [Wed, 7 Oct 2009 19:22:05 +0000 (19:22 +0000)]
Issue #7048: logb should round its result when that result doesn't fit
into the available precision.  (Tests for this change are included in
the most recent set of testcases from the Decimal Specification site;
those testcases will be updated shortly.)

15 years agoAdd Anders Chrigstrom to Misc/ACKS for his work on unicodedata.
Amaury Forgeot d'Arc [Tue, 6 Oct 2009 20:02:09 +0000 (20:02 +0000)]
Add Anders Chrigstrom to Misc/ACKS for his work on unicodedata.

15 years ago#1571184: makeunicodedata.py now generates the functions _PyUnicode_ToNumeric,
Amaury Forgeot d'Arc [Tue, 6 Oct 2009 19:56:32 +0000 (19:56 +0000)]
#1571184: makeunicodedata.py now generates the functions _PyUnicode_ToNumeric,
_PyUnicode_IsLinebreak and _PyUnicode_IsWhitespace.

It now also parses the Unihan.txt for numeric values.

15 years agoRemove two notes
Andrew M. Kuchling [Mon, 5 Oct 2009 22:45:39 +0000 (22:45 +0000)]
Remove two notes

15 years agoBackport r73983: Document the thousands separator.
Andrew M. Kuchling [Mon, 5 Oct 2009 22:42:56 +0000 (22:42 +0000)]
Backport r73983: Document the thousands separator.

15 years agoUse standard comma punctuation; reword some sentences in the docs
Andrew M. Kuchling [Mon, 5 Oct 2009 22:32:48 +0000 (22:32 +0000)]
Use standard comma punctuation; reword some sentences in the docs

15 years agoReword sentence
Andrew M. Kuchling [Mon, 5 Oct 2009 22:31:11 +0000 (22:31 +0000)]
Reword sentence

15 years agoAdd various items
Andrew M. Kuchling [Mon, 5 Oct 2009 22:30:22 +0000 (22:30 +0000)]
Add various items

15 years agoNote side benefit of socket.create_connection()
Andrew M. Kuchling [Mon, 5 Oct 2009 21:25:35 +0000 (21:25 +0000)]
Note side benefit of socket.create_connection()

15 years agoDocument 'skip' parameter to constructor
Andrew M. Kuchling [Mon, 5 Oct 2009 21:25:03 +0000 (21:25 +0000)]
Document 'skip' parameter to constructor

15 years agoFix narkup
Andrew M. Kuchling [Mon, 5 Oct 2009 21:24:35 +0000 (21:24 +0000)]
Fix narkup

15 years agoWording fix
Andrew M. Kuchling [Mon, 5 Oct 2009 21:24:20 +0000 (21:24 +0000)]
Wording fix

15 years agoFix compilation warning on Windows, where size_t is 32bit but file offsets are 64bit.
Amaury Forgeot d'Arc [Mon, 5 Oct 2009 20:18:05 +0000 (20:18 +0000)]
Fix compilation warning on Windows, where size_t is 32bit but file offsets are 64bit.

15 years agoIssue #7058: Added save/restore for argv and os.environ to runtest_inner
R. David Murray [Mon, 5 Oct 2009 17:03:09 +0000 (17:03 +0000)]
Issue #7058: Added save/restore for argv and os.environ to runtest_inner
in regrtest, with warnings if the called test modifies them.

15 years agoIssue #7042: Fix test_signal failure on OS X 10.6 64-bit builds
Mark Dickinson [Sun, 4 Oct 2009 18:38:39 +0000 (18:38 +0000)]
Issue #7042:  Fix test_signal failure on OS X 10.6 64-bit builds
(and also, with luck, on the x86 FreeBSD buildbot), by making sure
that some user time is used in test_itimer_virtual.

15 years agotest logging
Benjamin Peterson [Sun, 4 Oct 2009 13:38:38 +0000 (13:38 +0000)]
test logging

15 years ago#7050 fix a SystemError when using tuple unpacking and augmented assignment
Benjamin Peterson [Sat, 3 Oct 2009 20:23:24 +0000 (20:23 +0000)]
#7050 fix a SystemError when using tuple unpacking and augmented assignment

15 years agonow uses the right exception type
Tarek Ziadé [Sat, 3 Oct 2009 14:52:33 +0000 (14:52 +0000)]
now uses the right exception type

15 years agoIssue #7028: Add note to hex() builtin docs pointing to float.hex().
Mark Dickinson [Sat, 3 Oct 2009 10:14:34 +0000 (10:14 +0000)]
Issue #7028:  Add note to hex() builtin docs pointing to float.hex().

15 years agoremoving the last remaning apply() calls
Tarek Ziadé [Sat, 3 Oct 2009 00:07:35 +0000 (00:07 +0000)]
removing the last remaning apply() calls

15 years ago#6516 added owner/group support for tarfiles in Distutils
Tarek Ziadé [Fri, 2 Oct 2009 23:49:48 +0000 (23:49 +0000)]
#6516 added owner/group support for tarfiles in Distutils

15 years agoAdd NEWS entry for r75180.
Georg Brandl [Thu, 1 Oct 2009 21:02:39 +0000 (21:02 +0000)]
Add NEWS entry for r75180.

15 years ago#7031: Add TestCase.assertIsInstance and negated method.
Georg Brandl [Thu, 1 Oct 2009 20:59:31 +0000 (20:59 +0000)]
#7031: Add TestCase.assertIsInstance and negated method.

15 years agoFix some weird whitespace and two other overlong lines.
Georg Brandl [Thu, 1 Oct 2009 20:11:14 +0000 (20:11 +0000)]
Fix some weird whitespace and two other overlong lines.

15 years agoSync the 2.x `io` docs with py3k, with a small note as to the distinction
Antoine Pitrou [Thu, 1 Oct 2009 17:08:03 +0000 (17:08 +0000)]
Sync the 2.x `io` docs with py3k, with a small note as to the distinction
between bytes streams and text streams.

15 years agoThat's self.env.unset(k) and not env.unset(k) I was heading back to the problem.
Senthil Kumaran [Thu, 1 Oct 2009 01:50:13 +0000 (01:50 +0000)]
That's self.env.unset(k) and not env.unset(k) I was heading back to the problem.

15 years agousing dict.unset(k) instead of del dict[k]. consistent with release26-maint
Senthil Kumaran [Thu, 1 Oct 2009 01:19:18 +0000 (01:19 +0000)]
using dict.unset(k) instead of del dict[k]. consistent with release26-maint

15 years agoFix for issue7026 test_urllib: unsetting missing 'env' variable.
Senthil Kumaran [Thu, 1 Oct 2009 01:07:03 +0000 (01:07 +0000)]
Fix for issue7026 test_urllib: unsetting missing 'env' variable.

15 years agoFix buggy accuracy test
Mark Dickinson [Wed, 30 Sep 2009 16:58:01 +0000 (16:58 +0000)]
Fix buggy accuracy test

15 years agoMention issue6972 in extractall docs about overwriting things outside of
Gregory P. Smith [Tue, 29 Sep 2009 21:56:31 +0000 (21:56 +0000)]
Mention issue6972 in extractall docs about overwriting things outside of
the supplied path.

15 years agoFix for issue6957: ensure that the OSX installer
Ronald Oussoren [Tue, 29 Sep 2009 19:34:13 +0000 (19:34 +0000)]
Fix for issue6957: ensure that the OSX installer
installs a version of Python that can build
extensions on OSX 10.6.

15 years ago#5329: fix os.popen* regression from 2.5: don't execute commands as a sequence
Philip Jenvey [Tue, 29 Sep 2009 19:10:15 +0000 (19:10 +0000)]
#5329: fix os.popen* regression from 2.5: don't execute commands as a sequence
through the shell. also document the correct subprocess replacement for this
case
patch from Jean-Paul Calderone and Jani Hakala

15 years agoIssue #7019: Unmarshalling of bad long data could produce unnormalized
Mark Dickinson [Tue, 29 Sep 2009 19:01:06 +0000 (19:01 +0000)]
Issue #7019:  Unmarshalling of bad long data could produce unnormalized
PyLongs.  Raise ValueError instead.

15 years agoIssue 7008: Better document str.title and show how to work around the apostrophe...
Raymond Hettinger [Tue, 29 Sep 2009 18:53:24 +0000 (18:53 +0000)]
Issue 7008: Better document str.title and show how to work around the apostrophe problem.

15 years agoIssue #6790: Make it possible again to pass an `array.array` to
Antoine Pitrou [Tue, 29 Sep 2009 17:48:18 +0000 (17:48 +0000)]
Issue #6790: Make it possible again to pass an `array.array` to
`httplib.HTTPConnection.send`. Patch by Kirk McDonald.

15 years ago* Update the Mac/README file. Add the list of OSX-specific configure options
Ronald Oussoren [Tue, 29 Sep 2009 13:00:44 +0000 (13:00 +0000)]
* Update the Mac/README file. Add the list of OSX-specific configure options
  to that README file with some explanation.

* Be more strict in the configure script: complain loudly when the user has
  specified invalid combinations of OSX-specific configure arguments.

  The error message refers to the Mac/README file for more information.

15 years agoIssue #7014: logging: Improved IronPython 2.6 compatibility.
Vinay Sajip [Tue, 29 Sep 2009 07:08:54 +0000 (07:08 +0000)]
Issue #7014: logging: Improved IronPython 2.6 compatibility.

15 years ago#6990: clear threading.local's key only after its thread state is removed:
Philip Jenvey [Tue, 29 Sep 2009 04:32:44 +0000 (04:32 +0000)]
#6990: clear threading.local's key only after its thread state is removed:
fixes local subclasses leaving old state around after a ref cycle GC which
could be recycled by new locals

15 years agoIssue #3366: Add gamma function to math module.
Mark Dickinson [Mon, 28 Sep 2009 18:54:55 +0000 (18:54 +0000)]
Issue #3366:  Add gamma function to math module.
(lgamma, erf and erfc to follow).

15 years agoApplying patches backported from 3.1, by Gregor Lingl.
R. David Murray [Mon, 28 Sep 2009 18:29:28 +0000 (18:29 +0000)]
Applying patches backported from 3.1, by Gregor Lingl.

15 years agoPrevent test_bad_address failure when a domain in the dns search
R. David Murray [Mon, 28 Sep 2009 16:57:45 +0000 (16:57 +0000)]
Prevent test_bad_address failure when a domain in the dns search
path implements a '*' default rule.  Also update comment with
a more complete explanation of the difficulties inherent in
the test.

15 years agoStyle/consistency/nano-optimization nit: replace occurrences of
Mark Dickinson [Mon, 28 Sep 2009 16:52:40 +0000 (16:52 +0000)]
Style/consistency/nano-optimization nit:  replace occurrences of
  (high_bits << PyLong_SHIFT) + low_bits with
  (high_bits << PyLong_SHIFT) | low_bits
in Objects/longobject.c.  Motivation:
 - shouldn't unnecessarily mix bit ops with arithmetic ops (style)
 - this pattern should be spelt the same way thoughout (consistency)
 - it's very very very slightly faster: no need to worry about
   carries to the high digit (nano-optimization).

15 years agohttp://bugs.python.org/issue6836
Kristján Valur Jónsson [Mon, 28 Sep 2009 15:56:25 +0000 (15:56 +0000)]
http://bugs.python.org/issue6836
A missing 'const' wasn't detected by Visual Studio.

15 years agohttp://bugs.python.org/issue6836
Kristján Valur Jónsson [Mon, 28 Sep 2009 13:12:38 +0000 (13:12 +0000)]
http://bugs.python.org/issue6836
The debug memory api now keeps track of which external API (PyMem_* or PyObject_*) was used to allocate each block and treats any API violation as an error.  Added separate _PyMem_DebugMalloc functions for the Py_Mem API instead of having it use the _PyObject_DebugMalloc functions.

15 years agohttp://bugs.python.org/issue6836
Kristján Valur Jónsson [Mon, 28 Sep 2009 13:08:48 +0000 (13:08 +0000)]
http://bugs.python.org/issue6836
A memory block allocated with one API was being handed over to an object that used another API to release it.

15 years agoPatch from Thomas Barr so that csv.Sniffer will set doublequote property.
Skip Montanaro [Mon, 28 Sep 2009 02:12:27 +0000 (02:12 +0000)]
Patch from Thomas Barr so that csv.Sniffer will set doublequote property.
Closes issue 6606.