[issue16969] test_urlwithfrag fail

2013-01-15 Thread Ezio Melotti
Ezio Melotti added the comment: That's because there's no test file called test_urlwithfrag.py. Do you see any failure if you do ./python -m test -v test_urllib2net? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org

[issue15994] memoryview to freed memory can cause segfault

2013-01-15 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15994 ___ ___ Python-bugs-list mailing list

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changeset 525407d89277: Fix test_socket broken in previous commit (changeset 13e2e44db99d). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15989 ___

[issue15948] Unchecked return value of I/O functions

2013-01-15 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15948 ___ ___ Python-bugs-list mailing list

[issue16956] Allow signed line number deltas in the code object's line number table

2013-01-15 Thread Mark Shannon
Mark Shannon added the comment: The interaction between bdb/pdb and the line number table is via the frame.f_lineno attribute. Allowing signed offsets changes the one-to-one line muber = bytecode offset relation into a one-to-many relation. Reading frame.f_lineno is not an issue as each

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2013-01-15 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16086 ___ ___ Python-bugs-list mailing list

[issue16954] Add docstrings for ElementTree module

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: serhiy.storchaka - docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16954 ___

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Adding a failing test. I will supply a patch shortly. -- keywords: +patch stage: - needs patch Added file: http://bugs.python.org/file28731/issue-16468-1.patch ___ Python tracker rep...@bugs.python.org

[issue16096] Get rid of dangerous integer overflow tricks

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are updated to current codebase patches for 2.7 and 3.2. It seems that all the rest of overflows are hypothetical bugs and do not appear on the current supported platforms. Fix them is not necessary (rather for purity). If no one can see visible bugs,

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching patch. With this patch, passing a non-iterable choices argument to parser.add_argument() raises (for example): Traceback (most recent call last): ... File .../Lib/argparse.py, line 558, in _metavar_formatter choice_strs = [str(choice) for

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Slight doc tweak: s/container/sequence/. -- Added file: http://bugs.python.org/file28735/issue-16468-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16468

[issue16216] Arithmetic operations with NULL

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot to mention the issue number in commit messages. There are changeset ad9b5c69b8b6 (for 3.3) and changeset 1f66fc397c8d (for default). -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue16970] argparse: bad nargs value raises misleading message

2013-01-15 Thread Chris Jerdonek
New submission from Chris Jerdonek: parser = argparse.ArgumentParser() parser.add_argument('foo', nargs='a') ... File .../Lib/argparse.py, line 1333, in add_argument raise ValueError(length of metavar tuple does not match nargs) ValueError: length of metavar tuple does not match nargs

[issue16422] Decimal constants should be the same for py c module versions

2013-01-15 Thread Stefan Krah
Stefan Krah added the comment: In the absence of an enum type, string constants are nicer to read in the REPL, so here's a patch. Translating between strings and ints is fast if you use the module constants. -- keywords: +patch Added file:

[issue12939] Add new io.FileIO using the native Windows API

2013-01-15 Thread Richard Oudkerk
Richard Oudkerk added the comment: New patch reflecting Amaury's comments. -- Added file: http://bugs.python.org/file28737/winfileio.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12939

[issue12939] Add new io.FileIO using the native Windows API

2013-01-15 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: Removed file: http://bugs.python.org/file28707/winfileio.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12939 ___

[issue15994] memoryview to freed memory can cause segfault

2013-01-15 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15994 ___ ___

[issue10527] multiprocessing.Pipe problem: handle out of range in select()

2013-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset f07435fa6736 by Richard Oudkerk in branch '2.7': Issue #10527: Remove dead code http://hg.python.org/cpython/rev/f07435fa6736 -- ___ Python tracker rep...@bugs.python.org

[issue10527] multiprocessing.Pipe problem: handle out of range in select()

2013-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 49d45151b9ed by Richard Oudkerk in branch '3.2': Issue #10527: Remove dead code http://hg.python.org/cpython/rev/49d45151b9ed -- ___ Python tracker rep...@bugs.python.org

[issue14850] The inconsistency of codecs.charmap_decode

2013-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 33a8ef498b1e by Serhiy Storchaka in branch '2.7': Issue #14850: Now a chamap decoder treates U+FFFE as undefined mapping http://hg.python.org/cpython/rev/33a8ef498b1e New changeset 13cd78a2a17b by Serhiy Storchaka in branch '3.2': Issue #14850: Now

