[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-11 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here is the patch. -- keywords: +needs review, patch stage: unit test needed - patch review Added file: http://bugs.python.org/file18474/issue9543.diff ___ Python tracker rep...@bugs.python.org

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: I said warn about the use of non-builtin modules, not disallow their use. AFAIK, the purpose of the exercise is to reduce the number of non-builtin modules being

[issue9568] test_urllib2_localnet fails on OS X 10.3

2010-08-11 Thread Ned Deily
New submission from Ned Deily n...@acm.org: Issue8455 documents a problem which resulted in test_urllib2_libnet failing on OS X with Connection refused errors. r82150, r82280, r82281, and r82282 eliminated the test failures for all active branches when running on OS X 10.4 through 10.6.

[issue9568] test_urllib2_localnet fails on OS X 10.3

2010-08-11 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file18476/issue-proxy-10-3-py3k-31.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9568 ___

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-08-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The problem still exists on OS X 10.3. See Issue9568 for patches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8455 ___

[issue9568] test_urllib2_localnet fails on OS X 10.3

2010-08-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Barry: I agree with Ned that this is low-risk patch. The patch changes a default return value in a code-path that is used on OSX 10.3 to make it the same as the default value on the code-path for other OSX releases. I'm therefore +1

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-08-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The fix in r80243 for 27 and similar fixes for 26, 31, and py3k do prevent crashes on OS X 10.3 when using network proxies so this issue can be closed. However, the problem I mentioned above with changing the default sense which caused tests to fail

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: No, what I'm proposing is to make import locale safe during boot time. By separating out some functions into a separate module which is then supposed to be used by the boot process, you don't really solve the problem. I do, and my

[issue2443] Define Py_VA_COPY macro as a cross-platform replacement for gcc __va_copy

2010-08-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks like a good idea. Don't other compilers have __va_copy equivalents? Apparently, C99 defines va_copy(), which we could use conditionally. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, I'm not sure there's much point since the name attribute is currently read-only: f = open(1, wb) f.name = foo Traceback (most recent call last): File stdin, line 1, in module AttributeError: attribute 'name' of '_io.BufferedWriter'

[issue9558] build_ext fails on VS8.0

2010-08-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: tarek - eric.araujo resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9558 ___

[issue3244] multipart/form-data encoding

2010-08-11 Thread Chris Waigl
Changes by Chris Waigl chris.wa...@gmail.com: -- nosy: +Chris.Waigl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue4708] os.pipe should return inheritable descriptors (Windows)

2010-08-11 Thread Daniel Goertzen
Changes by Daniel Goertzen daniel.goert...@gmail.com: -- nosy: +Daniel.Goertzen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4708 ___ ___

[issue9550] BufferedReader may issue additional read, may cause hang when backed by blocking socket

2010-08-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The original patch wasn't good for all cases. I corrected it, added some tests and committed in r83944 (py3k), r83945 (3.1) and r83946 (2.7). Thank you! -- resolution: - fixed stage: needs patch - committed/rejected status: open -

[issue6081] str.format_from_mapping()

2010-08-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6081 ___ ___ Python-bugs-list

[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-08-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Your code is fine (though to my tastes a bit verbose...if it were me I'd just put the code in the setUp and tearDown methods and hardcode 'COLUMNS' (it isn't like the name COLUMNS is going to change)...but that's just personal style).

[issue6186] test_thread occasionally reports unhandled exceptions on OS X

2010-08-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I've seen no further instances of this problem since the fixes for Issue7194 have been checked in. Let's call it fixed. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7037] test_asynchat fails on os x 10.6

2010-08-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: As Mark has ported the fix for Issue5798 to 2.6 (thanks!), this can be closed, too. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7037

[issue8457] buildbot: test_asynchat and test_smtplib failures on Tiger: [Errno 9] Bad file descriptor

2010-08-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: As Mark has ported the fix for Issue5798 to 2.6, this can be closed, too. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8457

[issue7219] Unhelpful error message when a distutils package install fails due to a permissions error

2010-08-11 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Output below, first without DISTUTILS_DEBUG (showing the not very useful default message) and second with. (The actual exception is Access to the path 'C:\Program Files\IronPython 2.7\Lib\site-packages\mock.py' is denied.) This is with

[issue8457] buildbot: test_asynchat and test_smtplib failures on Tiger: [Errno 9] Bad file descriptor

2010-08-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Ned! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8457 ___

[issue7037] test_asynchat fails on os x 10.6

2010-08-11 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7037 ___

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2010-08-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Assigning to myself because I intend to work on this. More questions: does the error occur on the 10.6 machine you used to do the build or another machine? Is MACOSX_DEPLOYMENT_TARGET set in the environment when you run the command

