]> granicus.if.org Git - python/log
python
16 years ago#3556: test_raiseMemError consumes an insane amount of memory
Antoine Pitrou [Sun, 17 Aug 2008 17:01:49 +0000 (17:01 +0000)]
#3556: test_raiseMemError consumes an insane amount of memory

16 years agobackport r65723: strengthen test_os.test_closerange
Antoine Pitrou [Sun, 17 Aug 2008 14:43:41 +0000 (14:43 +0000)]
backport r65723: strengthen test_os.test_closerange

16 years agoBackport r65661, r65760: Issue #3575: Incremental decoder's decode
Hirokazu Yamamoto [Sun, 17 Aug 2008 13:10:46 +0000 (13:10 +0000)]
Backport r65661, r65760: Issue #3575: Incremental decoder's decode
function now takes bytearray by using 's*' instead of 't#'.

16 years agofix ZipFile.testzip() to work with very large embedded files
Antoine Pitrou [Sun, 17 Aug 2008 13:06:29 +0000 (13:06 +0000)]
fix ZipFile.testzip() to work with very large embedded files

16 years agoI forgot to update NEWS.
Hirokazu Yamamoto [Sun, 17 Aug 2008 09:46:56 +0000 (09:46 +0000)]
I forgot to update NEWS.

16 years agoIssue #2222: Fixed reference leak when occured os.rename()
Hirokazu Yamamoto [Sun, 17 Aug 2008 09:19:52 +0000 (09:19 +0000)]
Issue #2222: Fixed reference leak when occured os.rename()
fails unicode conversion on 2nd parameter. (windows only)

16 years agoUpdate distutils so that it triggers no warnings when run under -3.
Brett Cannon [Sun, 17 Aug 2008 04:16:04 +0000 (04:16 +0000)]
Update distutils so that it triggers no warnings when run under -3.

16 years agoIssue 2464. Supports a malformation in the URL received
Facundo Batista [Sun, 17 Aug 2008 03:38:39 +0000 (03:38 +0000)]
Issue 2464. Supports a malformation in the URL received
in a redirect.

16 years agouhh PySTEntry->ste_unoptimized has to be exposed too
Benjamin Peterson [Sun, 17 Aug 2008 02:23:43 +0000 (02:23 +0000)]
uhh PySTEntry->ste_unoptimized has to be exposed too

16 years agofix compile errors
Benjamin Peterson [Sun, 17 Aug 2008 01:27:30 +0000 (01:27 +0000)]
fix compile errors

16 years agoa few improvements
Benjamin Peterson [Sun, 17 Aug 2008 01:17:15 +0000 (01:17 +0000)]
a few improvements

16 years agoexpose PySTEntry.nested so the symtable module will work
Benjamin Peterson [Sun, 17 Aug 2008 01:09:17 +0000 (01:09 +0000)]
expose PySTEntry.nested so the symtable module will work

16 years agoMake test_ossaudiodev work.
Antoine Pitrou [Sun, 17 Aug 2008 00:36:03 +0000 (00:36 +0000)]
Make test_ossaudiodev work.

16 years agoPySTEntry's constructor is static; there's no point in a fancy API name
Benjamin Peterson [Sat, 16 Aug 2008 23:29:40 +0000 (23:29 +0000)]
PySTEntry's constructor is static; there's no point in a fancy API name

16 years agoReview symtable docs.
Georg Brandl [Sat, 16 Aug 2008 22:37:05 +0000 (22:37 +0000)]
Review symtable docs.

16 years agoinclude filename and line number in SyntaxError
Benjamin Peterson [Sat, 16 Aug 2008 22:11:33 +0000 (22:11 +0000)]
include filename and line number in SyntaxError

16 years agoSilence DeprecationWarning raised by mimetools and rfc822 in cgi.
Brett Cannon [Sat, 16 Aug 2008 22:00:27 +0000 (22:00 +0000)]
Silence DeprecationWarning raised by mimetools and rfc822 in cgi.

16 years agoSilence the DeprecationWarning raised in httplib when mimetools is imported.
Brett Cannon [Sat, 16 Aug 2008 21:56:03 +0000 (21:56 +0000)]
Silence the DeprecationWarning raised in httplib when mimetools is imported.

16 years agoSilence the DeprecationWarning raised by importing mimetools in BaseHTTPServer.
Brett Cannon [Sat, 16 Aug 2008 21:47:07 +0000 (21:47 +0000)]
Silence the DeprecationWarning raised by importing mimetools in BaseHTTPServer.
This does have an unfortunate side-effect of silencing the warning for all
subsequent code that imports mimetools as well since the warning is only
executed upon the first import of mimetools.

