New submission from Serhiy Storchaka:
Proposed patch allows Python implementation of the pickle module to pickle
nested names (e.g. methods) with protocols 4. Pickled data is compatible with
old releases.
If this is good I'll write C implementation.
--
components: Library (Lib)
Antoine Pitrou added the comment:
Attached patch is stricter and dumps a fatal error after the grace period.
--
Added file:
http://bugs.python.org/file38392/bufio_lock_finalizing_fatal_error.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 25356d34b79b by Antoine Pitrou in branch 'default':
Issue #22980: Under Linux, C extensions now include bitness in the file name,
https://hg.python.org/cpython/rev/25356d34b79b
--
___
Python tracker
Antoine Pitrou added the comment:
I've pushed the patch for Linux. I'm keeping this issue open in case other
platforms may (want to) benefit.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22980
Steve Dower added the comment:
Looks like the way I was calculating the version number of the installer didn't
take into account a2 and a3 - we had 3.5.0.10 for 3.5.0a*.
I think switching to $(Major).$(Minor).$(Field3Value).0 is correct here - this
should give us 3.5.100.0, 3.5.101.0,
Antoine Pitrou added the comment:
(note that trying to print a warning or raise an error only makes things worse
if the stream subject to deadlock is stderr)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23309
Antoine Pitrou added the comment:
That's a good question :) Making it a normal multiline file would be good
enough.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23613
___
Georg Brandl added the comment:
And what do you suggest to do about it?
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23613
___
New submission from Steve Dower:
Currently, 3.5.0a1 needs to be manually removed either before or after
installing 3.5.0a2 (after *should* be okay, but before is preferable).
Installing a later version should detect and remove the earlier one. This is
obviously an installer bug.
--
Serhiy Storchaka added the comment:
I support Yury.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12916
___
___
Python-bugs-list mailing list
Antoine Pitrou added the comment:
Your analysis sounds right to me.
--
nosy: +tim.peters
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23309
___
Georg Brandl added the comment:
Well, that's not useful in a generated file. I propose you exclude the doc
build tree from your search, or use a grepping tool like ag that ignores files
ignored by the vcs.
--
___
Python tracker
Georg Brandl added the comment:
How about we respond to all Windows-specific issues with switch to Linux?
How about we don't respond to strawman arguments?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23613
Mark Lawrence added the comment:
Am I correct in assuming that we'd need to fix a regression in 2.7 owing to its
extended life span, or would the compiler being deprecated make this not worth
the trouble, or what?
--
nosy: +BreamoreBoy
___
Python
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file38390/pickle_nested_names.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23611
___
New submission from Chris Angelico:
b\xed\xb4\x80.decode(utf-8)
Traceback (most recent call last):
File stdin, line 1, in module
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position
0: invalid continuation byte
The actual problem here is that this byte sequence would decode
Georg Brandl added the comment:
+1
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23081
___
___
Python-bugs-list mailing
New submission from Antoine Pitrou:
Since I get hit by this at least once a week, I thought I'd finally report a
bug. The Doc/build/html/searchindex.js file is extremely annoying when grepping
through the source tree (and especially when grepping in the docs), because
it's very likely to
Antoine Pitrou added the comment:
Interesting. I have only skimmed through the patch, but +1 on the principle.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23611
___
Martin Panter added the comment:
Serhiy, would you be in favour of making it public in the pydoc module, as
originally suggested by Yury in https://bugs.python.org/issue12916#msg216238,
or some other module, or are you saying to reject this completely?
--
Terry J. Reedy added the comment:
Sorry. That has to be py -3 ... unless you have configured 'py' to run 3.x,
or py -m idlelib.idle ... for 2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23546
Antoine Pitrou added the comment:
A possible solution is to tweak the IO lock acquire on shutdown: only wait for
a grace period instead of waiting indefinitely. Attached patch demonstrates the
solution (and solves the deadlock issue in your script).
--
keywords: +patch
nosy: +neologix
Antoine Pitrou added the comment:
Theoretically, SSLError could stop inheriting from OSError. Practically, it may
break a lot of code (though in a rather noisy way that is easy to spot).
Otherwise, the best effort fix is to make our SSL error codes start at a high
number, e.g. 2000 (but not
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23612
___
___
Antoine Pitrou added the comment:
Well, that's not useful in a generated file.
Well, here's a case where it's useful... Asking me to change tools is quite
obvious and quite pointless at the same time. How about we respond to all
Windows-specific issues with switch to Linux?
--
Marc-Andre Lemburg added the comment:
On 08.03.2015 20:57, Antoine Pitrou wrote:
Antoine Pitrou added the comment:
Well, that's not useful in a generated file.
Well, here's a case where it's useful... Asking me to change tools is quite
obvious and quite pointless at the same time. How
Serhiy Storchaka added the comment:
Fixed few bugs and added C implementation.
--
Added file: http://bugs.python.org/file38393/pickle_nested_names_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23611
Changes by SilentGhost ghost@gmail.com:
--
nosy: +benjamin.peterson, haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23137
___
___
Serhiy Storchaka added the comment:
The patch doesn't fix a bug and doesn't add new feature. It just rewrites the
code in more clear manner (in my eyes). So I leave applying or rejecting the
patch on Lars.
--
assignee: - lars.gustaebel
___
Python
Berker Peksag added the comment:
This is no longer an issue after issue 17911.
--
resolution: - out of date
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23003
Eric V. Smith added the comment:
I'm not sure it needs fixing: it follows from the definition of using
Decimal(num) / Decimal(denom). Plus, it's controllable with a decimal context:
from decimal import localcontext
with localcontext() as ctx:
... ctx.prec = 100
... format(F(1, 3),
Martin Panter added the comment:
I’ve never actually used the Fraction class, but I doubt its behaviour should
depend on whatever settings are in the current decimal context. Maybe you can
extract the precision out of the format string, and base the internal decimal
object on that.
Mark Lawrence added the comment:
Frankly I've no idea who should be looking at this issue.
--
nosy: +BreamoreBoy
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23137
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +bethard, paul.j3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23159
___
___
Serhiy Storchaka added the comment:
May be not drop folding support, but just deprecate the putheader()
multi-argument mode? And of course add sanity checks for separate putheader()
arguments.
--
___
Python tracker rep...@bugs.python.org
Tuomas Suutari added the comment:
Serhiy Storchaka wrote:
from fractions import Fraction as F
format(F(1, 3), '.30f')
'0.00'
Good catch! I'll try to fix this and add some more test cases.
--
___
Python tracker
Changes by Claudiu Popa pcmantic...@gmail.com:
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11705
___
Claudiu Popa added the comment:
This was recently fixed in 3.5 by 73afda5a4e4c.
--
nosy: +Claudiu.Popa
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10805
Mark Lawrence added the comment:
This can be reproduced with 3.5 on Windows 8.1.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23027
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21619
___
___
Roundup Robot added the comment:
New changeset 97e01e107591 by Steve Dower in branch 'default':
Issue #23612: Fixes upgrade code and version for Windows installer.
https://hg.python.org/cpython/rev/97e01e107591
--
nosy: +python-dev
___
Python tracker
Josh Rosenberg added the comment:
This is intentional and documented behavior:
https://docs.python.org/3/library/__main__.html
--
nosy: +josh.r
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23610
Mark Lawrence added the comment:
LGTM so can we have a formal patch review please, thanks.
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20257
Ryan Gonzalez added the comment:
I'm getting a weird error message building python:
ryan@DevPC-LX:~/stuff/cpydroid$ make
_PYTHON_PROJECT_BASE=/home/ryan/stuff/cpython _PYTHON_HOST_PLATFORM=linux-arm
PYTHONPATH=./Lib:./Lib/plat-linux python3 -S -m sysconfig --generate-posix-vars
;\
if
Mark Shannon added the comment:
You are on the nosy list. You should have got sent an email.
This bug is the regression.
https://hg.python.org/cpython/rev/7c5c678e4164/ resulted in incorrect column
offsets for many compound expressions.
--
___
Changes by Neil Girdhar mistersh...@gmail.com:
Added file: http://bugs.python.org/file38395/starunpack36.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
keywords: +patch
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file38396/issue20617.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20617
Serhiy Storchaka added the comment:
UTF-8 codec can't decode byte 0xed because 0xed is not valid UTF-8 sequence and
following byte is not expected valid continuation byte.
UTF-8 codec can produce errors of three types:
* invalid start byte. When the byte is not start byte of UTF-8 sequence
Martin Panter added the comment:
Regarding sharing fractions._parse_format_specifier(), perhaps have a look at
_pydecimal._parse_format_specifier()
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23602
Sven Brauch added the comment:
Hmm, strange, I did not receive any emails.
Incorrect by what definition of incorrect? The word does not really help to
clarify the issue you see with this change, since the behaviour was changed on
purpose. What is the (preferably real-world) application which
New submission from Thomas Kluyver:
Issue #22599 changed tokenize.open() from using builtins.open() to having a
module-level reference to _builtin_open, stored by doing _builtin_open = open.
However, on reloading the module, _builtin_open is pointed to tokenize.open
from the last execution of
Martin Panter added the comment:
Posting a new patch that also removes the masking from the gzip, zipfile,
tarfile, and test_zlib modules. I removed the comment about signedness in
tarfile; let me know if you saw any others.
--
versions: +Python 3.5 -Python 3.4
Added file:
Éric Araujo added the comment:
I think the change is acceptable.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19610
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Lib/pydoc_data/topics.py was extremely annoying to me for the same reason. I
even didn't know about Doc/build/html/searchindex.js because it has different
extension. Finally I had written few scripts like:
$ cat ~/bin/findpy
#!/bin/sh
find * -name '*.py' !
Sven Brauch added the comment:
Why did you not CC me in this discussion? It is not very nice to have this
behaviour changed back from what I relied upon in a minor version without
notice.
Which regression was effectively caused by this patch, except for the
documentation being out of date?
Steve Dower added the comment:
Two parts to this - first that I was using the wrong version, but also the
wrong upgrade code for the bundle. Those are both fixed now, but it does mean
that both 3.5.0a1 and a2 will need to be manually uninstalled.
It is possible to add a list of the upgrade
Martin Panter added the comment:
I have decided not to reuse the same _DecompressReader for the gzip module.
This is because the code for parsing the gzip header pulls in data by calling
read(), and I would have to adapt this code to accept whatever data is pushed
to it via a decompress()
Tuomas Suutari added the comment:
Eric V. Smith wrote:
I'm not sure it needs fixing: it follows from the definition of using
Decimal(num) / Decimal(denom). Plus, it's controllable with a decimal context:
Hmm... Even though it's tempting to agree with you and just ignore the
precision bug,
Tuomas Suutari added the comment:
Here's the next round of the patch.
For formatting fractions with any given precision I had to parse the precision
from format specifier and at this point it seemed easier to just create a
general parser for the Format Specification Mini-Language. In this
Martin Panter added the comment:
My own one-liner kicking around in my Bash history that uses GNU Grep options
to avoid specific files and directories:
grep -r . --exclude-dir={.git,.hg} --exclude={refcounts.dat,*.js} -nIwe
PIPE_MAX_SIZE
--
nosy: +vadmium
Demian Brecht added the comment:
After a chat with David and getting my head wrapped more around backwards
compatibility, I also agree that the changes in the patch are far too strict.
It's much more important to preserve backwards compatibility than to strictly
conform to the RFC.
I've
Zachary Ware added the comment:
Terry J. Reedy added the comment:
Sorry. That has to be py -3 ... unless you have configured 'py' to
run 3.x, or py -m idlelib.idle ... for 2.7.
Any reason not to add idlelib.__main__ to 2.7? It works the same in either
version, as far as I can tell.
Changes by Zachary Ware zachary.w...@gmail.com:
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23610
___
Ashish Sadanandan added the comment:
Thanks for the reply. MSVC does produce the expected results, I forgot to
mention that earlier.
So I guess this means I can't realistically expect anyone to look into this
problem? I can switch to MSVC but the spotty C++11/14 support is irritating to
have
Nick Coghlan added the comment:
For the record, I don't think the weakref support is likely to be particularly
useful either, and if we'd used __slots__ from the beginning, I expect we would
have left it out.
It's specifically the idea of *taking weakref support away* when weakrefs
currently
Antoine Pitrou added the comment:
-1 on dropping weakref support. It's a feature, and it costs almost nothing.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23103
___
New submission from Arfrever Frehtes Taifersar Arahesis:
Commit bb6fb47e0141 added .. versionadded:: 3.4.5 in documentation of
ssl.VERIFY_X509_TRUSTED_FIRST, but next version of Python 3.4 will be 3.4.4.
--
assignee: benjamin.peterson
components: Documentation
messages: 237531
nosy:
Steve Dower added the comment:
That was my original thought, but it's going to lose all of its named exports
and effectively become useless for this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23606
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18173
___
___
Roundup Robot added the comment:
New changeset 8264652bce68 by Benjamin Peterson in branch '3.4':
indicate correct version (closes #23608)
https://hg.python.org/cpython/rev/8264652bce68
New changeset ce67f965a37d by Benjamin Peterson in branch 'default':
merge 3.4 (#23608)
Serhiy Storchaka added the comment:
See also issue22721.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18173
___
___
New submission from Serhiy Storchaka:
First, datetime.utcfromtimestamp() drops fractional part of Decimal argument:
import datetime
from decimal import Decimal as D
datetime.datetime.utcfromtimestamp(1425808327.307651)
datetime.datetime(2015, 3, 8, 9, 52, 7, 307651)
Serhiy Storchaka added the comment:
I choose repr() so that for single flag it looks as for IntEnum instance. Other
variants except Perm.R|Perm.W: 3 have different format. Perm.R|Perm.W: 3 is
too verbose, it repeats the same class name multiple times.
But I don't like current repr.
Other
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Add IntFlags
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11957
___
___
Ezio Melotti added the comment:
A context manager here would seem a bit strange.
I still haven't thought this through, but I can't see any problem with it right
now. This would be similar to:
from contextlib import closing
with closing(MyHTMLParser()) as parser:
parser.feed(html)
Davin Potts added the comment:
While the mockup of the code that you provided is of some help, it is still
unclear whether the problem could originate from your hand-rolled
serialization/de-serialization implementation or somewhere else. The traceback
you shared could even suggest an
Berker Peksag added the comment:
I left a couple of minor comments on Rietveld.
--
nosy: +berker.peksag
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23491
___
Davin Potts added the comment:
Can the OP provide a runnable example to help us understand what they are
actually trying to do?
There is simply not enough information for us to go on here -- Torsten's
suggestion is a good one but we need more information to help any further.
--
nosy:
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23309
___
___
Python-bugs-list
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23331
___
___
Brett Cannon added the comment:
Python's startup performance is very sensitive to what modules get imported for
all Python programs. The tests that are failing for you make sure that a core
developer doesn't accidentally introduce a new startup dependency and thus slow
startup times without
New submission from Hristo Venev:
Please export PyModuleObject in moduleobject.h.
It's useful for subclassing module in C.
--
components: Interpreter Core
messages: 237543
nosy: h.venev
priority: normal
severity: normal
status: open
title: Export PyModuleObject in moduleobject.h
Serhiy Storchaka added the comment:
I doubt that inspect is better place for splitdoc() than pydoc. So count my
voice against moving splitdoc().
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12916
Davin Potts added the comment:
Unable to reproduce on Ubuntu 12.04.5 with Python 2.7.8 and current libtk8.5
and libtcl8.5 releases using the attached hanger.py example.
Key findings to-date:
1. Posts to this issue have concluded that there exists a problem with thread-
and process-safety in
SilentGhost added the comment:
Here is the python-only fix that eliminates TypeError and produces correct
number of milliseconds. The problem with C implementation lies in
_PyTime_ObjectToDenominator function where there is an explicit check for a
float. This check could be relaxed to include
Paul Moore added the comment:
New patch incorporating Berker's comments
--
Added file: http://bugs.python.org/file38389/pep-441.v5.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23491
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23008
___
___
Mark Lawrence added the comment:
LGTM, can we have a formal review please.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23081
___
Liam Marsh added the comment:
the py -m idlelib -e file command failed!
(issue 23610 created)
otherwise, yes, different versions of the edit with idle command sounds
better.
--
___
Python tracker rep...@bugs.python.org
New submission from Liam Marsh:
hello!
trying the solutions proposed by the 23546'th issue, i found that the -m
argument, for packages (like tkinter, or idlelib; not io or socket), trys to
find the __main__ file, not the __init__ file, which is the main file of
any package.
is that a
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
components: +Library (Lib)
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23384
___
91 matches
Mail list logo