[issue9055] test_issue_8959_b fails when run from a service

2010-08-11 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: In the interests of moving this forward, I've committed the one-line removal of the assertion in r83948. Hopefully that will bring this buildbot back to life. -- ___ Python tracker

[issue2443] Define Py_VA_COPY macro as a cross-platform replacement for gcc __va_copy

2010-08-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I updated the patch for 3.x. I agree that using va_copy where available makes sense, but let's leave this type of improvements for the future. -- Added file: http://bugs.python.org/file18477/issue2443-py3k.diff

[issue9569] Add tests for posix.mknod() and posix.mkfifo()

2010-08-11 Thread David Watson
New submission from David Watson bai...@users.sourceforge.net: Attaching simple tests for these functions, which aren't currently tested. -- components: Extension Modules files: test-mknod-mkfifo-3.x.diff keywords: patch messages: 113609 nosy: baikie priority: normal severity: normal

[issue9569] Add tests for posix.mknod() and posix.mkfifo()

2010-08-11 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: Added file: http://bugs.python.org/file18479/test-mknod-mkfifo-2.x.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9569 ___

[issue9570] PEP 383: os.mknod() and os.mkfifo() do not accept surrogateescape arguments

2010-08-11 Thread David Watson
New submission from David Watson bai...@users.sourceforge.net: These functions still use the s format for their arguments; the attached patch fixes them to use PyUnicode_FSConverter() in 3.2. Some simple tests for these functions (not for PEP 383 behaviour) are at issue #9569. --

[issue6081] str.format_from_mapping()

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: This can be done for Py3.2. It completes needed functionality for string formatting which is something we all want to take hold and is necessary for the 3.x series to succeed. -- versions: +Python 3.2 -Python 3.3

[issue9446] urllib2 tests fail when offline

2010-08-11 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r83950 by adding a wrapper function for catching gaierror. It was already present in py3k. Thanks for the bug report. -- resolution: accepted - fixed stage: - committed/rejected status: open - closed

[issue9570] PEP 383: os.mknod() and os.mkfifo() do not accept surrogateescape arguments

2010-08-11 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9570 ___ ___ Python-bugs-list

[issue1498363] Improve super() objects support for implicit method calls

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Am rejecting this feature request because of the concerns mentioned in the post on 4/3. The current requirement for explicit forwarding may be slightly inconvenient to type but it does add provide clarity that the method

[issue9569] Add tests for posix.mknod() and posix.mkfifo()

2010-08-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Can you qualify the OSError except by checking it's errno? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9569

[issue1479611] speed up function calls

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1479611 ___

[issue1173475] __slots__ for subclasses of variable length types

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: ISTM the space saving of value of __slots__ isn't typically needed in the context of variable length built-in types. Guido has long regarded __slots__ as a confusing hack. That should warn us away for extending its

[issue9571] argparse: Allow the use of -- to break out of nargs and into subparser

2010-08-11 Thread Michael . Elsdörfer
New submission from Michael.Elsdörfer mich...@elsdoerfer.info: argparse already seems to support -- to indicate that what follows are positional arguments. However, I would like to parse something like: ./script.py --ignore one two -- COMMAND I.e., --ignore is an nargs='+' argument, and I

[issue6081] str.format_from_mapping()

2010-08-11 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I'll work on cleaning this up for 3.2. Any comments on the name of the method? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6081 ___

[issue9570] PEP 383: os.mknod() and os.mkfifo() do not accept surrogateescape arguments

2010-08-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Applied in r83951. Thanks for the patch! -- nosy: +benjamin.peterson resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9570

[issue6632] Include more fullwidth chars in the decimal codec

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The moratorium only includes builtins and certainly does not apply to pure python modules (other implementations see those benefits immediately and it does not interfere with their getting caught-up). FWIW, I'm +1 on the

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixing-up str formatting idiosyncracies does not fall under the moratorium and is helpful in getting 3.x to be usable. That being said, I'm not convinced that this is actually a helpful feature. Not all objects supporting

[issue1634034] Show expected token on syntax error

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 on the basic idea to make error messages more informative where possible, but am not sure how it would work in any but the more simple cases. How would work in cases where there are multiple possible expected tokens?

[issue6081] str.format_from_mapping()

