[issue6498] Py_Main() does not return on SystemExit
Rogi r...@linuxmail.org added the comment: I may be wrong, but I think Py_Main() will _never_ return 1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6498] Py_Main() does not return on SystemExit
Rogi r...@linuxmail.org added the comment: Oh, and other functions on this doc, such as PyRun_SimpleStringFlags(), have this same documentation problem about SystemError. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6498] Py_Main() does not return on SystemExit
Mark Hammond skippy.hamm...@gmail.com added the comment: It will return 1 if you specify a script to run and that has an unhandled exception. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6498] Py_Main() does not return on SystemExit
Mark Hammond skippy.hamm...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10740] sqlite3 module should allow DDL statements in transactions
Torsten Landschoff t.landsch...@gmx.net 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 was only referring to http://www.sqlite.org/pragma.html#pragma_foreign_keys Quote: This pragma is a no-op within a transaction; foreign key constraint enforcement may only be enabled or disabled when there is no pending BEGIN or SAVEPOINT. I did not see such a restriction for other pragmas though I admit that I did not reread the list in full. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11647] function decorated with a context manager can only be invoked once
ysj.ray ysj@gmail.com 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__ while used as a context manager and self.__call__ while used as a decorator). It still inherit ContextDecorator to keep class inheritation complete and the __call__ method is override. -- keywords: +patch Added file: http://bugs.python.org/file21449/issue_11647.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11678] Add support for Arch Linux to platform.linux_distributions()
Marc-Andre Lemburg m...@egenix.com added the comment: Westley Martínez wrote: Westley Martínez aniko...@gmail.com 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 Arch Linux ? Thanks, -- Marc-Andre Lemburg eGenix.com ::: Try our new mxODBC.Connect Python Database Interface for free ! eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ -- title: Add support for Arch Linux toplatform.linux_distributions() - Add support for Arch Linuxto platform.linux_distributions() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11678 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11690] Devguide: Add communication FAQ
Changes by anatoly techtonik techto...@gmail.com: -- assignee: - docs@python components: +Devguide, Documentation -None nosy: +docs@python title: Add communication FAQ to devguide - Devguide: Add communication FAQ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11690 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11549] Rewrite peephole to work on AST
anatoly techtonik techto...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue11549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11709] help-method crashes if sys.stdin is None
New submission from Palm Kevin kevin.p...@labsolution.lu: 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 module File C:\Python32\lib\site.py, line 457, in __call__ return pydoc.help(*args, **kwds) File C:\Python32\lib\pydoc.py, line 1748, in __call__ self.help(request) File C:\Python32\lib\pydoc.py, line 1795, in help else: doc(request, 'Help on %s:', output=self._output) File C:\Python32\lib\pydoc.py, line 1537, in doc pager(render_doc(thing, title, forceload)) File C:\Python32\lib\pydoc.py, line 1345, in pager pager = getpager() File C:\Python32\lib\pydoc.py, line 1352, in getpager if not sys.stdin.isatty() or not sys.stdout.isatty(): AttributeError: 'NoneType' object has no attribute 'isatty' I think that this situation should be handled: - either by raising a clear error message indicating that help cannot be displayed because Python is executing in a non-interactive mode - either by simply printing documentation to stdout (like this: print(sys.__doc__)) -- messages: 132474 nosy: palm.kevin priority: normal severity: normal status: open title: help-method crashes if sys.stdin is None ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11709] help-method crashes if sys.stdin is None
Changes by Palm Kevin kevin.p...@labsolution.lu: -- components: +IO type: - crash versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11647] function decorated with a context manager can only be invoked once
Nick Coghlan ncogh...@gmail.com 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 generator that lets you know that you got the arguments wrong. By creating the generator immediately, any exceptions are thrown at the point where the context manager is created rather than when it is used. I think the cleanest way to fix this is to still create the generator automatically in __init__, but *also* save the original function and argument details. Then override __call__ to create a fresh instance of _GeneratorContextManager each time, instead of using with self: the way ContextDecorator does. The ContextDecorator documentation should also be updated to point out that it only works with reusable context managers. 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 __call__ implementation for _GeneratorContextManager could then be removed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11549] Rewrite peephole to work on AST
Nick Coghlan ncogh...@gmail.com 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 the ast.dump function (along with using the ast.PyCF_ONLY_AST flag in compile) may be enough. You may also want to take a look at the AST - dot file conversion code in Dave Malcolm's patches on #10399. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread
Kristján Valur Jónsson krist...@ccpgames.com 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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10517 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c
Davide Rizzo sor...@gmail.com 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 that may require similar testing. Pexpect is a nice tool to automate testing over ptys, but it is Python 2. I had to run the test on Python 3.3 through the installed Python 2 interpter. My thought: the smallest useful subset of Pexpect can be ported to Py3 and maintained within Python. Or alternatively an equally useful minimal implementation of the same features. Note that most of Pexpect is already tested. I've used bash to test this one issue because it was ready and I could rely on bash jobs handling. I don't know how good is to expect bash to be on the system or whether any sh-like shell is compatible. There is a WinPexpect which supposedly does the same thing on Windows in a native way. I couldn't get the time to try it out, but it includes a modified version of Pexpect and claims Py3 compatibility. Also, I don't really understand sdaoden ascii art messages. Let me know if someone wants to work on this with me. :) -- Added file: http://bugs.python.org/file21450/testrepl.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Changes by Serdar Dalgic ser...@pardus.org.tr: -- nosy: +serdar.dalgic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11700] mailbox.py proxy updates
Steffen Daode Nurpmeso sdao...@googlemail.com 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._do_close() method which would only be used by the _PartialFile subclass; then the ctor argument could be dropped in favour of that. I've gone that way because both classes are internal. ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11700 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11709] help-method crashes if sys.stdin is None
Amaury Forgeot d'Arc amaur...@gmail.com 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: http://bugs.python.org/file21451/no-stdin.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11710] Landing pages in docs for standard library packages
New submission from Nick Coghlan ncogh...@gmail.com: 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 the same problem: xml, http, xmlrpc, concurrent These ones look OK: logging, curses, html, tkinter These index pages don't necessarily need to be linked from the contents page, but they should exist so that manually typed URLs for these packages do something useful rather than erroring out with a 404. -- assignee: docs@python components: Documentation messages: 132481 nosy: docs@python, ncoghlan priority: normal severity: normal status: open title: Landing pages in docs for standard library packages versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11710 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11709] help-method crashes if sys.stdin is None
Palm Kevin kevin.p...@labsolution.lu 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... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11707] Create C version of functools.cmp_to_key()
Changes by Filip Gruszczyński grusz...@gmail.com: -- nosy: +gruszczy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11707 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11647] function decorated with a context manager can only be invoked once
ysj.ray ysj@gmail.com 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 __call__ implementation for _GeneratorContextManager could then be removed. How about directly using the existing copy.copy() semantics instead of self._recreate()? That is, call with copy.copy(self) instead of with self in ContextGenerator.__call__(), implement ContextGenerator.__copy__() method to simply return self, and implement _GeneratorContextManager.__copy__() to create a copy of itself. This saves an internal interface. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11647] function decorated with a context manager can only be invoked once
Nick Coghlan ncogh...@gmail.com 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 be updated to use that, but in the meantime an operation specific internal API is my preferred option. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11557] Increase coverage in logging module
Roundup Robot devnull@devnull 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 tracker rep...@bugs.python.org http://bugs.python.org/issue11557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11557] Increase coverage in logging module
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Closing, thanks for the patch. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Guido van Rossum gu...@python.org added the comment: This issue was first reported by Niels Heinen from the Google Security Team. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Antoine Pitrou pit...@free.fr 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_urllib2.py, line 990, in test_invalid_redirect MockHeaders({location: valid_url})) File /home/antoine/cpython/27/Lib/urllib2.py, line 616, in http_error_302 return self.parent.open(new, timeout=req.timeout) File /home/antoine/cpython/27/Lib/urllib2.py, line 219, in __getattr__ raise AttributeError, attr AttributeError: timeout -- versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11647] function decorated with a context manager can only be invoked once
Michael Foord mich...@voidspace.org.uk added the comment: I agree. copy is a separate protocol and shouldn't be involved here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11676] imp.load_module and submodules - doc issue, or bug?
Brett Cannon br...@python.org 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 importlib ones that are more modern and reasonable. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11557] Increase coverage in logging module
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org http://bugs.python.org/issue11557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11557] Increase coverage in logging module
Natalia B. Bidart nataliabid...@gmail.com added the comment: I'll work on a fix during next weekend (sooner if I have an open slot). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11664] Add patch method to unittest.TestCase
Éric Araujo mer...@netwok.org added the comment: A similar function already exists: test.support.patch -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11664] Add patch method to unittest.TestCase
Michael Foord mich...@voidspace.org.uk 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 rep...@bugs.python.org http://bugs.python.org/issue11664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Guido van Rossum gu...@python.org 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/urllib2 security fix from 2.6 branch. summary: Merge urllib/urllib2 security fix from 2.5 branch. summary: Adding .hgignore (copied from default branch). summary: Add CVE number to urllib/urllib2 news item. summary: Add tests for the urllib[2] vulnerability. Change to raise exceptions. summary: Add FTP to the allowed url schemes. Add Misc/NEWS. summary: Issue 22663: fix redirect vulnerability in urllib/urllib2. -- nosy: -serdar.dalgic versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Guido van Rossum gu...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11703] Bug in python = 2.7 with urllib2 fragment
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11703] Bug in python = 2.7 with urllib2 fragment
Santoso Wijaya santoso.wij...@gmail.com 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('URL:type://host/path') -- 'type://host/path' self.__original = unwrap(url) self.__original, fragment = splittag(self.__original) And the construction of object that urlopen() returns has its geturl() returns the request object's __original field (by now, minus the fragment). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6498] Py_Main() does not return on SystemExit
Alexander Belopolsky belopol...@users.sourceforge.net 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6498] Py_Main() does not return on SystemExit
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The updated doc patch is missing :exc: markup on one of SystemExits. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Guido van Rossum gu...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Benjamin Peterson benja...@python.org added the comment: 2011/3/29 Guido van Rossum rep...@bugs.python.org: Guido van Rossum gu...@python.org 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? Sounds good. BTW, you should probably put your name your hg username messages by setting username in .hgrc to username = Guido van Rossum gu...@python.org or so -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11700] mailbox.py proxy updates
Steffen Daode Nurpmeso sdao...@googlemail.com 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 inherit from a real Python I/O class, for example IOBase? Like this it would stand in a line where it belongs. I could do that (not much missing for that). - I have no idea of the test framework. The last hour i tried to adjust test_mailbox.py a bit, but it's hard. It's not about design and it's not about algorithm. Uff. I could nonetheless add some cases to yet existing test functions and change another one. But this needs a real eye on it! (For example: is there a AssertNoRaises?) -- Added file: http://bugs.python.org/file21452/11700.2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11700 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Barry A. Warsaw ba...@python.org added the comment: Here's a fix that works for me on Ubuntu 11.04. -- hgrepos: +12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Changes by Barry A. Warsaw ba...@python.org: Added file: http://bugs.python.org/file21453/a9b05b89ea39.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Changes by Barry A. Warsaw ba...@python.org: Removed file: http://bugs.python.org/file21453/a9b05b89ea39.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Changes by Barry A. Warsaw ba...@python.org: Added file: http://bugs.python.org/file21454/a4dcae4cd033.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11711] socketpair does not accept AF_INET family argument [Linux]
New submission from Cloudberry tm...@skaugmail.net: 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 default is AF_INET. Executing socket.socketpair() or socket.socketpair(socket.AF_UNIX) runs fine. However, executing socket.socketpair(socket.AF_INET) throws socket.error with Errno 95 Operation not supported. It seems either the docstring is off suggesting non-default family can be selected, or the AF_INET option is broken. -- components: Library (Lib) files: socketpair_runme.py.bz2 messages: 132504 nosy: Cloudberry priority: normal severity: normal status: open title: socketpair does not accept AF_INET family argument [Linux] type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file21455/socketpair_runme.py.bz2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11711 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Barry A. Warsaw ba...@python.org 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 :). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11712] Doc list.sort(cmp=,key=) result.
New submission from Terry J. Reedy tjre...@udel.edu: 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 ignore key= and prints [3,2,1] (why does not matter now), but as near as I can tell, this is not documented. Suggestion: in 5.6.4. Mutable Sequence Types, in footnote 8, after key specifies a function of one argument that is used to extract a comparison key from each list element: key=str.lower. The default value is None. add Ignored if *cmp* is also given. -- assignee: docs@python components: Documentation keywords: easy, patch messages: 132507 nosy: docs@python, terry.reedy priority: normal severity: normal stage: needs patch status: open title: Doc list.sort(cmp=,key=) result. versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11703] Bug in python = 2.7 with urllib2 fragment
Santoso Wijaya santoso.wij...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue11703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11703] Bug in python = 2.7 with urllib2 fragment
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21457/issue11703_py31.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11711] socketpair does not accept AF_INET family argument [Linux]
Ross Lagerwall rosslagerw...@gmail.com 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11711 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1571878] Improvements to socket module exceptions
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1571878 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11678] Add support for Arch Linux to platform.linux_distributions()
Westley Martínez aniko...@gmail.com added the comment: That's the release version for the installation disc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11678 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com 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 to use sys.libdir. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11711] socketpair does not accept AF_INET family argument [Linux]
Cloudberry tm...@skaugmail.net 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 rep...@bugs.python.org http://bugs.python.org/issue11711 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11712] Doc list.sort(cmp=,key=) result.
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11713] collections.deque docstring wrong/misleading
New submission from Davide Rizzo sor...@gmail.com: 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 access is possible (though slow). __ap__ suggestion is Build an ordered collection with optimized access from its endpoints. -- components: Library (Lib) messages: 132513 nosy: davide.rizzo, rhettinger priority: normal severity: normal status: open title: collections.deque docstring wrong/misleading versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11713] collections.deque docstring wrong/misleading
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11155] multiprocessing.Queue's put() signature differs from docs
Westley Martínez aniko...@gmail.com added the comment: Well it's been quite some time and no response yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11155 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11714] threading.Semaphore does not use try...finally
New submission from Thomas Rachel th.rac...@googlemail.com: 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.__cond.release() return rc [...] def release(self): self.__cond.acquire() [...] self.__cond.release() while IMO it would be appropriate to put a try: after the acquire() calls and a finally: before the release() calls so the lock is not held forever if an exception occurs. (Feel free to use with self.__cond: instead...) Especially when Ctrl-C is pressed while acquire() waits, the respective KeyboardInterrupt gets thrown after acquire(), breaking the respective function and the __cond is locked forever because it is never release()d. -- components: Extension Modules messages: 132515 nosy: glglgl priority: normal severity: normal status: open title: threading.Semaphore does not use try...finally versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11714 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7365] grp and pwd should treat uid and gid as unsigned
Sandro Tosi sandro.t...@gmail.com 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 not sure how to do that (is test_grp.py reading local /etc/groups or so?). I'd be happy another pair of eyes to look at the patch, but it seems worth to be committing it (modulo the backport thing: what lower version should be targetting?). -- nosy: +sandro.tosi versions: +Python 3.3 Added file: http://bugs.python.org/file21458/issue7365_refresh_default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Roundup Robot devnull@devnull 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/cpython/rev/96a6c128822b New changeset a778b963eae3 by guido in branch 'default': Merge Issue 11662 from 3.2 branch. http://hg.python.org/cpython/rev/a778b963eae3 New changeset 9eeda8e3a13f by Guido van Rossum in branch '2.6': Merge issue 11662 from 2.5. http://hg.python.org/cpython/rev/9eeda8e3a13f New changeset b2934d98dac1 by Guido van Rossum in branch '2.7': Merge issue 11662 from 2.6. http://hg.python.org/cpython/rev/b2934d98dac1 New changeset 3dc90ebc540a by Guido van Rossum in branch '3.1': Merge issue 11662. http://hg.python.org/cpython/rev/3dc90ebc540a New changeset 968bca2cab60 by Guido van Rossum in branch '3.2': Merge issue 11662. http://hg.python.org/cpython/rev/968bca2cab60 New changeset c8701b9256cf by Guido van Rossum in branch 'default': Merge issue 11662. http://hg.python.org/cpython/rev/c8701b9256cf -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Guido van Rossum gu...@python.org added the comment: Ok, merged into the central repo. Let me know where I screwed up. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass
Gregory P. Smith g...@krypto.org 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 rep...@bugs.python.org http://bugs.python.org/issue11109 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11703] Bug in python = 2.7 with urllib2 fragment
Changes by Ned Deily n...@acm.org: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11155] multiprocessing.Queue's put() signature differs from docs
Erik Cederstrand e...@1calendar.dk added the comment: I'm not sure if I was supposed to respond. The patch looks straight-forward to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11155 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7124] idle.py -n : help() doesn't work in a reopened shell window
Sandro Tosi sandro.t...@gmail.com 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(value, ..., sep=' ', end='\n', file=sys.stdout) Prints the values to a stream, or to sys.stdout by default. Optional keyword arguments: file: a file-like object (stream); defaults to the current sys.stdout. sep: string inserted between values, default a space. end: string appended after the last value, default a newline. -- nosy: +sandro.tosi versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11155] multiprocessing.Queue's put() signature differs from docs
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11155 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11155] multiprocessing.Queue's put() signature differs from docs
Erik Cederstrand e...@1calendar.dk 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 rep...@bugs.python.org http://bugs.python.org/issue11155 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11662] Redirect vulnerability in urllib/urllib2
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11155] multiprocessing.Queue's put() signature differs from docs
Changes by Erik Cederstrand e...@1calendar.dk: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11155 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11714] threading.Semaphore does not use try...finally
Thomas Rachel th.rac...@googlemail.com 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(). This lock must be release()d again in order to be consistent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11714 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11714] threading.Semaphore does not use try...finally
Thomas Rachel th.rac...@googlemail.com 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11714 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11714] threading.Semaphore does not use try...finally
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue11714 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11713] collections.deque docstring wrong/misleading
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7101] tarfile: OSError with TarFile.add(..., recursive=True) about non-existing file
Sandro Tosi sandro.t...@gmail.com 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 filesdirs and then while the script is tar-ring them, you're removing some of them - script crash. if you want to do it, then wrap tar.add() in a try..catch construct, but I think the behavior of tar.add() is correct here. Lars, you assigned this issue to yourself: what do you think it's the best action now (i was about to close it :) ? -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7101 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6498] Py_Main() does not return on SystemExit
Andreas Stührk andy-pyt...@hammerhartes.de 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/file21461/issue6498_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6498] Py_Main() does not return on SystemExit
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: Added file: http://bugs.python.org/file21462/issue6498_31.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7124] idle.py -n : help() doesn't work in a reopened shell window
Gregor Lingl gregorli...@users.sourceforge.net 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 rep...@bugs.python.org http://bugs.python.org/issue7124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9331] sys.setprofile is not described as CPython implementation detail
Sandro Tosi sandro.t...@gmail.com 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8052] subprocess close_fds behavior should only close open fds
Nadeem Vawda nadeem.va...@gmail.com 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.c I wonder whether the Java people are simply unaware of the potential problem? Or perhaps they have checked the Linux and Solaris implementations of readdir() and confirmed that it is in fact safe on those platforms. Even if this is the case, I would be wary of doing things the same way - there's no guarantee that the implementation won't change out from underneath us. 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. On Linux, the multithreading check could be implemented by checking the number of subdirectories in /proc/pid/task/. I don't know if *BSD (or other Unices) have a similar way to do this. Some quick Googling seems to indicate that FreeBSD, at least, doesn't make this information available through the procfs (which is apparently deprecated anyway). Could someone with wider *nix knowledge chip in here? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11393] Integrate faulthandler module into Python 3.3
STINNER Victor victor.stin...@haypocalc.com 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. -- Added file: http://bugs.python.org/file21463/regrtest_timeout.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8052] subprocess close_fds behavior should only close open fds
STINNER Victor victor.stin...@haypocalc.com 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 :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7124] idle.py -n : help() doesn't work in a reopened shell window
Sandro Tosi sandro.t...@gmail.com added the comment: that's great, closing then :) -- resolution: - out of date stage: needs patch - status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11610] Improving property to accept abstract methods
Benjamin Peterson benja...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue11610 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Barry A. Warsaw ba...@python.org added the comment: On Mar 29, 2011, at 07:28 PM, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr 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 that the problem and fix I'm talking about is probably different than the original bug report. I really should create a new issue, since mine isn't about building multiarch for Python, but instead just being able to build Python on a multiarch system. My problem is thankfully much simpler. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11715] Building Python on multiarch Debian and Ubuntu
New submission from Barry A. Warsaw ba...@python.org: 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/MultiArch Unlike issue 1294959 this bug simply covers building Python and its stdlib extension modules on such systems. For example, libsqlite3.so is no longer in /usr/lib but instead in /usr/lib/x86_64-linux-gnu on Ubuntu 11.04. This means that a number of extension modules which depend on these 3rd party shared libraries simply won't build, because setup.py is too naive about the paths it searches. The fix is fairly simple; you have to call out to dpkg-architecture to get the value of the platform's architecture and append that to /usr/lib and /usr/include for setup.py's search paths. See the attached branch and patch for a candidate fix. Because this does not introduce a new feature, it simply fixes the build process for changes to already supported platforms, I would like to apply this to Python 2.5 through 3.3. -- components: Build hgrepos: 13 messages: 132536 nosy: barry priority: high severity: normal status: open title: Building Python on multiarch Debian and Ubuntu type: behavior versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Barry A. Warsaw ba...@python.org 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). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Changes by Barry A. Warsaw ba...@python.org: Removed file: http://bugs.python.org/file21454/a4dcae4cd033.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11715] Building Python on multiarch Debian and Ubuntu
Changes by Barry A. Warsaw ba...@python.org: -- keywords: +patch Added file: http://bugs.python.org/file21464/a9b05b89ea39.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11715] Building Python on multiarch Debian and Ubuntu
Changes by Barry A. Warsaw ba...@python.org: Removed file: http://bugs.python.org/file21464/a9b05b89ea39.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11715] Building Python on multiarch Debian and Ubuntu
Changes by Barry A. Warsaw ba...@python.org: Added file: http://bugs.python.org/file21465/d504ca7e0fe5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Barry A. Warsaw ba...@python.org 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 sys.prefix + /lib. sysconfig, distutils etc. would have to use sys.libdir. Please note that I'm not interested (right now wink) in building Python multiarch, but building Python *on* multiarch. So I think simply adding the right search paths to setup.py is the right way to go, and I've opened a separate issue for it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11702] dir on return value of msilib.OpenDatabase() crashes python
Mark Mc Mahon mtnbikingm...@gmail.com 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? -- Added file: http://bugs.python.org/file21466/msi_opendatabase_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Matthias Klose d...@debian.org added the comment: heh, that's easy, just add the multiarch id to the extension name ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11677] make test has horrendous performance on an ecryptfs
Barry A. Warsaw ba...@python.org 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_python. So I'm inclined to keep it real simple. I will add an atexit handler though to clean up under normal situations. Your right that if Python crashes you'll be left with file cruft, but if you're using --usetmp/-P you should know enough to look for that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11677 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Matthias Klose d...@debian.org 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 headers and libraries, no need to check these on your own. or is it just a partial fix for something slightly unrelated to this issue? IMO, unrelated to the original report. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2694] msilib file names check too strict ?
Mark Mc Mahon mtnbikingm...@gmail.com added the comment: This issue has been fixed by changes made in issue7639 and issue11696 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2694 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com