[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-07-01 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18335 ___ ___ Python-bugs-list

[issue16468] argparse only supports iterable choices

2013-07-01 Thread paul j3
paul j3 added the comment: chris.jerdonek wrote: Also, to answer a previous question, the three places in which the choices string is used are: in the usage string (separator=','), in the help string when expanding %(choices)s (separator=', '), and in the error message text (separator=', '

[issue18336] codecs: Link to readline module (history) instead of fd.readline()

2013-07-01 Thread Thomas Guettler
New submission from Thomas Guettler: The documentation of codecs.readline() has a link to the readline module. That the same word with a total different meaning! http://docs.python.org/2/library/codecs.html?highlight=readline#codecs.StreamReader.readline The GNU readline module is about the

[issue18337] codecs: StremReader readline() breaks on undocumented characters

2013-07-01 Thread Thomas Guettler
New submission from Thomas Guettler: The stream reader of codecs.open() breaks on undocumented characters: http://docs.python.org/2/library/codecs.html?highlight=codecs%20readline#codecs.StreamReader.readline import tempfile temp=tempfile.mktemp() fd=open(temp, 'wb')

[issue18334] type(name, bases, dict) does not call metaclass' __prepare__ attribute

2013-07-01 Thread Nick Coghlan
Nick Coghlan added the comment: Unfortunately, it's not that simple, as calling type(name, bases, namespace) is *exactly* what a subclass will do as part of creating the type object. From inside the type implementation, we can't tell the difference between properly called from the child type

[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-07-01 Thread Nick Coghlan
Nick Coghlan added the comment: It turns out there's one slight wrinkle in this grand plan: it won't work for docstrings without some additional tweaking to allow for method calls in the docstring detection. def f(): ... example.lower() ... print(f.__doc__) None import dis dis.dis(f)

[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-07-01 Thread Nick Coghlan
Nick Coghlan added the comment: I still think the methods are worth adding regardless - I just anticipate a request to allow method calls on docstrings to follow not long after ;) -- ___ Python tracker rep...@bugs.python.org

[issue18336] codecs: Link to readline module (history) instead of fd.readline()

2013-07-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: docs@python - serhiy.storchaka keywords: +easy nosy: +serhiy.storchaka stage: - needs patch versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: str already have too many methods. Who uses str.swapcase() or str.zfill() now? I'm -0.5 for adding any new str methods. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

[issue18337] codecs: StremReader readline() breaks on undocumented characters

2013-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report. This is a duplicate of issue18291. -- nosy: +serhiy.storchaka resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - codecs.open interprets space as line ends versions: +Python 3.3, Python

[issue18291] codecs.open interprets space as line ends

2013-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In contrary to documentation str.splitlines() splits lines not only on '\n', '\r\n' and '\r'. 'a'.join(chr(i) for i in range(32)).splitlines(True) ['\x00a\x01a\x02a\x03a\x04a\x05a\x06a\x07a\x08a\ta\n', 'a\x0b', 'a\x0c', 'a\r',

[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering

2013-07-01 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: Added file: http://bugs.python.org/file30738/issue18244.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18244 ___

[issue18338] option --version should send output to STDOUT

2013-07-01 Thread Jari Aalto
New submission from Jari Aalto: C.f. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603851 When user is calling program with options, it is not an error condition to run: python --version The output is now sent to stderr. Please change to send to stdout as in other *nix utilities,

[issue18240] hmac unnecessarily restricts input to bytes

2013-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 636947fe131e by Christian Heimes in branch 'default': Issue 18240: The HMAC module is no longer restricted to bytes and accepts http://hg.python.org/cpython/rev/636947fe131e -- nosy: +python-dev ___

[issue18240] hmac unnecessarily restricts input to bytes

2013-07-01 Thread Christian Heimes
Christian Heimes added the comment: Your CLA came through and I have applied your patch. Thank you very much for your contribution! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue18338] option --version should send output to STDOUT

2013-07-01 Thread Christian Heimes
Christian Heimes added the comment: Your proposal is reasonable. I'm flagging it for Python 3.4+ as it's a backward incompatible modification. -- nosy: +christian.heimes stage: - needs patch type: - behavior versions: +Python 3.4 -Python 2.7 ___

[issue18236] str.isspace should use the Unicode White_Space property

2013-07-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18236 ___ ___

[issue18291] codecs.open interprets space as line ends

2013-07-01 Thread R. David Murray
R. David Murray added the comment: There are two issues that I could find related to these characters, one of them still open: #18236 and #7643. The latter contains a fairly complete discussion of the underlying issue, but on a quick read through it is not clear to me if the linebreak issue

[issue18339] Segfault in Unpickler_set_memo()

2013-07-01 Thread Christian Heimes
New submission from Christian Heimes: Unpickler_set_memo() crashes when the unpickler's memo attribute is set to a dict with negative numbers. The descriptor uses _Unpickler_MemoPut() which uses the dict key as index to a C array. Python 3.3.0 (v3.3.0:bd8afb90ebf2, Feb 8 2013, 00:38:29)

[issue18312] make distclean deletes files under .hg directory

2013-07-01 Thread STINNER Victor
STINNER Victor added the comment: Is there at least one developer against my change make_distclean.patch? If not, I suggest to apply this patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18312

[issue18312] make distclean deletes files under .hg directory

2013-07-01 Thread R. David Murray
R. David Murray added the comment: Yes, I am against it. See python-dev for reason (it would no longer be a 'distclean'). -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18312

[issue18339] Segfault in Unpickler_set_memo()

2013-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17b7af660f82 by Christian Heimes in branch '3.3': Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a http://hg.python.org/cpython/rev/17b7af660f82 New changeset f3372692ca20 by Christian Heimes in branch 'default': Issue

[issue18339] Segfault in Unpickler_set_memo()

2013-07-01 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- resolution: - fixed stage: needs patch - commit review status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18339 ___

[issue18244] Adopt C3-based linearization for improved ABC support in functools.singledispatch

2013-07-01 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- title: singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering - Adopt C3-based linearization for improved ABC support in functools.singledispatch

[issue18244] Adopt C3-based linearization for improved ABC support in functools.singledispatch

2013-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2672dc7c805 by Łukasz Langa in branch 'default': Issue #18244: Adopt C3-based linearization in functools.singledispatch for improved ABC support http://hg.python.org/cpython/rev/a2672dc7c805 -- nosy: +python-dev

[issue14455] plistlib unable to read json and binary plist files

2013-07-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've attached a slightly updated version of the patch. The documentation now lists dump and load as the primary API, with the old API as a deprecated alternative. The code hasn't been changed to relect this yet, but does contain a number of tweaks and

[issue18339] Segfault in Unpickler_set_memo()

2013-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry that I was late with review. Here is some nitpicks from me. Using assertRaises() as context manager in this case looks cleaner to me: with self.assertRaises(ValueError): unpickler.memo = {-1: None} Moving the `if (idx == -1

[issue5308] cannot marshal objects with more than 2**31 elements

2013-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch. There is another resource leak for general bytes-like object (the buffer can be not released). Here is a patch. -- Added file: http://bugs.python.org/file30741/marshal_string_leak.patch ___ Python

[issue18244] Adopt C3-based linearization for improved ABC support in functools.singledispatch

2013-07-01 Thread Łukasz Langa
Łukasz Langa added the comment: I committed the patch with minor docstring and comment fixes; one test was tweaked to be hash randomization-proof. Edward, thanks for taking the time to file the bug. Guido, thanks for a thorough and illuminating review process. -- resolution: - fixed

[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-07-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18335 ___ ___ Python-bugs-list mailing

[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-07-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: .dedent() is a no-brainer. JFDI. +1 .indent() I guess makes sense for symmetry, although I've rarely used it. -0 As for docstrings, I can imagine other alternatives, so let's let someone interested in that go through the PEP process. --

[issue18341] enhancements zlib.compress/decompress to accept Py_buffer

2013-07-01 Thread Jim Carroll
New submission from Jim Carroll: We were looking to squeak maximum performance out of zlib.compress. We noticed in py3k, zlib.compress already accepts Py_buffer’s, but in 2.x, compress required strings. We’ve modified the compress (and decompress for orthogonal completeness), see the

[issue18340] float related test has problem with Denormal Flush to Zero compiler options

2013-07-01 Thread V.E.O
New submission from V.E.O: With Intel Compiler's default options or GCC with -mfpmath=sse, the built Python failed at float related test. For failures in test_strtod: Traceback (most recent call last): File .\test_strtod.py, line 190, in test_boundaries self.check_strtod(s) File

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-01 Thread Todd Rovito
Todd Rovito added the comment: Here is a uncompleted patch but works for the most part. I thought I would post just in case somebody wanted to provide me comments on the general direction of the patch. The naming might have to change but this follows Terry Reedy's model of monkey patching.

[issue18292] IDLE Improvements: Unit test for AutoExpand.py

2013-07-01 Thread Todd Rovito
Changes by Todd Rovito rovit...@gmail.com: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18292 ___ ___ Python-bugs-list

[issue18302] test_multiprocessing: test.support.import_module() does not ignore the ImportError on SemLock

2013-07-01 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18302 ___

[issue18340] float related test has problem with Denormal Flush to Zero compiler options

2013-07-01 Thread Mark Dickinson
Mark Dickinson added the comment: What operating system and hardware is this on? Is there a good reason for wanting to compile with optimisations that break IEEE 754 behaviour? If Python's configure script isn't using the right options, then that's a build problem rather than a problem with

[issue16272] C-API documentation clarification for tp_dictoffset

2013-07-01 Thread Martin Kysel
Changes by Martin Kysel mar...@martinkysel.com: -- nosy: +mkysel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16272 ___ ___ Python-bugs-list

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-01 Thread Brett Cannon
New submission from Brett Cannon: from re import bogus Traceback (most recent call last): File stdin, line 1, in module ModuleNotFoundError: cannot import name bogus Should have 'bogus' using the repr to match the other cases of ModuleNotFoundError -- assignee: brett.cannon

[issue16665] doc for builtin hex() is poor

2013-07-01 Thread Martin Kysel
Changes by Martin Kysel mar...@martinkysel.com: -- nosy: +mkysel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16665 ___ ___ Python-bugs-list

[issue17845] Clarify successful build message

2013-07-01 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17845 ___ ___

[issue15767] add ModuleNotFoundError

2013-07-01 Thread Brett Cannon
Brett Cannon added the comment: Obviously no worries for opening this up again; if something isn't clear better to get it sorted out now rather than after 3.4 is out that door. So I see two questions: why isn't ImportError being raised in the ``import re.bogus`` case and why the subtle

[issue17630] Create a pure Python zipfile importer

2013-07-01 Thread Brett Cannon
Brett Cannon added the comment: Paul's review did find one non-optimal thing the code is doing. I'll fix it the next time there's a need to upload a new patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17630

[issue7136] Idle File Menu Option Improvement

2013-07-01 Thread Todd Rovito
Todd Rovito added the comment: Terry I am sorry the push didn't go smooth. I thought I had checked the patch with 2.7 and 3.4 and it applied for me but maybe I missed something? For sure I didn't check 3.3 but from here on out I will. Awhile ago I worked on a issue to synchronize the

[issue15767] add ModuleNotFoundError

2013-07-01 Thread Guido van Rossum
Guido van Rossum added the comment: Ok, the history of all that makes sense, except now I wonder if ModuleNotFoundError is useful at all. I just reviewed a patch for 3.4 and in the latest revision all ImportError checks were replaced with ModuleNotFoundError checks. What purpose does that

[issue18340] float related test has problem with Denormal Flush to Zero compiler options

2013-07-01 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18340 ___ ___ Python-bugs-list

[issue15767] add ModuleNotFoundError

2013-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le lundi 01 juillet 2013 à 16:54 +, Brett Cannon a écrit : As for the ``import re.bogus`` case not raising ModuleNotFoundError, I'm fine with changing it. +1. -- ___ Python tracker rep...@bugs.python.org

[issue18327] swapped arguments in compatible_for_assignment()?

2013-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Fortunately, compatible_for_assignment() handles both arguments exactly the same way, except maybe in error messages. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue17097] multiprocessing BaseManager serve_client() does not check EINTR on recv

2013-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc34fe4a0d58 by Richard Oudkerk in branch '2.7': Issue #17097: Make multiprocessing ignore EINTR. http://hg.python.org/cpython/rev/bc34fe4a0d58 New changeset 3ec5267f51ff by Richard Oudkerk in branch '3.3': Issue #17097: Make multiprocessing ignore

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___

[issue18340] float related test has problem with Denormal Flush to Zero compiler options

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

[issue17097] multiprocessing BaseManager serve_client() does not check EINTR on recv

2013-07-01 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17097 ___

[issue18112] PEP 442 implementation

2013-07-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file30744/39731f1d2d38.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18112 ___

[issue18112] PEP 442 implementation

2013-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18112 ___ ___ Python-bugs-list mailing list

[issue18112] PEP 442 implementation

2013-07-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file30604/1d47c88412ac.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18112 ___

[issue9938] Documentation for argparse interactive use

2013-07-01 Thread paul j3
paul j3 added the comment: The exit and error methods are mentioned in the 3.4 documentation, but there are no examples of modifying them. 16.4.5.9. Exiting methods ArgumentParser.exit(status=0, message=None) ArgumentParser.error(message) test_argparse.py has a subclass that

[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-07-01 Thread Éric Araujo
Éric Araujo added the comment: IMO it’s fine that docstrings continue to live as pure string literals, and documentation tools continue to follow PEP 257’s advice. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue18339] Segfault in Unpickler_set_memo()

2013-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa0a03afe359 by Christian Heimes in branch '3.3': Issue #18339: use with self.assertRaises() to make test case more readable http://hg.python.org/cpython/rev/fa0a03afe359 New changeset de44cd866bb0 by Christian Heimes in branch 'default': Issue

[issue18339] Segfault in Unpickler_set_memo()

2013-07-01 Thread Christian Heimes
Christian Heimes added the comment: I don't think that a reordered idx 0 check is going to make any measurable difference. I like the separate checks as they make the code easier to understand. The first check tests for error in PyLong_AsSsize_t() and the second one checks for positive

[issue18328] Use after free in pystate.c

2013-07-01 Thread Christian Heimes
Christian Heimes added the comment: I was talking about memory address reuse, too. After all the code doesn't access data at the pointer's address but rather uses the address as an identifier. I agree that the code should not behave erroneous under current circumstances. The GIL ensures

[issue18328] Use after free in pystate.c

2013-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff30bf84b378 by Christian Heimes in branch '3.3': Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the http://hg.python.org/cpython/rev/ff30bf84b378 New changeset ebe064e542ef by Christian Heimes in branch 'default': Issue

[issue18328] Use after free in pystate.c

2013-07-01 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18328 ___

[issue18340] float related test has problem with Denormal Flush to Zero compiler options

2013-07-01 Thread Christian Heimes
Christian Heimes added the comment: I'm not able to reproduce the error on my system $ CFLAGS=-mfpmath=sse ./configure --config-cache --with-pydebug $ make $ ./python -m test test_strtod [1/1] test_strtod 1 test OK. Linux 3.5.0-28 X86_64 gcc-Version 4.7.2 Intel(R) Core(TM) i7-2860QM CPU @

[issue18343] faulthandler_register_py() may use _Py_sighandler_t previous with initialization

2013-07-01 Thread Christian Heimes
New submission from Christian Heimes: faulthandler_register_py() may use the variable previous uninitialized if user-enabled is set. Excerpt from Coverity log: var_decl: Declaring variable previous without initializer. 711_Py_sighandler_t previous; 8. Condition !user-enabled, taking

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The test passes as written, so I am not sure what 'mostly works' means. I said elsewhere, and revised README to match, that I changed my mind about test case names starting with 'Test'. Ending with 'Test' is much more common in /test and I decided from

[issue18343] faulthandler_register_py() may use _Py_sighandler_t previous with initialization

2013-07-01 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18343 ___

[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-07-01 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18335 ___ ___ Python-bugs-list

[issue18340] float related test has problem with Denormal Flush to Zero compiler options

2013-07-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18340 ___ ___ Python-bugs-list

[issue18343] faulthandler_register_py() may use _Py_sighandler_t previous with initialization

2013-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 229dde749ed6 by Victor Stinner in branch '3.3': Issue #18343: faulthandler.register() now keeps the previous signal handler http://hg.python.org/cpython/rev/229dde749ed6 New changeset 74b7ff20e0e4 by Victor Stinner in branch 'default': (Merge 3.3)

[issue18340] float related test has problem with Denormal Flush to Zero compiler options

2013-07-01 Thread Stefan Krah
Stefan Krah added the comment: With gcc I cannot reproduce this either. For icc perhaps we should just set -fp-model strict in ./configure. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18340

[issue18333] Memory leak in _pickle.c:Unpickler_set_memo()

2013-07-01 Thread Christian Heimes
Christian Heimes added the comment: After a good night sleep I realized it's a false positive. All gotos are inside the while block. The while block is only entered when PyDict_Size(obj) 0. -- resolution: - invalid status: open - closed ___ Python

[issue18344] _bufferedreader_read_all() may leak reference to data

2013-07-01 Thread Christian Heimes
New submission from Christian Heimes: Modules/_io/bufferedio.c:_bufferedreader_read_all() doesn't call Py_XDECREF(data) multiple times and may leak a reference in an error case. For example the ref leak occurs when current_size 0 and PyObject_CallMethodObjArgs(self-raw, _PyIO_str_readall,

[issue18344] _bufferedreader_read_all() may leak reference to data

2013-07-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +pitrou, sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18344 ___ ___

[issue15767] add ModuleNotFoundError

2013-07-01 Thread Brett Cannon
Brett Cannon added the comment: The impetus of ModuleNotFoundError is the need for something similar in importlib thanks to ``from ... import``. When you do something like __import__('os', fromlist=['path']), any ImportError must be silenced **if** it relates only to the fact that the module

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch models Text.data as a single string. But a tkinter Text contains a sequence of strings. While the single sequence works for the one test of the ...event method, a list of strings is needed for .get and many other methods with position parameters to

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2013-07-01 Thread STINNER Victor
STINNER Victor added the comment: Updated patch (version 3), addressing last issues of Mark's review: - add a simple unit test in _testcapi: check that PyLong_AsIntMax_t(INTMAX_INT - 1), PyLong_AsIntMax_t(INTMAX_MAX + 1) and PyLong_AsUintMax_t(UINTMAX_MAX + 1) fail with OverflowError - rely

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ ___ Python-bugs-list

[issue18338] python --version should send output to STDOUT

2013-07-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: option --version should send output to STDOUT - python --version should send output to STDOUT ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18338

[issue18338] python --version should send output to STDOUT

2013-07-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18338 ___ ___

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-01 Thread Phil Webster
Phil Webster added the comment: I'm not sure if this is worth pursuing, but I made a mock Text Widget that behaves more like an actual Text Widget. I've attached my modified mock_tk.py which I used to create a mock editor window. This works for the test I made in #18279, but I am also working

[issue18042] Provide enum.unique class decorator

2013-07-01 Thread STINNER Victor
STINNER Victor added the comment: The documentation still contains an Interesting example: UniqueEnum. I would prefer to only have one obvious way to get unique enum, so please just drop this example. Or at least, mention the new decorator in the example. -- nosy: +haypo

[issue11016] Re-implementation of the stat module in C

2013-07-01 Thread STINNER Victor
STINNER Victor added the comment: Can we re-close this issue? Or is there still something to do? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11016 ___

[issue17206] Py_XDECREF() expands its argument multiple times

2013-07-01 Thread STINNER Victor
STINNER Victor added the comment: So it seems that the best option would be to increase the stack size used when linking (/STACK:). I would suggest increasing it to 3MB using /STACK:3145728. Does Python allocate the whole stack (physical pages) at startup, or is it done on demand as on

[issue11016] Re-implementation of the stat module in C

2013-07-01 Thread Christian Heimes
Christian Heimes added the comment: Let's close it. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11016

[issue7267] format method: c presentation type broken

2013-07-01 Thread STINNER Victor
STINNER Victor added the comment: u'{0:c}'.format(256) calls 256.__format__('c') which returns a str (bytes) object, so we must reject value outside range(0, 256). The real fix for this issue is to upgrade to Python 3. Attached patch works around the inital issue (u'{0:c}'.format(256)) by

[issue12520] spurious output in test_warnings

2013-07-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12520 ___

[issue16499] CLI option for isolated mode

2013-07-01 Thread Nick Coghlan
Nick Coghlan added the comment: I've come around to the idea of having this available as an option in the default interpreter. A separate binary could then just make it the default behaviour (leaning on PEP 432 to do so), which is more shebang line friendly and allows Linux distros to better

[issue16499] CLI option for isolated mode

2013-07-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 02, 2013, at 02:12 AM, Nick Coghlan wrote: So +1 from me for a -I isolated mode, and I'll adjust PEP 432 as necessary to cope. PEP 394 is probably related to any such additional binary. -- ___ Python

[issue15767] add ModuleNotFoundError

2013-07-01 Thread Guido van Rossum
Guido van Rossum added the comment: [switching to gmail-powered account] I'm sorry, but this seems like it should be an importlib internal affair. The new exception is too much in everyone's face, because the exception name gets printed on every traceback. I like #4, #3 is also acceptable.

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-01 Thread Todd Rovito
Todd Rovito added the comment: Terry, Thank you for the feedback this helps me alot! I will work with Phil Webster and will use his Text Widget and EditorWindow classes. Hopefully this will help us converge on a strong unit test for FormatParagraph.py. Thanks for the reminder about

[issue18340] float related test has problem with Denormal Flush to Zero compiler options

2013-07-01 Thread V.E.O
V.E.O added the comment: Hi Mark, Sorry for unclear DFZ abbreviation, that is when compiler opened with FTZ and DAZ feature. My operating system is Linux X64, I only tried Intel Compiler. In default optimization mode, the FTZ option is opened. Don't known why Intel make it the default