2010-08-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I understand now that new methods, as opposed to changed methods, are allowed. I agree with Eric that this seems more like a convinience rather than absolute necessity, and that the doc should be augmented. The doc for vformat (which I admit

[issue7094] Add alternate float formatting styles to new-style formatting.

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I do not believe that this is covered by the moratorium. It's important for 3.x success to get new string formatting to its highest state of usability. Matching published standards and practices(i.e. C99) and improving

[issue3489] add rotate{left,right} methods to bytearray

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: normal - low stage: unit test needed - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3489 ___

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-08-11 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: I agree with Kamil and Germán. I would've expected negative indexes for sequences to work. Negative indexes for fields is a different matter. -- ___ Python tracker rep...@bugs.python.org

[issue1491804] Simple slice support for list.sort() and .reverse()

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger nosy: +rhettinger priority: normal - low versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1491804

[issue1654367] [PATCH] Debuggers need a way to change the locals of a frame

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I think this falls under the language moratorium in that it requires core changes that make it more difficult for other implementations to catch-up. -- nosy: +rhettinger versions: +Python 3.3 -Python 3.2

[issue9572] IOError in test_multiprocessing

2010-08-11 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: This error occurred on x86 Ubuntu 3.x buildbot. This is the 1st test on this run. http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%203.x/builds/1699/steps/test/logs/stdio ./python -Wd -E -bb ./Lib/test/regrtest.py -uall

[issue1158231] string.Template does not allow step-by-step replacements

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1158231 ___

[issue1590352] The lazy strings patch

2010-08-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: - committed/rejected status: open - closed superseder: - Speed up using + for string concatenation ___ Python tracker rep...@bugs.python.org

[issue1730480] dict init/update accesses internal items of dict derivative

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I concur with Terry. This is just a fact of life when subclassing builtins. The objects are open-for-extension, closed-for-modification. If you want more direct control use UserDict. -- nosy: +rhettinger

[issue9572] IOError in test_multiprocessing

2010-08-11 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I succeeded to reproduce one time on Debian Lenny (64 bits). ~ $ make pycremoval find . -name '*.py[co]' -exec rm -f {} ';' find . -name '__pycache__' -exec rmdir {} '+' ~ $ ./python -Wd -E -bb ./Lib/test/regrtest.py -uall -rwW -l

[issue5416] str.replace does strange things when given a negative count

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: FWIW, we should be cautious about documenting all behaviors. It is arguable that this was an implementation detail and not a guaranteed behavior. As soon as you document it, people will rely on the API and all other

[issue9558] build_ext fails on VS8.0

2010-08-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9558 ___ ___ Python-bugs-list

[issue1173475] __slots__ for subclasses of variable length types

2010-08-11 Thread Michael Hudson
Michael Hudson m...@users.sourceforge.net added the comment: Well, I can think of some counters to that -- surely it's _more_ confusing if slots only works some of the time? -- but realistically I'm not going to work on this any further. -- ___

[issue1173475] __slots__ for subclasses of variable length types

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Declaring YAGNI and closing. Thanks Michael. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1173475

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2010-08-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Another machine. Is MACOSX_DEPLOYMENT_TARGET set in the environment when you run the command that gives the error message? I don't think I had this environment set when I saw the above error message. I had to set

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2010-08-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Looks like reply-by-email stripped some parts of the message. does the error occur on the 10.6 machine you used to do the build or another machine? Another 10.6 machine. -- ___

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2010-08-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Even simply invoking the interpreter raises this exception! $ MACOSX_DEPLOYMENT_TARGET=10.3 python2.7 [...] IOError: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure $ --

[issue2443] Define Py_VA_COPY macro as a cross-platform replacement for gcc __va_copy

2010-08-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in r83949. -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2443

[issue1158231] string.Template does not allow step-by-step replacements

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: FWIW, the $name $$ $(name) convention is used many other contexts and I don't think there is usually support provided to not substitute $$. Even if there were, there is a usability issue where the final substitution needs

[issue3482] re.split, re.sub and re.subn should support flags

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: This request seems reasonable. -- keywords: +easy nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3482

[issue8228] pprint, single/multiple items per line parameter

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Am rejecting this request because it complicates pprint and makes it harder to extend. Most use cases of pprint either don't need this or have output requirements more complicated than proposed (i.e. adding fixed width

[issue9424] deprecate unittest.TestCase.assertEquals

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: These synonyms have been around a very long time and many test suites have one or the other or both. Nothing good can come from breaking those existing test suites. We don't need to harm our users just to accommodate a

[issue1626300] 'Installing Python Modules' does not work for Windows

2010-08-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: My personal taste is that there is virtue in having such simple examples uncluttered by OS-specific variations, but since MvL does not want the python executable to be on the PATH per default, I defer to him and accept your solution. I’ll make

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-08-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sridhar, can you test with 3.2 and 3.1 and adjust versions? -- nosy: +eric.araujo versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-08-11 Thread Christopher Paolini
Changes by Christopher Paolini stormlif...@gmail.com: -- nosy: -Christopher.Paolini ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___

[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-08-11 Thread Denver Coneybeare
Denver Coneybeare denver.coneybe...@gmail.com added the comment: Thanks for the input, r.david.murray. I've updated my patch and attached it to take into consideration your comments: test_argparse.py.COLUMNS.update2.patch. The updated patch uses EnviormentVarGuard as suggested, except that

[issue9573] imporing a module that executes fork() raises RuntimeError

2010-08-11 Thread Alex Roitman
New submission from Alex Roitman rsh...@gmail.com: Importing the module with the following contents results in RuntimeError: == import os pid = os.fork() if pid == 0: print In the child else: print In the parent print Done\n == Running the same module

[issue9424] deprecate unittest.TestCase.assertEquals

2010-08-11 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: We aren't talking about *removing* these methods from unittest - but now that we have standardised on assertEqual for the Python test suite it is annoying (particularly for Ezio who changes) when *new* tests are checked in using the

[issue9424] Disable unittest.TestCase.assertEquals and assert_ during a regrtest run

2010-08-11 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- title: deprecate unittest.TestCase.assertEquals - Disable unittest.TestCase.assertEquals and assert_ during a regrtest run ___ Python tracker rep...@bugs.python.org

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Attaching a patch to implement the marker idea. No doc changes yet. It should work transparently: you don’t have to give an option to have automatic recalculation, you don’t have to give an option to have it leave your manual MANIFEST alone.

[issue7175] Define a standard location and API for configuration files

2010-08-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m retitling the bug, given its broader scope. Michael Foord added another stdlib example: IDLE config files. Python-dev thread: http://mail.python.org/pipermail/python-dev/2010-August/103011.html -- assignee: tarek - components:

[issue9571] argparse: Allow the use of -- to break out of nargs and into subparser

2010-08-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It looks like, if accepted, this would be a feature request,so I'm marking it as such and setting versions to 3.2. You'd have to provide a patch pretty soon to get it in to 3.2, though. However, I'm guessing that this is something

[issue9572] IOError in test_multiprocessing

2010-08-11 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +barry, brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9572 ___ ___

[issue9573] imporing a module that executes fork() raises RuntimeError

2010-08-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This may be a case of don't do that. Starting a new thread or process during import (ie: while the import lock is held) is dangerous. Nosying Brett, since he'll know the real story. -- nosy: +brett.cannon, r.david.murray

[issue9572] IOError in test_multiprocessing

2010-08-11 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9572 ___ ___ Python-bugs-list

[issue9573] imporing a module that executes fork() raises RuntimeError

2010-08-11 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Without looking closer at it, don't do that. =) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9573 ___

[issue3937] platform.dist(): detect Linux distribution version in a robust, standard way

2010-08-11 Thread Zooko O'Whielacronx
Zooko O'Whielacronx zo...@zooko.com added the comment: Please check what platform.linux_distribution() returns on your platform using Python 2.6rc2. Here are the results of that. Summary: looks fine to me. http://tahoe-lafs.org/buildbot/waterfall Here are the scripts that are generating

[issue9573] imporing a module that executes fork() raises RuntimeError

2010-08-11 Thread Alex Roitman
Alex Roitman rsh...@gmail.com added the comment: I guess I am missing something here. In a complex program, everything will be executed in some module or another. Consequently, the module that contains the fork() call will cause the interpreter to quit. How can this be worked around, short

[issue9573] imporing a module that executes fork() raises RuntimeError

2010-08-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: How can this be worked around, short of placing the fork() in the main module? Why wouldn't you place the fork() call in a function? -- nosy: +belopolsky ___ Python tracker

[issue9573] imporing a module that executes fork() raises RuntimeError

2010-08-11 Thread Alex Roitman
Alex Roitman rsh...@gmail.com added the comment: I can place it in a function. But if I execute that function from anything other than main module, the fork() will be called while import lock is held, one way or another. It will just happen in another module. So what? --

[issue9573] imporing a module that executes fork() raises RuntimeError

2010-08-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Wed, Aug 11, 2010 at 10:56 PM, Alex Roitman rep...@bugs.python.org wrote: Alex Roitman rsh...@gmail.com added the comment: I can place it in a function.  But if I execute that function from anything other than main

[issue5416] str.replace does strange things when given a negative count

2010-08-11 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I am fine with your proposal, Raymond. When I went about the change the docstrings, I did notice that it is not an intentional feature to provide negative values in the replace argument. The negative value (-1 as count) was being used

[issue9573] importing a module that executes fork() raises RuntimeError

2010-08-11 Thread Alex Roitman
Alex Roitman rsh...@gmail.com added the comment: 1. If fork should not be called during import, it could raise an exception when invoked from import. But it does not. Is that a bug then? BTW, fork during import worked with python 2.4 just fine. 2. The whole issue7242 was devoted to work