[issue1023] Buy Tramadol online
A.M. Kuchling added the comment: Closing this issue. -- nosy: +amk resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1023> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1396] py3k-pep3137: patch for mailbox
A.M. Kuchling added the comment: I'm not following Py3K development at all, but the patch is pretty short and seems reasonable. I think mailboxes should be 7-bit clean in theory, but have no idea if things are that tidy in practice. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1396> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13443] wrong links and examples in the functional HOWTO
A.M. Kuchling added the comment: Here's a patch against the 3.3 trunk. -- Added file: http://bugs.python.org/file23765/functional-patch.txt ___ Python tracker <http://bugs.python.org/issue13443> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13443] wrong links and examples in the functional HOWTO
A.M. Kuchling added the comment: Yes, linking to the functional module was to point people to a module that might be useful, even if it's not in the stdlib. A numeric processing or socket handling HOWTO would also pretty much have to link to non-stdlib sources. The purpose of documentation is to be useful to the reader, so I think if linking to something external would be reasonably useful, we should do it. Another motivation for linking was to provide alternative explanations; if the reader finds the Functional HOWTO boring or too superficial or too complicated, maybe an alternative discussion like Mertz's "Text Processing" will fit their brain better. (At least until those alternative sources become so outdated that they're useless...) -- ___ Python tracker <http://bugs.python.org/issue13443> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Changes by A.M. Kuchling : -- nosy: -akuchling ___ Python tracker <http://bugs.python.org/issue2636> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5737] add Solaris errnos
A.M. Kuchling added the comment: This patch looks unproblematic to me, unless we're trying to keep platform-specific error codes out of errnomodule.c. I removed Python 2.7 and 3.1 from Versions, guessing that this change would be unacceptable in a bugfix release. -- nosy: +akuchling stage: needs patch -> patch review versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue5737> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue502236] Asynchronous exceptions between threads
A.M. Kuchling added the comment: I'll close this issue, then. Maybe something fancier needs to be built atop the AsyncExc() function to allow a single thread to terminate all other threads, but unless someone actually presents a current use case (or a PEP), there seems little to do. Please re-open if there *is* something concrete to do. -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/issue502236> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7647] Add statvfs flags to the posix module
A.M. Kuchling added the comment: Committed to 3.2 in rev. 84188; thanks, Adam! -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/issue7647> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1376292] Write user's version of the reference guide
A.M. Kuchling added the comment: Not likely to be worked on, and whether to write such a guide is a question for the docs editor (or the Doc-SIG). -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue1376292> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2212] Cookie.BaseCookie has ambiguous unicode handling
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue2212> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2209] mailbox module doesn't support compressed mbox
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue2209> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2657] Curses sometimes fails to initialize terminal
Changes by A.M. Kuchling : -- assignee: akuchling -> status: pending -> open ___ Python tracker <http://bugs.python.org/issue2657> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue3786> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1687125] cannot catch KeyboardInterrupt when using curses getkey()
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1687125> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5368] curses patch add color_set and wcolor_set , and addchstr family of functions
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue5368> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4254] _cursesmodule.c callable update_lines_cols()
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue4254> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9557] test_mailbox failure under a Windows VM
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue9557> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1723038] Curses Menu
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1723038> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1512163] mailbox (2.5b1): locking doesn't work (esp. on FreeBSD)
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1512163> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1745108] 2.5.1 curses panel segfault in new_panel on aix 5.3
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1745108> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1671676] test_mailbox is hanging while doing gmake test on HP-UX v3
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1671676> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1751519] curses - new window methods: addchstr and addchnstr
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1751519> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1599254] mailbox: other programs' messages can vanish without trace
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1599254> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1488934] file.write + closed pipe = no error
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1488934> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2124] xml.sax and xml.dom fetch DTDs by default
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue2124> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1028088] Cookies without values are silently ignored (by design?)
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1028088> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1483] xml.sax.saxutils.prepare_input_source ignores character stream in InputSource
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1483> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1665333] Documentation missing for OptionGroup class in optparse
Changes by A.M. Kuchling : -- assignee: akuchling -> ___ Python tracker <http://bugs.python.org/issue1665333> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2650] re.escape should not escape underscore
Changes by A.M. Kuchling : -- nosy: -akuchling ___ Python tracker <http://bugs.python.org/issue2650> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9124] Mailbox module should use binary I/O, not text I/O
Changes by A.M. Kuchling : -- nosy: -akuchling ___ Python tracker <http://bugs.python.org/issue9124> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1528620] Python 2.5b2 fails to build on Solaris 10 (Sun Compiler)
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Closing, per the last comment. -- resolution: -> fixed status: pending -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1528620> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue839496] SimpleHTTPServer reports wrong content-length for text files
Changes by A.M. Kuchling <[EMAIL PROTECTED]>: -- keywords: +easy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue839496> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3156] bytes type has inconsistent methods (append, insert)
New submission from A.M. Kuchling <[EMAIL PROTECTED]>: bytearray's methods aren't consistent in what they accept. append() takes either an int or a character: >>> b = bytearray('abc') >>> b.append(76) ; b bytearray(b'abcL') >>> b.append('M') ; b bytearray(b'abcLM') .insert() accepts only integers: >>> b.insert(0, 97) ; b bytearray(b'aabcLM') >>> b.insert(0, 'a') ; b Traceback (most recent call last): File "", line 1, in TypeError: an integer is required Both PEP 358 and the docstring for .append() only document 'int' as a legal input, so I suspect append() is wrong here. -- messages: 68487 nosy: akuchling severity: normal status: open title: bytes type has inconsistent methods (append, insert) type: behavior versions: Python 2.6 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3156> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3151] elementtree serialization bug for weird namespace urls
Changes by A.M. Kuchling <[EMAIL PROTECTED]>: -- keywords: +easy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3151> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2732] curses.textpad loses characters at the end of lines
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: This bug was fixed in 2.5 and 2.6, in rev. 60118 and 60119. Thanks for your bug report! -- assignee: -> akuchling nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2732> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3228] mailbox.mbox creates files with execute bit set
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Committed to trunk in rev. 65472, along with two corresponding tests. -- nosy: +akuchling ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3228> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3228] mailbox.mbox creates files with execute bit set
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: There's another use of os.open in the module in the MH class's __setitem__ that doesn't provide a mode, but I think this occurrence is harmless; it's truncating a file that always exists, so the existing mode is preserved. Here's the little test I tried: #!./python.exe import os os.umask(0077) from mailbox import MH m = MH('/tmp/foobar') m.add('123') ; m.add('456') m[1] = 'abc' ; m[2] = 'def' m.close() The files /tmp/foobar/{1,2} both end up with 0600 permissions. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3228> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3463] make life.py use more rendering characters
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: I agree with tjreedy that this change is not very interesting for a demo program. It would be more interesting to add larger features such as different cellular automata, mouse or colour support, or something like that. Thanks for your patch, anyway. -- nosy: +akuchling resolution: -> rejected status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3463> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2305] Update What's new in 2.6
Changes by A.M. Kuchling <[EMAIL PROTECTED]>: -- priority: -> critical ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2305> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue836088] Update htmllib to HTML 4.01
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Closing -- I'm not going to work on this patch further, and it seems irrelevant. -- status: pending -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue836088> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2396] Backport memoryview object to Python 2.6
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Is there still time to do the backport for 2.6 at this late date? -- nosy: +akuchling ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2396> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3228] mailbox.mbox creates files with execute bit set
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: I took one test and an idea from Niels' patch -- checking for the existence of os.stat as well as os.umask -- and applied it as rev. 65536. Closing this issue now. Thanks, everyone! -- assignee: -> akuchling resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3228> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3367] Uninitialized value read in parsetok.c
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: This patch was applied in rev. 65539, but then reverted; it turns out to break Lib/test/test_parser.py. The exception is: raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File "Lib/test/test_parser.py", line 222, in test_position terminals) AssertionError: [(1, 'def', 1, 0), (1, 'f', 1, 4), (7, '(', 1, 5), (1, 'x', 1, 6), (8, ')', 1, 7), (11, ':', 1, 8), (4, '', 1, 9), (5, '', 2, -1), (1, 'return', 2, 4), (1, 'x', 2, 11), (14, '+', 2, 13), (2, '1', 2, 15), (4, '', 2, 16), (6, '', 2, -1), (4, '', 2, -1), (0, '', 2, -1)] != [(1, 'def', 1, 0), (1, 'f', 1, 7033504), (7, '(', 1, 7033505), (1, 'x', 1, 7033506), (8, ')', 1, 7033507), (11, ':', 1, 7033508), (4, '', 1, 7033509), (5, '', 2, -1), (1, 'return', 2, 7033514), (1, 'x', 2, 7033521), (14, '+', 2, 7033523), (2, '1', 2, 7033525), (4, '', 2, 7033526), (6, '', 2, 0), (4, '', 2, 0), (0, '', 2, 0)] In the resulting output, the columns are incorrect large values (7033504, 7033505) or they're 0 where -1 is expected. I took a look into why this happened, but made no progress. Removing the 'easy' keyword. :) -- keywords: -easy nosy: +akuchling ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3367> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2305] Update What's new in 2.6
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: It's in good shape. There are a few items in my saved-email folder that need to be added, and a few XXX markers here and there, but I've done the large stuff, like writing a section on the multiprocessing module. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2305> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2305] Update What's new in 2.6
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: I agree; we don't want to require people to read the 2.6 document, and then the 3.0 document to get a complete picture. Besides, the organization of the 2.x documents may not be suitable for the 3.0 document. The 2.x documents are organized by PEP, then a section for miscellaneous language changes, then a section for library changes. For 3.0, you probably want to do all language changes in one section, ignoring how they were broken up into PEPs, then a section on the library reorganization, and then maybe sections on using 2to3 or porting C extensions. It's certainly OK with me to copy text from the 2.6 document into the 3.0 one, if some of the text is useful. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2305> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2305] Update What's new in 2.6
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Oh, and it might be more realistic to keep the 3.0 document as a set of notes, and aim to have a more finished document in 3.1. ISTM it'll be hard to finish writing it in time for a planned 3.0 release, even if you spent your 20% work-time on the task. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2305> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1985] Bug/Patch: Problem with xml/__init__.py when using freeze.py
Changes by A.M. Kuchling <[EMAIL PROTECTED]>: -- keywords: +easy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1985> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2305] Update What's new in 2.6
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Closing this item; the 2.6 "What's New" is done, except for any small fixes that get reported. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2305> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3671] What's New in 2.6 - corrections
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Many of the items are fixed in rev66217; thanks! A few of them were fixed in the revisions I did this past weekend. Not fixed: * the links for apply() and map() in the PEP 371 section. Georg, is there a way to override where the methods link to, or at least prevent them from being turned into links? * the itertools section uses the -> to indicate the resulting stream of values; this is why those examples aren't written in the interpreter-prompt style. So I'm not going to change the examples by adding list(). ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3671> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3671] What's New in 2.6 - corrections
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: itertools(product typo fixed in rev. 66231. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3671> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3040] optparse documentation: variable arguments example doesn't work as listed
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Fixed in rev. 66250 of trunk; thanks! -- nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3040> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3604] broken link in curses module docs
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: This is fixed in the Python 2.6 documentation, where the HOWTOs have been incorporated and the link is therefore automatic. Thanks for your report! -- nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3604> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3669] sqlite3.Connection.iterdump docs pythonicity
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Applied in rev. 66268; thanks! -- nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3669> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674032] Make threading.Event().wait(timeout=3) return isSet
Changes by A.M. Kuchling <[EMAIL PROTECTED]>: -- components: -Documentation ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1674032> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1317] smtplib.SMTP docs
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Documentation added in rev. 66272. -- assignee: -> akuchling nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1317> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2420] Faq 4.28 -- Trailing comas
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: I've edited the suggested text and added it to the FAQ in rev. 11722. Thanks for your contribution! -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2420> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3288] float.as_integer_ratio method is not documented
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: While writing docs for as_integer_ratio(), I noticed a few typos in the docstrings of the new float methods. Patch attached. -- nosy: +akuchling Added file: http://bugs.python.org/file11481/float-docstring.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3288> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3288] float.as_integer_ratio method is not documented
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: The attached patch documents the as_integer_ratio method; I'll commit it once Barry allows commits. Added file: http://bugs.python.org/file11482/stdtypes.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3288> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue687648] classic division in demos/ directory
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Changes to curses/ committed in rev. 66424. Changes to threading/ committed in rev. 66425. Changes to Demo/classes/Dates.py committed in rev. 66426. Changes to md5driver/ committed in rev. 66427. Rest of the changes committed in rev. 66428. Robert, thank you very much for your patch! -- assignee: -> akuchling nosy: +akuchling resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue687648> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3850] find_recursion_limit.py is broken
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: The patch seems fine to me. The docstring at the top of the file says: It ends when Python causes a segmentation fault because the limit is too high. On platforms like Mac and Windows, it should exit with a MemoryError. On my Macbook, it segfaults; perhaps that docstring applied only to MacOS 9? -- nosy: +akuchling ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3850> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3288] float.as_integer_ratio method is not documented
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Patch committed in rev. 66435. Do we want to mention it in the tutorial? If not, this issue could now be closed. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3288> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3457] Release notes for 2.6b2 call it an alpha release
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: The web pages seem to have been updated to correctly describe the releases (now, they're release candidates). Thanks for your report! -- nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3457> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3510] Site-specific configuration hook documentation incorrect
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Changed in rev. 0 to use the X.Y form. Thanks! -- nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3510> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1579477] Use flush() before os.exevp()
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: A paragraph has been added in rev. 2, using a modified version of your text. Thanks for your suggestion! -- nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1579477> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2127] sqlite3 docs should mention utf8 requirement
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: vdupras's test case now passes with Python 2.6; we should apply the patch to the test suite, though. We could ask Barry if he wants to apply it to 2.6rc, or adding the test can wait until 2.7. -- nosy: +akuchling ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2127> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1415508] optparse enable_interspersed_args disable_interspersed_args
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Added to the documentation in rev. 3; thanks for your patch! Barry, there's also a patch adding two docstrings to optparse.py. Is it OK to add docstrings at the rc level, or should I wait until the trunk is re-opened for 2.7? (Actually, I have a few unrelated docstring changes?) -- nosy: +akuchling, barry ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1415508> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1415508] optparse enable_interspersed_args disable_interspersed_args
Changes by A.M. Kuchling <[EMAIL PROTECTED]>: -- assignee: gward -> akuchling ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1415508> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue459007] Document sys.path on Windows
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: I think this item doesn't need to be handled by Mark. There's a comment at the top of PC/getpathp.c giving the rules, so it's just a matter of editing the text and adding reST markup. But where in the docs should this material go? using/windows.rst? -- nosy: +akuchling ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue459007> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1415508] optparse enable_interspersed_args disable_interspersed_args
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Docstring portion of the patch applied to the trunk in rev. 66804; the change will appear in Python 2.6.1 and 2.7. Thanks! -- resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1415508> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3288] float.as_integer_ratio method is not documented
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Should I backport the tutorial patch to the 2.6 tutorial? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3288> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1886] Permit to easily use distutils "--formats=tar, gztar, bztar" on all systems
Changes by A.M. Kuchling <[EMAIL PROTECTED]>: -- assignee: -> akuchling nosy: +akuchling ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1886> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7593] Computed-goto patch for RE engine
A.M. Kuchling added the comment: I finally got around to benchmarking this change, and unfortunately the results are not good. I used the regex tests in the Unladen Swallow test suite, regex_effbot and regex_v8. The tests are written for Python 2.x, but the fixes for 3.x are straightforward (use print() in one function; replace xrange with range in the bm_regex_effbot.py and bm_regex_v8.py files; remove a few uses of u''; I'll provide a patch later.) Hardware: MacBook, Intel Core 2 Duo, 1.83GHz, 2MB L2 cache, 667 MHz bus. Tests invoked with ./perf.py -b regex_effbot -r -v ../py3k/python.exe ../threaded-3000/python.exe regex_effbot is 1.1002 times slower with the computed-goto patch, and regex_v8 is 1.0081x slower. perf.py indicates that both results are significant. I'd like to see a few people replicate these results -- maybe the effect is very platform dependent or I ran the tests incorrectly -- but on current evidence, this patch is not worth pursuing. -- ___ Python tracker <http://bugs.python.org/issue7593> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7593] Computed-goto patch for RE engine
A.M. Kuchling added the comment: Actually, I really want someone to verify that measurement. As a control, I tried running the call_method benchmark (after a few more xrange fixes). The Python 3.x trunk version with my patch is measured as 1.0227x slower, even though the patch only touches the re module and call_method doesn't use the module at all. I recompiled both binaries; both builds are using the same compiler arguments; both have the same version from trunk. I'm mystified about why the patched version is slower. -- ___ Python tracker <http://bugs.python.org/issue7593> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4199] add shorthand global and nonlocal statements
A.M. Kuchling added the comment: Bumping priority so this doesn't get forgotten before 3.2; it seems important because it fixes noncompliance with a PEP. -- nosy: +akuchling priority: normal -> high ___ Python tracker <http://bugs.python.org/issue4199> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1481] test_uuid is warning about unreliable functions
A.M. Kuchling added the comment: They were disabled in r50949, with the comment: Disable these tests until they are reliable across platforms. These problems may mask more important, real problems. One or both methods are known to fail on: Solaris, OpenBSD, Debian, Ubuntu. They pass on Windows and some Linux boxes. Some of them seem to only work on one platform, so maybe someone could write some platform-checking code to skip tests as necessary. -- nosy: +akuchling ___ Python tracker <http://bugs.python.org/issue1481> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)
A.M. Kuchling added the comment: Gabriel: could you please update the patch to take Antoine's comment into account? -- nosy: +akuchling ___ Python tracker <http://bugs.python.org/issue5099> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4852] Cleanup old stuff from pythread.h
A.M. Kuchling added the comment: The patch seems obviously correct to me; there's no way a user of pythread.h can make NO_EXIT_PROG be undefined. The patch no long applies cleanly to thread_nt.h -- one hunk is rejected -- but it looks like the change in that hunk has already been applied (though I can't try compiling on Windows to verify that everything still works). I did try applying the patch and re-compiling on Linux. I think you can just apply it; if you're cautious, you could ask someone to try it on Windows first. -- nosy: +akuchling ___ Python tracker <http://bugs.python.org/issue4852> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7038] test_curses fails on os x 10.6
A.M. Kuchling added the comment: Closing this bug is fine with me. -- nosy: +akuchling resolution: -> works for me status: open -> closed ___ Python tracker <http://bugs.python.org/issue7038> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1657] [patch] epoll and kqueue wrappers for the select module
A.M. Kuchling added the comment: What exactly needs to be finished in the documentation? There are sections for the epoll and kqueue objects, and the epoll section looks fine, if brief. Is the problem that the kqueue section says things like 'filter-specific data' with no explanation? -- nosy: +akuchling ___ Python tracker <http://bugs.python.org/issue1657> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6243] getkey() can segfault in combination with curses.ungetch()
A.M. Kuchling added the comment: Backported to 2.6-maint in commit 78324. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue6243> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4174] Performance optimization for min() and max() over lists
A.M. Kuchling added the comment: Should this patch just be rejected, then? Or is the more general locking suggested in msg88021 of interest? -- nosy: +akuchling ___ Python tracker <http://bugs.python.org/issue4174> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5368] curses patch add color_set and wcolor_set , and addchstr family of functions
A.M. Kuchling added the comment: Thanks for the patches! Two comments on the addchstr change: * I think that, instead of checking for a list, the method should accept any Python sequence; a tuple is perfectly reasonable, for example, and if the code is changed to use PyCurses_ConvertToChType() instead of PyInt_Check(), it will accept a list of integers, a mixed list of ints and character strings, and even just strings. * the documentation and error messages currently try to paper over all of the curses variants of addchstr(), waddchstr(), mvwaddchstr(), ..., covering them all up under the addchstr name. This means that your submitted documentation patch is too detailed; it should look more like the insnstr() docs, which has [y,x,] as optional, and the text says something like "Moves to y,x if specified, and then ...'. The color_set() changes look OK; I'm going to try to break them out into a separate patch and commit them on their own. -- ___ Python tracker <http://bugs.python.org/issue5368> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7627] mailbox.MH.remove() lock handling is broken
A.M. Kuchling added the comment: Thanks for your bug report! Unfortunately, the fix isn't quite right, because on Windows you can't delete files that are open. I think an even simpler fix is just to remove that locking; if self._locked is true, this process presumably has exclusive access to the mailbox and can just go ahead and remove the file. I've committed this to 2.7 trunk as rev78332. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue7627> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7647] Add statvfs flags to the posix module
A.M. Kuchling added the comment: Here's a patch that updates the 2.7 docs. Adam, have you submitted a contributor agreement (http://www.python.org/psf/contrib/)? -- nosy: +akuchling Added file: http://bugs.python.org/file16318/posix-statvfs-flag-docs.txt ___ Python tracker <http://bugs.python.org/issue7647> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1708316] doctest work with Windows PyReadline
A.M. Kuchling added the comment: Does the attached, slightly simpler patch, also fix it? The patch just sets the .encoding attribute after creating it with _SpoofOut(). The revised patch doesn't seem to break anything on MacOS; I don't have access to Windows to test whether it still fixes the bug. -- nosy: +akuchling Added file: http://bugs.python.org/file16319/doctest-patch.txt ___ Python tracker <http://bugs.python.org/issue1708316> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1514] missing constants in socket module
A.M. Kuchling added the comment: The original problem has been fixed since 2007. Improving the #if condition doesn't seem very important to anyone, so I'll just close this bug. -- nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue1514> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1097797] Encoding for Code Page 273 used by EBCDIC Germany Austria
A.M. Kuchling added the comment: I tried figuring out to rebuild the codecs using the scripts in Tools/unicode/ but failed. Is the use of that directory documented anywhere? -- ___ Python tracker <http://bugs.python.org/issue1097797> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1517495] memory leak threading or socketserver module
A.M. Kuchling added the comment: I can no longer confirm this bug, either; trying the scripts with the current trunk doesn't seem to leak. Backing out Jeffrey's r61011 didn't bring the problem back, so I'll just conclude that the problem has gotten fixed along the way somehow. -- resolution: -> works for me status: open -> closed ___ Python tracker <http://bugs.python.org/issue1517495> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2134] function generate_tokens at tokenize.py yields wrong token for colon
A.M. Kuchling added the comment: Unfortunately I think this will break many users of tokenize.py. e.g. http://browsershots.googlecode.com/svn/trunk/devtools/pep8/pep8.py has code like: if (token_type == tokenize.OP and text in '([' and ...): If tokenize now returns LPAR, this code will no longer work correctly. Tools/i18n/pygettext.py, pylint, WebWare, pyfuscate, all have similar code. So I think we can't change the API this radically. Adding a parameter to enable more precise handling of tokens, and defaulting it to off, is probably the only way to change this. -- nosy: +akuchling ___ Python tracker <http://bugs.python.org/issue2134> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7100] test_xmlrpc: global name 'stop_serving' is not defined
A.M. Kuchling added the comment: The stop_serving() code was only added on the Py3k branch in rev59424. It was removed in rev60350, which is a merge commit; the diff is http://svn.python.org/view/python/branches/py3k/Lib/test/test_xmlrpc.py?r1=60094&r2=60350. I don't know if this is a merging error, or if the 2.x changes mean stop_serving() is no longer required. Christian Heimes was responsible for both originally adding stop_serving() and for the merge that removed it. Adding him to the nosy list. -- nosy: +akuchling, christian.heimes ___ Python tracker <http://bugs.python.org/issue7100> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2292] Missing *-unpacking generalizations
A.M. Kuchling added the comment: Updating version; does someone want to revive this for 3.2? -- nosy: +akuchling versions: +Python 3.2 -Python 3.0 ___ Python tracker <http://bugs.python.org/issue2292> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue706392] faster _socket.connect variant desired
Changes by A.M. Kuchling : -- status: open -> languishing ___ Python tracker <http://bugs.python.org/issue706392> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8292] Incorrect condition test in platform.py
New submission from A.M. Kuchling : While looking at #4440, I grepped for similar problems and found one in platform.py in the following line: if no_os_uname or not filter(None, (system, node, release, version, machine)) In 3.x, filter() returns an object, not a list, so 'not filter()' will always be false. One fix is to either convert filter's output by adding list() or tuple(). Another fix could be 'not any ((system, node, release, version, machine))', but I don't know if platform.py is trying to stay compatible with versions of Python that lack any(). -- assignee: lemburg keywords: easy messages: 102179 nosy: akuchling, lemburg severity: normal status: open title: Incorrect condition test in platform.py versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue8292> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4440] "sort" command doesn't work in pstats if run interactively
A.M. Kuchling added the comment: Thanks for your bug report and patch! The original 2.x version was pretty ugly code with a lambda that used default arguments, so I rewrote the line to be more modern; it now does ' all((x in abbrevs) for x in line.split())'. Committed my version to trunk to r79603, and to 3.x trunk in r79604. (A lot of pstats.py is pretty old-looking and could be tied up.) -- assignee: -> akuchling nosy: +akuchling resolution: -> fixed status: open -> closed Added file: http://bugs.python.org/file16737/pstats-simplify.diff ___ Python tracker <http://bugs.python.org/issue4440> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6647] warnings.catch_warnings is not thread-safe
A.M. Kuchling added the comment: Added a warning to 2.x trunk in r79607, and Gabriel's doc change in r79608. This thread-unsafety seems specialized and rarely of great importance, so I used the note:: directive, not warning::. -- nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue6647> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8404] Set operations don't work for dictionary views
New submission from A.M. Kuchling : The examples of set operations in http://docs.python.org/dev/library/stdtypes#dictionary-view-objects don't work in the current 2.7 trunk: -> ./python.exe Python 2.7b1+ (trunk:80084:80085M, Apr 14 2010, 21:17:06) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> dishes = {'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500} >>> keys = dishes.viewkeys() >>> keys & {'eggs', 'bacon', 'salad'} Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for &: 'dict_keys' and 'set' >>> keys | {'eggs'} Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for |: 'dict_keys' and 'set' Is this a documentation bug, and set operations are only supported in 3.x? Or does the code need to be fixed? (Assigned to Alexandre, since he committed the backport patch; please feel free to reassign. Marking as release blocker; if it's a documentation bug, we can lower the priority.) -- assignee: alexandre.vassalotti messages: 103166 nosy: akuchling, alexandre.vassalotti priority: release blocker severity: normal status: open title: Set operations don't work for dictionary views type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue8404> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7384] curses crash on FreeBSD
A.M. Kuchling added the comment: Could I get a login on the buildbot to make a fix? I bet the problem is with the stdscr object. PyCurses_InitScr() does 'return (PyObject *)PyCursesWindow_New(stdscr);'. PyCursesWindow_Dealloc() does: if (wo->win != stdscr) delwin(wo->win); I bet FreeBSD is clearing contents of the stdscr global variable. The condition in PyCursesWindow_Dealloc() is then true, and it tries to delwin() the old value, which is in wo->win. One fix might be to keep a reference to that PyCursesWindow object holding stdscr, and change dealloc to 'if (wo != saved_stdscr_object)'. Or maybe, since multiple calls to initscr() will create multiple window objects holding the value of stdscr, window objects should have a 'do_not_delwin' flag. -- ___ Python tracker <http://bugs.python.org/issue7384> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7384] curses crash on FreeBSD
A.M. Kuchling added the comment: Here's a possible patch; it at least doesn't seem to break the module on MacOS, though MacOS doesn't crash with the current code either. -- keywords: +patch Added file: http://bugs.python.org/file16935/freebsd-curses.diff ___ Python tracker <http://bugs.python.org/issue7384> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8404] Set operations don't work for dictionary views
A.M. Kuchling added the comment: (commenting on a closed bug, because I'm not sure it should be re-opened) While coming up with examples, I found a weird inconsistency. Was it intentional for viewkeys() and viewitems() to support set operations, but not viewvalues()? >>> d1 = dict((i*10, chr(65+i)) for i in range(26)) >>> d2 = dict((i**.5, i) for i in range(1000)) >>> d1.viewkeys() | set('abc') set([0, 130, 10, 140, 20, 150, 30, 160, 40, 170, 50, 180, 60, 190, 70, 200, 80, 210, 90, 220, 'a', 'c', 'b', 100, 230, 110, 240, 120, 250]) >>> d1.viewitems() | set('abc') set([(70, 'H'), (0, 'A'), ) >>> d1.viewvalues() | set('abc') Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for |: 'dict_values' and 'set' >>> d1.viewvalues() | d2.viewvalues() Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for |: 'dict_values' and 'dict_values' -- ___ Python tracker <http://bugs.python.org/issue8404> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8404] Set operations don't work for dictionary views
A.M. Kuchling added the comment: The fix is easy, I think; just add Py_TPFLAGS_CHECKTYPES to the PyDictValues_Type's definition. -- ___ Python tracker <http://bugs.python.org/issue8404> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com