Ezio Melotti added the comment:
See also #13472 for a related discussion.
--
keywords: +easy
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17845
Charles-François Natali added the comment:
I would like to see Proto4 include an option for compression
(zlib,bz2) or somesuch and become self-decompressing upon unpickling.
I don't see what this would bring over explicit compression:
- depending on the use case, you may want to use different
Antoine Pitrou added the comment:
I don't see what this would bring over explicit compression:
- depending on the use case, you may want to use different compression
algorithms, e.g. for disk you may want higher compression ratio like
bzip2/lzma, but for wire you'd prefer something fast
Antoine Pitrou added the comment:
Closing as won't fix. There is no sane way around the current behaviour.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6028
Changes by Mark Dickinson dicki...@gmail.com:
Removed file: http://bugs.python.org/file30019/issue17794.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: -mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
___
Mark Dickinson added the comment:
Raymond: have you had time to look at this yet?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13355
___
___
Kushal Das added the comment:
A patch with tests update to use memoryview in base64 module.
--
keywords: +patch
Added file: http://bugs.python.org/file30022/issue17839_v1.patch
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17810
___
New submission from leon zheng:
build with prefix point to a arbitrary path, can't find the dynamic lib,
and libffi upstream bug:
./configure --prefix=xxx --enable-shared --enable-ipv6 --with-threads CC=clang
--
components: Build
files: mywork.pitch
messages: 187838
nosy: matrixsystem
Raymond Hettinger added the comment:
Soonish
--
priority: normal - low
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13355
___
___
Michael Foord added the comment:
This illustrates the difference:
from mock import Mock, create_autospec
some_list = [1, 2, 3]
m = Mock()
m.side_effect = some_list
m.side_effect
listiterator object at 0x1004ab7d0
m2 = create_autospec(lambda: None)
m2.side_effect = some_list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17839
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15693
___
___
New submission from Miroslav Stampar:
httplib module's auxiliary class LineAndFileWrapper contains a readline()
method having no arguments (than self). It's being used in code where commented
with assume it's a Simple-Response from an 0.9 server as a wrapper for
response stream (self.fp =
Miroslav Stampar added the comment:
Mentioned divine intervention could be:
1) Argument strict should be set to 0/False when instantiating HTTPResponse
2) No status should be returned from the backend server (hence the # assume
it's a Simple-Response from an 0.9 server)
3) Any part of response
Guilherme Simões added the comment:
Attached is a patch that removes the Help button from the Preferences window.
Maybe it would be nice to have the Help button open a text file describing
every possible option, but while this doesn't happen it is better to remove
this button.
--
Kushal Das added the comment:
Working on this.
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17826
___
___
Python-bugs-list
Kushal Das added the comment:
Patch along with a test for the same.
--
keywords: +patch
Added file: http://bugs.python.org/file30025/issue17826_v1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17826
Giampaolo Rodola' added the comment:
I confirm I can reproduce this issue also in pyftpdlib:
https://code.google.com/p/pyftpdlib/issues/detail?id=255
Current proposed patch returning '' is not ideal as for asynchat '' is an alias
for 'connection lost'.
In summary recv() in case of EAGAIN should
David Edelsohn added the comment:
If you look at the top of config.sub it says:
# Please send patches with a ChangeLog entry to config-patc...@gnu.org.
# You can get the latest version of this script from:
#
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
I
Giampaolo Rodola' added the comment:
Patch is in attachment.
I'm a bit worried about Python versions 3.4 because this kinds of breaks
backward compatibility as recv() is not expected to return None but I see no
other saner solution.
--
keywords: +patch
Added file:
Bohuslav Slavek Kabrda added the comment:
Hmm, good point. I'll try to discuss with Fedora people who work on secondary
arches. Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17837
R. David Murray added the comment:
Thanks for the report. Looks like it is a fairly rare case, which I suppose is
why it hasn't been reported before.
If the could be turns out to be sufficient, that should be enough for someone
to write a test for this. The patch itself should be even
David Edelsohn added the comment:
I meant I don't see the equivalent of your patch in the upstream repository, so
no one from the Fedora community appears to have contributed something
equivalent yet.
--
___
Python tracker rep...@bugs.python.org
New submission from Edward K. Ream:
On both windows and Linux the following fails on Python 2.7:
s = '\\Upsilon'
unicode(s,unicode_escape)
UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 0-7:
end of string in escape sequence
BTW, the six.py package uses this
Ezio Melotti added the comment:
This is not a bug, \U should be followed by 8 hex digits and it indicates a
Unicode codepoint:
'\\u0065'.decode('unicode_escape')
u'e'
'\\U0065'.decode('unicode_escape')
u'e'
'\\Upsilon'.decode('unicode_escape')
Traceback (most recent call last):
File
Edward K. Ream added the comment:
Thanks for your quick reply.
If this is not a bug, why does six define six.u as unicode(s,unicode_escape)
for *all* u constants??
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17850
R. David Murray added the comment:
Because as Ezio demonstrated, it produces the same result as using the 'u'
prefix on the same string.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17850
Serhiy Storchaka added the comment:
Python 3.3 doesn't support HTTP/0.9 and doesn't have LineAndFileWrapper class.
--
nosy: +christian.heimes, serhiy.storchaka
versions: -Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
Roger Serwy added the comment:
If we remove .close() then we'll need to then have an alternative way to allow
exit() and quit() to actually close IDLE. The RPC proxy already transfers
exceptions between the subprocess and the front-end, so we could catch the
SystemExit exception and handle it
Edward K Ream added the comment:
On Fri, Apr 26, 2013 at 8:51 AM, Edward K. Ream rep...@bugs.python.orgwrote:
If this is not a bug, why does six define six.u as
unicode(s,unicode_escape) for *all* u constants??
Oops. The following works::
s = r'\\Upsilon'
Changes by Roger Serwy roger.se...@gmail.com:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17721
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Needed tests for decoders.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17842
___
___
Python-bugs-list
Changes by vila v.ladeuil+bugs-pyt...@free.fr:
--
nosy: +vila
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11218
___
___
Python-bugs-list mailing
Changes by vila v.ladeuil+bugs-pyt...@free.fr:
--
nosy: +vila
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16662
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
Not only memoryview should be supported, but any class which supports the
buffer protocol and is C-contiguous (i.e. array.array).
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Xz-related mimetypes was added because Python 3.3+ supports xz compression.
Backporting them to 3.3 makes sense. But backporting to 2.7 is more
questionable.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
I would like to call this a critical regression.
Under 2.7 and 3.2, all pickle protocols are affected.
Under 3.3 and 3.4, pickle protocols 0 and 1 are affected.
(unfortunately, 3.2 doesn't receive bugfixes anymore)
--
nosy: +benjamin.peterson, pitrou
Antoine Pitrou added the comment:
queue.PriorityQueue is a locked class for use in multi-threaded code. That's
like saying Queue is a good substitute for list :-)
OTOH, the proposed patch raises a lot of warning signs for me. I will wait for
a decision on the feature's desirability before
Serhiy Storchaka added the comment:
This issue is not important enough. We can defer fixing until a better patch
will be proposed.
In any case please add an explaining comment to your patch when committing it.
Otherwise some future code will depend on self.stdin.
--
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +georg.brandl, larry
stage: - needs patch
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15535
___
Serhiy Storchaka added the comment:
From my multilingual experience I can say that priority queue is very rarely
used type of collections (but if it needed it is very usefull). On one hand,
Python stdlib already contains one such type, and this type will be good
enough in
Tshepang Lekhonkhobe added the comment:
So, why place them in What's New?
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17827
___
Ezio Melotti added the comment:
To advertise them? It should be explained that they are not new, but that now
they are documented and can/should be used.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17827
Kushal Das added the comment:
All the decoders create bytes as result, not sure how to assume if the result
should be bytes or bytearray.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17842
Éric Araujo added the comment:
In my opinion supporting xz in the standard library is totally separate from
keeping the mime types registry up to date.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16316
R. David Murray added the comment:
I agree with Éric.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16316
___
___
Python-bugs-list mailing list
Tshepang Lekhonkhobe added the comment:
I was not aware that such things are placed in What's New. I just looked at
such a document for 3.3... makes a lot of sense.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17827
Terry J. Reedy added the comment:
Line 35 is import sys so sys imports within functions are superfluous, as
well as contrary to current guidelines. There is another on 1033. Both were
removed before 3.3, so this amounts to a 2.7 backport.
It took me a moment to see that the unneeded
Serhiy Storchaka added the comment:
The argument should be tested, not the result.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17842
___
___
Antoine Pitrou added the comment:
A proof of concept hack to enable framing on pickle showed a massive
performance increase on streaming unpickling (up to 5x faster with a C file
object such as io.BytesIO, up to 150x faster with a pure Python file object
such as _pyio.BytesIO). There is a
Terry J. Reedy added the comment:
I think 'iter_unpack' is deceptive and wrong for the following reason. Up to
now, 'ixyz' or 'iterxyz' or 'iter_xyz' has meant a version of 'xyz' that
presents items one at a time rather than all at once in a collection object
(usually in a list). Unpack
Antoine Pitrou added the comment:
(note: I've updated PEP 3154 with framing and GLOBAL_STACK)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17810
___
Serhiy Storchaka added the comment:
A feature that may be actually nice to have in the pickle protocol would
be some framing, to help with streaming unpickling (right now unpickling
a stream can read almost one byte at a time, IIRC).
However, that would also make the protocol and the pickler
Antoine Pitrou added the comment:
What if just use io.BufferedReader?
if not isinstance(file, io.BufferedReader):
file = io.BufferedReader(file)
(at start of _Unpickler.__init__)
Two problems:
1. semantically, it is wrong; the BufferedReader will read bytes beyond
the
Terry J. Reedy added the comment:
Perhaps Florent is pointing to the fact that for 'except X:', the syntax error
is detected at the ' ' at offset 6 but the caret is backed up under the 't' at
offset 5*, whereas it is not backed up to the space before 'open'. Which
behavior do you propose
Roundup Robot added the comment:
New changeset d232cff25bbd by Antoine Pitrou in branch 'default':
Issue #17804: New function ``struct.iter_unpack`` allows for streaming struct
unpacking.
http://hg.python.org/cpython/rev/d232cff25bbd
--
nosy: +python-dev
Antoine Pitrou added the comment:
Ok, I don't want the bikeshedding to last too long, so I committed the patch
with docs. Thanks everyone!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Terry J. Reedy added the comment:
I think PseudoXxxFile should have close methods, but that the methods should
not be called when they should not be. Rebinding sys.stdin should not close
command line input.
My perhaps naive thought is that initializing sys.__stdin__ to the original
Terry J. Reedy added the comment:
I have also had problems, and I think the devguide needs a chapter on the
subject. I have additional info from Steve Dower of MS to add. There are also
proposed rewrites of the .bat files to be factored it to any doc. Thank you for
your writeup.
--
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - needs patch
versions: -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17846
___
R. David Murray added the comment:
As I said in the review, thanks for working more on this.
For the reason for (3), look at the test just before the ones you added.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9682
R. David Murray added the comment:
I made review comments: patch looks good, tests need a bit of work. Would you
be interested in adding the What's New entry as well? (Doc/whatsnew/3.4).
--
stage: - patch review
___
Python tracker
Claudiu.Popa added the comment:
Hello. I changed the patch according to your review comments. Here is the new
version.
--
Added file: http://bugs.python.org/file30028/aifc_2.patch
___
Python tracker rep...@bugs.python.org
New submission from Andriy Mysyk:
No need for comma in which one of the waiting threads proceeds is not defined,
and may vary across implementations.
Once a thread has acquired a lock, subsequent attempts to acquire it block,
until it is released; any thread may release it should read are
Andriy Mysyk added the comment:
submitting a patch for both grammar errors
--
assignee: - docs@python
components: +Documentation
keywords: +patch
nosy: +docs@python
Added file: http://bugs.python.org/file30029/issue17851.patch
___
Python tracker
Daniel Wong added the comment:
btw, I have a related patch: http://bugs.python.org/issue17834 Chances of it
being accepted aren't looking good right now though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
68 matches
Mail list logo