16 years agoadd some documentation for symtable
Benjamin Peterson [Sat, 16 Aug 2008 21:04:16 +0000 (21:04 +0000)]
add some documentation for symtable

16 years ago#3424 rearrange the order of tests in imghdr to place more common types first
Benjamin Peterson [Sat, 16 Aug 2008 16:29:02 +0000 (16:29 +0000)]
#3424 rearrange the order of tests in imghdr to place more common types first

16 years agoIssue #2776: fixed small issue when handling an URL with double slash
Facundo Batista [Sat, 16 Aug 2008 14:44:07 +0000 (14:44 +0000)]
Issue #2776: fixed small issue when handling an URL with double slash
after a 302 response in the case of not going through a proxy.

16 years agonote how os.utime should be used for emulating touch
Benjamin Peterson [Sat, 16 Aug 2008 03:13:07 +0000 (03:13 +0000)]
note how os.utime should be used for emulating touch

16 years agofix markup
Benjamin Peterson [Sat, 16 Aug 2008 03:02:41 +0000 (03:02 +0000)]
fix markup

16 years agoMerged revisions 65397 via svnmerge from
Benjamin Peterson [Fri, 15 Aug 2008 23:51:24 +0000 (23:51 +0000)]
Merged revisions 65397 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r65397 | collin.winter | 2008-08-01 22:39:06 -0500 (Fri, 01 Aug 2008) | 5 lines

  Patch #3480 by Nick Edds.

  Dramatically simplifies the fix_imports pattern, resulting in a reduction of the test_all_fixers runtime from 122+ secs to 59 secs (a good predictor of 2to3 performance).
........

16 years agodocument that waitpid raises OSError
Gregory P. Smith [Fri, 15 Aug 2008 23:14:00 +0000 (23:14 +0000)]
document that waitpid raises OSError

16 years ago#2676: email/message.py [Message.get_content_type]: Trivial regex hangs on pathologic...
Antoine Pitrou [Fri, 15 Aug 2008 21:03:21 +0000 (21:03 +0000)]
#2676: email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input

16 years ago#3558: Attribute reference binds more tightly than subscription and call.
Georg Brandl [Fri, 15 Aug 2008 18:35:09 +0000 (18:35 +0000)]
#3558: Attribute reference binds more tightly than subscription and call.

16 years agoIssue #3476: make BufferedReader and BufferedWriter thread-safe
Antoine Pitrou [Thu, 14 Aug 2008 21:04:30 +0000 (21:04 +0000)]
Issue #3476: make BufferedReader and BufferedWriter thread-safe

16 years agoDisable the test until I have one that works.
Thomas Heller [Thu, 14 Aug 2008 20:19:18 +0000 (20:19 +0000)]
Disable the test until I have one that works.

16 years agoFix memory leak: Always DECREF obj in PyBuffer_Release.
Martin v. Löwis [Thu, 14 Aug 2008 20:12:06 +0000 (20:12 +0000)]
Fix memory leak: Always DECREF obj in PyBuffer_Release.

16 years agoTry to fix the test on 64-bit platforms.
Thomas Heller [Thu, 14 Aug 2008 20:04:38 +0000 (20:04 +0000)]
Try to fix the test on 64-bit platforms.

16 years agoissue #3554: ctypes.string_at and ctypes.wstring_at must use the
Thomas Heller [Thu, 14 Aug 2008 19:10:48 +0000 (19:10 +0000)]
issue #3554: ctypes.string_at and ctypes.wstring_at must use the
pythonapi calling convention so that the GIL is held and error return
values are checked.

16 years agoIssue 1432. Fixes a bug caused because of the evolution
Facundo Batista [Thu, 14 Aug 2008 16:51:00 +0000 (16:51 +0000)]
Issue 1432. Fixes a bug caused because of the evolution
of the RFC that describes the behaviour. Note that we now
have the same behaviour than the current browsers.

16 years agoProperly INCREF reference in Py_buffer.
Martin v. Löwis [Thu, 14 Aug 2008 15:56:07 +0000 (15:56 +0000)]
Properly INCREF reference in Py_buffer.

16 years agoMake obj an owned reference in Py_buffer; this checkin
Martin v. Löwis [Thu, 14 Aug 2008 15:54:27 +0000 (15:54 +0000)]
Make obj an owned reference in Py_buffer; this checkin
was missing from the patch for #3139.

