[issue12475] Generator bug allows you to chain arbitrary tracebacks to the next raised exception
New submission from Devin Jeanpierre jeanpierr...@gmail.com: It's probably best shown by example: http://ideone.com/4YkqV Have fun! This one looks hard. Some notes: Exchanging g2() for iter([1]) makes this go away. Wrapping g2 inside a non-generator iterator does not make this go away. Removing the call to next(it) after it = g2() makes the problem go away, as does replacing those two lines with next(g2()). The file used in that ideone paste is attached for your convenience. --- Debugging is impractical for me with this bug in existence. It never stopped printing the traceback before I killed the process. (And let's forget about debug prints!) -- components: Interpreter Core files: exception_chaining.py messages: 139670 nosy: Devin Jeanpierre priority: normal severity: normal status: open title: Generator bug allows you to chain arbitrary tracebacks to the next raised exception type: behavior versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file22550/exception_chaining.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12475] Generator bug allows you to chain arbitrary tracebacks to the next raised exception
Changes by Devin Jeanpierre jeanpierr...@gmail.com: Removed file: http://bugs.python.org/file22550/exception_chaining.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12346] Python source code build fails with old mercurial
Georg Brandl ge...@python.org added the comment: 435eec7b41f0 transplanted to 3.2 in 4e0c1128cda2. -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12346 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12225] current tip doesn't build without mercurial installed
Roundup Robot devnull@devnull added the comment: New changeset 4e0c1128cda2 by Ralf Schmitt in branch '3.2': disable ASDLGEN if hg won't work, or if python is not installed. http://hg.python.org/cpython/rev/4e0c1128cda2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12225 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12475] Generator bug allows you to chain arbitrary tracebacks to the next raised exception
Changes by Georg Brandl ge...@python.org: -- assignee: - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12465] gc.get_referents can be used to crash Python
Georg Brandl ge...@python.org added the comment: Yep. It's no surprise that you can crash Python by abusing the gc module, or the ctypes module, or ... -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12465 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12476] ctypes: need example how to pass raw data from Python
New submission from anatoly techtonik techto...@gmail.com: ctypes documentation lacks an example, how to pass a raw data block from Python to a C function. For example, how to pass this chunk: data = open('somefile', 'rb').read() to this function: int checkBuffer(LPSTR lpData, DWORD dwBufferLength); ? -- assignee: docs@python components: Documentation, ctypes messages: 139675 nosy: docs@python, techtonik priority: normal severity: normal status: open title: ctypes: need example how to pass raw data from Python versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12476 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12476] ctypes: need example how to pass raw data from Python
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Can you suggest a patch? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12476 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12406] msi.py needs updating for Python 3.3
Roundup Robot devnull@devnull added the comment: New changeset 3ce11ddc9ec3 by Vinay Sajip in branch 'default': Issue #12406: Added upates for packaging's .exe files, command_template, and sysconfig.cfg. http://hg.python.org/cpython/rev/3ce11ddc9ec3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12406 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12352] multiprocessing.Value() hangs
Charles-François Natali neolo...@free.fr added the comment: The test passes on all the buildbots, closing. greg, thanks for reporting this! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7123] Multiprocess Process does not always exit when run from a thread.
Charles-François Natali neolo...@free.fr added the comment: I am pretty sure this is another instance of issue 6721. Indeed. Closing as duplicate. -- status: open - closed superseder: - Locks in python standard library should be sanitized on fork ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8035] urllib.request.urlretrieve hangs waiting for connection close after a redirect
Changes by Charles-François Natali neolo...@free.fr: -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12456] Hangs in concurrent.futures
Antoine Pitrou pit...@free.fr added the comment: Looks like I broke the OS X buildbots: http://www.python.org/dev/buildbot/all/builders/AMD64%20Snow%20Leopard%202%203.x/builds/609/steps/test/logs/stdio -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12456 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12456] Hangs in concurrent.futures
Antoine Pitrou pit...@free.fr added the comment: Ok, qsize() can raise NotImplementedError on OS X, which explains quite a bit: Exception in thread Thread-2: Traceback (most recent call last): File /Users/buildbot/buildarea/custom.parc-snowleopard-1/build/Lib/threading.py, line 737, in _bootstrap_inner self.run() File /Users/buildbot/buildarea/custom.parc-snowleopard-1/build/Lib/threading.py, line 690, in run self._target(*self._args, **self._kwargs) File /Users/buildbot/buildarea/custom.parc-snowleopard-1/build/Lib/concurrent/futures/process.py, line 271, in _queue_management_worker if not pending_work_items and call_queue.qsize() == 0: File /Users/buildbot/buildarea/custom.parc-snowleopard-1/build/Lib/multiprocessing/queues.py, line 139, in qsize return self._maxsize - self._sem._semlock._get_value() NotImplementedError -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12456 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12477] input() does'nt strip CR
New submission from Atsushi Odagiri aod...@gmail.com: Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. input() a 'a\r' Python 3.1.3 (r313:86834, Nov 27 2010, 17:20:37) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. input() a 'a' -- messages: 139682 nosy: Atsushi.Odagiri priority: normal severity: normal status: open title: input() does'nt strip CR type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12477 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12477] input() does'nt strip CR
Georg Brandl ge...@python.org added the comment: This is a duplicate of #11272, which will be fixed in 3.2.1. -- nosy: +georg.brandl resolution: - duplicate status: open - closed superseder: - input() has trailing carriage return on windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12477 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12456] Hangs in concurrent.futures
Roundup Robot devnull@devnull added the comment: New changeset ce52310f61a0 by Antoine Pitrou in branch 'default': Followup to 51c1f2cedb96 (and issue #12456): http://hg.python.org/cpython/rev/ce52310f61a0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12456 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12478] Possible error in HTTPErrorProcessor documentation
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, I think HTTPErrorProcessor documentation at [1] contains a cutpaste error (from UnknownHandler) for the only method available [1] http://docs.python.org/py3k/library/urllib.request.html#httperrorprocessor-objects because: ./python -c import urllib.request as ur; print ('unknown_open' in dir(ur.HTTPErrorProcessor)) False If you can confirm that http_response() should be used instead, I'll provide a patch to fix it. -- assignee: docs@python components: Documentation messages: 139685 nosy: docs@python, sandro.tosi priority: normal severity: normal stage: needs patch status: open title: Possible error in HTTPErrorProcessor documentation versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12478 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12476] ctypes: need example how to pass raw data from Python
anatoly techtonik techto...@gmail.com added the comment: ISTM that this code works ok. data = open('data.raw', 'rb').read() ret = checkBuffer(data, len(data)) You need to make sure that checkBuffer doesn't try to modify memory though. For mutable memory blocks use create_string_buffer(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12476 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12456] Hangs in concurrent.futures
Changes by Antoine Pitrou pit...@free.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12456 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12479] Add HTTPErrorProcessor class definition
New submission from Sandro Tosi sandro.t...@gmail.com: As reported in http://mail.python.org/pipermail/docs/2011-June/004879.html urllibs/urllib.request misses the definition of HTTPErrorProcessor class; the attached patches add it to the documentation. -- assignee: docs@python components: Documentation files: HTTPErrorProcessor_class-default.patch keywords: patch messages: 139687 nosy: docs@python, sandro.tosi priority: normal severity: normal stage: patch review status: open title: Add HTTPErrorProcessor class definition versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file22552/HTTPErrorProcessor_class-default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12479 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12479] Add HTTPErrorProcessor class definition
Changes by Sandro Tosi sandro.t...@gmail.com: Added file: http://bugs.python.org/file22553/HTTPErrorProcessor_class-py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12479 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12475] Generator bug allows you to chain arbitrary tracebacks to the next raised exception
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler
New submission from Or yellowsli...@gmail.com: I have fieddler2 listening on 0.0.0.0:. this code is suppose to use the proxy on my localhost. try: data = '' proxy = urllib2.ProxyHandler({'http': '127.0.0.1:'}) //also tried {'http': 'http://127.0.0.1:/'} opener = urllib2.build_opener(proxy) urllib2.install_opener(opener) req = urllib2.Request('http://www.google.com') response = urllib2.urlopen(req) the_page = response.read() print the_page except Exception, detail: print Err , detail I have fieddler2 listening on 0.0.0.0:. try: proxy = urllib2.ProxyHandler({'http': '127.0.0.1:'}) //also tried {'http': 'http://127.0.0.1:/'} opener = urllib2.build_opener(proxy) urllib2.install_opener(opener) req = urllib2.Request('http://www.google.com') response = urllib2.urlopen(req) the_page = response.read() print the_page except Exception, detail: print Err , detail I don't see the GET or any request to google in fieddler (but I can see other requests) is there a way to debug it? is seems like python bypasses fieddler or ignores the proxy. the code is working, but it's not using the proxy to fetch google, it bypasses the proxy. I also configured win7 to work with fieddler - C:\Windows\system32netsh winhttp set proxy 127.0.0.1: Current WinHTTP proxy settings: Proxy Server(s) : 127.0.0.1: Bypass List : (none) In order to check if the code is using the porxy I've changed fieddler to require proxy authentication and I had to use a user\pass on my browser when browsing, run the python code again and it worked, so it defiantly doesn't use the proxy. -- components: Extension Modules, Library (Lib), Windows messages: 139688 nosy: Or.Wilder priority: normal severity: normal status: open title: urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12480 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler
Or yellowsli...@gmail.com added the comment: I have fieddler2 listening on 0.0.0.0:. this code is suppose to use the proxy on my localhost. try: proxy = urllib2.ProxyHandler({'http': '127.0.0.1:'}) //also tried {'http': 'http://127.0.0.1:/'} opener = urllib2.build_opener(proxy) urllib2.install_opener(opener) req = urllib2.Request('http://www.google.com') response = urllib2.urlopen(req) the_page = response.read() print the_page except Exception, detail: print Err , detail I don't see the GET or any request to google in fieddler (but I can see other requests) is there a way to debug it? is seems like python bypasses fieddler or ignores the proxy. the code is working, but it's not using the proxy to fetch google, it bypasses the proxy. I also configured win7 to work with fieddler - C:\Windows\system32netsh winhttp set proxy 127.0.0.1: Current WinHTTP proxy settings: Proxy Server(s) : 127.0.0.1: Bypass List : (none) In order to check if the code is using the porxy I've changed fieddler to require proxy authentication and I had to use a user\pass on my browser when browsing, run the python code again and it worked, so it defiantly doesn't use the proxy. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12480 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12415] Missing: How to checkout the Doc sources
Philip Olson phi...@roshambo.org added the comment: Thank you, that patch solves this bug report. However, now I'm not sure which branches we should or must contribute documentation to. Python versions 2.7, 3.2, and 3.3 are now associated to this bug report, so are these the active documentation branches? How is this handled? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12481] test_faulthandler: popups on Windows/Debug/x64
New submission from Stefan Krah stefan-use...@bytereef.org: I'm getting the dreaded python_d.exe has stopped working popups in test_faulthandler on Windows 7 + VisualStudioPro + Debug|x64. -- components: Tests messages: 139691 nosy: haypo, skrah priority: normal severity: normal status: open title: test_faulthandler: popups on Windows/Debug/x64 type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12481 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12412] non defined representation for pwd.struct_passwd
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: pypy did not use a structseq in this case. Fixed in (pypy's repo) dded6e510044 -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12412 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10020] docs for sqlite3 describe functions not available without recompiling
Senthil Kumaran sent...@uthcode.com added the comment: Fixed the indentation issues. We could not use automatic reST footnotes because two links refer to same footnote, so left it as such. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12412] non defined representation for pwd.struct_passwd
R. David Murray rdmur...@bitdance.com added the comment: But pypy passed the attribute access tests in the test suite? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12412 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12475] Generator bug allows you to chain arbitrary tracebacks to the next raised exception
Roundup Robot devnull@devnull added the comment: New changeset cc7ae81cfe91 by Benjamin Peterson in branch '3.2': restore a generator's caller's exception state both on yield and (last) return http://hg.python.org/cpython/rev/cc7ae81cfe91 New changeset 33dca840938d by Benjamin Peterson in branch 'default': merge 3.2 (#12475) http://hg.python.org/cpython/rev/33dca840938d -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler
Thomas Holmes tho...@devminded.com added the comment: I setup a proxy and it seems to be working properly. This is on win7 x64 professional using Python 2.7.1 I didn't using any sniffing software but if I broke the proxy the code broke. When I enabled the proxy it started working again. My proxy log also shows record of the access. -- nosy: +thomas.holmes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12480 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12482] input() not working correctly on Mac OS X
New submission from Dmitriy Gorbachev dgorbac...@yahoo.com: I am learning Python by running exercises from Programming Python, Mark Lutz on both Windows and Mac. While exercises run flawlessly on Windows, sometimes they do not run on Mac. In particular, in Chapter 1, Step 2: Storing Records Persistently there is a script called make_db_file.py. The following function loadDbase (called by dump_db_file_test.py-see attached) is not working at all on Mac, but working fine of Windows. The code breaks on the line: key = input(). The Traceback message is as follows: Traceback (most recent call last): File dump_db_file_test.py, line 2, in module db = loadDbase() File /Users/DMITRY/PythonScripts/make_db_file_test.py, line 22, in loadDbase key = input() File string, line 1, in module NameError: name 'bob' is not defined Where 'bob' is the first line of the text file people-file that make_db_file_test.py refers. All related files attached in BugReport.zip Best regards Dmitry -- assignee: ronaldoussoren components: Macintosh files: BugReport.zip messages: 139697 nosy: dgorbachev, ronaldoussoren priority: normal severity: normal status: open title: input() not working correctly on Mac OS X versions: Python 2.7 Added file: http://bugs.python.org/file22554/BugReport.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12482 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12439] BaseHTTPServer's send_reponse adds extra \r\n when using HTTPMessage in input
Petri Lehtinen pe...@digip.org added the comment: It seems to me that you're indeed misusing it. The correct way would be something like this (assuming response is a HTTPResponse object from httplib): self.send_response(response.status) for name, value in response.getheaders(): self.send_header(name, value) self.end_headers() This is because send_response's second argument is the HTTP's reason field, i.e. invoking: self.send_response(123, 'FOOBAR') results in HTTP/1.1 123 FOOBAR\r\n to be sent, followed by Server and Date headers. The second argument is not meant to be used for sending headers. (When the second argument is omitted, a standard reason for the given status code is used.) -- nosy: +petri.lehtinen resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12439 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12448] smtplib's __main__ doesn't flush when prompting
Petri Lehtinen pe...@digip.org added the comment: Behaves incorrectly for me, too. Attached a patch with the suggested fix. -- keywords: +needs review, patch nosy: +petri.lehtinen Added file: http://bugs.python.org/file22555/smtplib_main_prompt.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12448 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1067702] urllib fails with multiple ftp transfers
Senthil Kumaran sent...@uthcode.com added the comment: Hello Stefen, Yes, I was able to reproduce the issue without the patch and at the same time, noticed that the problem was not observed in other branches (py3k), then saw the differences where the possible socket close delays can happen and fixed it. As it was multiple threads closely being closed it was most probably due to delay in closing socket connection that lead the problem in the first place. If it is required, then manually this can be verified by setting up an artificial delay in the network layer and trying multiple ftp transfers. (No, I did not do that to verify. :)) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1067702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12458] Tracebacks should contain the first line of continuation lines
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12458 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12482] input() not working correctly on Mac OS X
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: You are certainly using Python 2 with code designed for Python 3... Can you check? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12482 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12461] it's not clear how the shutil.copystat() should work on symlinks
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12461 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12463 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12464 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11253] autodocument first appearance of ctypes.wintypes constants
Senthil Kumaran sent...@uthcode.com added the comment: What's new docs are usually for what is coming up new in the upcoming releases. It is not updated once the release is done. Bug fixes and related docs are updated in documentation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11253 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12482] input() not working correctly on Mac OS X
Ned Deily n...@acm.org added the comment: The test case you've provide is working as expected but the code doesn't make a lot of sense as provided. The function loadDbase sets sys.stdin to a disk file but never sets it back again. If you run this in an interactive interpreter on any Unix-like system and call that function, it will leave sys.stdin still connected to the disk file which will give unexpected results. I don't have a copy of the book so I don't know how the author recommends to run things but it won't work as it stands (also, the function loadDbase is incomplete compared with the book's example files). You can remove the immediate problem by adding the following line just before the return db at the end of loadDbase: sys.stdin = sys.__stdin__ That will restore the original value of sys.stdin. You may want to ask questions like this on either the tutor mailing list or comp.lang.python. http://www.python.org/community/lists/ http://docs.python.org/library/sys.html#sys.__stdin__ -- assignee: ronaldoussoren - components: -Macintosh nosy: +ned.deily resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12482 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12481] test_faulthandler: popups on Windows/Debug/x64
STINNER Victor victor.stin...@haypocalc.com added the comment: Duplicate of issue #11732. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12481 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11732] Skip decorator for tests requiring manual intervention on Windows
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #12481 has been marked as duplicate: I'm getting the dreaded python_d.exe has stopped working popups in test_faulthandler on Windows 7 + VisualStudioPro + Debug|x64. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11732 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11732] Skip decorator for tests requiring manual intervention on Windows
STINNER Victor victor.stin...@haypocalc.com added the comment: Most (all?) Windows machines have error reporting enabled unless you mess with the registry manually It is disabled on all Windows buildbots. test_capi does also test a crash (I don't know/remember which test exactly). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11732 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11732] Skip decorator for tests requiring manual intervention on Windows
Stefan Krah stefan-use...@bytereef.org added the comment: For test_capi the patch in #9116 works. For test_faulthandler it doesn't, unfortunately. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11732 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions
Changes by Thijs Triemstra li...@collab.nl: -- nosy: +thijs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12398 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11732] Skip decorator for tests requiring manual intervention on Windows
Stefan Krah stefan-use...@bytereef.org added the comment: Instead of skipping the test, I prefer to disable temporary the popup by setting the right registry key (and then restore the previous value or delete the key). Do you mean that the user should change/restore the key or that the Python tests should do that? I think we shouldn't mess with system settings, even if we restore them. BTW, it would be a great help to print a warning (also in test_capi) that the popups are expected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11732 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12391] packaging install fails to clean up temp files
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- hgrepos: +35 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12391] packaging install fails to clean up temp files
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- keywords: +patch Added file: http://bugs.python.org/file22556/7ee51c480fec.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5619] Pass MS CRT debug flags into subprocesses
Stefan Krah stefan-use...@bytereef.org added the comment: Related issues with patches: #9116 and #11732 -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5619 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11732] Skip decorator for tests requiring manual intervention on Windows
STINNER Victor victor.stin...@haypocalc.com added the comment: Do you mean that the user should change/restore the key or that the Python tests should do that? Python can change temporary the registry value for the duration of the test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11732 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12467] test_threading.test_6_daemon_threads(): Assertion failed: PyUnicode_Check(*filename), file ..\Python\_warnings.c, line 501
STINNER Victor victor.stin...@haypocalc.com added the comment: The assertion occurs in setup_context() of Python/_warnings.c, called by fileio_dealloc_warn(). The problem is that globals()['__file__'] is None. Attached patch should fix this issue. -- keywords: +patch nosy: +pitrou versions: +Python 2.7, Python 3.2 Added file: http://bugs.python.org/file22557/warn_unicode.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12467] test_threading.test_6_daemon_threads(): Assertion failed: PyUnicode_Check(*filename), file ..\Python\_warnings.c, line 501
STINNER Victor victor.stin...@haypocalc.com added the comment: Test script to reproduce the assertion. -- Added file: http://bugs.python.org/file22558/test_warn_assert.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12467] test_threading.test_6_daemon_threads(): Assertion failed: PyUnicode_Check(*filename), file ..\Python\_warnings.c, line 501
Antoine Pitrou pit...@free.fr added the comment: Nice diagnosis! -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12467] test_threading.test_6_daemon_threads(): Assertion failed: PyUnicode_Check(*filename), file ..\Python\_warnings.c, line 501
Changes by Antoine Pitrou pit...@free.fr: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10898] posixmodule.c redefines FSTAT
Alan Hourihane al...@fairlite.co.uk added the comment: Well, I'd probably prefer something akin to my first patch then. There's no need to #undef things at all if we just prefix the usage with PYTHON_ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10898 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11909] Doctest sees directives in strings when it should only see them in comments
Devin Jeanpierre jeanpierr...@gmail.com added the comment: Updated patch to newest revision, and to use _tokenize function and includes a test case to verify that it ignores the encoding directive during the tokenization (and every other) step. I'll file a tokenize bug separately. -- Added file: http://bugs.python.org/file22559/comments.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11909 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12451] open: avoid the locale encoding when possible
Roundup Robot devnull@devnull added the comment: New changeset 81424281ee59 by Victor Stinner in branch '3.2': Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead http://hg.python.org/cpython/rev/81424281ee59 New changeset c039c6b58907 by Victor Stinner in branch 'default': (merge 3.2) Issue #12451: xml.dom.pulldom: parse() now opens files in binary http://hg.python.org/cpython/rev/c039c6b58907 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12451] open: avoid the locale encoding when possible
Roundup Robot devnull@devnull added the comment: New changeset cd1759711357 by Victor Stinner in branch '3.2': Issue #12451: runpy: run_path() now opens the Python script in binary mode, http://hg.python.org/cpython/rev/cd1759711357 New changeset e240af1f0ae1 by Victor Stinner in branch 'default': (merge 3.2) Issue #12451: runpy: run_path() now opens the Python script in http://hg.python.org/cpython/rev/e240af1f0ae1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12451] open: avoid the locale encoding when possible
Roundup Robot devnull@devnull added the comment: New changeset a1b4f1716b73 by Victor Stinner in branch '3.2': Issue #12451: pydoc: importfile() now opens the Python script in binary mode, http://hg.python.org/cpython/rev/a1b4f1716b73 New changeset 5ca136dccbf7 by Victor Stinner in branch 'default': (merge 3.2) Issue #12451: pydoc: importfile() now opens the Python script in http://hg.python.org/cpython/rev/5ca136dccbf7 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: [issue12436] Provide reference to detailed installation instructions
I am not sure that is comprehensive enough. It is just organized into OS specific sections and gives little details further on. So, -1 to this, but +1 to the general idea of having detailed install and get started documentation. ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12432] remove a bunch of unused imports in Lib
Roundup Robot devnull@devnull added the comment: New changeset 6886e0bf29bc by Senthil Kumaran in branch '3.2': Fix closes issue12432 - remove the unused sys from glob.py http://hg.python.org/cpython/rev/6886e0bf29bc -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11909] Doctest sees directives in strings when it should only see them in comments
Devin Jeanpierre jeanpierr...@gmail.com added the comment: Erp I forgot to run this against the rest of the tests. Disregard, I'll fix it up a bit later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11909 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12438] IDLE problem displaying warning message
Roundup Robot devnull@devnull added the comment: New changeset c9f69b28c4d1 by Senthil Kumaran in branch '2.7': Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg. http://hg.python.org/cpython/rev/c9f69b28c4d1 New changeset e9c406a53972 by Senthil Kumaran in branch '3.2': Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg. http://hg.python.org/cpython/rev/e9c406a53972 -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12438 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: [issue12438] IDLE problem displaying warning message
Have fixed this. Even looking at the code, your suggestion was correct. But even before the fix, I was not able to reproduce the bug in Ubuntu and perhaps it was getting masked. May I ask, how did you invoke idle that this bug surfaced and what was the platform? ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12483] CThunkObject_dealloc should call PyObject_GC_UnTrack?
New submission from Ryan Kelly r...@rfk.id.au: According to the docs here: http://docs.python.org/c-api/gcsupport.html Any object that uses PyObject_GC_Track in its constructor must call PyObject_GC_UnTrack in its deallocator. The CThunkObject in _ctypes does the former but not the later. Attached patch adds a call to PyObject_GC_UnTrack. This doesn't fix any particular bug I was seeing, I just happened to be going through the _ctypes sources (you know, for fun...) and noticed this discrepancy. -- components: ctypes files: ctypes_gcuntrack.patch keywords: patch messages: 139724 nosy: rfk priority: normal severity: normal status: open title: CThunkObject_dealloc should call PyObject_GC_UnTrack? versions: Python 3.3 Added file: http://bugs.python.org/file22560/ctypes_gcuntrack.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12467] test_threading.test_6_daemon_threads(): Assertion failed: PyUnicode_Check(*filename), file ..\Python\_warnings.c, line 501
Roundup Robot devnull@devnull added the comment: New changeset ac18e70cbe7e by Victor Stinner in branch '3.2': Issue #12467: warnings: fix a race condition if a warning is emitted at http://hg.python.org/cpython/rev/ac18e70cbe7e New changeset 5133fee2433e by Victor Stinner in branch 'default': (merge 3.2) Issue #12467: warnings: fix a race condition if a warning is http://hg.python.org/cpython/rev/5133fee2433e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12467] test_threading.test_6_daemon_threads(): Assertion failed: PyUnicode_Check(*filename), file ..\Python\_warnings.c, line 501
Roundup Robot devnull@devnull added the comment: New changeset fc46acf7a645 by Victor Stinner in branch '2.7': Issue #12467: warnings: fix a race condition if a warning is emitted at http://hg.python.org/cpython/rev/fc46acf7a645 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12438] IDLE problem displaying warning message
João Bernardo jbv...@gmail.com added the comment: @orsenthil My system is Ubuntu 11.04 x64. To run idle, i press the Super (windows button) then write idle. If I open the terminal and type idle, the problem don't appear but I have to type the password on the terminal rather than on idle GUI. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12438 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12484] The Py_InitModule functions no longer exist, but remain in the docs
New submission from Alejandro Santos alej...@alejolp.com: While the Py_InitModule does not exists on Py3k it is still mentioned on the docs: http://docs.python.org/py3k/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/py3k/extending/windows.html#a-cookbook-approach http://docs.python.org/py3k/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean -- assignee: docs@python components: Documentation messages: 139728 nosy: alejolp, docs@python priority: normal severity: normal status: open title: The Py_InitModule functions no longer exist, but remain in the docs versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12484 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11066] cgi.py proposals : sys.stdout encoding + rewriting of parsing functions
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11066 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8077] cgi handling of POSTed files is broken
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12470] Fix cutpaste typo in test_shutil
Roundup Robot devnull@devnull added the comment: New changeset 301c008dd58d by Senthil Kumaran in branch '3.2': Fix closes issue issue12470 - check for utime for the skipUnless condition. http://hg.python.org/cpython/rev/301c008dd58d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12470 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12484] The Py_InitModule functions no longer exist, but remain in the docs
Alejandro Santos alej...@alejolp.com added the comment: The call is also present on the older 3.1 and dev release of the docs: http://docs.python.org/release/3.1.3/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/release/3.1.3/extending/windows.html#a-cookbook-approach http://docs.python.org/release/3.1.3/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean http://docs.python.org/dev/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/dev/extending/windows.html#a-cookbook-approach http://docs.python.org/dev/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean -- versions: +Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12484 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12485] Improvement of textwrap module
New submission from Tyler Romeo tylerro...@gmail.com: Python's textwrap module can be helpful at times, but personally I think there are a couple of things that could be added. First, when it comes to text wrapping, usually you're not dealing with a monospace font where each letter is the same size. If you're working with the Python Imaging Library for example, there is a function that you pass the text to in order to determine how wide (or tall) a font is. Therefore, it would be useful to have a parameter where the user can pass a function that gives a custom width for a set of text. The default for this parameter, of course, would be len. Also, this module uses a rough and efficient algorithm for wrapping text, but the results are not always aesthetically pleasing (one word hanging off on a line). Sometimes the user may want something that is wrapped more beautifully, so to say, such as is found in TeX. So there should also be a beautiful option that goes back and redistributes the text so that it is more aesthetically pleasing. This isn't exactly that important (minor improvements to a module that is probably not used much), but I figured I'd get it out there as I run into the problem all the time when trying to wrap text to be put in images of a set size. -- components: Extension Modules files: textwrap.py-improvement.diff keywords: patch messages: 139731 nosy: parent5446 priority: normal severity: normal status: open title: Improvement of textwrap module type: feature request versions: Python 2.7 Added file: http://bugs.python.org/file22561/textwrap.py-improvement.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12485 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11909] Doctest sees directives in strings when it should only see them in comments
Devin Jeanpierre jeanpierr...@gmail.com added the comment: Updated. -- Added file: http://bugs.python.org/file22562/comments3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11909 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12486] tokenize module should have a unicode API
New submission from Devin Jeanpierre jeanpierr...@gmail.com: tokenize only deals with bytes. Users might want to deal with unicode source (for example, if python source is embedded into a document with an already-known encoding). The naive approach might be something like: def my_readline(): return my_oldreadline().encode('utf-8') But this doesn't work for python source that declares its encoding, which might be something other than utf-8. The only safe ways are to either manually add a coding line yourself (there are lots of ways, I picked a dumb one): def my_readline_safe(was_read=[]): if not was_read: was_read.append(True)can return b'# coding: utf-8' return my_oldreadline().encode('utf-8') tokenstream = tokenize.tokenize(my_readline_safe) Or to use the same my_readline as before (no added coding line), but instead of passing it to tokenize.tokenize, you could pass it to the undocumented _tokenize function: tokenstream = tokenize._tokenize(my_readline, 'utf-8') Or, ideally, you'd just pass the original readline that produces unicode into a utokenize function: tokenstream = tokenize.utokenize(my_oldreadline) -- components: Library (Lib) messages: 139733 nosy: Devin Jeanpierre priority: normal severity: normal status: open title: tokenize module should have a unicode API ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12486 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12471] wrong TypeError message on '%i' formatting
Roundup Robot devnull@devnull added the comment: New changeset 97707459bb5a by Senthil Kumaran in branch '3.2': Fix closes issue12471 - wrong TypeError message when '%i' format spec was used. http://hg.python.org/cpython/rev/97707459bb5a -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12471 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10734] test_ttk failure under Windows
Roundup Robot devnull@devnull added the comment: New changeset 8dde71899733 by Ned Deily in branch '2.7': Issue #10734: Temporarily disable test_ttk test_heading_callback on 2.7 as well. http://hg.python.org/cpython/rev/8dde71899733 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10734 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10734] test_ttk failure under Windows
Changes by Ned Deily n...@acm.org: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10734 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10734] test_ttk test_heading_callback fails with newer Tk 8.5
Ned Deily n...@acm.org added the comment: The failure is not unique to Windows. It fails on OS X with the current ActiveState Tk 8.5.9. I've temporarily disabled the test on 2.7 as well. -- title: test_ttk failure under Windows - test_ttk test_heading_callback fails with newer Tk 8.5 versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10734 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python
Roundup Robot devnull@devnull added the comment: New changeset ea02eca122b5 by Ned Deily in branch '2.7': Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run http://hg.python.org/cpython/rev/ea02eca122b5 New changeset 279488f5a171 by Ned Deily in branch '3.2': Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run http://hg.python.org/cpython/rev/279488f5a171 New changeset 5b5a33196916 by Ned Deily in branch 'default': Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run http://hg.python.org/cpython/rev/5b5a33196916 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8716 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python
Ned Deily n...@acm.org added the comment: Let's try this: when running under OS X, the tk and ttk test runners now perform their initial Tk-available sanity check in a subprocess rather than in the main interpreter process. If the subprocess fails, the tests are skipped. There are some differences in behavior across the various OS X releases - 10.4 crashes in more cases than 10.5 and 10.6 - but this should cover them all. I'll leave this open for a while. Please log any buildbot regressions here. -- resolution: - fixed stage: needs patch - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8716 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com