[issue11561] coverage of Python regrtest cannot see initial import of libs
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
New submission from Mark Hammond skippy.hamm...@gmail.com: A tracking bug for the reference implementation of PEP397 - A Python launcher for Windows. -- assignee: mhammond components: Documentation files: pep-0397-reference.py messages: 131723 nosy: mhammond priority: normal severity: normal status: open title: Reference implementation for PEP 397 type: feature request Added file: http://bugs.python.org/file21330/pep-0397-reference.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal
Ronald Oussoren ronaldousso...@mac.com added the comment: Issue11485 is related to this. As Ned noted Ned and I will look into this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11623 ___ ___ 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
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: It would be nice if it were enabled by default for fatal errors (and asserts perhaps?). That would mean that the module should be a builtin module, or that it is always loaded in memory. I am maybe ok to enable it by default for debug builds, but not for release builds. At least, not in a first time. FWIW: We've been using a similar approach in mxTools.safecall() (which is an undocumented function only and only available if mxTools is compiled with a special define; see the mxTools.c source code for details). Our use case is different, though: We use this function to call a Python callable wrapped with a longjump environment and instead of dumping a traceback we issue an exception, so that the calling code can deal with the problem in a more flexible way. The main reasoning here is proper cleanup, signal the problem to managing code and providing more information about the interpreter state at the time of the segfault. The function is mostly used when calling out to (possibly buggy) 3rd party extensions hooked into a long running web server application, where it enables the server process to write request information about the problem to a log file and then shuts down the process very quickly. Note that we haven't bothered dealing with threads, since we normally use single threaded server processes and because signals and threads don't interact reliably anyway. Perhaps you could consider adding a similar approach (raising an exception instead of writing a traceback) to the module. We could then port our code to use your module, which is more advanced. BTW: Why do you call the traceback functions *backtrace* instead of *traceback* ? 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/ -- nosy: +lemburg ___ 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
[issue11625] Typo in collections.abc docs
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11625 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11630] refleak in test_import
New submission from Antoine Pitrou pit...@free.fr: Introduced by ef2b6305d395. -- assignee: haypo messages: 131727 nosy: haypo, pitrou priority: normal severity: normal status: open title: refleak in test_import type: resource usage versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11630 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11618] Locks broken wrt timeouts on Windows
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Martin: I wouldn't worry too much about replacing a Mutex with a Semaphore. There is no reason to believe that they behave in any way different scheduling wise, and if they did, then any python code that this would affect would be extremely poorly written. sbt: Look, I really hate to be a pain but please consider: In line 50 of your patch the thread may pause at any point, perhaps even a number of times. Meanwhile, a number of locks/unlocks may go by. The values of owned and timeouts that the reader sees may be from any number of different lock states that the lock goes through during this, including any number of different reset cycles of these counters. In short, there is no guarantee that the values read represent any kind of mutually consistent state. They might as well be from two different locks. Please allow me to repeat: Lockless programming is notoriously hard and there is almost always one subtlety or other that is overlooked. I can't begin to count the number of times I've reluctantly had to admit defeat to its devious manipulations. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11618 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT
Rainer Schaaf r...@pdflib.com added the comment: fixing this for the next version of course would be acceptable. As I can use the extension (not setting Py_LIMITED_API) even with 3.2.0 it is not a big problem. I only loose the benefit of Py_LIMITED_API and will have to release another version of the binding later on. Would you prefer to see a compiler error indicating that you are using a function not available in 3.2.0 (with an option of opting into 3.2.1+)? I fear I don't understand exactly what is meant here. For me it was enough to get the linker error telling me it is not working. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11626 ___ ___ 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: Le mardi 22 mars 2011 à 09:01 +, Marc-Andre Lemburg a écrit : Perhaps you could consider adding a similar approach (raising an exception instead of writing a traceback) to the module. We could then port our code to use your module, which is more advanced. I already wrote a patch implementing this idea, 2 years ago, and the idea was rejected. Re-read the history of the module, described in the first message of this issue: History of this module. I first proposed a segfault handler using setjmp/longjmp to raise a classic Python exception. So it was possible to execute Python code after a segfault (including stack overflow). But the idea was rejected because the Python internal state may be corrupted if the segfault was an invalid memory write (buffer overflow?), and anyway we cannot warranty that the internal state is still consistent after a long jump. = http://bugs.python.org/issue3999 (sept. 2009) ... You may dig python-dev archives to learn more about this proposition. BTW: Why do you call the traceback functions *backtrace* instead of *traceback* ? Oh... I don't know. Since Python uses traceback word, I will rename my functions. -- ___ 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
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.
New submission from Kristoffer Nilsson novaf...@gmail.com: Running Windows 7 Enterprise 64 bit, and Python 7.2.1 64 bit Python failed to read and send UDP packages when ran in cmd.exe. This is not the case when ran with IDLE. Example; two simple programs. First one listening to a UDP port sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind(('', 10015)) reading data from socket and printing the received data, using; data, addr = sock.recvfrom(1024) this will lock, if not ran from IDLE. Same for sending data, using; sock.sendto(DATA_MESSAGE, (HOST, 10015)) this will work with both, but only send when running from IDLE. -- components: IDLE, Windows messages: 131731 nosy: Kristoffer.Nilsson priority: normal severity: normal status: open title: Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP. versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11631 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11618] Locks broken wrt timeouts on Windows
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Sbt: I re-read the code and while I still maintain that the evaluation in line 50 is meaningless, I agree that the worst that can happen is an incorrect timeout. It is probably harmless because this state is only encountered for timeout==0, and it is only incorrect in the face of lock contention, while a 0 timeout provides no guarantees between two threads. So, I suggest a change in the comments: Do not claim that the value is never an underestimate, and explain how falsely returning a WAIT_TIMEOUT is safe and only occurs when the lock is heavily contented. Sorry for being so nitpicky but having this stuff correct is crucial. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11618 ___ ___ 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
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Le mardi 22 mars 2011 à 09:01 +, Marc-Andre Lemburg a écrit : Perhaps you could consider adding a similar approach (raising an exception instead of writing a traceback) to the module. We could then port our code to use your module, which is more advanced. I already wrote a patch implementing this idea, 2 years ago, and the idea was rejected. Re-read the history of the module, described in the first message of this issue: History of this module. I first proposed a segfault handler using setjmp/longjmp to raise a classic Python exception. So it was possible to execute Python code after a segfault (including stack overflow). But the idea was rejected because the Python internal state may be corrupted if the segfault was an invalid memory write (buffer overflow?), and anyway we cannot warranty that the internal state is still consistent after a long jump. = http://bugs.python.org/issue3999 (sept. 2009) ... You may dig python-dev archives to learn more about this proposition. I know that the state after a longjump in such a case cannot be guaranteed, but from using the approach in practice over many years, I know that it works quite well - most situations related to programming errors in the 3rd party modules we plug into the system (quant libs, ie. code that does pricing and risk analysis of financial products) are segfaults related to NULL pointer derefs and division by zero. Complete corruption of the Python interpreter state is very rare. Anyway, providing such an approach as option (with the default being your implemented traceback printout), would leave the decision to take this risk to the programmer and I think that's a fair deal. BTW: Why do you call the traceback functions *backtrace* instead of *traceback* ? Oh... I don't know. Since Python uses traceback word, I will rename my functions. 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/ -- ___ 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
[issue11630] refleak in test_import
Roundup Robot devnull@devnull added the comment: New changeset 3114f26d5d54 by Victor Stinner in branch 'default': Issue #11630, issue #3080: Fix refleak introduced by ef2b6305d395 http://hg.python.org/cpython/rev/3114f26d5d54 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11630 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11630] refleak in test_import
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11630 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11632] difflib.unified_diff loses context
New submission from Brice Videau brice.vid...@gmail.com: unified_diff seems to lose the context when comparing the 2 files contained in the attached archive using this script : import difflib b1 = open(out1.short,r).read().splitlines(True) b2 = open(out2.short,r).read().splitlines(True) compare = difflib.unified_diff(b1,b2) for line in compare: print line, a big chunk of lines is considered as removed, just to be added next (around line 16). Comparing out2.short against out1.short does not produce this behavior : compare = difflib.unified_diff(b2,b1) is correct. Other diff tools such as diff or vimdiff do not exhibit this problem. -- components: Library (Lib) files: diff.tgz messages: 131735 nosy: Brice.Videau priority: normal severity: normal status: open title: difflib.unified_diff loses context type: behavior versions: Python 2.6, Python 3.1 Added file: http://bugs.python.org/file21332/diff.tgz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11632 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
New submission from anatoly techtonik techto...@gmail.com: print() function for some reason buffers output on Windows if end!='\n'. In attached examples Processing.. string is shown in Python 3.2 only after the actual processing is finished, while in Python 2.6 it is shown before. -- files: printtest3.py messages: 131736 nosy: techtonik priority: normal severity: normal status: open title: regression: print buffers output when end='' versions: Python 3.2 Added file: http://bugs.python.org/file21333/printtest3.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
Changes by anatoly techtonik techto...@gmail.com: Added file: http://bugs.python.org/file21334/printtest2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
STINNER Victor victor.stin...@haypocalc.com added the comment: printtest2.py displays directly Processing.. on Windows, but not on Linux. It looks like stdout is not buffered on Windows, which looks like a bug to bug :-) I think that it is safer to always call sys.stdout.flush() to ensure that your message is directly displayed. With Python 2, you can use -u flag (unbuffered output) to avoid the explicit flush, but this is very inefficient (slow). Python 3 uses line buffers, even with python3 -u, for better performances. If you want to see directly Processing.. , as Python 2, call sys.stdout.flush(). It is not a regression, it is a choice to be efficient. -- nosy: +haypo resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
anatoly techtonik techto...@gmail.com added the comment: From my perspective it is a regression on Windows and a bug in Linux version of Python 2.x, which unfortunately can not be fixed, because of 2.x release process. If the fact that print statement doesn't output anything when called is not a bug - then should be documented long ago. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
STINNER Victor victor.stin...@haypocalc.com added the comment: From my perspective it is a regression on Windows and a bug in Linux version of Python 2.x, which unfortunately can not be fixed, because of 2.x release process. Line buffering is used by default on most operating systems (ok, maybe not Windows, which looks strange to me) and is not specific to Python. Yes, Python has subtle differences on different operating systems, but at least it looks like Python 3 has the same behaviour on Linux and Windows ;-) If the fact that print statement doesn't output anything when called is not a bug - then should be documented long ago. Can you please write a patch for the doc? Reopen the issue if you have a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11627] segfault raising an arbitrary object as an exception
Nick Coghlan ncogh...@gmail.com added the comment: Note that this test code: def raise_(): raise MyException self.assertRaises(TypeError, raise_) can be simplified to: with self.assertRaises(TypeError): raise MyException in all currently maintained branches. -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
anatoly techtonik techto...@gmail.com added the comment: How about making print() user-friendly with flushing after every call, and if you want explicitly want speed - use buffered sys.stdout.write/flush()? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
STINNER Victor victor.stin...@haypocalc.com added the comment: How about making print() user-friendly with flushing after every call, and if you want explicitly want speed - use buffered sys.stdout.write/flush()? This is exactly the -u option of Python 2: use it if you would like a completly unbuffered sys.stdout in a portable way. In Python 3, it is only useful to flush at each line, even if the output is not a console, but a pipe (e.g. output redirected to a file). But nobody asked yet to have a fully unbuffered sys.stdout in Python 3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
anatoly techtonik techto...@gmail.com added the comment: You must realize that the most common use case for print(..., end!='\n') is when you want to notify user about intermediate progress of a very long operation. Making documentation for simple print() statement overloaded with low level buffering details makes language seem overly complicated for new users. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11618] Locks broken wrt timeouts on Windows
sbt shibt...@gmail.com added the comment: krisvale wrote: So, I suggest a change in the comments: Do not claim that the value is never an underestimate, and explain how falsely returning a WAIT_TIMEOUT is safe and only occurs when the lock is heavily contented. Sorry for being so nitpicky but having this stuff correct is crucial. Nitpickiness is a necessity ;-) I've done a new version which replaces the meaningless racy test on line 50 with the simpler test else if (mutex-timeouts == 0) As with the old meaningless test, if the test succeeds then there must at least have been very recent conention for the lock, so timing out is reasonable. Also the new patch only considers rezeroing mutex-timeouts if we acquire the lock on the slow path. The patch contains more comments than before. -- Added file: http://bugs.python.org/file21335/locktimeout3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11618 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11618] Locks broken wrt timeouts on Windows
Changes by sbt shibt...@gmail.com: Removed file: http://bugs.python.org/file21335/locktimeout3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11618 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11618] Locks broken wrt timeouts on Windows
sbt shibt...@gmail.com added the comment: krisvale wrote: So, I suggest a change in the comments: Do not claim that the value is never an underestimate, and explain how falsely returning a WAIT_TIMEOUT is safe and only occurs when the lock is heavily contented. Sorry for being so nitpicky but having this stuff correct is crucial. Nitpickiness is a necessity ;-) I've done a new version which replaces the meaningless racy test on line 50 with the simpler test else if (mutex-timeouts == 0) As with the old meaningless test, if the test succeeds then there must at least have been very recent conention for the lock, so timing out is reasonable. Also the new patch only considers rezeroing mutex-timeouts if we acquire the lock on the slow path. The patch contains more comments than before. -- Added file: http://bugs.python.org/file21336/locktimeout3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11618 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11622] Documentation
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file21331/roberto_derenzi.vcf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11622 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11287] Add context manager support to dbm modules
Ray.Allen ysj@gmail.com added the comment: patch updated. -- Added file: http://bugs.python.org/file21337/issue_11287.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11287 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal
Éric Araujo mer...@netwok.org added the comment: Thanks for taking care of this. I’ll be here to review distutils-related changes, if any are needed. -- assignee: tarek - ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11591] python -S should be robust against e.g. from site import addsitedir
Éric Araujo mer...@netwok.org added the comment: The Remote hg repo field was just empty when I made my latest comment Looks like this field is always empty: its goal is to add a repo, just like the File field is always empty unless you add a file. The existing files and repositories are however listed underneath the form, so your screen just probably did not go low enough for you to see that the repo was still listed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal
Ronald Oussoren ronaldousso...@mac.com added the comment: I haven't put much thought in a solution yet, but at this point I'd go for three changes: 1) Give a clear warning when python was configured for i386/ppc and Xcode4 is installed (instead of giving a vague compiler crash due to crapping out on ppc code) 2) Add an option that forces distutils to compile for i386 only This should not be the default because that would result in broken packages for users that want to redistribute binaries to ppc machines. 3) The i386/ppc build should use the system headers instead of the 10.4u SDK (change in configure.in), with a fallback to the 10.4u SDK when building extensions on a 10.4 machine (because the -isysroot / cannot build universal binaries on all such machines) BTW. distutils does not have code to work around OSX issues, it has code to make use of OSX specific compilation features (such as having universal binaries and SDKs). ;-) ;-) -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11634] misleading comment on PyBytes_FromStringAndSize
New submission from Eli Bendersky eli...@gmail.com: The comment string above the implementation of _PyBytes_FromStringAndSize in Objects/bytesobject.c starts with: /* For both PyBytes_FromString() and PyBytes_FromStringAndSize(), the parameter `size' denotes number of characters to allocate, not counting any null terminating character. This is misleading since PyBytes_FromString() has no 'size' parameter. The problem also exists for PyString in Python 2.x -- assignee: docs@python components: Documentation keywords: easy messages: 131750 nosy: docs@python, eli.bendersky priority: low severity: normal status: open title: misleading comment on PyBytes_FromStringAndSize versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11634 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11634] misleading comment on PyBytes_FromStringAndSize
STINNER Victor victor.stin...@haypocalc.com added the comment: Could you write a patch to fix this comment? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11634 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11625] Typo in collections.abc docs
Roundup Robot devnull@devnull added the comment: New changeset a56cd7aeac5e by Raymond Hettinger in branch '2.7': Issue #11625: Fix Typo http://hg.python.org/cpython/rev/a56cd7aeac5e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11625 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11625] Typo in collections.abc docs
Roundup Robot devnull@devnull added the comment: New changeset 3aec82018a18 by Raymond Hettinger in branch '3.1': Issue #11625: Fix Typo http://hg.python.org/cpython/rev/3aec82018a18 New changeset 461e5c60fbdf by Raymond Hettinger in branch '3.2': Issue #11625: Fix Typo http://hg.python.org/cpython/rev/461e5c60fbdf New changeset 8b633c55ac7a by Raymond Hettinger in branch 'default': Issue #11625: Fix Typo http://hg.python.org/cpython/rev/8b633c55ac7a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11625 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11625] Typo in collections.abc docs
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11625 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10694] zipfile.py end of central directory detection not robust
Changes by bcroq bertrand.c...@gmail.com: -- nosy: +bcroq ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10694 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10694] zipfile.py end of central directory detection not robust
Bertrand Croq bertrand.c...@gmail.com added the comment: The last patch (manually applied to Python 2.6) fixed the problem with a ZIP file used in my project. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10694 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10694] zipfile.py end of central directory detection not robust
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +amaury.forgeotdarc versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10694 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: We are talking about different things here: - When python is run from a console, sys.stdout is line buffered. sys.stdout.write() flushes if there is a carriage return. No need to change anything here. - print() could call file.flush() if file.isatty(), *after* the multiple calls to file.write(). -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
New submission from Antoine Pitrou pit...@free.fr: concurrent.futures uses polling in its worker threads and processes (with a timeout of 0.1). It means that: 1) this prevents CPUs to enter low power states durably 2) it incurs latency when calling shutdown() on an executor (this seems to be the main source of slowness in test_concurrent_futures under Linux) -- components: Library (Lib) messages: 131756 nosy: bquinlan, gregory.p.smith, jyasskin, pitrou priority: normal severity: normal stage: needs patch status: open title: concurrent.futures uses polling type: resource usage versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8420] Objects/setobject.c contains unsafe code
Raymond Hettinger raymond.hettin...@gmail.com added the comment: This looks okay. On the first lines for set_merge() where there is: key = entry-key; also do: hash = entry-key; so that the two get handled in a parallel fashion. Thanks for doing the backporting. -- assignee: rhettinger - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11244] Negative tuple elements produce inefficient code.
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11636] fh is not defined in npyio.py fromregex
New submission from William Dawson williamanthonydaw...@gmail.com: NameError: global name 'fh' is not defined File /Users/williamdawson/Programs/fat_wip.py, line 263, in module header_gal = readheader(gal_cat) File /Users/williamdawson/Programs/tools.py, line 96, in readheader [('column',numpy.int16),('name','S10')]) File /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/numpy/lib/npyio.py, line 972, in fromregex Note that this code works perfectly fine with the python 2.6 EPD release. -- components: None files: npyio.py messages: 131758 nosy: William.Dawson priority: normal severity: normal status: open title: fh is not defined in npyio.py fromregex type: crash versions: Python 2.7 Added file: http://bugs.python.org/file21338/npyio.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11636] fh is not defined in npyio.py fromregex
Brian Curtin br...@python.org added the comment: You should report this to whoever makes npyio.py -- nosy: +brian.curtin resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.
Santoso Wijaya santoso.wij...@gmail.com added the comment: this will lock I should expect so! recvfrom is a blocking method. The interpreter will block on said socket until (if recvfrom) data arrives from the remote end of the socket. sendto is non-blocking, though. And it works for me: Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.sendto('data', ('localhost', 1005)) 4 -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11631 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1677] Ctrl-C will exit out of Python interpreter in Windows
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt -Devin Jeanpierre versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch
Changes by Anton Benard acben...@gmail.com: -- nosy: +abenard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7833 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11591] python -S should be robust against e.g. from site import addsitedir
Brett Cannon br...@python.org added the comment: Doc changes seem fine to me. -- assignee: brett.cannon - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.
Kristoffer Nilsson novaf...@gmail.com added the comment: Ah, bad formulation by me. While testing I had both the same machine and external machine sending UDP packages to the port I was listening to. The listening server would not receive anything on 64/64bit (unless running from IDLE). The reverse try, running the listening server (same program) on another computer, it would receive only from its own stream (while the 64/64 would only send packages while running from IDLE). This was verified running Wireshark on both machines. So in short, the 64/64 running from cmd.exe would not send or receive on UDP, while running from IDLE this was not the case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11631 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7833 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11333] Add empty __slots__ to collections.abc abstract base classes
Roundup Robot devnull@devnull added the comment: New changeset d50a71994f51 by Raymond Hettinger in branch 'default': Issue #11333: Add __slots__ to the collections ABCs. http://hg.python.org/cpython/rev/d50a71994f51 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11333] Add empty __slots__ to collections.abc abstract base classes
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Thanks Daniel. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11397] os.path.realpath() may produce incorrect results
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- components: +Library (Lib) -Extension Modules ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11634] misleading comment on PyBytes_FromStringAndSize
Eli Bendersky eli...@gmail.com added the comment: Sure, I just wanted confirmation from another dev that it's indeed an error and I'm not missing anything. I suppose the fix is just replace for both PyBytes_FromString() and PyBytes_FromStringAndSize() with just for PyBytes_FromStringAndSize(). I'll commit the change to all relevant branches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11634 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10291] Clean-up turtledemo in-package documentation
Éric Araujo mer...@netwok.org added the comment: Agreed. Which .py files would be appropriate? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.
Santoso Wijaya santoso.wij...@gmail.com added the comment: I can't reproduce this. I'm also running 64-bit Python on 64-bit Windows 7 and socket operations are fine for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11631 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10291] Clean-up turtledemo in-package documentation
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Mar 22, 2011 at 2:55 PM, Éric Araujo rep...@bugs.python.org wrote: .. Agreed. Which .py files would be appropriate? Lib/turtledemo/about_turtle.txt - seems to belong to turtle.py Lib/turtledemo/about_turtledemo.txt - turtledemo/__init__.py and Lib/turtledemo/demohelp.txt. - turtledemo/__main__.py or a new module to be imported from __main__ most of the code in __main__ can be moved/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11093] test_future - rename not-unittest files to make regrtest.NOTTESTS an empty set
Sandro Tosi sandro.t...@gmail.com added the comment: Reattaching patch generated (against 3.2) with diff --git to preserve the rename operation. -- Added file: http://bugs.python.org/file21339/test_future_diffgit.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11093 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10291] Clean-up turtledemo in-package documentation
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Mar 22, 2011 at 3:14 PM, Alexander Belopolsky belopol...@users.sourceforge.net wrote: .. Lib/turtledemo/about_turtle.txt - seems to belong to turtle.py In fact, it looks like turtle docstring is already a copy (or almost a copy) of Lib/turtledemo/about_turtle.txt. Instead of reading about_turtle.txt, turtledemo should just reuse turtle.__doc__. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11287] Add context manager support to dbm modules
Éric Araujo mer...@netwok.org added the comment: Looks good. Would someone else like to review too? I don’t know C, and there may be PEP 343 subtleties that I have missed. -- keywords: +needs review nosy: +ncoghlan stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11287 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10291] Clean-up turtledemo in-package documentation
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- type: - feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1214675] module warnings lacks a remove filter function
Guido van Rossum gu...@python.org added the comment: Closing. We now have a context manager based solution for saving, changing and restoring warning filters. http://docs.python.org/library/warnings.html#testing-warnings (I just came across this issue looking for such a solution. :-) -- nosy: +gvanrossum resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1214675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10291] Clean-up turtledemo in-package documentation
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- keywords: +patch Added file: http://bugs.python.org/file21340/issue10291.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings
Changes by Brian Curtin br...@python.org: -- components: +Extension Modules, Windows -Library (Lib) nosy: +brian.curtin stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11620 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT
Martin v. Löwis mar...@v.loewis.de added the comment: I fear I don't understand exactly what is meant here. For me it was enough to get the linker error telling me it is not working. Suppose 3.2.1 adds this function, which then means that your extension builds fine. However, it won't run on 3.2.0, so you might complain that the ABI isn't really stable. Therefore, I wonder whether you would have liked to continue receiving compile-time indications that you are using parts of the ABI which had not been around in 3.2.0. Now that you know, you *personally* probably don't need this notification anymore. I just wonder about people in similar situations. -- title: Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT - Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11626 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.
Martin v. Löwis mar...@v.loewis.de added the comment: Kristoffer: are you using a personal firewall software? These filters often filter traffic out depending on what process is receiving it, so you may want to turn the firewall off (or explicitly configure it to allow this port to be open). -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11631 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11628] cmp_to_key generated class should use __slots__
Roundup Robot devnull@devnull added the comment: New changeset 136298326897 by Raymond Hettinger in branch '2.7': Issue #11628: cmp_to_key should use__slots__. http://hg.python.org/cpython/rev/136298326897 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11628 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11595] Miscellaneous bugs in cfg_to_args() utility function
Éric Araujo mer...@netwok.org added the comment: Another bug: the extracted author_email value is wrong. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11595 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11634] misleading comment on PyBytes_FromStringAndSize
STINNER Victor victor.stin...@haypocalc.com added the comment: PyObject * PyBytes_FromString(const char *str) { register size_t size; ... size = strlen(str); ... } PyBytes_FromString() does compute the input string size using strlen(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11634 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11260] smtpd-as-a-script feature should be documented and should use argparse
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11260 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
Changes by Daniel Stutzbach stutzb...@google.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11637] Add cwd to sys.path for hooks
New submission from Éric Araujo mer...@netwok.org: When pysetup is run in a project directory, this dir is not on sys.path, so hooks modules in the dir can’t be found. -- assignee: tarek components: Distutils2 keywords: easy messages: 131778 nosy: alexis, eric.araujo, tarek priority: normal severity: normal stage: needs patch status: open title: Add cwd to sys.path for hooks versions: 3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11552] Confusing error message when hook module cannot be loaded
Éric Araujo mer...@netwok.org added the comment: It’s strange because we do have tests for the function. Can you look at them and find any error? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11552 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10291] Clean-up turtledemo in-package documentation
Éric Araujo mer...@netwok.org added the comment: The patch contains one unrelated code change. I think the docstrings should not go as is but be cleaned up to match docstrings conventions. I’ve also spotted some phrasing issues. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8420] Objects/setobject.c contains unsafe code
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file21317/fix-set-crashers-2.7.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident
New submission from RonnyPfannschmidt ronny.pfannschm...@gmx.de: i passed in a unicode value as version by accident, resulted in: Traceback (most recent call last): File /home/ronny/.local/venvs/clean/bin/pysetup, line 7, in module execfile(__file__) File /home/ronny/Projects/distutils2/distutils2/pysetup, line 5, in module main() File /home/ronny/Projects/distutils2/distutils2/run.py, line 486, in main return dispatcher() File /home/ronny/Projects/distutils2/distutils2/run.py, line 477, in __call__ return func(self, self.args) File /home/ronny/Projects/distutils2/distutils2/run.py, line 166, in _run dist.run_command(cmd, dispatcher.command_options[cmd]) File /home/ronny/Projects/distutils2/distutils2/dist.py, line 781, in run_command cmd_obj.run() File /home/ronny/Projects/distutils2/distutils2/command/sdist.py, line 183, in run self.make_distribution() File /home/ronny/Projects/distutils2/distutils2/command/sdist.py, line 327, in make_distribution owner=self.owner, group=self.group) File /home/ronny/Projects/distutils2/distutils2/command/cmd.py, line 426, in make_archive owner=owner, group=group) File /home/ronny/Projects/distutils2/distutils2/_backport/shutil.py, line 588, in make_archive filename = func(base_name, base_dir, **kwargs) File /home/ronny/Projects/distutils2/distutils2/_backport/shutil.py, line 426, in _make_tarball tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress]) File /home/ronny/Projects/distutils2/distutils2/_backport/tarfile.py, line 1693, in open _Stream(name, filemode, comptype, fileobj, bufsize), File /home/ronny/Projects/distutils2/distutils2/_backport/tarfile.py, line 434, in __init__ self._init_write_gz() File /home/ronny/Projects/distutils2/distutils2/_backport/tarfile.py, line 462, in _init_write_gz self.__write(self.name + NUL) File /home/ronny/Projects/distutils2/distutils2/_backport/tarfile.py, line 478, in __write self.buf += s UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128) note that i have no idea where the 0x8b is from, if i just pass the version trough str it works (which means something is wrong somewhere else, unicode just triggers it) -- assignee: tarek components: Distutils2 messages: 131781 nosy: RonnyPfannschmidt, alexis, eric.araujo, tarek priority: normal severity: normal status: open title: pysetup un sdist crashes with weird trace if version is unicode by accident versions: 3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident
Éric Araujo mer...@netwok.org added the comment: What is the version? Can you also include the setup.cfg file? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8420] Objects/setobject.c contains unsafe code
Éric Araujo mer...@netwok.org added the comment: I assume you meant “hash = entry-hash”, not “entry-key”. Updated patch attached. -- Added file: http://bugs.python.org/file21341/fix-set-crashers-2.7.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8420] Objects/setobject.c contains unsafe code
Éric Araujo mer...@netwok.org added the comment: BTW, set_add_entry still uses entry-hash. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident
RonnyPfannschmidt ronny.pfannschm...@gmx.de added the comment: here the file that passed in the unicode string via hook note that all of the passed characters are actually ascii -- Added file: http://bugs.python.org/file21342/hgdistver.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident
Changes by RonnyPfannschmidt ronny.pfannschm...@gmx.de: Added file: http://bugs.python.org/file21343/setup.cfg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident
RonnyPfannschmidt ronny.pfannschm...@gmx.de added the comment: actually its enough to have the version_hook set the version to u'0.0' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10291] Clean-up turtledemo in-package documentation
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Mar 22, 2011 at 5:15 PM, Éric Araujo rep...@bugs.python.org wrote: .. The patch contains one unrelated code change. Yes, I noticed that, but it may not be that unrelated. Of course the two changes need to be committed separately, but the pop-under issue (issue11571) affects turtledemo in the same way as turtle. I think the docstrings should not go as is but be cleaned up to match docstrings conventions. I’ve also spotted some phrasing issues. I would rather keep code and documentation changes separate. Not that we have any strict docstrings conventions. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident
Changes by RonnyPfannschmidt ronny.pfannschm...@gmx.de: Added file: http://bugs.python.org/file21344/hgdistver.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10291] Clean-up turtledemo in-package documentation
Éric Araujo mer...@netwok.org added the comment: I would rather keep code and documentation changes separate. I don’t follow; my comment about bad phrasing was about the text added to the docstrings. Not that we have any strict docstrings conventions. :-) Not enforced, but still useful to follow: PEP 257. *looks at ast.py and grumbles* -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8420] Objects/setobject.c contains unsafe code
Raymond Hettinger raymond.hettin...@gmail.com added the comment: The revised patch looks good. Please make the same change for set_add_entry. If the tests run, go ahead and apply. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10291] Clean-up turtledemo in-package documentation
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Mar 22, 2011 at 5:29 PM, Éric Araujo rep...@bugs.python.org wrote: .. I would rather keep code and documentation changes separate. I don’t follow; my comment about bad phrasing was about the text added to the docstrings. The text added to docstrings was copied from deleted text files. (I only fixed a few obvious anachronisms such as turtleDemo vs. turtledemo.) From user's POV, there is no change: the help topics display the same text as before. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11639] Documentation for *Config functions in logging module should be in logging.config
New submission from Santoso Wijaya santoso.wij...@gmail.com: For example, the function `fileConfig` is listed in the documentation [1] as `logging.fileConfig`. This was a surprise for me when trying it gave me an AttributeError. Only after reading the source code that I found out this function is defined in the `logging.config` module, and must be referenced as such. [1] http://docs.python.org/library/logging.html#logging.fileConfig -- assignee: docs@python components: Documentation messages: 131791 nosy: docs@python, santa4nt priority: normal severity: normal status: open title: Documentation for *Config functions in logging module should be in logging.config versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11639] Documentation for *Config functions in logging module should be in logging.config
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11639] Documentation for *Config functions in logging module should be in logging.config
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT
Rainer Schaaf r...@pdflib.com added the comment: OK now I got it. Yes for others this would be very helpful. Specially as the Py_LIMITED_API promises to solve the changing API issue on windows and Parse_Tuple is one of the main API's used in extensions this would be helpful I guess. I personally decided to build without Py_LIMITED_API for Python 3.2.*, I will use the new feature with Python 3.3.*. This is more clear for our customers. Till now we only had new extensions with new x.y versions of Python, nether with x.y.z versions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11626 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11640] Shelve references globals in its __del__ method
New submission from Peter Davies ultra...@gmail.com: Shelf.__setitem__ (which is called from __del__ when writeback is enabled) references globals. This was causing exceptions on interpreter shutdown (due to another exception) for me. I have attached a patch which stores the relevant globals in the Shelf object. -- components: Library (Lib) files: shelve_del_fix.diff keywords: patch messages: 131793 nosy: Peter.Davies priority: normal severity: normal status: open title: Shelve references globals in its __del__ method type: behavior versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file21345/shelve_del_fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11640 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10225] Fix doctest runable examples in python manual
Raymond Hettinger raymond.hettin...@gmail.com added the comment: These are fine except for the changes to collections.py. Please leave the deployed code for named tuple as-is. Doctest may have issues with trailing whitespace, but that is doctest's problem, not named tuple's. -- assignee: rhettinger - belopolsky resolution: - accepted versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10225 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1479611] speed up function calls
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1479611 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10988] Descriptor protocol documentation for super bindings is incorrect
Roundup Robot devnull@devnull added the comment: New changeset 50cc60852a76 by Raymond Hettinger in branch '2.7': Issue 10988: fix description of super's descriptor call. http://hg.python.org/cpython/rev/50cc60852a76 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
Changes by Craig McQueen pyt...@craig.mcqueen.id.au: -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10988] Descriptor protocol documentation for super bindings is incorrect
Roundup Robot devnull@devnull added the comment: New changeset 3e3c46a3dce8 by Raymond Hettinger in branch '3.1': Issue 10988: fix description of super's descriptor call. http://hg.python.org/cpython/rev/3e3c46a3dce8 New changeset 40698c68a32c by Raymond Hettinger in branch '3.2': Issue 10988: fix description of super's descriptor call. http://hg.python.org/cpython/rev/40698c68a32c New changeset 29c8eb206076 by Raymond Hettinger in branch 'default': Issue 10988: fix description of super's descriptor call. http://hg.python.org/cpython/rev/29c8eb206076 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com