16 years agoAdded _multiprocessing module support. (VC6)
Hirokazu Yamamoto [Thu, 14 Aug 2008 11:26:34 +0000 (11:26 +0000)]
Added _multiprocessing module support. (VC6)

16 years agoFix markup for various binary operation examples where the operands were bolded
Brett Cannon [Thu, 14 Aug 2008 05:55:18 +0000 (05:55 +0000)]
Fix markup for various binary operation examples where the operands were bolded
and the operator was made literal, leading to non-valid reST. Changed to have
the entire expression just be a literal bit of text.

16 years agoFixed test_distutils error (test_build_ext) on VC6.
Hirokazu Yamamoto [Thu, 14 Aug 2008 05:50:43 +0000 (05:50 +0000)]
Fixed test_distutils error (test_build_ext) on VC6.

16 years agoSilence the DeprecationWarning of rfc822 triggered by its importation in
Brett Cannon [Thu, 14 Aug 2008 05:00:03 +0000 (05:00 +0000)]
Silence the DeprecationWarning of rfc822 triggered by its importation in
mimetools.

This has an unfortunate side-effect of potentially not letting any warning
about rfc822's deprecation be seen by user-visible code if rfc822 is not
imported before mimetools. This is because modules are cached in sys.modules
and thus do not have their deprecation triggered more than once. But this
silencing would have happened by other code that silences the use of mimetools
or rfc822 anyway in the stdlib or user code, and thus seems justified to be
done here.

16 years agoIssue #2065: VC6 related fix.
Hirokazu Yamamoto [Thu, 14 Aug 2008 01:33:44 +0000 (01:33 +0000)]
Issue #2065: VC6 related fix.

- PC/VC6/_bsddb.dsp:
    removed '/nodefaultlib:"msvcrt"' to fix linker error.

- PC/VC6/_msi.dsp, PC/VC6/pcbuild.dsw:
    added new module support.

- PC/VC6/_sqlite3.dsp:
    /D "MODULE_NAME=\"sqlite3\""
    caused extra leading space like
    #define MODULE_NAME " sqlite3"
    so uses
    /D MODULE_NAME=\"sqlite3\"
    instead.

- PC/VC6/python.dsp:
    changed stack size to 2MB to avoid stack overflow on
    some tests.

16 years agoAdd Hirokazu Yamamoto.
Martin v. Löwis [Tue, 12 Aug 2008 20:45:21 +0000 (20:45 +0000)]
Add Hirokazu Yamamoto.

16 years agoupdate ssl documentation
Bill Janssen [Tue, 12 Aug 2008 17:09:57 +0000 (17:09 +0000)]
update ssl documentation

16 years agoremove duplicate close() from ssl.py; expose unwrap and add test for it
Bill Janssen [Tue, 12 Aug 2008 16:31:21 +0000 (16:31 +0000)]
remove duplicate close() from ssl.py; expose unwrap and add test for it

16 years agoIssue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple,
Martin v. Löwis [Tue, 12 Aug 2008 14:49:50 +0000 (14:49 +0000)]
Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple,
by denying s# to parse objects that have a releasebuffer procedure,
and introducing s*.

More module might need to get converted to use s*.

16 years agoAnother fix for 4-way universal builds, use the right #ifndef guard
Ronald Oussoren [Tue, 12 Aug 2008 12:41:45 +0000 (12:41 +0000)]
Another fix for 4-way universal builds, use the right #ifndef guard
to detect the OSX 10.5 SDK.

16 years agoFix typo in the `arch` commandline
Ronald Oussoren [Tue, 12 Aug 2008 12:29:13 +0000 (12:29 +0000)]
Fix typo in the `arch` commandline

16 years agoFix the connection refused error part of issue 3419, use errno module instead of...
Jesse Noller [Mon, 11 Aug 2008 19:00:15 +0000 (19:00 +0000)]
Fix the connection refused error part of issue 3419, use errno module instead of a static list of possible connection refused messages.

16 years ago#3134: shutil referenced undefined WindowsError symbol
Antoine Pitrou [Mon, 11 Aug 2008 17:21:36 +0000 (17:21 +0000)]
#3134: shutil referenced undefined WindowsError symbol

16 years agoIssue 2235: Py3k warnings are now emitted for classes that will no longer inherit...
Nick Coghlan [Mon, 11 Aug 2008 15:45:58 +0000 (15:45 +0000)]
Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.

