[issue17585] IDLE - regression with exit() and quit()
Antoine Pitrou added the comment: Yes, fixing site.py is fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17696] lookup fails for renamed functions
New submission from Ulrich Eckhardt: When you rename a test function, you can't explicitly specify it on the commandline any more. During normal test runs, it is automatically discovered though. The error is that the old name was not found, even though the new name was specified. The attached example changes the name attached to the function (its __name__ attribute) for demonstration. The same problem occurs if you auto-generate test functions and attach them to the class, using post-processing or a metaclass. The cases all have in common that the name in the class' dict is not the same as the function's __name__, so cls.foo.__name__ is not foo. See http://mail.python.org/pipermail/python-list/2013-April/644863.html for the initial discussion on the mailinglist. While I only tested Python 2.7 there, it also fails for 3.2 and 3.3. -- components: Tests files: name_mod.py messages: 186549 nosy: eckhardt priority: normal severity: normal status: open title: lookup fails for renamed functions type: behavior versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file29775/name_mod.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17696 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1208304] urllib2's urlopen() method causes a memory leak
Antoine Pitrou added the comment: The entire description of this issue is bogus. Reference cycles are not a bug, since Python has a cyclic garbage collector. Closing as invalid. -- nosy: +pitrou resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1208304 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16273] f.tell() returning negative number on Windows build
Antoine Pitrou added the comment: Giacomo, which behaviour are you talking about? FWIW, there is no such tell() issue in Python 3 and it doesn't use ftell(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1208304] urllib2's urlopen() method causes a memory leak
Ralf Schmitt added the comment: I'd consider reference cycles a bug especially if they prevent filedescriptors from being closed. please read the comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1208304 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17620] Python interactive console doesn't use sys.stdin for input
Antoine Pitrou added the comment: • interactive console doesn't use sys.stdin for input, why? Modules/main.c calls PyRun_AnyFileFlags(stdin, stdin, ...). At this point, sys.stdin *is* the same as C stdin by construction, so I'm not sure how you came to encounter the issue. However, it's also true that if you later redirect sys.stdin, it will be ignored and the original C stdin (as passed to PyRun_InteractiveLoopFlags) will continue to be used. On the other hand, the input() implementation has dedicated logic to find out whether sys.stdin is the same as C stdin. (by the way, the issue should also apply to 2.7) • it uses sys.stdin.encoding, shouldn't it rather use sys.__stdin__.encoding if anything? Assuming the previous bug gets fixed, then no :-) -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17620 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17430] missed peephole optimization
Antoine Pitrou added the comment: The migration to an AST optimizer is a bit of a pie-in-the-sky project. Functionally, it doesn't have many benefits since the scope of legal static optimizations in Python is very narrow (due to the dynamic nature of the language). Therefore, the main benefit it would bring would be (presumably) easier maintenance. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8109] Server-side support for TLS Server Name Indication extension
Kazuhiro Yoshida added the comment: Thanks for a comment. I've made a version that adds a line to the document. -- Added file: http://bugs.python.org/file29776/issue-8109.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8109 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1208304] urllib2's urlopen() method causes a memory leak
Antoine Pitrou added the comment: I see no file descriptor leak myself: f = urllib2.urlopen(http://www.google.com;) f.fileno() 3 os.fstat(3) posix.stat_result(st_mode=49663, st_ino=5045244, st_dev=7L, st_nlink=1, st_uid=1000, st_gid=1000, st_size=0, st_atime=0, st_mtime=0, st_ctime=0) del f os.fstat(3) Traceback (most recent call last): File stdin, line 1, in module OSError: [Errno 9] Bad file descriptor Ditto with Python 3: f = urllib.request.urlopen(http://www.google.com;) f.fileno() 3 os.fstat(3) posix.stat_result(st_mode=49663, st_ino=5071469, st_dev=7, st_nlink=1, st_uid=1000, st_gid=1000, st_size=0, st_atime=0, st_mtime=0, st_ctime=0) del f os.fstat(3) Traceback (most recent call last): File stdin, line 1, in module OSError: [Errno 9] Bad file descriptor Furthermore, you can use the `with` statement to ensure timely disposal of system resources: f = urllib.request.urlopen(http://www.google.com;) with f: f.fileno() ... 3 os.fstat(3) Traceback (most recent call last): File stdin, line 1, in module OSError: [Errno 9] Bad file descriptor -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1208304 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17696] lookup fails for renamed functions
R. David Murray added the comment: Well, actually, the old name *is* found, it is the new name that is not found in the class dict when unittest goes to actually run the test. This is a duplicate of issue 14971. I thought I had applied that patch, but obviously I haven't, and neither did Michael. I will fix that. -- nosy: +r.david.murray resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - (unittest) loadTestsFromName does not work on method with a decorator ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17696 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14971] (unittest) loadTestsFromName does not work on method with a decorator
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +eckhardt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14971] (unittest) loadTestsFromName does not work on method with a decorator
R. David Murray added the comment: Fixed in Python3. The 2.7 unittest code is different enough that it is not immediately obvious how to make the equivalent fix (given that it has been a while since I looked at this logic). If someone wants to work out the equivalent 2.7 patch, I will apply it. -- assignee: michael.foord - stage: - needs patch versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14971] (unittest) loadTestsFromName does not work on method with a decorator
Roundup Robot added the comment: New changeset b17bcfadd7f3 by R David Murray in branch '3.3': #14971: Use class method name, not function.__name__, during unittest discovery. http://hg.python.org/cpython/rev/b17bcfadd7f3 New changeset 659c89275be2 by R David Murray in branch 'default': Merge #14971: Use class method name, not function.__name__, during unittest discovery. http://hg.python.org/cpython/rev/659c89275be2 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1208304] urllib2's urlopen() method causes a memory leak
Mark Lawrence added the comment: Where did file descriptors come into it, surely this is all about memory leaks? In any case it's hardly a show stopper as there are at least three references above to the problem line of code and three workarounds. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1208304 ___ ___ 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
Changes by Arthur Darcet arthur.dar...@gmail.com: -- nosy: +Arthur.Darcet ___ 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
[issue17697] Incorrect stacktrace from pdb
New submission from Don Allen: Give the attached file execute permission and run it. At the first breakpoint, the backtrace will be correct. Continue. At the second breakpoint, a backtrace will show the foo('first call') on the stack when, in fact, the call came from foo('second call'), as verified by the printed message. I am running this on an up-to-date 64-bit Arch Linux system. Python 3.3.1. -- components: Library (Lib) files: python_bug.py messages: 186561 nosy: donaldcallen priority: normal severity: normal status: open title: Incorrect stacktrace from pdb type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file29777/python_bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17697 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17637] Mention What's New in devguide's patch guidelines
Ezio Melotti added the comment: Patch updated. -- assignee: - ezio.melotti stage: patch review - commit review type: - enhancement Added file: http://bugs.python.org/file29778/issue17637-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17637] Mention What's New in devguide's patch guidelines
Brett Cannon added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17637] Mention What's New in devguide's patch guidelines
Roundup Robot added the comment: New changeset 849b2fd4b06a by Ezio Melotti in branch 'default': #17637: mention What's New updating guidelines in the devguide. http://hg.python.org/devguide/rev/849b2fd4b06a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17637] Mention What's New in devguide's patch guidelines
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17651] Errno checking replaced by concrete classes inherited from OSError
Andrew Svetlov added the comment: Looks like the patch is out-of-date and tests doesn't pass. Would you push updated version? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17651] Errno checking replaced by concrete classes inherited from OSError
Andrey Tykhonov added the comment: Sure! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16273] f.tell() returning negative number on Windows build
Giacomo Alzetta added the comment: I can reproduce a similar behaviour, but instead of negative values I obtain huge values(which may as well be a negative unsigned converted to a python int). See this stackoverflow question: http://stackoverflow.com/questions/15934950/python-file-tell-giving-strange-numbers If it doesn't use ftell() then this might mean that there is a new bug in the current implementation? I can reproduce the results of the questioner, on a windows7 machine with python3.3.0, with the following code: with open('C:/Users/Giacomo/test', 'wb') as f: f.write(b'hello\r\n\r\n-data1:blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah\r\n\r\n\r\n-data2:blah blah blah blah blah blah blah blah blah blah blah\r\n-data3: Empty\r\n\r\n-data4: Empty') with open('C:/Users/Giacomo/test', 'rt') as f: for line in iter(f.readline, ''): print(f.tell()) Which outputs: 7 9 18446744073709551714 99 101 164 179 181 194 As I explained in my answer I thought the 1844... was due to the ftell() bug, but if that's not it I'm at a loss. Could you explain this results with the current implementation? By the way: it seems to be a python3.3 bug, since python3.2.3 is not affected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17690] Fix test discovery for test_time.py
Roundup Robot added the comment: New changeset 20efcabcd5c0 by Ezio Melotti in branch '3.3': #17690: test_time now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/20efcabcd5c0 New changeset 6cc56e21a74d by Ezio Melotti in branch 'default': #17690: merge with 3.3. http://hg.python.org/cpython/rev/6cc56e21a74d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17690 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17690] Fix test discovery for test_time.py
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17690 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16273] f.tell() returning negative number on Windows build
Benjamin Peterson added the comment: Giacomo, that's not related to the 2.7 problem. In Python 3, the result of f.tell() is not a file position, but a special value that tells the decoder to pick up when you seek(). -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Andrew Svetlov added the comment: Test for the issue_13355.patch is incorrect, please fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17698] Setting allow_reuse_address in BaseHTTPServer has no effect.
New submission from Michael Bevilacqua-Linn: Hello, In BaseHTTPServer line 104 is the following: allow_reuse_address = 1# Seems to make sense in testing environment This appears to attempt to set SO_REUSEADDR, but it doesn't actually do anything since the attribute that needs to be set to true is actually on the superclass (TCPServer). A tad misleading when reading the code trying to figure out how to set SO_REUSEADDR. -- components: Library (Lib) messages: 186572 nosy: Michael.Bevilacqua-Linn priority: normal severity: normal status: open title: Setting allow_reuse_address in BaseHTTPServer has no effect. type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17698 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17698] Setting allow_reuse_address in BaseHTTPServer has no effect.
R. David Murray added the comment: Unless I'm misunderstanding something, that assignment is doing exactly what it intends to do, and is documented as being a supported API in TCPServer: changing the value of that class attribute to a true value for the BaseHTTPServer class. (In particular, server_bind calls TCPServer.server_bind, passing it self.) Can you explain more about what behavior you are seeing as the bug? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17698 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue900112] cgi.fieldStorage doesn't grok standards env. variables
Andrew Svetlov added the comment: I've found the stable link to CGI 1.1 spec at http://tools.ietf.org/html/draft-robinson-www-interface-00 Links to spec from the issue looks like broken. Please, can you describe why we need to convert, say, HTTP_USER_AGENT to user-agent? I see in the spec: Environment variables with names beginning with HTTP_ contain header data read from the client, if the protocol used was HTTP. The HTTP header name is converted to upper case, has all occurrences of - replaced with _ and has HTTP_ prepended to give the environment variable name. Why we need the reverse varname translation? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue900112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue900112] cgi.fieldStorage doesn't grok standards env. variables
Senthil Kumaran added the comment: Incidentally I was looking at this bug in the morning and it looks like this one is on the edge. Looks like we may not need the functionality as provided by the patch. The existing headers are set in FieldStorage for use within the FieldStorage class. We do not need to get the headers out from environ variable and set in the FieldStorage headers. That is because we can already send the headers if we want as headers and environ are set by the users when Initializing FieldStorage object. So, I am really not sure of the utility value of the patch and gravitating towards closing this as Invalid. I am extremely sorry that this bug has been open for such a long time. But it also shows that not many have felt the need for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue900112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17620] Python interactive console doesn't use sys.stdin for input
Drekin added the comment: I encountered it when I changed sys.stdin at runtime (I thought it was a supported feature) to affect the interactive console, see http://bugs.python.org/issue1602 . -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17620 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest
Andrew Svetlov added the comment: I like the patch but please add tests also. We need to put new behavior in stone :) Take a look on comments to the patch also. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521051 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8109] Server-side support for TLS Server Name Indication extension
Roundup Robot added the comment: New changeset 4ae6095b4638 by Antoine Pitrou in branch 'default': Fix a crash when setting a servername callback on a SSL server socket and the client doesn't send a server name. http://hg.python.org/cpython/rev/4ae6095b4638 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8109 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8109] Server-side support for TLS Server Name Indication extension
Antoine Pitrou added the comment: Thank you for finding this! The patch is now committed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8109 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17689] Fix test discovery for test_tarfile.py
Changes by Zachary Ware zachary.w...@gmail.com: Added file: http://bugs.python.org/file29779/test_tarfile_discovery.v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17689 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17620] Python interactive console doesn't use sys.stdin for input
Antoine Pitrou added the comment: Ok, I guess it would need a new API (PyRun_Stdio()?) to run the interactive loop from sys.stdin, rather than from a fixed FILE*. -- stage: - needs patch type: behavior - enhancement versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17620 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17697] Incorrect stacktrace from pdb
Ian Kelly added the comment: The bug also occurs using 32-bit Python 3.3.1 on Windows 7. -- nosy: +ikelly ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17697 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17665] convert to idiomatic unittest code
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: Removed file: http://bugs.python.org/file29738/diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17665 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17665] convert to idiomatic unittest code
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: Added file: http://bugs.python.org/file29780/diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17665 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17698] Setting allow_reuse_address in BaseHTTPServer has no effect.
Michael Bevilacqua-Linn added the comment: Ack yes you're right, there was a bug in my test case... Sorry about that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17698 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17698] Setting allow_reuse_address in BaseHTTPServer has no effect.
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17698 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16482] pdb.set_trace() clobbering traceback on error
Ned Deily added the comment: See also Issue17697. Xavier, would you be willing to submit a patch with a test? -- nosy: +ned.deily stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16482 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17697] Incorrect stacktrace from pdb
Ned Deily added the comment: On python-list, Robert Kern used where to demonstrate the problem: $ python pdbbug.py first call --Return-- /Users/rkern/scratch/pdbbug.py(4)foo()-None - pdb.set_trace() (Pdb) where /Users/rkern/scratch/pdbbug.py(5)module() - foo('first call') /Users/rkern/scratch/pdbbug.py(4)foo()-None - pdb.set_trace() (Pdb) c second call --Return-- /Users/rkern/scratch/pdbbug.py(4)foo()-None - pdb.set_trace() (Pdb) where /Users/rkern/scratch/pdbbug.py(5)module() - foo('first call') /Users/rkern/scratch/pdbbug.py(4)foo()-None - pdb.set_trace() (Pdb) Searching other open pdb issues, applying the suggested fix from Issue16482 seems to correct the problem here. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17697 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17697] Incorrect stacktrace from pdb
Changes by Ned Deily n...@acm.org: -- stage: - needs patch versions: +Python 2.7, Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17697 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed
R. David Murray added the comment: It turns out the new header parsing code also missed this error recovery. Or, rather, it recovers from it by completely ignoring the parameter with the bad syntax. I haven't worked out a solution that does more useful error recovery yet, but I'm posting an updated patch with tests for the new parser and something that may (or may not!) be heading in the direction of a fix, in case anyone else wants to work on it before I get back to it. -- Added file: http://bugs.python.org/file29781/rfc2231_issue17369_in_progress.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17369 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16658] Missing return in HTTPConnection.send()
Andrew Svetlov added the comment: LGTM, will commit if no objects. Let's leave encoding problems for upcoming issue. Please file new one if needed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16658 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17693] Use _PyUnicodeWriter API for CJK decoders
Roundup Robot added the comment: New changeset bcecf3910162 by Victor Stinner in branch 'default': Close #17693: Rewrite CJK decoders to use the _PyUnicodeWriter API instead of http://hg.python.org/cpython/rev/bcecf3910162 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17693 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17699] Fix test_getpass on Windows
New submission from Zachary Ware: (Copied the nosy list from issue17484) The new test module fails on Windows due to the lack of termios and pwd modules. Here's a patch that fixes things. I suspect the skip condition on UnixGetpassTest could be changed to check 'termios' rather than os.name, but I can't test that currently. Thanks, Zach -- components: Tests files: test_getpass_windows_fix.diff keywords: patch messages: 186588 nosy: Thomas Fenzl, pitrou, r.david.murray, zach.ware priority: normal severity: normal status: open title: Fix test_getpass on Windows type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file29782/test_getpass_windows_fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17699 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4630] IDLE: add cursor noblink option
Ismail Donmez added the comment: Time to say ping here. This patch is still would be useful for Python. -- nosy: +cartman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4630 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16273] f.tell() returning negative number on Windows build
Giacomo Alzetta added the comment: The documentation for python 3.3.1 states, at http://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files, states: f.tell() returns an integer giving the file object’s current position in the file, **measured in bytes from the beginning of the file**. And regarding files opened in text mode the only statement is: In text files (those opened without a b in the mode string), only seeks relative to the beginning of the file are allowed (the exception being seeking to the very file end with seek(0, 2)). Even though in the io module it is documented that it may not be the number of bytes. I think the former documentation should be changed, since it's simply wrong. Sorry for the disturb, but in the beginning I thought it was related. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16273] f.tell() returning negative number on Windows build
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13056] test_multibytecodec.py:TestStreamWriter is skipped after PEP393
Roundup Robot added the comment: New changeset 78cd09d2f908 by Victor Stinner in branch 'default': Issue #13056: Reenable test_multibytecodec.Test_StreamWriter tests http://hg.python.org/cpython/rev/78cd09d2f908 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13056] test_multibytecodec.py:TestStreamWriter is skipped after PEP393
STINNER Victor added the comment: CJK decoders use the new Unicode API since the changeset bcecf3910162. I think these tests have no sense after PEP393. They tests that StreamWriter works with non-BMP characters broken inside surrogate pair. I.e. c.write(s[:i]); c.write(s[i:]) always is same as c.write(s), even if i breaks s inside a surrogate pair. This case is impossible after PEP393. I reenabled tests, but I simplified them to remove parts related to surrogate pairs. Tests are shorter than before, but it's better than no test at all. Can I close the issue or someone wants to improve these tests? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6743] Add function compatible with print to pprint module
Antoine Pitrou added the comment: Closing as per Ezio's suggestion on #python-dev. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6743 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6743] Add function compatible with print to pprint module
Ezio Melotti added the comment: To clarify, the request seems reasonable to me, but the use cases are somewhat limited and it's not obvious what the best implementation should be. Given that others are -1 on this, I suggested to close it rather than leaving it open and languishing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6743 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13056] test_multibytecodec.py:TestStreamWriter is skipped after PEP393
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17675] show addresses in socket.__repr__
Zachary Ware added the comment: The new tests fail on Windows, see for example http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/1763/steps/test/logs/stdio It can be fixed on Windows by moving the `s.bind(('127.0.0.1', 0))` line above the `self.assertIn('laddr', repr(s))` line, though since the test is currently passing on the Unix buildbots, I don't know if the change would break them. -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17699] Fix test_getpass on Windows
R. David Murray added the comment: Thanks Zachary. I forgot to check the buildbots after I pushed that patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17699 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17699] Fix test_getpass on Windows
Roundup Robot added the comment: New changeset c84a5e5f73c3 by R David Murray in branch 'default': #17699: Fix the new getpass test failures on windows. http://hg.python.org/cpython/rev/c84a5e5f73c3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17699 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17699] Fix test_getpass on Windows
R. David Murray added the comment: I'm going to close this because the windows buildbots currently aren't building, and I'll forget to close it if I wait for them. I trust you'll reopen it if it doesn't actually fix the problem for some reason :) -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17699 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16658] Missing return in HTTPConnection.send()
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16658 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17700] Update Curses HOWTO for 3.4
New submission from A.M. Kuchling: Here's a patch updating the Curses HOWTO for 3.4 that can be applied to the default branch. Changes: * curses.wrapper.wrapper is now just curses.wrapper * Mention window.encoding and its effect on Unicode. * Describe getkey() as well as getch() * Improve some examples. * Use 4-space indentation. * Add links to urwid, an alternate UI library. * Various edits rewording. -- assignee: docs@python components: Documentation files: update-curses-howto.txt messages: 186599 nosy: akuchling, docs@python priority: normal severity: normal stage: patch review status: open title: Update Curses HOWTO for 3.4 type: enhancement Added file: http://bugs.python.org/file29783/update-curses-howto.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17700 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12181] SIGBUS error on OpenBSD (sparc64)
Trent Nelson added the comment: On Tue, Apr 09, 2013 at 03:04:42AM -0700, Charles-Fran?ois Natali wrote: Why are the OpenBSD buildbots down? Can we do anything about it? Having a buildbot slave up will definitely help here. All the OpenBSD buildbots we have are provided by SnakeByte, and they're all offline: http://buildbot.python.org/all/builders Maybe Trent has more info. Oh dear, hadn't noticed that. Should be fixed now. Trent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17701] Improving strftime documentation
New submission from David Wolever: The current strftime documentation isn't very helpful. It doesn't have examples, and the ordering is unhelpful. I've also moved some format-specific notes into the notes below the format-string-table, because the format string table is what 98%* of people care about. TODO before this can be merged: - Clean up note order - Check that it works with the Python 3 docs *: based on a sample size of 1 -- assignee: docs@python components: Documentation files: strftime-docs.diff keywords: needs review, patch messages: 186601 nosy: docs@python, wolever priority: normal severity: normal status: open title: Improving strftime documentation type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file29784/strftime-docs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17701] Improving strftime documentation
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17585] IDLE - regression with exit() and quit()
Roundup Robot added the comment: New changeset 99e363e67844 by Roger Serwy in branch '2.7': #17585: Fixed IDLE regression. Now closes when using exit() or quit(). http://hg.python.org/cpython/rev/99e363e67844 New changeset d3c67e2fc68c by Roger Serwy in branch '3.3': #17585: Fixed IDLE regression. Now closes when using exit() or quit(). http://hg.python.org/cpython/rev/d3c67e2fc68c New changeset 82451c88b3c0 by Roger Serwy in branch 'default': #17585: merge with 3.3. http://hg.python.org/cpython/rev/82451c88b3c0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17585] IDLE - regression with exit() and quit()
Roger Serwy added the comment: Thanks, Antoine. I am closing this issue as fixed. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17702] os.environ converts key type from string to bytes in KeyError exception
New submission from Robert Tasarz: Minimal example: import os somekey = 'random' try: ... os.environ[somekey] ... except KeyError as e: ... print(repr(e)) ... somekey == e.args[0] ... KeyError(b'random',) False Tested in Python 3.3.1 on Debian -- components: Extension Modules messages: 186604 nosy: Robert.Tasarz priority: normal severity: normal status: open title: os.environ converts key type from string to bytes in KeyError exception versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17702] os.environ converts key type from string to bytes in KeyError exception
Changes by Robert Tasarz robert.tas...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17702] os.environ converts key type from string to bytes in KeyError exception
Changes by Ned Deily n...@acm.org: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17701] Improving strftime documentation
Éric Araujo added the comment: Thanks for the patch, looks good. I’d put the versionadded block at the end of the note rather than the beginning, to match usual conventions. -- nosy: +eric.araujo stage: - patch review versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17700] Update Curses HOWTO for 3.4
Éric Araujo added the comment: Do the changes (e.g. curses.wrapper new name) not apply to 3.3? -- nosy: +eric.araujo versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17700 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17701] Improving strftime documentation
Changes by David Wolever wole...@cs.toronto.edu: Added file: http://bugs.python.org/file29785/strftime-docs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17701] Improving strftime documentation
David Wolever added the comment: Ah, yes — thanks Éric. I've fiddled with the wording on the %f note a bit so it makes more sense along with the versionadded, and removed the versionadded text, which is basically identical to the note and description. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14146] IDLE: source line in editor doesn't highlight when debugging
Roger Serwy added the comment: Todd, thank you for being proactive with the Tcl/Tk community. Hopefully they will offer a fix in their next version. In the meanwhile, here's a patch that works around the problem on Windows. The purpose of getting the highlight configuration at each FocusOut event is in case the current theme changes. -- keywords: +patch stage: - patch review versions: +Python 2.7 -Python 3.2 Added file: http://bugs.python.org/file29786/win_highlighting.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14146 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17511] Idle find function closes after each find operation
Roger Serwy added the comment: I submitted a patch to #14146 that would work around the selection highlighting issue on Windows. It is based on Sarah's idea of replacing the sel tags with a tag that remains visible. There are a lot of ideas floating here about improving the search dialog. Maybe we should take the discussion to idle-dev? In order to avoid rapidly expanding the issue, I suggest that we limit this issue to the find window remaining open with a Find Next button. Does that sound reasonable? -- dependencies: +IDLE: source line in editor doesn't highlight when debugging ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14146] IDLE: source line in editor doesn't highlight when debugging
Roger Serwy added the comment: I forgot to mention that the idea for replacing the sel tags is based on an idea from Sarah's patch from #17511. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14146 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4630] IDLE: add cursor noblink option
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4630 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com