Changes by Stefan Behnel sco...@users.sourceforge.net:
--
nosy: +scoder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17239
___
___
Jackmoo added the comment:
Hi there, recently I also encounter this in windows(7), and my python program
occasionally crash and the windows pops 'appcrash' message with tcl8.5.dll
error c05 (access violation).
And this end up related to thread safe problem described as above. Since in my
Changes by Tal Einat talei...@gmail.com:
--
nosy: +mark.dickinson, rhettinger, stutzbach
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24270
___
Serhiy Storchaka added the comment:
The problem is in property descriptor getter. It uses cached tuple for args and
can unexpectedly modify it. Opened issue24276 for fixing this bug.
Another way is to remove fast path in lru_cache_make_key() and always copy args
tuple.
--
Added file:
New submission from R. David Murray:
I plan to remove the provisional status of the new email features in 3.5. This
is a documentation only change, but the documentation change is extensive
(pretty much a complete rewrite of the package docs).
--
assignee: r.david.murray
components:
Martin Panter added the comment:
There was already a potential patch in Issue 13501.
--
nosy: +vadmium
resolution: - duplicate
superseder: - Make libedit support more generic; port readline / libedit to
FreeBSD
___
Python tracker
Martin Panter added the comment:
Garrett Cooper: If you are still around, you might want to review the following
three changes in this new patch. I suspect they were mistakes in your version,
but I cannot be 100 percent sure.
* Restoring length - 1 subtraction in call_readline() at line 1239
Changes by Martin Panter vadmium...@gmail.com:
--
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18459
___
Serhiy Storchaka added the comment:
Affect on performance:
$ ./python -m timeit -r 11 -s from collections import namedtuple as n;a =
n('n', 'a b c')(1, 2, 3)
Unpatched: 1000 loops, best of 11: 0.0567 usec per loop
Patched : 1000 loops, best of 11: 0.0567 usec per loop
--
Stefan Behnel added the comment:
Eventually, I think a corresponding function should be added to cmath.
math.isclose() shouldn't deal with complex values by itself (other than
rejecting them as non-floatish input).
--
___
Python tracker
Tal Einat added the comment:
Attached is a patch based on Chris Barker's implementation on github[1]. This
includes only the C implementation, as well as tests, documentation and entries
in NEWS and whatsnew.
I had to keep the (PyCFunction) cast in the module method list in
Mark Daoust added the comment:
I think I might have found a related/real world example.
I'm on a mac with OSX-10.10.3 and test_ssl passes, but when I try to install
jupyter_notebook it attempts to download some css, and gives what looks like an
identical error to the first one, in the initial
Serhiy Storchaka added the comment:
This patch caused crash with C implementation of lru_cache (issue14373). Opened
issue24276 for fixing this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23910
New submission from Serhiy Storchaka:
Property descriptor getter uses cached tuple for args (issue23910). This can
cause problems when called function use args after reading other property or
save args. For now I know only one example - clru_cache_3.patch in issue14373.
Proposed patch use
Stefan Behnel added the comment:
The cast is correct and required (the actual signature is determined by the
METH_* flags).
Patch LGTM, FWIW.
--
components: +Library (Lib)
nosy: +scoder
type: - enhancement
___
Python tracker rep...@bugs.python.org
Tal Einat added the comment:
I have a question regarding complex values. The code (from Chris Barker)
doesn't support complex values (only things that can be converted into
doubles). However, the PEP states the following under Non-float types:
complex : for complex, the absolute value of the
Tal Einat added the comment:
I'm now working this into a patch against current default.
--
nosy: +taleinat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24270
___
Martin Panter added the comment:
I suspect this is actually a bug with Gnu Readline. The same issue exists in
GDB.
When a signal handler (such as SIGINT) raises an exception to abort the input,
Python calls rl_free_line_state(). The documentation for that function,
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Correct reuse argument tuple in property descriptor
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
___
Terry J. Reedy added the comment:
Thanks for the report.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11029
___
___
Python-bugs-list mailing
Raymond Hettinger added the comment:
LGTM, go ahead and apply.
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24276
___
Serhiy Storchaka added the comment:
Sorry, it was incorrect microbenchmark. Correct is:
$ ./python -m timeit -r 11 -s from collections import namedtuple as n;a =
n('n', 'a b c')(1, 2, 3) -- a.a
3.4 : 100 loops, best of 11: 0.601 usec per loop
3.5 unpatched: 100 loops, best of
Andrew Svetlov added the comment:
Would you propose a patch for docs?
--
nosy: +asvetlov
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24278
___
Daniel Andrade Groppe added the comment:
A first iteration of the documentation based on the PEP and the module source.
This still needs a lot of work.
--
keywords: +patch
nosy: +Daniel.Andrade.Groppe
Added file: http://bugs.python.org/file39484/typing_doc.patch
Martin Blais added the comment:
I don't think I'm the right person to propose a patch for this; I'm just
guessing how it works so far, I haven't had time to look into the source code
in detail, I'm sure there's a lot more context to it.
--
___
R. David Murray added the comment:
We should probably just introduce a new error mode (-ttt?) that makes it an
error to use tabs at all for semantic indentation.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 5dbf3d932a59 by Serhiy Storchaka in branch 'default':
Issue #24276: Fixed optimization of property descriptor getter.
https://hg.python.org/cpython/rev/5dbf3d932a59
--
___
Python tracker
New submission from Martin Blais:
Functions that parse arguments like PyArg_ParseTupleAndKeywords() have several
formatters that fill in C strings, e.g. s.
In the C API doc:
https://docs.python.org/3.5/c-api/arg.html#c.PyArg_ParseTupleAndKeywords
There should be an explicit mention of
Evgeny Kapun added the comment:
Prohibiting tabs after spaces is not enough. For example, Python rejects this
code:
if 1:
spaceif 1:
tabpass
because its indentation is invalid if tab width is 1. However, it accepts this
code:
if 1:
tabif 1:
10 spacespass
despite its
Zachary Ware added the comment:
What about including this in Tools/scripts/patchcheck.py? I think that might
strike a good enough balance between making changes noticeable and not
automatically changing the def file.
As far as all the differences this has uncovered, I'll try to make a patch
Steve Dower added the comment:
Could the latter break people already using the stable ABI on other platforms?
Does it even work for others? I don't know what the equivalent of python3.dll
would be.
If it doesn't exist outside of Windows, then assuming that everything not in
python3.def isn't
Serhiy Storchaka added the comment:
Backed out the backout in cb30db9cc029.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
___
___
New submission from Christie:
As described in Issue9517, many test modules do not make use of the helpers in
script_helpers.py to invoke the python interpreter in a subprocess. Issue9517
will be broken down into several smaller issues so we can address smaller
change sets.
This issue is to
Matthias Bussonnier added the comment:
Hi,
Since the last few patches related to this, I seem to have an issue with
`Python/importdl.c:get_encoded_name` (I guess) sometime returning the name
with a leading dot. This lead to `PyInit_.modulename` being searched which
fails.
My C-foo is
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24276
___
Ned Deily added the comment:
(@suki, I assume this is the issue reported here:
https://github.com/jupyter/notebook/issues/111 ?)
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23965
Matthew Barnett added the comment:
First some background: when you put a new entry into a dict, it looks for an
empty slot, the key's hash determining the initial choice, but if that slot's
occupied, it picks another, etc, so the key might not be in the slot of first
choice.
In
Christie added the comment:
Created Issue24279 for updating test_base64.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9517
___
___
Christie added the comment:
Updated TestMain in test_base64 to use test.support.script_helpers. Split
`test_encode_file` into two tests.
--
keywords: +patch
Added file: http://bugs.python.org/file39485/issue24279_base64.patch
___
Python tracker
New submission from Jeff Ding:
After uninstalling old versions of Python:
Python is unable to install unless I disable pip.
Once python installs, python immediately crashes due to Py_Initialize
--
components: Windows
files: python_crash.png
messages: 244003
nosy: Jeff77789,
Martin Panter added the comment:
At the top of the list
https://docs.python.org/3.5/c-api/arg.html#strings-and-buffers, it says which
cases have to be freed or not, and also mentions releasing buffers. Are you
proposing to add this information to each entry in the list as well?
Or just
Martin Panter added the comment:
I would be in favour of making the existing indentation behaviour more strict
by default, or at least outputting some sort of warning for Evgeny’s examples.
I.e. no reason to supply a special -ttt option.
But prohibiting tabs entirely might not go down well. I
Mark Lawrence added the comment:
So when does Python 3 generate this TabError: inconsistent use of tabs and
spaces in indentation and when doesn't it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24260
Changes by Larry Hastings la...@hastings.org:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24281
___
___
Python-bugs-list
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24281
___
Daniel Andrade Groppe added the comment:
Addressing comments from the review. Here is an updated patch.
--
Added file: http://bugs.python.org/file39487/typing_doc_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24272
Devin Jeanpierre added the comment:
Agree with Charles-François's second explanation. This makes it very hard to
reliably handle signals -- basically everyone has to remember to use
set_wakeup_fd, and most people don't. For example, gunicorn is likely
vulnerable to this because it doesn't use
Christopher Welborn added the comment:
You forgot the 'f' to specify that you want float formatting:
```
'{:08.3f}'.format(12.34)
'0012.340'
```
--
nosy: +cjwelborn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24281
Benjamin Peterson added the comment:
You could have a non-unicode key that compares equal to a unicode string.
--
nosy: +benjamin.peterson
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from James Luscher:
Doc for 3.4: at 6.1.3.1. Format Specification Mini-Language
indicates that:
The precision is a decimal number indicating how many digits should be
displayed after the decimal point for a floating point value
Yet I find that I get this behavior:
Python 3.4.3
Daniel Andrade Groppe added the comment:
Adding docstrings for urllib.urlretrieve() and urlib.cleanup() for Python 2.7.
--
keywords: +patch
nosy: +Daniel.Andrade.Groppe
Added file: http://bugs.python.org/file39488/urllib_2.7.patch
___
Python tracker
Changes by Dmitry Kazakov jsb...@gmail.com:
--
nosy: +vlth
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24275
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
Here are the recent version of the patch and minimal crash reproducer.
--
Added file: http://bugs.python.org/file39478/clru_cache_3.patch
Added file: http://bugs.python.org/file39479/clru_cache_crasher.py
___
Jacob added the comment:
Thanks! That does work.
I'm concerned there may be unintended or undesired consequences of this.
Hope the bug gets fixed, but will use the workaround for now.
--
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
--
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - exception error in _scproxy.so
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24273
55 matches
Mail list logo