[issue11430] can't change the sizeof a Structure that doesn't own its buffer
New submission from benrg benrud...@gmail.com: A struct that is resized knows its new size; among other things, the new size is returned by sizeof. But it seems to be impossible to increase the size of a struct that doesn't own its buffer. resize fails in this case. This would not be too bad if the size were merely informational, but unfortunately ctypes also uses it for bounds checking. This makes from_buffer and from_address a lot less useful than they would otherwise be. I think that either resize should succeed when the underlying buffer is already large enough (or unconditionally in the case of from_address), or else from_buffer and from_address should take a size argument, or possibly both. -- assignee: theller components: ctypes messages: 130237 nosy: benrg, theller priority: normal severity: normal status: open title: can't change the sizeof a Structure that doesn't own its buffer type: feature request versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8594] Add a source_address option to ftplib
Giampaolo Rodola' g.rod...@gmail.com added the comment: Committed in r68309. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8594 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8594] Add a source_address option to ftplib
Giampaolo Rodola' g.rod...@gmail.com added the comment: Ok, that wasn't r68309. =) I'm not sure what revision number is now that we're using mercurial. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8594 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11431] Python 3.2 (r32:88452) F5 crashes
New submission from Andrew Lih andrew...@gmail.com: Run Module causes the IDLE to freeze when I start Run Module by pressing F5 on the keyboard. But clicking Run Module via Run on the menu bar have no freezing issue. Mac 10.6.6 -- components: IDLE messages: 130240 nosy: andrewlih priority: normal severity: normal status: open title: Python 3.2 (r32:88452) F5 crashes type: crash versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8542] Another test issue
Changes by Martin v. Löwis mar...@v.loewis.de: -- keywords: +patch Added file: http://bugs.python.org/file21029/a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8542 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8542] Another test issue
Changes by Martin v. Löwis mar...@v.loewis.de: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8542 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11431] Python 3.2 (r32:88452) F5 Run Module freezes IDLE
Changes by Andrew Lih andrew...@gmail.com: -- title: Python 3.2 (r32:88452) F5 crashes - Python 3.2 (r32:88452) F5 Run Module freezes IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11428] with statement looks up __exit__ incorrectly
benrg benrud...@gmail.com added the comment: But when I translate my example according to PEP 343, it works (i.e., doesn't raise an exception) in 3.2, and PEP 343 says [t]he details of the above translation are intended to prescribe the exact semantics. So I think that at least one of PEP 343, the evaluation of mgr.__exit__, or the evaluation of with mgr: pass must be broken, though I'm no longer sure which. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11428] with statement looks up __exit__ incorrectly
Changes by Georg Brandl ge...@python.org: -- assignee: - benjamin.peterson nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8542] Another test issue
Changes by Martin v. Löwis mar...@v.loewis.de: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8542 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8542] Another test issue
Changes by Martin v. Löwis mar...@v.loewis.de: -- nosy: -georg.brandl status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8542 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8594] Add a source_address option to ftplib
Nadeem Vawda nadeem.va...@gmail.com added the comment: I'm not seeing the commit anywhere. Did you perhaps forget to hg push after committing? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8594 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1559549] ImportError needs attributes for module and file name
STINNER Victor victor.stin...@haypocalc.com added the comment: The module name is a UTF-8 encoded string yes. It should be documented in PyModuleDef structure. I already documented the encoding in PyModule_New(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11364] Move from distutils.sysconfig to sysconfig in test_osx_env
Éric Araujo mer...@netwok.org added the comment: I haven’t seen any pitchfork-brandishing in my inbox, so I’m closing this. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11364 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11432] webbrowser.open on unix fails.
New submission from Campbell Barton ideasma...@gmail.com: On Linux - tested on: Arch linux @ Debian Squeeze, this fails python -c __import__('webbrowser').open('http://python.org') The exception thats raised is: Traceback (most recent call last): File string, line 1, in module File /usr/lib/python3.2/webbrowser.py, line 70, in open_new_tab return open(url, 2) File /usr/lib/python3.2/webbrowser.py, line 62, in open if browser.open(url, new, autoraise): File /usr/lib/python3.2/webbrowser.py, line 276, in open success = self._invoke(args, True, autoraise) File /usr/lib/python3.2/webbrowser.py, line 239, in _invoke stderr=inout, preexec_fn=setsid) File /usr/lib/python3.2/subprocess.py, line 736, in __init__ restore_signals, start_new_session) File /usr/lib/python3.2/subprocess.py, line 1330, in _execute_child raise child_exception_type(errno_num, err_msg) OSError: [Errno 9] Bad file descriptor Noticed that this wont raise an error when stdin arg isn't passed to Popen: line 237: p = subprocess.Popen(cmdline, close_fds=True, stdin=inout, Removing tdin=inout makes firefox load ok, however this is there for a reason so its not a useful fix ofcourse. -- components: Extension Modules messages: 130245 nosy: ideasman42 priority: normal severity: normal status: open title: webbrowser.open on unix fails. versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11432] webbrowser.open on unix fails.
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) -Extension Modules nosy: +ezio.melotti, georg.brandl type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11417] distutils' bdist_rpm fails when running with PYTHONDONTWRITEBYTECODE
Éric Araujo mer...@netwok.org added the comment: What change are you wishing for? bdist_rpm is frozen in distutils and removed in distutils2. If this is a feature request, it should be reported to the new standalone project bdist_rpm2 (home https://bitbucket.org/tarek/pypi2rpm; the bug tracker is not enabled, so I suggest you write to the distutils-sig ML). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11417 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8847] crash appending list and namedtuple
Changes by Éric Araujo mer...@netwok.org: -- nosy: +rhettinger versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8847 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11185] test_wait4 error on AIX
Sébastien Sablé sa...@users.sourceforge.net added the comment: I had seen that post you mentioned and already tested the -lbsd without success. wait4 is not even present in libbsd. phenix:~$ nm /usr/lib/libbsd.a | grep wait phenix:~$ Maybe it was present on older versions of the system. But I couldn't find any documentation mentioning wait4 and -lbsd anywhere. Actually wait4 is never mentioned in the IBM documentation concerning AIX. wait4 without WNOHANG works fine. waitpid works fine even with WNOHANG. I don't know which workaround is the better. I will also try to report this bug to IBM so that a future version of AIX could work correctly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11185 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11425] Cleanup sample codes in tutorial.
Éric Araujo mer...@netwok.org added the comment: Just two notes: The operations like “7205759403792794 * 10**30 / 2**56” in floatimport could use some parens; the patch removed a duplicate “statement: for” entry. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11426] CSV examples can't close their files
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11426 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11395] print(s) fails on Windows with long strings
STINNER Victor victor.stin...@haypocalc.com added the comment: I tried to commit io_write.patch, but I had problems with Mercurial :-) I will commit it later. -- Added file: http://bugs.python.org/file21030/io_write.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1559549] ImportError needs attributes for module and file name
Filip Gruszczyński grusz...@gmail.com added the comment: I am sorry again for those mistakes, it's all completely new to me. I have fixed those issues and created new patch. Using hg export, that now spans over two commits. Is it the way those patches should be provided, or should I gather all changes into a one commit? -- Added file: http://bugs.python.org/file21031/1559549_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11395] print(s) fails on Windows with long strings
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This last patch looks good, except that the comments if stdout mode is binary (python -u) are incorrect: since r87824, all files are opened in binary mode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11395] print(s) fails on Windows with long strings
STINNER Victor victor.stin...@haypocalc.com added the comment: This last patch looks good, except that the comments if stdout mode is binary (python -u) are incorrect: since r87824, all files are opened in binary mode. I plan to commit the patch to 3.1 and then forward port to 3.2 and 3.3. Yes, I will adapt the comment (remove (python -u)) for 3.2 and 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3982] support .format for bytes
Arjen Nienhuis a.g.nienh...@gmail.com added the comment: struct.pack does not work with variable length data. Something like: b'{0:x}\r\n{1}\r\n'.format(len(block), block) or b'%x\r\n%s\r\n' % (len(block), block) is not possible with struct.pack -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3982 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11415] ZipFile don't overwrite compresed files at create
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Luckily, extracting one of them just get only the more recent one It's not only luck: a Zip file has a central directory used to retrieve data. ZipFile just appends the new file data to the end of the Zip file, then write the updated directory structure. Removing the old content is another matter, and is similar to issue6818. This requires a whole copy of the zip file, and so far, no acceptable patch was proposed. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11415] ZipFile don't overwrite compresed files at create
Jesús Leganés Combarro pira...@gmail.com added the comment: Ok, they talk about remove it, that's why i didn't found it :-P Ok, it make sense. By the way, this way the old data is available? How? (Just to know... it could be a courious feature :-D ) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11406] There is no os.listdir() equivalent returning generator instead of list
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: Glibc's readdir() and readdir_r() already do caching, so getdents() syscall is called only once on my '/etc' directory. Should we include another caching level in xlistdir() function? On the other hand, we don't know anything about caches at glibc's level, i.e. we can't tell if our next call to readdir() will result in syscall or even I/O (we could possible release GIL for that). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11406 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11428] with statement looks up __exit__ incorrectly
Benjamin Peterson benja...@python.org added the comment: Well, the pep is wrong, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A
Ray.Allen ysj@gmail.com added the comment: I noticed that after apply my last patch and running full unittest cases, some weird errors which I don't know the reasons occurred, for example: AttributeError: 'dict' object has no attribute 'get' and AttributeError: 'Queue' object has no attribute 'get' I didn't look deep into it. But I found after I optimist my patch, these errors disappeared: I removed the unicode_format_align() function in previous patch, directly add needed spaces and copy part of unicode got from parameters according to width and precision formatters in step 4(using Py_UNICODE_FILL() and Py_UNICODE_COPY()) . This avoid create temporary unicode objects using unicode_format_align() in step 3. And also the patch becomes simpler. So this patch is intended to replace of the previous. And if I have more time, I will try to find the reasons of the weird errors. -- Added file: http://bugs.python.org/file21032/issue7330_3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7330 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11421] Subversion keywords missing on 2.5 checkout
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11421 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11417] distutils' bdist_rpm fails when running with PYTHONDONTWRITEBYTECODE
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11417 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11401] email.header error during .flatten()
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: David, it seems my patch http://bugs.python.org/file20675/email_header.patch is a real requirement for EMAIL 5.1 code. This is because BytesGenerator._write_headers() creates a Header instance in 'else:' (the other branches are not entered at all for the test mail), passing 'v' as the 's=' arg of Header ctor. It follows that Header._chunks[] is never the empty list. 'v' however may be the empty string for header fields like 'X-Status:', 'X-Keywords:' and maybe more, resulting in string.splitlines() trying to break up the empty string. I don't understand why i could pass thousands of mails, including the test mail, dozens of times through my thing without showing this up? Does the mailbox.mbox message subclass adjust such things? Bye. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11401 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
Éric Araujo mer...@netwok.org added the comment: See #11393 for discussion about integration in 3.3. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11433] syntax error at while statement in IDLE/python shell
New submission from Victor victoryw...@yahoo.com: Hi and please help me understand if it is a bug, or..,as someone said, there's a 'bug' in my understanding: (Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32) (windows vista, the regular windows python installer) It's about the following code: while True: s = input('Enter something : ') if s == 'quit': break print('Length of the string is', len(s)) print('Done') when I put it in the IDLE's editor, and run it from there (Run module F5), it runs fine; but when I try to type it in the python shell (IDLE), or in the python command line, it gives errors, though I tried to edit it differently: while True: s = input('Enter something : ') if s == 'quit': break print('Length of the string is', len(s)) print('Done') SyntaxError: invalid syntax while True: s = input('Enter something : ') if s == 'quit': break print('Length of the string is', len(s)) print('Done') SyntaxError: unindent does not match any outer indentation level The only way I noticed it would accept is to set the last print statement directly under/in the block of while: which is not the intention. (According to the docs, while statement should work without the else option). Is this a bug? Thanks, Victor p.s. the example is taken from http://swaroopch.com/notes/Python_en:Control_Flow -- components: IDLE messages: 130261 nosy: victorywin priority: normal severity: normal status: open title: syntax error at while statement in IDLE/python shell type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11414] Add import fix for email.Message
Barry A. Warsaw ba...@python.org added the comment: +1 -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11433] syntax error at while statement in IDLE/python shell
SilentGhost ghost@gmail.com added the comment: No this is not a bug. You're trying to execute two statements in one go in IDLE, which it doesn't support. You need to run your while loop as a single statement, then your print('Done'). -- nosy: +SilentGhost resolution: - invalid status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11401] email.header error during .flatten()
R. David Murray rdmur...@bitdance.com added the comment: I plan to take a look at this and other email bugs during the Pycon sprints, if not before. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11401 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11434] Python 3.2 input() does not remove \r at the end of returned string.
New submission from Joshua Logan dear.jay.lo...@gmail.com: Hello, It is mentioned in the documentation for input() ( http://docs.python.org/py3k/library/functions.html#input ) that the newline is stripped from the end of the returned string. However, on Windows, it used to trim '\r\n'. Now it no longer trims '\r'. See output below: C:\python Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 name = input(What's your name? ) What's your name? Josh print(name) Josh print(list(name)) ['J', 'o', 's', 'h', '\r'] -- components: Windows messages: 130265 nosy: jaylogan priority: normal severity: normal status: open title: Python 3.2 input() does not remove \r at the end of returned string. type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11434] Python 3.2 input() does not remove \r at the end of returned string.
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: This is a duplicate of issue #11272. -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11431] Python 3.2 (r32:88452) F5 Run Module freezes IDLE
Ned Deily n...@acm.org added the comment: Which Python 3.2 installation are you using? There are two installers for Python 3.2 for Mac OS X downloadable from python.org, 32-bit-only and 64-bit/32-bit. And which version of Tcl/Tk are you using? Please start IDLE and report the first two lines shown in the Python Shell window, for instance: Python 3.2 (r32:88452, Feb 20 2011, 10:19:59) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin and then show the results of executing the following lines in the IDLE shell: import _tkinter, subprocess print(subprocess.getoutput(otool -L + _tkinter.__file__)) print(subprocess.getoutput(ls -l /Library/Frameworks/Tk.framework/Versions)) -- assignee: - ned.deily nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11410] Use GCC visibility attrs in PyAPI_*
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
New submission from SilentGhost ghost@gmail.com: With the conversion to mercurial source links in documentation should now point to hg.python.org Here is the patch. -- assignee: docs@python components: Documentation files: docs_sourcename.diff keywords: patch messages: 130268 nosy: SilentGhost, docs@python priority: normal severity: normal stage: patch review status: open title: Links to source code should now point to hg repo Added file: http://bugs.python.org/file21033/docs_sourcename.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
Ned Deily n...@acm.org added the comment: Good point. However, making the change won't help the already generated versions of the 3.2 html doc, like those included with installers or any older URL references elsewhere to the svn source. Perhaps some URL rewrite rules should be added to the web server to redirect source code URLs from svn.python.org to hg.python.org style? -- nosy: +georg.brandl, ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
Ezio Melotti ezio.melo...@gmail.com added the comment: IIUC those svn links will keep working for some time, but if/when the svn repo and/or viewvc will be removed an URL rewrite rule should be fix the problem. The patch seems OK to me. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11298] unittest discovery needs better explanation
Michael Foord mich...@voidspace.org.uk added the comment: Sounds good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11298] unittest discovery needs better explanation
Éric Araujo mer...@netwok.org added the comment: I find there are some redundancy and perfectible phrasing. Here’s my rewrite: In order to be compatible with test discovery, all of the test files must be :ref:`modules tut-modules` or :ref:`packages tut-packages` importable from the top-level directory of the project (this means that their filenames must be valid :ref:`identifiers identifiers`). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7639] bdist_msi fails on files with long names
Changes by Christoph Gohlke cgoh...@uci.edu: -- versions: +Python 2.7, Python 3.2 Added file: http://bugs.python.org/file21034/msilib2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11417] distutils' bdist_rpm fails when running with PYTHONDONTWRITEBYTECODE
Thomas Wouters tho...@python.org added the comment: I couldn't really care less about bdist_rpm, I'm just reporting a bug in it when not writing .pyc files (through PYTHONDONTWRITEBYTECODE.) I encountered it while making the testsuite do the right thing when not writing bytecode (see issue #11420.) To me, a perfectly acceptable fix would be for the bdist_rpm tests to be skipped when not writing bytecode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11417 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11417] distutils' bdist_rpm fails when running with PYTHONDONTWRITEBYTECODE
Éric Araujo mer...@netwok.org added the comment: I’d find such a patch acceptable too. Thanks for the report and suggested solution. -- assignee: tarek - eric.araujo versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11417 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11436] Clarify struct doc for format 's'.
New submission from Terry J. Reedy tjre...@udel.edu: The struct doc does not specify the meaning of 's', without a count. The attached patch adds the sentence: If a count is not given, it defaults to 1; ``'s'`` means the same as ``'1s'``. (Until I experimented, I had thought no count meant indefinite length). struct.pack('sss', b'', b'a', b'ab') b'\x00aa' struct.pack('1s1s1s', b'', b'a', b'ab') b'\x00aa' -- messages: 130275 nosy: terry.reedy priority: normal severity: normal status: open title: Clarify struct doc for format 's'. versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
Antoine Pitrou pit...@free.fr added the comment: I've put the redirection in place. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11436] Clarify struct doc for format 's'.
Terry J. Reedy tjre...@udel.edu added the comment: patch -- keywords: +patch Added file: http://bugs.python.org/file21035/zstruct.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11413] Idle doesn't start
Victor victoryw...@yahoo.com added the comment: How do you try to open the IDLE? For example, I open it from the start menu, python3.2. When you try to double click on a .py file, it is normal to see what you describe. -- nosy: +victorywin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11413 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11424] logging fileConfig may not correctly detect children
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix does not apply to 2.5 as the relevant code for keeping child loggers enabled was added in 2.6. Fixes checked in: b9d76846bb1c (2.6) 9dad160206a3 (2.7) d9125bf3bac5 (3.1) e607d25b4462, 27bf21522742 (3.2) b0883c15b28c (3.3) Test cases were added, and in addition your attached script gives the updated results once the fix has been applied. -- assignee: - vinay.sajip resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11424 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9427] logging.error('...', exc_info=True) should display upper frames, too
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I'll close this, assuming that the stack_info keyword parameter added to logging calls in 3.2 will be sufficient. I also removed the dependency on 1553375, which would prevent closure. -- dependencies: -Add traceback.print_full_exception() resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9427 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11417] distutils' bdist_rpm fails when running with PYTHONDONTWRITEBYTECODE
Thomas Wouters tho...@python.org added the comment: I'll incorporate that change into issue #11420 then, and close this (and harp on bdist_rpm2 if it ever lands in the stdlib and has the same issue :-) -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11417 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11420] Make testsuite pass with -B/DONTWRITEBYTECODE set.
Changes by Thomas Wouters tho...@python.org: Removed file: http://bugs.python.org/file21022/py31-dontwritebytecode.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11420] Make testsuite pass with -B/DONTWRITEBYTECODE set.
Changes by Thomas Wouters tho...@python.org: Removed file: http://bugs.python.org/file21023/py32-dontwritebytecode.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11420] Make testsuite pass with -B/DONTWRITEBYTECODE set.
Thomas Wouters tho...@python.org added the comment: As per issue #11417, updated to also skip the tests in distutils/tests/test_bdist_rpm.py when not writing bytecode. -- Added file: http://bugs.python.org/file21036/py31-dontwritebytecode.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11420] Make testsuite pass with -B/DONTWRITEBYTECODE set.
Changes by Thomas Wouters tho...@python.org: Added file: http://bugs.python.org/file21037/py32-dontwritebytecode.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3982] support .format for bytes
Terry J. Reedy tjre...@udel.edu added the comment: You are right, I misinterpreted the meaning of 's' without a count (and opened #11436 to clarify). However, for the fairly common case where a variable-length binary block is preceded by a 4 byte *binary* count, one can do something which is not too bad: block = b'lsfjdlksaj' n=len(block) struct.pack('I%ds'%n, n, block) b'\n\x00\x00\x00lsfjdlksaj' If leading blanks are acceptable for your example with count as ascii hex digits, one can do something that I admit is worse: struct.pack('10s%ds2s'%n, ('%8x\r\n'%n).encode(), block, b'\r\n') b' a\r\nlsfjdlksaj\r\n' Of course, for either of these in isolation, I would probably only use .pack for the binary conversion and otherwise use '+' or b''.join(...). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3982 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11413] Idle doesn't start
Chris ceonnbo...@yahoo.com added the comment: Hi, thank you for your reply. Â I try to start it directly from the start menu, where it jumped to after the first open attempt, and have also tried start menu -Â all programs - python - idle, then one click or right click then chosing open. Nothing works. Â The python (command line) opens, and python manuals, but not idle or module docs. --- On Mon, 3/7/11, Victor rep...@bugs.python.org wrote: From: Victor rep...@bugs.python.org Subject: [issue11413] Idle doesn't start To: ceonnbo...@yahoo.com Date: Monday, March 7, 2011, 1:33 PM Victor victoryw...@yahoo.com added the comment: How do you try to open the IDLE? For example, I open it from the start menu, python3.2. When you try to double click on a .py file, it is normal to see what you describe. -- nosy: +victorywin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11413 ___ -- Added file: http://bugs.python.org/file21038/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11413 ___table cellspacing=0 cellpadding=0 border=0 trtd valign=top style=font: inherit;DIVHi, thank you for your reply. /DIV DIVnbsp;/DIV DIVI try to start it directly from the start menu, where it jumped to after the first open attempt, and have also tried start menu -nbsp;all programs - python - idle, then one click or right click then chosing open. Nothing works./DIV DIVnbsp;/DIV DIVThe python (command line) opens, and python manuals, but not idle or module docs./DIV DIVBRBR--- On BMon, 3/7/11, Victor Ilt;rep...@bugs.python.orggt;/I/B wrote:BR/DIV BLOCKQUOTE style=PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solidBRFrom: Victor lt;rep...@bugs.python.orggt;BRSubject: [issue11413] Idle doesn't startBRTo: ceonnbo...@yahoo.comBRDate: Monday, March 7, 2011, 1:33 PMBRBR DIV class=plainMailBRVictor lt;A href=http://us.mc598.mail.yahoo.com/mc/compose?to=victoryw...@yahoo.com; ymailto=mailto:victoryw...@yahoo.com;victoryw...@yahoo.com/Agt; added the comment:BRBRHow do you try to open the IDLE? For example, I open it from the start menu, python3.2. When you try to double click on a .py file, it is normal to see what you describe.BRBR--BRnosy: +victorywinBRBR___BRPython tracker lt;A href=http://us.mc598.mail.yahoo.com/mc/compose?to=rep...@bugs.python.org; ymailto=mailto:rep...@bugs.python.org;rep...@bugs.python.org/Agt;BRlt;A href=http://bugs.python.org/issue11413; target=_blankhttp://bugs.python.org/issue11413/Agt;BR___BR/DIV/BLOCKQUOTE/td/tr/tablebr ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11406] There is no os.listdir() equivalent returning generator instead of list
Марк Коренберг socketp...@gmail.com added the comment: Glibc's readdir() and readdir_r() already do caching Yes, but glibc's readdir is the C analogue of python's generator. We do not need to create cache for cached values. I think it's OK to make python's generator on top of readdir (instead of getdents). Why not to create generator like this? (pseudocode) -- DIR *d; struct dirent* entry, *e; entry = malloc(offsetof(struct dirent, d_name) + pathconf(dirpath, _PC_NAME_MAX) + 1); if (!e) raise Exception(); if (!(d= opendir(dirname))) { free(e) raise IOException(); } for (;;) { if (readdir_r(d, entry, e)) { closedir(d); free(entry); raise IOException(); } if (!e) break; yield e; } closedir(d); free(entry); -- -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11406 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
Ned Deily n...@acm.org added the comment: Antoine, great! How about also for the other active branches now in hg: release{32,31,27,26,25-maint} ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11417] distutils' bdist_rpm fails when running with PYTHONDONTWRITEBYTECODE
Éric Araujo mer...@netwok.org added the comment: bdist_rpm2 will never go into the stdlib, that’s the point: external maintenance lets people adapt the code when operating system policies change and release more often than Python. Sooner or later someone will report this same bug to the bdist_rpm2, so if you’re willing to do that now it would be extra nice. -- resolution: wont fix - duplicate superseder: - Make testsuite pass with -B/DONTWRITEBYTECODE set. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11417 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
Antoine Pitrou pit...@free.fr added the comment: Antoine, great! How about also for the other active branches now in hg: release{32,31,27,26,25-maint} ? Is there any such reference in the docs? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
Ned Deily n...@acm.org added the comment: Right: no comprehensive links like in the 3.2+ versions. I just see a few miscellaneous links elsewhere in the source. But there are undoubtedly plenty of links elsewhere out in the wild. So this is probably out-of-scope for this issue but should be dealt with elsewhere as part of a long-term migration plan for svn.python.org. I'll bring it up on python-dev. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11185] test_wait4 error on AIX
Charles-Francois Natali neolo...@free.fr added the comment: wait4 without WNOHANG works fine. waitpid works fine even with WNOHANG. I don't know which workaround is the better. As far as the test is concerned, it's of course better to use wait4 without WNOHANG in a test names test_wait4 (especially since waitpid is tested elsewhere)... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11185 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11413] Idle doesn't start
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Can you open a command prompt, and type: c:\python32\python.exe -m idlelib.idle If there are messages, please paste them here! -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11413 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11431] Python 3.2 (r32:88452) F5 Run Module freezes IDLE
Andrew Lih andrew...@gmail.com added the comment: I'm using the Python 3.2 Mac OS X 64-bit/32-bit x86-64/i386 Installer. Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin It just freezes every time I try to paste the lines u gave me. But I mange to edit the .py file via TextEdit. here's the result: /bin/sh: otool: command not found ls: /Library/Frameworks/Tk.framework/Versions: No such file or directory -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11431] Python 3.2 (r32:88452) F5 Run Module freezes IDLE
Ned Deily n...@acm.org added the comment: It appears then that you do not ActiveTcl 8.5 installed which is required because of deficiencies with the current Apple-supplied Tcl/Tk 8.5 in OS X 10.6. A warning message should have appeared in your PyShell window: WARNING: The version of Tcl/Tk (8.5.7) in use may be unstable. Visit http://www.python.org/download/mac/tcltk/ for current information. Please note the information there. You need to either install ActiveTcl 8.5 (if possible) or you need to revert to the 32-bit-installer which uses Tcl/Tk 8.4. Either action should solve the problem. -- resolution: - works for me status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9651] ctypes crash when writing zerolength string buffer to file
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: Looks good to me. -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11431] Python 3.2 (r32:88452) F5 Run Module freezes IDLE
Andrew Lih andrew...@gmail.com added the comment: Thanks a lot Ned! My problem is solved! Awesome! -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11431] Python 3.2 (r32:88452) F5 Run Module freezes IDLE
Changes by Ned Deily n...@acm.org: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5901] missing meta-info in documentation pdf
Sandro Tosi sandro.t...@gmail.com added the comment: AFAIK, this is obtained using \pdfinfo{} command[1][2][3] [1] http://theoval.cmp.uea.ac.uk/~nlct/latex/pdfdoc/pdfdoc/pdfdoc.html [2] http://tex.stackexchange.com/questions/5958/is-hyperref-really-the-best-way-to-add-metadata-to-a-tex-file [3] http://www.tug.org/applications/hyperref/manual.html#x1-110003.7 Georg, do you think this is something that sphinx has to handle (in the latex builder) or somewhere else? -- nosy: +sandro.tosi versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2405] Drop w9xpopen and all dependencies
benrg benrud...@gmail.com added the comment: w9xpopen is currently used on NT. The patch to use it on NT was checked in by bquinlan in August of 2001 (http://mail.python.org/pipermail/patches/2001-August/005719.html). He claims that it is necessary in NT, even though (a) the cited knowledge base article explicitly states that it is not necessary on NT, and (b) the knowledge base article has now been deleted from Microsoft's web site, indicating that they consider it no longer relevant (they have deleted all Win9x-specific documentation, but Win2K-specific documentation is still there). I just don't believe that the problem solved by w9xpopen has ever existed in any version of NT. There is no credible evidence for it. There are any number of other reasons why introducing an intermediate process might have hidden some unrelated bug or otherwise resolved the problem the Win9x-Win2K upgraders were having a decade ago. I think that the use of w9xpopen in NT is a bug, not an obsolete feature, and there's no reason it couldn't be gone in 3.2.1. Also, I suppose it doesn't matter any more, but the logic for deciding when to run w9xpopen should be (target executable is 16-bit), which can be determined by reading the file header. Right now the test is (shell is True and (running on win9x or the command processor is named command.com)). Every part of this test is deficient. Python programs can spawn 16-bit processes (including the shell itself) without using shell=True. Not every win9x shell is 16-bit; 32-bit shells like cmd.exe work fine. And there are 16-bit shells not named command.com, such as 4DOS. -- nosy: +benrg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11432] webbrowser.open on unix fails.
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6818] remove/delete method for zipfile/tarfile objects
Yuv Gre ubershme...@gmail.com added the comment: What's the status with this patch? If nobody's looking at it I can try to see if it works and write the test and documentation for it. -- nosy: +ubershmekel versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11072] Add MLSD command support to ftplib
Antoine Pitrou pit...@free.fr added the comment: Why the callback option? Also, the tests don't appear to check the return value. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11072 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11437] IDLE crash on startup with typo in config-keys.cfg
New submission from George Dhoore georgie...@gmail.com: If the user makes a typo when setting a custom keybind (in this case Alt-Key-up instead of Alt-Key-Up) IDLE will silently crash. From the command-line the error shows as: Traceback (most recent call last): File C:\Python32\Lib\idlelib\idle.py, line 11, in module idlelib.PyShell.main() File C:\Python32\Lib\idlelib\PyShell.py, line 1388, in main shell = flist.open_shell() File C:\Python32\Lib\idlelib\PyShell.py, line 277, in open_shell self.pyshell = PyShell(self) File C:\Python32\Lib\idlelib\PyShell.py, line 856, in __init__ self.history = self.History(self.text) File C:\Python32\Lib\idlelib\IdleHistory.py, line 12, in __init__ text.bind(history-previous, self.history_prev) File C:\Python32\Lib\idlelib\MultiCall.py, line 332, in bind self.__binders[triplet[1]].bind(triplet, func) File C:\Python32\Lib\idlelib\MultiCall.py, line 213, in bind seq, handler))) File C:\Python32\Lib\tkinter\__init__.py, line 977, in bind return self._bind(('bind', self._w), sequence, func, add) File C:\Python32\Lib\tkinter\__init__.py, line 932, in _bind self.tk.call(what + (sequence, cmd)) _tkinter.TclError: bad event type or keysym up This is doubly confusing as case sensitivity seems to be applied at random in config-keys.cfg. Expected behavior: Ideally case sensitivity shouldn't matter in config-keys.cfg and if there is an error in the config syntax, that particular line should be ignored and the rest of the file tried. If IDLE is still able to start, some user friendly error should be displayed indicating the problem line. -- components: IDLE, Tkinter files: config-keys.cfg messages: 130301 nosy: George.Dhoore priority: normal severity: normal status: open title: IDLE crash on startup with typo in config-keys.cfg type: crash versions: Python 3.2 Added file: http://bugs.python.org/file21039/config-keys.cfg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11437 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11072] Add MLSD command support to ftplib
Changes by George Dhoore georgie...@gmail.com: -- nosy: +George.Dhoore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11072 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11072] Add MLSD command support to ftplib
Eric Smith e...@trueblade.com added the comment: I agree that the callback isn't needed, and it reflects the older coding style of much of the library (such as in retrlines). Instead, I'd make this a generator, yielding each of the dicts. (Actually in some ideal rewrite of ftplib, the whole callback feature used by retrlines would go away except as a compatibility feature, and internally everything would use generators instead of callbacks.) Aren't you modifying the state on the server (via OPTS MLST), and then if you make a subsequent call without specifying facts you'll be using the value of facts from the previous call to MLSD? I don't think that's desirable, but short of calling OPTS MLST every time (possibly with the results of an initial FEAT) there's no way around it. Just today I saw a filename with ; in the name. I think you want to use .partition(' ') isolate the facts from the filename, and add a test with such a filename. I don't like the isdigit test. Shouldn't this decision be left to the caller? What if a fact happens to look like an integer some of the time, but not always? Maybe unique is a hex string. I don't think you'd want it converted to an int on the occasions where it was all decimal digits, but a string otherwise. Also look at your modify facts. Those are not very useful as ints. I don't think you should invent a pseudo-fact name, in case the standard ever uses that. I'd prefer if you yielded tuples of (filename, fact-dict). MLSD_DATA has newlines in it, so you get \r\n\n sequences in your test data. If a fact=value string does not have an '=', you silently ignore it. I'd rather this raise an exception and not pass silently. It's not compliant. You should have a test for this. It's possible for a value to have an '=' in it, so you don't want to use .split('='), you should use .partition('='). You should add such a fact to the test data. Thanks for working on this. It will be a great addition to ftplib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11072 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11072] Add MLSD command support to ftplib
Changes by SilentGhost ghost@gmail.com: -- nosy: +SilentGhost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11072 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
SilentGhost ghost@gmail.com added the comment: I've put the redirection in place. So, it's not possible to access http://svn.python.org/view/python/branches/py3k/ at all now? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11437] IDLE crash on startup with typo in config-keys.cfg
Changes by Ned Deily n...@acm.org: -- nosy: +ned.deily stage: - needs patch type: crash - behavior versions: +Python 2.7, Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11437 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11438] 2to3 does not fix izip_longest
New submission from Steve Dower s.j.do...@gmail.com: Running 2to3 on the attached file makes no modifications, which then causes an error (since itertools.izip_longest is now itertools.zip_longest) -- components: 2to3 (2.x to 3.0 conversion tool) files: test.py messages: 130304 nosy: Steve.Dower priority: normal severity: normal status: open title: 2to3 does not fix izip_longest type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file21040/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11438 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2405] Drop w9xpopen and all dependencies
benrg benrud...@gmail.com added the comment: It turns out that, on Windows 7 32-bit with COMSPEC pointing to command.com, platform.popen('dir').read() works with w9xpopen and fails (no output) without it. But the reason has nothing to do with the old Win9x problem. It's because subprocess always quotes the command line after /c, which command.com doesn't understand. But w9xpopen decodes the command line (in the runtime, before main() is called) and then reencodes it, this time quoting only arguments with spaces in them. Command.com then gets /c dir, and is happy. It would be interesting if this was the bug that led to w9xpopen being used in NT for the last ten years. There are layers upon layers of brokenness here. w9xpopen should not be messing with the command line in the first place; it should call GetCommandLine() and pass the result untouched to CreateProcess (after skipping its own name). It certainly should not be using the argv[] contents, which are parsed with an algorithm that doesn't match the one used by cmd.exe. The decoding-encoding process munges the command line in hard-to-understand ways. Additionally, subprocess.py doesn't quote the shell name (my usual shell is C:\Program Files\TCCLE12\TCC.EXE), and it converts an argument list to a string using list2cmdline even when shell=True, which makes little sense to me. I think w9xpopen should be deleted and forgotten. It was written badly and has apparently been largely ignored for 10+ years. There is probably a better solution to the problem even on Win9x, such as a worker thread in the Python process that waits on both the process and pipe handles. But also, all of the shell=True code in subprocess.py needs to be rethought from the ground up. I don't think it should exist at all; far better to provide convenient support in subprocess for setting up pipelines, and require people to explicitly invoke the shell for the few remaining legitimate use cases. That should probably be discussed elsewhere, though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7990] xml.etree.cElementTree lacks full dir() on Element
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attached a patch with test for this: Following the suggestion, I put tag, text, tail, and attrib to be accessible via tp_getset for _etree.Element type. -- keywords: +patch nosy: +santa4nt Added file: http://bugs.python.org/file21041/dir_elem_c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7990] xml.etree.cElementTree lacks full dir() on Element
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11438] 2to3 does not fix izip_longest
Benjamin Peterson benja...@python.org added the comment: 770d45d22a40, 88bbc574cfb0, 8947c47a9fef, a7e0cff05597 -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11438 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7769 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com