16 years agoRemove the fqdn call for issue 3270
Jesse Noller [Mon, 11 Aug 2008 14:28:07 +0000 (14:28 +0000)]
Remove the fqdn call for issue 3270

16 years ago#3540: fix exception name.
Georg Brandl [Mon, 11 Aug 2008 10:27:31 +0000 (10:27 +0000)]
#3540: fix exception name.

16 years ago- Issue #3537: Fix an assertion failure when an empty but presized dict
Georg Brandl [Mon, 11 Aug 2008 09:07:59 +0000 (09:07 +0000)]
- Issue #3537: Fix an assertion failure when an empty but presized dict
  object was stored in the freelist.

16 years agoIssue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
Robert Schuppenies [Sun, 10 Aug 2008 11:01:53 +0000 (11:01 +0000)]
Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
menu entries were not deleted.

16 years agoSilence warnings in csv about using reduce() when run under -3 by using
Brett Cannon [Sat, 9 Aug 2008 23:39:11 +0000 (23:39 +0000)]
Silence warnings in csv about using reduce() when run under -3 by using
functools.reduce() instead.

16 years agoUse functools.reduce() in difflib instead of __builtin__.reduce() to silence
Brett Cannon [Sat, 9 Aug 2008 23:34:11 +0000 (23:34 +0000)]
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
warnings when running under -3.

16 years agoCopy reduce() to _functools so to have functools.reduce() not raise a warning
Brett Cannon [Sat, 9 Aug 2008 23:30:55 +0000 (23:30 +0000)]
Copy reduce() to _functools so to have functools.reduce() not raise a warning
from usage under -3.

16 years agoSuppress the warning in asynchat from using buffer() when running udner -3.
Brett Cannon [Sat, 9 Aug 2008 23:06:16 +0000 (23:06 +0000)]
Suppress the warning in asynchat from using buffer() when running udner -3.
Naively removing the usage causes a large number of test failures, so it was
just easier to suppress the warning.

16 years agomove NEWS entry to the appropriate section (oops!)
Antoine Pitrou [Sat, 9 Aug 2008 17:27:23 +0000 (17:27 +0000)]
move NEWS entry to the appropriate section (oops!)

16 years ago#3205: bz2 iterator fails silently on MemoryError
Antoine Pitrou [Sat, 9 Aug 2008 17:22:25 +0000 (17:22 +0000)]
#3205: bz2 iterator fails silently on MemoryError

16 years agoAdd news item about _sre.compile() re-bytecode validator.
Guido van Rossum [Sat, 9 Aug 2008 14:55:34 +0000 (14:55 +0000)]
Add news item about _sre.compile() re-bytecode validator.

16 years agoFix slightly misleading statement in the NEWS file.
Antoine Pitrou [Sat, 9 Aug 2008 12:43:23 +0000 (12:43 +0000)]
Fix slightly misleading statement in the NEWS file.

16 years agoaccept issue 3436
Skip Montanaro [Fri, 8 Aug 2008 22:52:51 +0000 (22:52 +0000)]
accept issue 3436

16 years agoRemove mention of backquotes in the tutorial.
Georg Brandl [Fri, 8 Aug 2008 15:34:34 +0000 (15:34 +0000)]
Remove mention of backquotes in the tutorial.

16 years ago#3519: callee is an expression too.
Georg Brandl [Fri, 8 Aug 2008 06:42:20 +0000 (06:42 +0000)]
#3519: callee is an expression too.

16 years agoRemove buffer() usage in the socket module by just slicing directly on the
Brett Cannon [Fri, 8 Aug 2008 04:27:28 +0000 (04:27 +0000)]
Remove buffer() usage in the socket module by just slicing directly on the
object. This removes all warnings for the module caused by running under -3.

16 years agoRemove warnings generated for the suprocess module when run under -3. Required
Brett Cannon [Fri, 8 Aug 2008 04:19:32 +0000 (04:19 +0000)]
Remove warnings generated for the suprocess module when run under -3. Required
commenting out True/False compatbility stuff, remove a use of apply(), and
remove a use of buffer() (just pulled the solution used in 3.0 which is direct
slicing).

16 years agoChange the warning emitted for using the buffer() object; memoryview() in 3.0
Brett Cannon [Fri, 8 Aug 2008 04:15:53 +0000 (04:15 +0000)]
Change the warning emitted for using the buffer() object; memoryview() in 3.0
is not an equivalent.