[issue16971] Refleaks in charmap decoder

2013-01-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Charmap decoder can leak a reference in case of error. -- components: Unicode files: charmap_decode_leaks-3.3.patch keywords: 3.3regression, patch messages: 180018 nosy: ezio.melotti, serhiy.storchaka priority: normal severity: normal stage: patch

[issue16971] Refleaks in charmap decoder

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file28739/charmap_decode_leaks-3.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16971 ___

[issue14850] The inconsistency of codecs.charmap_decode

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed. Thank you for your answers, Martin. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14850 ___ ___

[issue14850] The inconsistency of codecs.charmap_decode

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14850

[issue16971] Refleaks in charmap decoder

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16971 ___ ___ Python-bugs-list

[issue16971] Refleaks in charmap decoder

2013-01-15 Thread Ezio Melotti
Ezio Melotti added the comment: How difficult would it be to write a test for this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16971 ___ ___

[issue16468] argparse only supports iterable choices

2013-01-15 Thread R. David Murray
R. David Murray added the comment: Since the line between a type error and a value error is fuzzy anyway, I'd be in favor of maintaining the backward compatibility here. We don't consider exception message content part of the API (though we do occasionally work to preserve it when we know

[issue16972] Useless function call in site.py

2013-01-15 Thread Kirill
New submission from Kirill: In Lib/site.py:149 [1] _init_pathinfo call has no effect. Looks like it's here because in the past _init_pathinfo was changing a global variable [2]. I believe that it should be changed to `known_paths = _init_pathinfo()`, in the same way as it's done in

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Sounds fine. Does that mean a test should still be added for the message? I was never clear on this because on the one hand we want to be sure we use the right message (and that we're actually fixing the issue), but on the other hand we don't want the

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: I guess another option would be to mark the test CPython-only. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16468 ___

[issue13773] Support sqlite3 uri filenames

2013-01-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13773 ___ ___ Python-bugs-list mailing

[issue13773] Support sqlite3 uri filenames

2013-01-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: This would definitely be useful. I would have liked to have this feature today. poq, could you sign a contributor agreement? See http://www.python.org/psf/contrib/ Also, it's better if you can use a real name (or at least a well-known pseudonym). --

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2013-01-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: This would be nice to have in 3.4. When were the _v2 APIs introduced? See also issue13773 which uses sqlite3_open_v2() to pass some flags. -- nosy: +larry, pitrou versions: +Python 3.4 -Python 3.3 ___ Python tracker

[issue15861] ttk.Treeview unmatched open brace in list

2013-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 411bb75be5d1 by Serhiy Storchaka in branch '3.2': Issue #15861: tkinter now correctly works with lists and tuples containing http://hg.python.org/cpython/rev/411bb75be5d1 New changeset 927352d7e994 by Serhiy Storchaka in branch '3.3': Issue #15861:

[issue15861] ttk.Treeview unmatched open brace in list

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed. Thank you for report, Bryan Oakley. -- resolution: - fixed stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15861

[issue15861] ttk.Treeview unmatched open brace in list

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15861 ___ ___

[issue16973] Extending the datetime package by adding a workDayMath module

2013-01-15 Thread Grant
New submission from Grant: This module would allow programmers to perform high level workday addition and subtraction - a commonly needed function in the finance and accounting world not yet provided in a standard python module. -- components: Extension Modules files: workDayMath.py

[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue15861. Thank you for report, Clayton Darwin. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11290

[issue16973] Extending the datetime package by adding a workDayMath module

2013-01-15 Thread Ezio Melotti
Ezio Melotti added the comment: I think it would be better to propose this on the Python-ideas mailing list first. Adding a new module usually requires a PEP, and the module should be tested in the wild beforehand (i.e. it should be published on PyPI and should have a decent user base). The

[issue16468] argparse only supports iterable choices

2013-01-15 Thread R. David Murray
R. David Murray added the comment: CPython only would not be appropriate, as it is not. What I usually do in such cases is use AssertRaisesRegex looking for some critical part of the message that represents the functionality we are looking for rather than the exact text. In this case, it

[issue9501] Logging shutdown regressions with weakrefs

2013-01-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: Still randomly getting ignored exceptions on 3.3 and the default branch, got for example: Exception TypeError: TypeError(argument of type 'NoneType' is not iterable,) in function _removeHandlerRef at 0x7fcbe6014200 ignored This happens in a threaded

[issue9501] Logging shutdown regressions with weakrefs

2013-01-15 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file28743/teardown_module.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9501 ___

[issue6933] Threading issue with Tkinter Frame.insert

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tkinter as perhaps any other GUI library must be used only from one thread. -- nosy: +serhiy.storchaka, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6933

[issue6160] Tkinter.Spinbox: fix for bbox and removed some uninteresting returns

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It should be self._getints(...) or None as in other methods. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6160 ___

[issue4333] Reworked Dialog.py

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you please update the patch for the default branch tip? It looks too outdated. -- nosy: +serhiy.storchaka versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue15019] String termination on Linux

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15019 ___ ___

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In versions of Tk before 4.0, the set command accepted 4 arguments. I think this is a new feature and can be applied only to 3.4. Agree with Jim that for backward compatibility we should keep name index and arbitrary number of arguments at least for one

[issue6225] Fixing several minor bugs in Tkinter.Canvas and one in Misc._configure

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For backward compatibility we must keep accepting arbitrary amount of arguments at least a one release (with warnings). -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

[issue9501] Logging shutdown regressions with weakrefs

2013-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 966887830011 by Vinay Sajip in branch '2.7': Issue #9501: Improved shutdown handling to deal with module attributes correctly. http://hg.python.org/cpython/rev/966887830011 New changeset 8eac88f49cc0 by Vinay Sajip in branch '3.2': Issue #9501:

[issue16971] Refleaks in charmap decoder

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Enough difficult. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16971 ___ ___ Python-bugs-list mailing list

[issue16968] Fix test discovery for test_concurrent_futures.py

2013-01-15 Thread Zachary Ware
Zachary Ware added the comment: Hmmm, actually, I was wrong; Brett's suggestion doesn't cover running as part of regrtest. It looks like Chris is right and some kind of load_tests magic will have to happen. I'm looking into it now. -- ___ Python

[issue15436] __sizeof__ is not documented

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___ ___ Python-bugs-list

[issue16643] Wrong documented default value for timefunc parameter in sched.scheduler()

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16643 ___ ___ Python-bugs-list

[issue16700] Document that bytes OS API can returns unusable results on Windows

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16700 ___ ___ Python-bugs-list

[issue15984] Wrong documentation for PyUnicode_FromObject()

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15984 ___ ___ Python-bugs-list

[issue7340] Doc for sys.exc_info has warning that is no longer valid

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7340 ___

[issue7468] PyErr_Format documentation doesn't mention all format codes

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in r86838. -- nosy: +serhiy.storchaka resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7468

[issue9669] regexp: zero-width matches in MIN_UNTIL

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9669 ___

[issue9669] regexp: zero-width matches in MIN_UNTIL

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Regular Expressions ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9669 ___ ___

[issue12939] Add new io.FileIO using the native Windows API

2013-01-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: The current patch does not support overlapped IO, but that could be added easily enough. (Overlapped IO for normal files might be more complicated.) That could be cool. Wouldn't it belong in the fabled winapi module? --

[issue9889] PyUnicode_FormatV and Py_UNICODE*?

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The Py_UNICODE* representation is deprecated since 3.3. New features can be added only to 3.4. -- nosy: +serhiy.storchaka resolution: - rejected status: open - pending ___ Python tracker rep...@bugs.python.org

[issue10590] Parameter type error for xml.sax.parseString(string, ...)

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed, xml.dom.minidom.parseString() and xml.etree.ElementTree.fromstring() accepts both bytes and strings, xml.dom.minidom.parse(), xml.etree.ElementTree.parse() and even xml.sax.parse() accepts both byte and text streams. Only xml.sax.parseString()

[issue10701] Error pickling a dict

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It's interesting. The example behaves unstable on 3.3+ with C implementation of picle, sometimes works, sometimes fails. With Python implementation and on 3.2 it works always. On 2.7 it fails always. A difference between C and Python implementations of

[issue11367] xml.etree.ElementTree.find(all): docs are wrong

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Already fixed in 3.3+. -- keywords: +easy nosy: +eli.bendersky, serhiy.storchaka stage: - needs patch type: - enhancement versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue10701] Error pickling a dict

2013-01-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I find the posted code mystifying. As the name suggests, __getstate__ should probably not mutate anything. It would be nice if you could post a simpler example to reproduce issue. Even better if it doesn't have a mutating __getstate__, I would say. --

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The exception question is messy, but I think it is the wrong question. The doc is correct in that it says what the code should be doing. To test whether an argument is in a collection of choices, the code should just say that: 'arg in choices' (as far as I

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2013-01-15 Thread David Beazley
David Beazley added the comment: I have run into this bug myself. Agree that a file-like object should never report itself as closed unless .close() has been explicitly called on it. HTTPResponse should not return itself as closed after the end-of-file has been reached. I think there is

[issue9669] regexp: zero-width matches in MIN_UNTIL

2013-01-15 Thread Matthew Barnett
Matthew Barnett added the comment: I've attached my attempt at a patch. -- keywords: +patch Added file: http://bugs.python.org/file28744/issue9669.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9669

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: I don't disagree that this feature could be useful. I'm just not sure it should go into a maintenance release. It feels like an enhancement to me because to use this feature, the user will have to use the API in a way they haven't before, and we will

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Note that we would also have to deal with not just the error text but also the usage string. From the docs: parser.parse_args('11'.split()) usage: PROG [-h] {5,6,7,8,9} PROG: error: argument foo: invalid choice: 11 (choose from 5, 6, 7, 8, 9) --

[issue12983] byte string literals with invalid hex escape codes raise ValueError instead of SyntaxError

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which include position number in the invalid bytes exception, wrap it into SyntaxError, and adds tests for bytes and strings. -- keywords: +patch nosy: +serhiy.storchaka stage: test needed - patch review versions: +Python 3.4 Added

[issue16974] when python -c command does a traceback, it open the file string

2013-01-15 Thread Eric Lammerts
New submission from Eric Lammerts: $ echo lovely spam string $ python -c 'open(nonexistent,r)' Traceback (most recent call last): File string, line 1, in module lovely spam IOError: [Errno 2] No such file or directory: 'nonexistent' I see this in python 2.7.3 and 3.2.3 from Ubuntu

[issue16975] Broken error handling in codecs.escape_decode()

2013-01-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: import codecs codecs.escape_decode(r'\x1\x2\x3\x4\x5\x6\x7\x8\x9', 'replace') (b'?\\x1?\\x2?\\x3?\\x4?\\x5?\\x6?\\x', 27) codecs.escape_decode(r'\x1\x2\x3\x4\x5\x6\x7\x8\x9' * 1000, 'replace') Segmentation fault -- components: Interpreter Core

[issue9669] regexp: zero-width matches in MIN_UNTIL

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9669 ___ ___

[issue7340] Doc for sys.exc_info has warning that is no longer valid

2013-01-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3fa3e7975724 by Benjamin Peterson in branch '3.3': remove warning about tb circular reference (closes #7340) http://hg.python.org/cpython/rev/3fa3e7975724 New changeset d866bbdd68e8 by Benjamin Peterson in branch 'default': merge 3.3 (#7340)

[issue16976] Asyncore/asynchat hangs when used with ssl sockets

2013-01-15 Thread Anthony Lozano
New submission from Anthony Lozano: If you create a asynchat subclass with a SSL socket asyncore can hang when data larger than the ac_in_buffer_size comes in. What (I think) happens is that asyncore uses a select.select call to determine when to read more data from the socket. On the first

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-15 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: I have addressed all of the comments, but I don't know the exact procedure here. Does someone need to say Looks good to me before I push? -- ___ Python tracker rep...@bugs.python.org

[issue16976] Asyncore/asynchat hangs when used with ssl sockets

2013-01-15 Thread Anthony Lozano
Changes by Anthony Lozano amloza...@gmail.com: -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16976 ___ ___

[issue16976] Asyncore/asynchat hangs when used with ssl sockets

2013-01-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16976 ___ ___ Python-bugs-list

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you addressed last Ezio's comments, it will be good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16886 ___

[issue16976] Asyncore/asynchat hangs when used with ssl sockets

2013-01-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: asyncore simply does not support SSL. That is tracked in issue 10084. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16976 ___

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-15 Thread R. David Murray
R. David Murray added the comment: The ideal is if someone says looks good to me. The practical path is that if you have addressed all the comments, and no one objects after a couple-three days, you should feel free to commit (unless you feel like you want another review, in which case you

[issue16974] when python -c command does a traceback, it open the file string

2013-01-15 Thread R. David Murray
R. David Murray added the comment: Heh. Nice find. I'm not sure how practical it is to fix, though. We don't have any actual rules about what indicates a 'non-file-stand-in' for the __file__ attribute, just a loose convention that it is an identifier in angle brackets. If we make that a

[issue9501] Logging shutdown regressions with weakrefs

2013-01-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: The reason why this happens in python 3.3.0 and not in 3.2: 1) lastResort holds a reference to an instance of _StderrHandler at module tear down, thus potentially triggering a TypeError in _removeHandlerRef. 2) The logging code has the following two

[issue9501] Logging shutdown regressions with weakrefs

2013-01-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: The initial teardown_module.py can be simply replaced with (not a contrived example anymore) the following statements to print the spurious ignored Exceptions: # Run the script in a loop: # while [ 1 ]; do python3 teardown_module.py; sleep .1; done import

[issue16969] test_urlwithfrag fail

2013-01-15 Thread Ry Erickson
Ry Erickson added the comment: ./python -m test -v test_urllib2net == CPython 3.3.0 (default, Jan 14 2013, 20:45:36) [GCC 4.6.1] == Linux-3.0.0-29-generic-i686-with-debian-wheezy-sid little-endian == /home/ry/Desktop/Python-3.3.0/build/test_python_2080 Testing with flags: sys.flags(debug=0,

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I took a good look at the 3.3 code. With respect to the main purpose of choices -- checking user input -- argparse does not require that choices be iterable, as it *does* use 'in', as it should. Line 2274: if action.choices is not None and value not

[issue16977] argparse: mismatch between choices parsing and usage/error message

2013-01-15 Thread Chris Jerdonek
New submission from Chris Jerdonek: When passing a string for the choices argument, argparse's usage and error messages differ from its behavior: p = argparse.ArgumentParser() p.add_argument('a', choices='abc') p.parse_args(['d']) usage: [-h] {a,b,c} : error: argument a: invalid choice: 'd'

[issue16977] argparse: mismatch between choices parsing and usage/error message

2013-01-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: I forgot to mention that argparse uses such cases as examples in its documentation (one of which was replaced in bddbaaf332d7). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16977

[issue15359] Sockets support for CAN_BCM

2013-01-15 Thread Brian Thorne
Brian Thorne added the comment: I've added a single BCM test. Any feedback on it would be good and then I'll add more complex ones. Should the documentation be updated in this patch as well? -- Added file: http://bugs.python.org/file28747/bcm2.patch

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: argparse does not require that choices be iterable, as it *does* use 'in', as it should. Line 2274: if action.choices is not None and value not in action.choices: There are cases where it's incorrect for argparse to being using in instead of

[issue16974] when python -c command does a traceback, it open the file string

2013-01-15 Thread Ramchandra Apte
Ramchandra Apte added the comment: Well, it should't open string IMHO. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16974 ___

[issue16974] when python -c command does a traceback, it open the file string

2013-01-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16974 ___ ___ Python-bugs-list

[issue16972] Useless function call in site.py

2013-01-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16972 ___ ___

[issue5773] Crash on shutdown after os.fdopen(2) in debug builds

2013-01-15 Thread Ramchandra Apte
Ramchandra Apte added the comment: Is this still valid because this seems fixed in latest Python 3.4 tip. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5773 ___

[issue16974] when python -c command does a traceback, it open the file string

2013-01-15 Thread Eric Lammerts
Eric Lammerts added the comment: Does it have to be an identifier in angle brackets? An empty string makes more sense to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16974 ___

[issue16978] fix grammar in 'threading' documentation

2013-01-15 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- assignee: docs@python components: Documentation files: grammar.diff keywords: patch nosy: docs@python, tshepang priority: normal severity: normal status: open title: fix grammar in 'threading' documentation versions: Python 2.7

[issue16468] argparse only supports iterable choices

2013-01-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: _Actions_container(object) [1198 in 3.3.0 code] .add_argument() [1281] does not directly check for choices.__iter__ ('__iter__' is not in the file). Nor does it use the 3.x-only alternative isinstance(choices, collections) ('Iterable' is also not in the

[issue16969] test_urlwithfrag fail

2013-01-15 Thread Ezio Melotti
Ezio Melotti added the comment: Sorry, the right command is: ./python -m test -v -uall test_urllib2net -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16969 ___

[issue16697] argparse kwarg 'choices' documentation

2013-01-15 Thread wim glenn
Changes by wim glenn wim.gl...@gmail.com: -- nosy: -wim.glenn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16697 ___ ___ Python-bugs-list

  1   2   >