[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Rogi
Rogi added the comment: Oh, and other functions on this doc, such as PyRun_SimpleStringFlags(), have this same documentation problem about SystemError. -- ___ Python tracker ___

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Mark Hammond
Mark Hammond added the comment: It will return 1 if you specify a script to run and that has an unhandled exception. -- ___ Python tracker ___ __

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Mark Hammond
Mark Hammond added the comment: Good catch - new patch with PyRun_SimpleStringFlags() corrected too. -- keywords: +patch Added file: http://bugs.python.org/file21448/bug-6498.patch ___ Python tracker __

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-29 Thread Torsten Landschoff
Torsten Landschoff added the comment: > Torsten basically you are suggesting that PRAGMA would never work at all with > my 'do not strcmp() the sql at all, always begin a transaction' approach? No. Most pragmas should still work and getting the current setting of a pragma should also work. I

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread ysj.ray
ysj.ray added the comment: Here I worked out a patch to make the function decorated by context manager returned by @contextmanager reusable, by storing original function object and argments(args, kwds objects) in _GeneratorContextManager and construct a generator when needed(in self.__enter__

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Westley Martínez wrote: > > Westley Martínez added the comment: > > ('arch', '', '') I've had a look at http://www.archlinux.org/download/ which does list a release version (currently 2010.05). Could you try to get that into the function's output for Ar

[issue11690] Devguide: Add "communication" FAQ

2011-03-29 Thread anatoly techtonik
Changes by anatoly techtonik : -- assignee: -> docs@python components: +Devguide, Documentation -None nosy: +docs@python title: Add "communication" FAQ to devguide -> Devguide: Add "communication" FAQ ___ Python tracker

[issue11549] Rewrite peephole to work on AST

2011-03-29 Thread anatoly techtonik
anatoly techtonik added the comment: Is there any tool to see how it works step-by-step. The whole stuff is extremely interesting, but I can't fit all the details of AST processing in my head. -- nosy: +techtonik ___ Python tracker

[issue11709] help-method crashes if sys.stdin is None

2011-03-29 Thread Palm Kevin
New submission from Palm Kevin : The interactive help-method provided by python crashes when no stdin-stream is available (sys.stdin == None). Exception: Traceback (most recent call last): File "MyScript", line 4, in File "C:\Python32\lib\site.py", line 457, in __call__ return p

[issue11709] help-method crashes if sys.stdin is None

2011-03-29 Thread Palm Kevin
Changes by Palm Kevin : -- components: +IO type: -> crash versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread Nick Coghlan
Nick Coghlan added the comment: Part of the problem is that there was a specific reason we didn't go with lazy initialisation of the internal generator: lazy initialisation means there can be an arbitrary delay between creation of the context manager and the creation of the underlying generat

[issue11549] Rewrite peephole to work on AST

2011-03-29 Thread Nick Coghlan
Nick Coghlan added the comment: Eugene: I suggest raising the question on python-dev. The answer potentially affects the PEP 380 patch as well (which adds a new attribute to the "Yield" node). Anatoly: If you just want to get a feel for the kind of AST various pieces of code produce, then th

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-03-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: What is the line that the parent process is executing? Line numbers don't seem to match any more. And is it possible to set a breakpoint in the child process where the fatal error is triggered? It would be good to know what is being run at that point

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-03-29 Thread Davide Rizzo
Davide Rizzo added the comment: An effective way to automate user interaction tests is by using pseudo-terminals. The attached test uses Pexpect and bash as tools to test the issue and demonstrates the bug on affected builds/platforms. There are a number of (possibly related) other issues tha

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Serdar Dalgic
Changes by Serdar Dalgic : -- nosy: +serdar.dalgic ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11700] mailbox.py proxy updates

2011-03-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Mon, Mar 28, 2011 at 09:52:43PM +, Amaury Forgeot d'Arc wrote: > But then, is "close=False" necessary? It's about 'class _PartialFile(_ProxyFile)', for which this argument is always false. Alternatively there could be a "protected" _ProxyFile._

[issue11709] help-method crashes if sys.stdin is None

2011-03-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The code fails precisely when checking that sys.stdin is a valid terminal. See the attached patch for a fix. Out of curiosity, why did you set sys.stdin to None? -- keywords: +patch nosy: +amaury.forgeotdarc stage: -> patch review Added file: h

[issue11710] Landing pages in docs for standard library packages

2011-03-29 Thread Nick Coghlan
New submission from Nick Coghlan : http://docs.python.org/py3k/urllib errors out rather than returning an index page for the modules that are part of the urllib package. This index page could also link to the HOWTO at http://docs.python.org/py3k/howto/urllib2.html The following packages have

[issue11709] help-method crashes if sys.stdin is None

2011-03-29 Thread Palm Kevin
Palm Kevin added the comment: I embed Python into an existing, external C application. In addition to this I extend Python to access that app from Python. I do never set explicitly set the standard input to NULL. I guess that the external C application does this... -- ___

[issue11707] Create C version of functools.cmp_to_key()

2011-03-29 Thread Filip Gruszczyński
Changes by Filip Gruszczyński : -- nosy: +gruszczy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread ysj.ray
ysj.ray added the comment: > For 3.3, the fix could be generalised with ContextDecorator supporting a > documented "self._recreate" internal interface that, by default, just returns > self, but would be overridden in _GeneratorContextManager to actually create > a new instance. The custom __c

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread Nick Coghlan
Nick Coghlan added the comment: Because I don't want to conflate the two APIs. ContextDecorator can be used with *any* context manager, and some of those may already be using their copy semantics for something else. If anyone ever writes the __with__ PEP, then ContextDecorator._recreate can b

[issue11557] Increase coverage in logging module

2011-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset c7f7672b70a9 by Vinay Sajip in branch 'default': Closes issue #11557: Added Natalia Bidart's patch to improve test coverage. http://hg.python.org/cpython/rev/c7f7672b70a9 -- nosy: +python-dev ___ Python

[issue11557] Increase coverage in logging module

2011-03-29 Thread Vinay Sajip
Vinay Sajip added the comment: Closing, thanks for the patch. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: This issue was first reported by Niels Heinen from the Google Security Team. -- ___ Python tracker ___ __

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't have a 2.5 checkout to test but the patch looks ok to me. Under 2.7 I get a test failure, I suppose you'll have some merging work to do: test test_urllib2 failed -- Traceback (most recent call last): File "/home/antoine/cpython/27/Lib/test/test_urllib

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread Michael Foord
Michael Foord added the comment: I agree. copy is a separate protocol and shouldn't be involved here. -- ___ Python tracker ___ ___ P

[issue11676] imp.load_module and submodules - doc issue, or bug?

2011-03-29 Thread Brett Cannon
Brett Cannon added the comment: It's actually not surprising that imp works this way: it predates packages. Because the semantics (I assume) have been like this for ages I say we document the current behavior (it's easy to work around) and simply continue to replace imp functionality with imp