16 years agoPatch by Ian Charnas from issue 3517.
Guido van Rossum [Thu, 7 Aug 2008 18:51:38 +0000 (18:51 +0000)]
Patch by Ian Charnas from issue 3517.
Add F_FULLFSYNC if it exists (OS X only so far).

16 years ago#1288615: Python code.interact() and non-ASCII input
Antoine Pitrou [Thu, 7 Aug 2008 18:42:40 +0000 (18:42 +0000)]
#1288615: Python code.interact() and non-ASCII input

16 years agoAdd some items
Andrew M. Kuchling [Thu, 7 Aug 2008 01:47:34 +0000 (01:47 +0000)]
Add some items

16 years agoAdd imp.reload(). This to help with transitioning to 3.0 the reload() built-in
Brett Cannon [Wed, 6 Aug 2008 22:28:09 +0000 (22:28 +0000)]
Add imp.reload(). This to help with transitioning to 3.0 the reload() built-in
has been removed there.

16 years agoRemove duplicate import
Mark Dickinson [Wed, 6 Aug 2008 21:36:57 +0000 (21:36 +0000)]
Remove duplicate import

16 years agoDocstring typo
Mark Dickinson [Wed, 6 Aug 2008 20:12:30 +0000 (20:12 +0000)]
Docstring typo

16 years agoFix longstringitem definition. #3505.
Georg Brandl [Wed, 6 Aug 2008 17:20:41 +0000 (17:20 +0000)]
Fix longstringitem definition. #3505.

16 years agoTracker issue 3487: sre "bytecode" verifier.
Guido van Rossum [Tue, 5 Aug 2008 03:39:21 +0000 (03:39 +0000)]
Tracker issue 3487: sre "bytecode" verifier.

This is a verifier for the binary code used by the _sre module (this
is often called bytecode, though to distinguish it from Python bytecode
I put it in quotes).

I wrote this for Google App Engine, and am making the patch available as
open source under the Apache 2 license.  Below are the copyright
statement and license, for completeness.

# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

It's not necessary to include these copyrights and bytecode in the
source file.  Google has signed a contributor's agreement with the PSF
already.

16 years ago#3367: revert rev. 65539: this change causes test_parser to fail
Andrew M. Kuchling [Tue, 5 Aug 2008 02:05:23 +0000 (02:05 +0000)]
#3367: revert rev. 65539: this change causes test_parser to fail

16 years ago#3367 from Kristjan Valur Jonsson:
Andrew M. Kuchling [Tue, 5 Aug 2008 01:38:08 +0000 (01:38 +0000)]
#3367 from Kristjan Valur Jonsson:
If a PyTokenizer_FromString() is called with an empty string, the
tokenizer's line_start member never gets initialized.  Later, it is
compared with the token pointer 'a' in parsetok.c:193 and that behavior
can result in undefined behavior.

16 years agoBug 3228: take a test from Niels Gustaebel's patch, and based on his patch, check...
Andrew M. Kuchling [Tue, 5 Aug 2008 01:00:57 +0000 (01:00 +0000)]
Bug 3228: take a test from Niels Gustaebel's patch, and based on his patch, check for having os.stat available

16 years agoAdd a note about all the modules/packages changed to silence -3 warnings. More
Brett Cannon [Mon, 4 Aug 2008 21:52:25 +0000 (21:52 +0000)]
Add a note about all the modules/packages changed to silence -3 warnings. More
changes are needed once some decisions are made, but this is the work up to this
point.

16 years agoRemove use of callable() from pickle to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:34:34 +0000 (21:34 +0000)]
Remove use of callable() from pickle to silence warnings under -3.

16 years agoRemove tuple parameter unpacking in aifc to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:33:00 +0000 (21:33 +0000)]
Remove tuple parameter unpacking in aifc to silence warnings under -3.

16 years agoSilence warnings under -3 triggered by wsgiref.
Brett Cannon [Mon, 4 Aug 2008 21:30:53 +0000 (21:30 +0000)]
Silence warnings under -3 triggered by wsgiref.

16 years agoIssue #1481296: (again!) Make conversion of a float NaN to an int or
Mark Dickinson [Mon, 4 Aug 2008 21:30:09 +0000 (21:30 +0000)]
Issue #1481296: (again!) Make conversion of a float NaN to an int or
long raise ValueError instead of returning 0.  Also, change the error
message for conversion of an infinity to an integer, replacing 'long' by
'integer', so that it's appropriate for both long(float('inf')) and
int(float('inf')).

16 years agoRemove a use of callable() from Tkinter to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:24:43 +0000 (21:24 +0000)]
Remove a use of callable() from Tkinter to silence warnings under -3.

