Steven Barker added the comment:
A recent Stack Overflow question (http://stackoverflow.com/q/23192359/1405065)
relates to this bug. The questioner was surprised that filecmp.cmp is much
slower than usual for certain large files, despite the shallow parameter
being True.
It is pretty clear
New submission from Cyphase:
Python 2.7.6: Affected
Python 3.2.3: Not affected
dict() allows keyword expansion using a dict() with integer keys, whereas
attempting to do so with most other functions raises a TypeError with the
message, keywords must be strings. The same thing happens with
New submission from Anton Afanasyev:
This issue results in redundant memory consumption for e.g. in this case:
from itertools import *
def test_islice():
items, lookahead = tee(repeat(1, int(1e9)))
lookahead = islice(lookahead, 10)
Anton Afanasyev added the comment:
Added patch for 2.7 version (no need to change '__reduce__()' method since it's
not implemented).
--
Added file: http://bugs.python.org/file34991/issue21321_2.7_e3217efa6edd.diff
___
Python tracker
Michael Boldischar added the comment:
Windows 7 64-bit:
python --version
Python 2.7.6
Debian 7 Linux 64-bit:
$ python --version
Python 2.7.3
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21303
Michael Boldischar added the comment:
Windows 7 64-bit:
root.tk.eval('info patchlevel')
'8.5.2'
Debian 7 Linux 64-bit:
root.tk.eval('info patchlevel')
'8.5.11'
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21303
R. David Murray added the comment:
In order for things to work with a patch gating system, I believe it will be
the most practical for the news items to be each in a separate file.
--
___
Python tracker rep...@bugs.python.org
Tito Bouzout added the comment:
Thanks guys for the information! Is still weird to me that the escape character
is used, but well ! Will remember this bug.
Kind regards,
--
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
Unless one looks carefully, it does not help the problen of merging
maintenance bugfix items into a default list that also contains
enhancement news not in the maintenance list*.
What if instead of having sections in Misc/NEWS for
R. David Murray added the comment:
2.7 can't be changed for backward compatibility reasons, and python3 enforces
the restriction in dict, as you observe.
I don't know if a python2 documentation note is worthwhile, but given the
conversations at pycon about adding additional -3 warnings to
Zachary Ware added the comment:
From some testing, this looks like a Tcl/Tk bug, fixed somewhere between 8.5.9
and 8.5.11: Python 3.2.5 which shipped with Tcl/Tk 8.5.9 shows this bug;
Python 3.3.5 which shipped with Tcl/Tk 8.5.11 does not, and Python 2.7 built
with Tcl/Tk 8.5.11 doesn't show
Benjamin Peterson added the comment:
On Mon, Apr 21, 2014, at 8:54, Zachary Ware wrote:
Zachary Ware added the comment:
From some testing, this looks like a Tcl/Tk bug, fixed somewhere between
8.5.9 and 8.5.11: Python 3.2.5 which shipped with Tcl/Tk 8.5.9 shows this
bug; Python 3.3.5
Zachary Ware added the comment:
Any opinions on which version to update to? 8.5.11 is easy and available and
fixes the bug; 8.5.15 is the newest 8.5 but not on svn.python.org; 8.6.1 is
available and is also what 3.4 (and currently 3.5) ships with.
--
New submission from Iñigo Serna:
Pathlib .owner() and .group() methods fail on broken symlinks.
They use:
return pwd.getpwuid(self.stat().st_uid).pw_name
and:
return grp.getgrgid(self.stat().st_gid).gr_name
It should be self.lstat().
Attached simple fix as unified diff.
--
R. David Murray added the comment:
Hmm. It seems to me that .name not being set is a bug in importlib. It
appears that importlib doesn't set it in the 'from x import y' case. After a
bit of experimenting at the python prompt, I'm not even sure what that code in
runpy is *doing*
R. David Murray added the comment:
It should receive a string. This is parallel to cleandoc, and I think splitdoc
should go in the documentation right after cleandoc.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12916
Stéphane Wirtel added the comment:
I will fix this issue asap, but I was too tired with the travel to Belgium.
Hope to propose patch during this week.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12916
R. David Murray added the comment:
Thanks, Sam. It is more helpful if the NEWS entry is *not* put in the patch
given the current state of the tooling. What's needs to be added is an entry
in Doc/whatsnew/3.5.
For the new test, you can take advantage of the temp_dir and
EnvironmentVarGuard
R. David Murray added the comment:
That would probably work for now, but it wouldn't work for the patch gating
system. On the other hand, it would sure make it easier to build/check
whatsnew.
--
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +nadeem.vawda, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20962
___
___
Ned Deily added the comment:
FWIW, ActiveState is shipping 8.5.15 and 8.6.1 in ActiveTcl. For the OS X
installers, we have been using 8.5.x (for the 64-bit/32-bit installer) because
that's also what Apple has been shipping in recent OS X versions. Serhiy has
committed a number of fixes in
Benjamin Peterson added the comment:
On Mon, Apr 21, 2014, at 9:38, Zachary Ware wrote:
Zachary Ware added the comment:
Any opinions on which version to update to? 8.5.11 is easy and available
and fixes the bug; 8.5.15 is the newest 8.5 but not on svn.python.org;
8.6.1 is available and
Ezio Melotti added the comment:
Also having a list of enhancements and bug fixes might be more meaningful for
users than a list of core issues vs library issues vs other similar sections.
This could also be done with two separate files, with the new
features/enhancements file existing only on
R. David Murray added the comment:
That makes the tooling of the gating system harder, though. If the NEWS can
just be a file in the patch, we don't have to have any special tooling for it
in the gating system.
--
___
Python tracker
New submission from Konstantin S. Solnushkin:
Somewhere between Python 3.3 and 3.4, a bug was introduced that forbids the
http.server module, working in CGI server mode, to run scripts residing in
subdirectories.
This will break existing software that relies on this feature.
How to reproduce
Terry J. Reedy added the comment:
If we put news items in a database keyed by issue number (and I think it
reasonable that all news-worthy patches should have a tracker issue), then
there would be no conflicts. (We already avoid simultaneous commits to the same
issue.) If the database had
Terry J. Reedy added the comment:
Moving News items from the repository to the tracker, where I think they
initially belong anyway, would also remove them as an issue for a future gating
system.
--
___
Python tracker rep...@bugs.python.org
Zachary Ware added the comment:
Terry J. Reedy wrote:
Moving News items from the repository to the tracker, where I think
they initially belong anyway, would also remove them as an issue for
a future gating system.
I think News items are best left in the repository just so that for any given
R. David Murray added the comment:
Yeah, Guido was strongly in favor of that too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18967
___
___
Ezio Melotti added the comment:
Agreed. Once the gating system is in place nothing prevent us to read the NEWS
entry either from the patch that is being committed or from a field in the
tracker and then including it together with the patch once it is approved.
--
New submission from Marcin Szewczyk:
As stated in the subject. Example is in a remote Git repository:
https://bitbucket.org/wodny/python-dbm-experiments/
It shows how some random data gets into the database (into some gaps between
keys and values). There is also a C example which hasn't been
Michael Stahl added the comment:
(note that i haven't used any Solaris myself since 2011)
* the #ifdef SOLARIS block still exists in current hg checkout
* according to comment http://bugs.python.org/msg18910 the SOLARIS
macro can not be defined during a build of python itself, so:
- the
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21324
___
___
Python-bugs-list mailing list
Giampaolo Rodola' added the comment:
Attached is a simple benchmark script transmitting a 100MB file.
On my Linux box sendfile() is almost twice as fast as send():
send()
real 0.0613s
user 0.0100s
sys 0.0900s
total0.1000s
sendfile()
real 0.0318s
user 0.s
sys
Terry J. Reedy added the comment:
A sequential log of commit messages for a particular branch would give one an
even better snapshot view of activity since not all commits have news messages
and even when they do, commit messages sometimes have additional info. But see
below.
The essence of
R. David Murray added the comment:
Looks good to me.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21225
___
___
Changes by Luiz Poleto luiz.pol...@gmail.com:
Added file: http://bugs.python.org/file34995/issue_19771.patch.v2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19771
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21322
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Most other Path methods operate on the link target, not the link itself, so I
don't see why these methods would work otherwise.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21322
R. David Murray added the comment:
That section of the docs is indeed rather confusing. Probably it just needs to
be changed to say for the methods supported by this object, see HTTPResponse
Objects.
I'd like to see the docs reorganized so that the '.. class' declaration in the
docs is
Josh Rosenberg added the comment:
For TransmitFile support, the Windows function to turn an integer file
descriptor into a WinAPI file HANDLE should be _get_osfhandle:
http://msdn.microsoft.com/en-us/library/ks2530z6.aspx
--
nosy: +josh.rosenberg
Changes by Antoine Pitrou pit...@free.fr:
--
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21225
___
___
Python-bugs-list
Alok Singhal added the comment:
This updated patch has support for starting in fast mode until the next count
would result in overflow in Py_ssize_t. The first patch started in slow mode
as soon as any of 'start', 'stop', or 'step' was outside of the range. With
this patch, we start in fast
akira added the comment:
Should socket.sendfile() always return number of bytes sent because file.tell()
may be changed by something else that uses the same file descriptor?
What happens if the file grows?
Instead of returning `(was_os_sendfile_used, os_sendfile_error)`, you could
specify
Sam Vilain added the comment:
Perhaps the simplest thing here is to add a standard verify callback that
catches verification errors, and returns the parsed server certificate as an
attribute of the raised exception object. From python, the exception can be
caught and then the certificate
Nick Coghlan added the comment:
Folks, this is *really, really, simple*: one file per NEWS entry. How
we arrange them is just a detail. Don't go off trying to invent wild
exotic alternatives that spread state across multiple sources of truth
- significant historical info belongs in the version
New submission from karl:
There is a room for a consistent and good EXIF library for the Python Standard
Library.
--
components: Library (Lib)
messages: 216978
nosy: karlcow
priority: normal
severity: normal
status: open
title: Missing Generic EXIF library for images in the standard
Giampaolo Rodola' added the comment:
Instead of returning [...] you could specify `no_fallback=False` that
could be set to `True` to assert that the fallback is not used
[...] and return the number of bytes sent.
Good idea, thanks, that is much better indeed. Updated patch is in attachment.
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +josiah.carlson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17552
___
___
koobs added the comment:
Updating versions to match branches fix was committed in
--
nosy: +koobs
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20901
___
Kushal Das added the comment:
New patch with test and news entry.
--
Added file: http://bugs.python.org/file34998/issue21256_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21256
___
Martin Panter added the comment:
I interpreted it more along the lines of “. . . returns a
http.client.HTTPResponse object [with] the following [additional] methods.”
Indeed, a HTTP urlopen() response I just tried does have info(), geturl() and
getcode() methods, and I know the info() method
Terry J. Reedy added the comment:
My concern with a file for each entry is a possible slowdown of some
operations, like TortoiseHg resyncing the diff between repository and working
directory (it is not instantaneous even now). However, if there are multiple
directories and if they are emptied
Martin Panter added the comment:
I ran into a related issue with the gettarinfo() method. Would that fall under
the scope of this bug, or should I raise a separate one?
with tarfile.open(/dev/null, w) as tar:
... with open(b/bin/sh, rb) as file:
... tar.gettarinfo(fileobj=file)
Roundup Robot added the comment:
New changeset 4ff2c0a637cf by Terry Jan Reedy in branch '2.7':
Issue 21284: Idle: make test_formatparagraph pass even when a user changes the
http://hg.python.org/cpython/rev/4ff2c0a637cf
New changeset fe067339af80 by Terry Jan Reedy in branch '3.4':
Issue
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21284
___
Terry J. Reedy added the comment:
I applied my patch as part of #21284. When I did so, I added 'limit=70' so that
the tests pass otherwise unchanged. The only thing left here is to change
config-main.def.
--
___
Python tracker
Roundup Robot added the comment:
New changeset 374746c5dedc by Terry Jan Reedy in branch '2.7':
Issue #21138: Change default reformat paragraph width to PEP 8's 72.
http://hg.python.org/cpython/rev/374746c5dedc
New changeset dd24099c0cf6 by Terry Jan Reedy in branch '3.4':
Issue #21138: Change
Changes by Terry J. Reedy tjre...@udel.edu:
--
Removed message: http://bugs.python.org/msg216987
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21138
___
Terry J. Reedy added the comment:
The unlinked push message was for #21139.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21138
___
Terry J. Reedy added the comment:
I put 21138 in the commit message. The push messages are these.
New changeset 374746c5dedc by Terry Jan Reedy in branch '2.7':
Issue #21138: Change default reformat paragraph width to PEP 8's 72.
http://hg.python.org/cpython/rev/374746c5dedc
New changeset
61 matches
Mail list logo