[issue11557] Increase coverage in logging module

2011-03-29 Thread R. David Murray
R. David Murray added the comment: This seems to be causing some issues on the buildbots: http://www.python.org/dev/buildbot/all/builders/AMD64%20Snow%20Leopard%202%203.x/builds/137 -- nosy: +r.david.murray status: closed -> open ___ Python tracker

[issue11557] Increase coverage in logging module

2011-03-29 Thread Natalia B. Bidart
Natalia B. Bidart added the comment: I'll work on a fix during next weekend (sooner if I have an open slot). -- ___ Python tracker ___ __

[issue11664] Add patch method to unittest.TestCase

2011-03-29 Thread Éric Araujo
Éric Araujo added the comment: A similar function already exists: test.support.patch -- ___ Python tracker ___ ___ Python-bugs-list m

[issue11664] Add patch method to unittest.TestCase

2011-03-29 Thread Michael Foord
Michael Foord added the comment: Right, I helped with the writing of that at PyCon. The patch method would look very similar. test.support.patch is not something we want to make public (in that location). -- ___ Python tracker

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: I have the final version of the patch for Python 2 in the 2.5, 2.6 and 2.7 branches in my repo (http://hg.python.org/sandbox/guido). What's the next step? Just push this to the central repo? There are a few separate changes: summary: Merge urllib/url

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: Also for the Python 3 family it's best to backport Senthil's patch. I will try that in my tree as well. -- ___ Python tracker ___ __

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Santoso Wijaya added the comment: This is because the Request class' constructor splits the URL into __original and fragment: def __init__(self, url, data=None, headers={}, origin_req_host=None, unverifiable=False): # unwrap('') --> 'type://host/path' self.

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The SystemExit vs. SystemError is clearly a typo in the doc. The VC comment accompanying the addition of that note says "note that Py_Main doesnt return on SystemExit." See [e5d8f0c0d634] and #5227. -- nosy: +belopolsky ___

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The updated doc patch is missing :exc: markup on one of "SystemExit"s. -- ___ Python tracker ___ _

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: The fix is now also in the 3.1, 3.2 and default branches of my repo (http://hg.python.org/sandbox/guido). Maybe I should just merge the whole bunch into the root repo and be done with it? -- ___ Python tracker

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/3/29 Guido van Rossum : > > Guido van Rossum added the comment: > > The fix is now also in the 3.1, 3.2 and default branches of my repo > (http://hg.python.org/sandbox/guido). > > Maybe I should just merge the whole bunch into the root repo and be > don

[issue11700] mailbox.py proxy updates

2011-03-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: This new patch adheres your suggestion. Now all implemented operations perform a "file is open at all" check and raise ValueError if not, which somewhat reflects what i've seen when i was looking into fileio.c. My questions: - shouldn't _ProxyFile inher

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Here's a fix that works for me on Ubuntu 11.04. -- hgrepos: +12 ___ Python tracker ___ ___ Pytho

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Added file: http://bugs.python.org/file21453/a9b05b89ea39.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Removed file: http://bugs.python.org/file21453/a9b05b89ea39.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Added file: http://bugs.python.org/file21454/a4dcae4cd033.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Cloudberry
New submission from Cloudberry : System where issue was reproduced is Ubuntu 10.04 32-bit with python 2.6.5 Expected behavior for socket.socketpair as per the docstring: "The arguments are the same as for socket() except the default family is AF_UNIX if defined on the platform; otherwise, the

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I should note that I'd love to backport this to Python 3.2, 3.1, 2.7 and 2.6 since none of them can build entirely now on multiarch systems. Since it only affects search order in the build process, one could argue that it's not a new feature :). --

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Barry: does it allow to install Python into /usr/lib/whateverarch, or is it just a partial fix for something slightly unrelated to this issue? -- nosy: +pitrou ___ Python tracker

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Terry J. Reedy
New submission from Terry J. Reedy : l=[1,3,2] l.sort(cmp=lambda x,y:y-x, key=lambda x: x) print(l) With CPython 2.7 this 1) could raise an exception like TypeError: conflicting arguments passed; 2) could ignore cmp= and print [1,2,3] on the basis that the new should override the old; 3) does i

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Santoso Wijaya added the comment: Attaching patches against 2.7 and 3.1 branches. -- keywords: +patch Added file: http://bugs.python.org/file21456/issue11703_py27.patch ___ Python tracker _

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya : Added file: http://bugs.python.org/file21457/issue11703_py31.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Ross Lagerwall
Ross Lagerwall added the comment: It is noted in the Linux man page for socketpair: On Linux, the only supported domain for this call is AF_UNIX (or synonymously, AF_LOCAL). (Most implementations have the same restriction.) -- nosy: +rosslagerwall

