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

2010-08-11 Thread Ezio Melotti
Ezio Melotti added the comment: It's not really a waste of time, since it's just a find and replace and I already have a patch ready. I also believe that there are valid reasons to do it. When I started learning about unittest, I clearly remember asking myself if I should have used "assertEq

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: What a tremendous waste of time and inane exercise. AFAICT, this is a zero value add. Also, we try to avoid these sort of search-and-replace exercises because 1) they are not part of holistic refactoring (Guido's term for making changes while you're worki

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

2010-08-11 Thread Alex Roitman
Alex Roitman 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 out import locks du

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

2010-08-11 Thread Senthil Kumaran
Senthil Kumaran 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 somewhat as a sentinel

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

2010-08-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Aug 11, 2010 at 10:56 PM, Alex Roitman wrote: > > Alex Roitman 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, on

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

2010-08-11 Thread Alex Roitman
Alex Roitman 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 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 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 of placing the fo

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

2010-08-11 Thread Zooko O'Whielacronx
Zooko O'Whielacronx 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 these results:

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

2010-08-11 Thread Brett Cannon
Brett Cannon added the comment: Without looking closer at it, don't do that. =) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9572] IOError in test_multiprocessing

2010-08-11 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2010-08-11 Thread R. David Murray
R. David Murray 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 R. David Murray
Changes by R. David Murray : -- nosy: +barry, brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2010-08-11 Thread R. David Murray
R. David Murray 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 better off implemented via

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

2010-08-11 Thread Éric Araujo
Éric Araujo 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: +Library (Lib) -Dist

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

2010-08-11 Thread Éric Araujo
Éric Araujo 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. (For the curious, h

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

2010-08-11 Thread Michael Foord
Changes by Michael Foord : -- title: deprecate unittest.TestCase.assertEquals -> Disable unittest.TestCase.assertEquals and assert_ during a regrtest run ___ Python tracker ___ _

[issue9424] deprecate unittest.TestCase.assertEquals

2010-08-11 Thread Michael Foord
Michael Foord 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 old (deprecated-but-not-act

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

2010-08-11 Thread Alex Roitman
New submission from Alex Roitman : 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 as main work

[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 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 it slightly tweaks Enviormen

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

2010-08-11 Thread Christopher Paolini
Changes by Christopher Paolini : -- nosy: -Christopher.Paolini ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-08-11 Thread Éric Araujo
Éric Araujo 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 ___ ___

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

2010-08-11 Thread Éric Araujo
Éric Araujo 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 a patch with a sli

[issue9424] deprecate unittest.TestCase.assertEquals

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 stylistic preference. -- a

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 columns for tabular output, etc). A

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: This request seems reasonable. -- keywords: +easy nosy: +rhettinger ___ Python tracker ___ ___ Py

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 to be applied differently to get

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

2010-08-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r83949. -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

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

2010-08-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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 $ -- ___ Python t

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

2010-08-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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. -- ___ Python tracker

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

2010-08-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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 MACOSX_DEPLOYMENT_TARGET=10.5 in order

[issue1173475] __slots__ for subclasses of variable length types

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Declaring YAGNI and closing. Thanks Michael. -- status: open -> closed ___ Python tracker ___

[issue1173475] __slots__ for subclasses of variable length types

2010-08-11 Thread Michael Hudson
Michael Hudson 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. -- ___ Python tracker

[issue9558] build_ext fails on VS8.0

2010-08-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 implementations will need to change in

[issue9572] IOError in test_multiprocessing

2010-08-11 Thread Florent Xicluna
Florent Xicluna 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 test_multiprocessing Using

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 ___ Pyt

[issue1590352] The "lazy strings" patch

2010-08-11 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed superseder: -> Speed up using + for string concatenation ___ Python tracker __

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

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue9572] IOError in test_multiprocessing

2010-08-11 Thread Florent Xicluna
New submission from Florent Xicluna : 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 -rwW -l == CPython 3.2a

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 ___ Pyth

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

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger priority: normal -> low versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ __

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

2010-08-11 Thread Matthew Barnett
Matthew Barnett 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 __

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

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low stage: unit test needed -> ___ Python tracker ___ ___ Python-bugs-list maili

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 ability to convert from old-style t

[issue6081] str.format_from_mapping()

2010-08-11 Thread Terry J. Reedy
Terry J. Reedy 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 I had not noticed

[issue1634034] Show "expected" token on syntax error

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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? >>> def f(x 3): Synt

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 __getitem__ offer support for neg

[issue6632] Include more fullwidth chars in the decimal codec

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 basic idea. -- keywords:

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

2010-08-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Applied in r83951. Thanks for the patch! -- nosy: +benjamin.peterson resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue6081] str.format_from_mapping()

2010-08-11 Thread Eric Smith
Eric Smith added the comment: I'll work on cleaning this up for 3.2. Any comments on the name of the method? -- ___ Python tracker ___ __

[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 : 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 need a way to break out of

[issue1173475] __slots__ for subclasses of variable length types

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 functionality. Unless there are some co

[issue1479611] speed up function calls

2010-08-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list maili

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

2010-08-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can you qualify the OSError except by checking it's errno? -- nosy: +benjamin.peterson ___ Python tracker ___ ___

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

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 should be applied to the next-in-m

[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 : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9446] urllib2 tests fail when offline

2010-08-11 Thread Senthil Kumaran
Senthil Kumaran 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 ___

[issue6081] str.format_from_mapping()

2010-08-11 Thread Raymond Hettinger
Raymond Hettinger 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 _

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

2010-08-11 Thread David Watson
New submission from David Watson : 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. -- components: Extension Modules

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

2010-08-11 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file18479/test-mknod-mkfifo-2.x.diff ___ Python tracker ___ ___ Python-bugs-list m

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

2010-08-11 Thread David Watson
New submission from David Watson : 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 status: open title: Add tests f

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

2010-08-11 Thread Alexander Belopolsky
Alexander Belopolsky 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

[issue9055] test_issue_8959_b fails when run from a service

2010-08-11 Thread Tim Golden
Tim Golden 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 __

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

2010-08-11 Thread Ronald Oussoren
Ronald Oussoren 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 that gives the error mess

[issue7037] test_asynchat fails on os x 10.6

2010-08-11 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2010-08-11 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Ned! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-

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

2010-08-11 Thread Michael Foord
Michael Foord 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 IronPython 2.7A1 which

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

2010-08-11 Thread Ned Deily
Ned Deily added the comment: As Mark has ported the fix for Issue5798 to 2.6, this can be closed, too. -- nosy: +mark.dickinson ___ Python tracker ___ ___

[issue7037] test_asynchat fails on os x 10.6

2010-08-11 Thread Ned Deily
Ned Deily 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 ___

[issue6186] test_thread occasionally reports unhandled exceptions on OS X

2010-08-11 Thread Ned Deily
Ned Deily 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 __

[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 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). The EnviormentVarGuard

[issue6081] str.format_from_mapping()

2010-08-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2010-08-11 Thread Antoine Pitrou
Antoine Pitrou 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 -> closed versions:

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

2010-08-11 Thread Daniel Goertzen
Changes by Daniel Goertzen : -- nosy: +Daniel.Goertzen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue3244] multipart/form-data encoding

2010-08-11 Thread Chris Waigl
Changes by Chris Waigl : -- nosy: +Chris.Waigl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9558] build_ext fails on VS8.0

2010-08-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: tarek -> eric.araujo resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mail

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-11 Thread Antoine Pitrou
Antoine Pitrou 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 "", line 1, in AttributeError: attribute 'name' of '_io.BufferedWriter' objects is

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

2010-08-11 Thread Antoine Pitrou
Antoine Pitrou 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 _

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

2010-08-11 Thread Antoine Pitrou
Antoine Pitrou 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 experimentations sho

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

2010-08-11 Thread Ned Deily
Ned Deily 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 was documente

[issue9568] test_urllib2_localnet fails on OS X 10.3

2010-08-11 Thread Ronald Oussoren
Ronald Oussoren 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 on applying this for 2

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

2010-08-11 Thread Ned Deily
Ned Deily added the comment: The problem still exists on OS X 10.3. See Issue9568 for patches. -- ___ Python tracker ___ ___ Python-b

[issue9568] test_urllib2_localnet fails on OS X 10.3

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

[issue9568] test_urllib2_localnet fails on OS X 10.3

2010-08-11 Thread Ned Deily
New submission from Ned Deily : 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. However, the fi

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

2010-08-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou 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 loaded early on duri

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

2010-08-11 Thread Ezio Melotti
Ezio Melotti 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 __