16 years agoRemove a dict.has_key() and list.sort(cmp=) usage from tarfile to silence
Brett Cannon [Mon, 4 Aug 2008 21:23:07 +0000 (21:23 +0000)]
Remove a dict.has_key() and list.sort(cmp=) usage from tarfile to silence
warnings under -3.

16 years agoRemove usage of apply() in sqlite3 to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:19:41 +0000 (21:19 +0000)]
Remove usage of apply() in sqlite3 to silence warnings under -3.

16 years agoRemove dict.has_key() usage in the shelve module to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:17:15 +0000 (21:17 +0000)]
Remove dict.has_key() usage in the shelve module to silence warnings under -3.

16 years agoRemove dict.has_key() usage in xml.sax to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:10:50 +0000 (21:10 +0000)]
Remove dict.has_key() usage in xml.sax to silence warnings under -3.

16 years agoRemove the use of callable() in re to silence warnings under -3.
Brett Cannon [Mon, 4 Aug 2008 21:07:59 +0000 (21:07 +0000)]
Remove the use of callable() in re to silence warnings under -3.

16 years agomore cleanup ups of the recently added warnings in the subprocess docs.
Gregory P. Smith [Mon, 4 Aug 2008 18:34:07 +0000 (18:34 +0000)]
more cleanup ups of the recently added warnings in the subprocess docs.

16 years agoAdd missing NEWS entry for r65487
Nick Coghlan [Mon, 4 Aug 2008 12:47:17 +0000 (12:47 +0000)]
Add missing NEWS entry for r65487

16 years agoIssue 643841: better documentation of the special method lookup process, especially...
Nick Coghlan [Mon, 4 Aug 2008 12:40:59 +0000 (12:40 +0000)]
Issue 643841: better documentation of the special method lookup process, especially for new-style classes. Also removes the warnings about not being authoritative for new-style classes - the language reference actually covers those fairly well now (albeit in a fashion that isn't always particularly easy to follow).

16 years agoAdds a sanity check to avoid a *very rare* infinite loop due to a corrupt tls
Gregory P. Smith [Mon, 4 Aug 2008 07:33:37 +0000 (07:33 +0000)]
Adds a sanity check to avoid a *very rare* infinite loop due to a corrupt tls
key list data structure in the thread startup path.

This change is a companion to r60148 which already successfully dealt with a
similar issue on thread shutdown.

In particular this loop has been observed happening from this call path:
 #0  in find_key ()
 #1  in PyThread_set_key_value ()
 #2  in _PyGILState_NoteThreadState ()
 #3  in PyThreadState_New ()
 #4  in t_bootstrap ()
 #5  in pthread_start_thread ()

I don't know how this happens but it does, *very* rarely.  On more than
one hardware platform.  I have not been able to reproduce it manually.
(A flaky mutex implementation on the system in question is one hypothesis).

As with r60148, the spinning we managed to observe in the wild was due to a
single list element pointing back upon itself.

16 years agoClarify the meaning of the select() parameters and sync
Georg Brandl [Mon, 4 Aug 2008 07:31:50 +0000 (07:31 +0000)]
Clarify the meaning of the select() parameters and sync
names with docstring.

16 years agoTemplate is always "tmp".
Georg Brandl [Mon, 4 Aug 2008 07:23:29 +0000 (07:23 +0000)]
Template is always "tmp".

16 years agoFix markup.
Georg Brandl [Mon, 4 Aug 2008 06:29:36 +0000 (06:29 +0000)]
Fix markup.

16 years agoBug 3228: Explicitly supply the file mode to avoid creating executable files,
Andrew M. Kuchling [Mon, 4 Aug 2008 01:43:43 +0000 (01:43 +0000)]
Bug 3228: Explicitly supply the file mode to avoid creating executable files,
and add corresponding tests.
Possible 2.5 backport candidate

16 years agoissue1606: Add warnings to the subprocess documentation about common pitfalls
Gregory P. Smith [Mon, 4 Aug 2008 01:03:50 +0000 (01:03 +0000)]
issue1606: Add warnings to the subprocess documentation about common pitfalls
of using pipes that cause deadlocks.

16 years agoRemove assignment to True/False and use of dict.has_key() to silence warnings
Brett Cannon [Mon, 4 Aug 2008 00:50:11 +0000 (00:50 +0000)]
Remove assignment to True/False and use of dict.has_key() to silence warnings
while running under -3.