[issue1571878] Improvements to socket module exceptions

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-29 Thread Westley Martínez
Westley Martínez added the comment: That's the release version for the installation disc. -- ___ Python tracker ___ ___ Python-bugs-l

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: A proper fix is to introduce sys.libdir, which would be controllable by --libdir=${value} option of `configure`. If --libdir=${value} is not passed, then sys.libdir would default to sys.prefix + "/lib". sysconfig, distutils etc. would have

[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Cloudberry
Cloudberry added the comment: Thank you for clarifications. Closing it as an invalid issue, as this is (not) working as expected. Apologies for the noise. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger priority: normal -> low ___ Python tracker ___ ___

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Davide Rizzo
New submission from Davide Rizzo : collections.deque docstring is: 'deque(iterable[, maxlen]) --> deque object\n\nBuild an ordered collection accessible from endpoints only.' As it reads now, it seems to imply that only endpoints can be read/modified. The rst correctly states that random acces

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Westley Martínez
Westley Martínez added the comment: Well it's been quite some time and no response yet. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Thomas Rachel
New submission from Thomas Rachel : The acquire() and release() functions of threading.Semaphore do not make use of the try...finally suite as it would be reasonable. They just do def acquire(self, blocking=1): rc = False self.__cond.acquire() [...] self.__c

[issue7365] grp and pwd should treat uid and gid as unsigned

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: I took the freedom to refresh the patch against default (I don't know yet the policies for what to backport and what not), built a debug version of python with the patch applied and run the test suite with no regression. A test would be nice to be added, but I'm

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5937d2119a20 by guido in branch '3.1': Issue 11662: Fix vulnerability in urllib/urllib2. http://hg.python.org/cpython/rev/5937d2119a20 New changeset 96a6c128822b by guido in branch '3.2': Merge Issue 11662 from 3.1 branch. http://hg.python.org/cpyt

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: Ok, merged into the central repo. Let me know where I screwed up. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-03-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: not yet, thanks for the reminder. if any other committers feel like jumping on this and doing it before I get around to it, feel free. -- ___ Python tracker __

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Ned Deily
Changes by Ned Deily : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Erik Cederstrand
Erik Cederstrand added the comment: I'm not sure if I was supposed to respond. The patch looks straight-forward to me. -- ___ Python tracker ___ ___

[issue7124] idle.py -n : help() doesn't work in a reopened shell window

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Gregor, are you still able to replicate this bug? I just tried on a freshly built 3.3 and (hopefully correctly) following your description, I can print help just fine: >>> help(print) Help on built-in function print in module builtins: print(...) print(v

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Erik Cederstrand
Erik Cederstrand added the comment: Just checked on Python 2.7.1 with the same result. Test script attached. -- Added file: http://bugs.python.org/file21459/q.py ___ Python tracker

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Erik Cederstrand
Changes by Erik Cederstrand : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Thomas Rachel
Thomas Rachel added the comment: I wonder if it is right what I wrote. After a second thought, the acquire() should come *after* try:, as well in threading.Event. Because if Ctrl-C is pressed while waiting in acquire(), a KeyboardInterrupt is thrown immediately after returning from acquire().

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Thomas Rachel
Thomas Rachel added the comment: Of course. I hope it is correct, and I hop it is ok when I change to use "with ...:" on the other places I consider it useful as well... -- keywords: +patch type: -> behavior Added file: http://bugs.python.org/file21460/threading.patch __

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: It would be simpler to use "with" indeed. Do you want to provide a patch? -- nosy: +pitrou versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker ___

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7101] tarfile: OSError with TarFile.add(..., recursive=True) about non-existing file

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: Hi, I don't understand why you think tarfile should not fail in case you're trying to add a non-existing file. the problem is that glob() already extracted a list of files&dirs and then while the script is tar-ring them, you're removing some of them -> script cr

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Andreas Stührk
Andreas Stührk added the comment: The comment in the source that describes `Py_InspectFlag` also says `SystemError` instead of `SystemExit`. I changed that and added the missing :exc: for the SystemExit and created a patch for 3.1. -- nosy: +Trundle Added file: http://bugs.python.org/

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Andreas Stührk
Changes by Andreas Stührk : Added file: http://bugs.python.org/file21462/issue6498_31.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7124] idle.py -n : help() doesn't work in a reopened shell window

2011-03-29 Thread Gregor Lingl
Gregor Lingl added the comment: Right. I cannot replicate this bug even with an IDLE from Python 3.2. So it seems to me, that this problem has been solved. Regards, Gregor -- ___ Python tracker ___

[issue9331] sys.setprofile is not described as CPython implementation detail

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: As Benjamin just confirmed on #python-dev, sys.setprofile is not a cpython impl detail, hence closing this issue. -- nosy: +benjamin.peterson, sandro.tosi resolution: -> invalid stage: needs patch -> committed/rejected status: open -> closed ___

[issue8052] subprocess close_fds behavior should only close open fds

2011-03-29 Thread Nadeem Vawda
Nadeem Vawda added the comment: > For what its worth, an strace of Java's Process class appears to "cheat" by > opening /proc/self/fd inbetween fork & exec. Looking at the OpenJDK source confirms this: http://hg.openjdk.java.net/jdk6/jdk6/jdk/file/tip/src/solaris/native/java/lang/UNIXProcess_md

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-29 Thread STINNER Victor
STINNER Victor added the comment: regrtest_timeout.patch: add --timeout option to regrtest.py to display the traceback and then exit if a test takes more than TIMEOUT seconds. It adds also a check on the subprocess exit code (regrtest.py -j): raise a exception if it is different than zero. -

[issue8052] subprocess close_fds behavior should only close open fds

2011-03-29 Thread STINNER Victor
STINNER Victor added the comment: > I like the approach suggested by Gregory in issue11284 (msg129912) - if we are > sure the program is not multithreaded, get the list of fds before forking, and > use that; otherwise, do it the slow way. A signal handler can also opens new files :-) -

[issue7124] idle.py -n : help() doesn't work in a reopened shell window

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: that's great, closing then :) -- resolution: -> out of date stage: needs patch -> status: open -> closed ___ Python tracker ___ _

[issue11610] Improving property to accept abstract methods

2011-03-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: I have an idea. How about instead of reusing abstractmethod for abstract getters and setters, you add abstractproperty.abstractgetter/setter/deleter? -- ___ Python tracker ___

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 29, 2011, at 07:28 PM, Antoine Pitrou wrote: > >Antoine Pitrou added the comment: > >Barry: does it allow to install Python into /usr/lib/whateverarch, or is it >just a partial fix for something slightly unrelated to this issue? Antoine, you're right

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : Ubuntu 11.04 introduces new directories for libraries and headers to support multiple architectures on a single machine. E.g. 64bit and 32bit on a 64bit Ubuntu. Here are the specs: https://wiki.ubuntu.com/MultiarchSpec http://wiki.debian.org/ReleaseGoals

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I retract my patch for this bug because the issue described here is actually different than the one I want to fix. See issue 11715 for the problem of building Python on multiarch Debian and Ubuntu (e.g. Ubuntu 11.04). -- ___

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Removed file: http://bugs.python.org/file21454/a4dcae4cd033.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- keywords: +patch Added file: http://bugs.python.org/file21464/a9b05b89ea39.diff ___ Python tracker ___ ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Removed file: http://bugs.python.org/file21464/a9b05b89ea39.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Added file: http://bugs.python.org/file21465/d504ca7e0fe5.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 29, 2011, at 07:38 PM, Arfrever Frehtes Taifersar Arahesis wrote: >A proper fix is to introduce sys.libdir, which would be controllable by >--libdir=${value} option of `configure`. If --libdir=${value} is not passed, >then sys.libdir would default to sy

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-29 Thread Mark Mc Mahon
Mark Mc Mahon added the comment: That fixed it - but it seems we need that for the other Types defined in the module. Regarding testing - would it be a good idea to add an MSI to the test suite - or better to create one during testing (using msilib) and then use that in the tests? -

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Matthias Klose
Matthias Klose added the comment: heh, that's easy, just add the multiarch id to the extension name ;-) -- ___ Python tracker ___ _

[issue11677] make test has horrendous performance on an ecryptfs

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Antoine, -P is fine with me! Also, since my idea is that --usetmp/-P would just use the mkdtemp() algorithm (which looks for $TMPDIR, $TEMP or $TMP), getting the build into a subdirectory, e.g. /tmp/test_python would be as easy as setting TMP=/tmp/test_pyth

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Matthias Klose
Matthias Klose added the comment: On 29.03.2011 21:28, Antoine Pitrou wrote: > > Barry: does it allow to install Python into /usr/lib/whateverarch, no, it looks for headers and libraries in more directories. But really, this whole testing for paths is wrong. Just use the compiler to search for

[issue2694] msilib file names check too strict ?

2011-03-29 Thread Mark Mc Mahon
Mark Mc Mahon added the comment: This issue has been fixed by changes made in issue7639 and issue11696 -- ___ Python tracker ___ ___ P

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 29, 2011, at 10:12 PM, Matthias Klose wrote: >no, it looks for headers and libraries in more directories. But really, this >whole testing for paths is wrong. Just use the compiler to search for headers >and libraries, no need to check these on your own

  1   2   >