Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18335
___
___
Python-bugs-list
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=', '
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
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')
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
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)
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
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
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
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
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',
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
___
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,
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
___
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
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
___
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18236
___
___
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
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)
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
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
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
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
___
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
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
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
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
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
Ł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
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
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.
--
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
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
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.
Changes by Todd Rovito rovit...@gmail.com:
--
nosy: +Todd.Rovito
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18292
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18302
___
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
Changes by Martin Kysel mar...@martinkysel.com:
--
nosy: +mkysel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16272
___
___
Python-bugs-list
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
Changes by Martin Kysel mar...@martinkysel.com:
--
nosy: +mkysel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16665
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17845
___
___
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
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
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
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
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
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
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
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
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18342
___
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18340
___
___
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
___
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
___
Antoine Pitrou added the comment:
Updated patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18112
___
___
Python-bugs-list mailing list
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
___
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
É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
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
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
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
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
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
___
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 @
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
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
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
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18335
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18340
___
___
Python-bugs-list
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)
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
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
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,
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +pitrou, sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18344
___
___
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
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
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
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18342
___
___
Python-bugs-list
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
Changes by STINNER Victor victor.stin...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18338
___
___
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
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
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
___
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
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
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
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
___
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
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
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.
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
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
91 matches
Mail list logo