Serhiy Storchaka added the comment:
- when stdin is a pipe (ex: echo abc|python ...), the stdin encoding
becomes cp1252 (ANSI code page) because os.device_encoding(0) returns None;
cp1252 is the result of locale.getpreferredencoding(False) (ANSI code page).
sys.stdin.readline() does not
Claudiu Popa added the comment:
It works in IDLE because it registers a custom pickling for code objects, in
idlelib.rpc:
copyreg.pickle(types.CodeType, pickle_code, unpickle_code)
where pickle_code / unpickle_code calls marshal.dumps/loads.
Although, I admit that this is weird. If
Serhiy Storchaka added the comment:
Thank you Zach. I found even small regression.
Before:
$ ./python -m timeit -s x = 10 x+x; x+x; x+x; x+x; x+x; x+x; x+x; x+x; x+x;
x+x
100 loops, best of 3: 1.51 usec per loop
After:
$ ./python -m timeit -s x = 10 x+x; x+x; x+x; x+x; x+x; x+x; x+x;
Bohuslav Slavek Kabrda added the comment:
Hi, so I'm not sure I understand this correctly. AFAICS there are two patches
in issue 14443 that are, to certain degree, independent. As for the patch that
overrides __os_install_post [1], that is no longer needed in RHEL 7, since the
line
Changes by STINNER Victor victor.stin...@gmail.com:
--
Removed message: http://bugs.python.org/msg223179
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21955
___
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file35965/inline.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21955
___
STINNER Victor added the comment:
bench_long.py: micro-benchmark for x+y. I confirm a slow down with 21955.patch.
IMO you should at least inline PyLong_AsLong() which can be simplified if the
number has 0 or 1 digit. Here is my patch inline.patch which is 21955.patch
with PyLong_AsLong()
STINNER Victor added the comment:
bench_long.py: micro-benchmark for x+y. I confirm a slow down with 21955.patch.
IMO you should at least inline PyLong_AsLong() which can be simplified if the
number has 0 or 1 digit. Here is my patch inline.patch which is 21955.patch
with PyLong_AsLong()
STINNER Victor added the comment:
rdmurray@pydev:~/python/p34python -c 'import resource;
print(resource.getrlimit(resource.RLIMIT_NOFILE))'
(1024L, 1048576L)
Oh, 1 million files is much bigger than 4 thousand files (4096).
The test should only test FD_SETSIZE + 10 files, the problem is to
STINNER Victor added the comment:
Task was destroyed but it is pending! messages come from the issue #21163, I
know that I have to make these messages quiet and I don't know yet how to fix
this.
Read pipe 9 connected: ... until the end output was specific to the issue
#21645. I created a
Roundup Robot added the comment:
New changeset 1ff9ce2204ee by Victor Stinner in branch 'default':
Issue #21645, #21985: Remove debug code
http://hg.python.org/cpython/rev/1ff9ce2204ee
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 1ff9ce2204ee by Victor Stinner in branch 'default':
Issue #21645, #21985: Remove debug code
http://hg.python.org/cpython/rev/1ff9ce2204ee
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
components: +asyncio
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21985
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: Race condition in signal handling on FreeBSD - asyncio: Race condition
in signal handling on FreeBSD
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21645
New submission from Serhiy Storchaka:
Currently timeit has significant iterating overhead when tests fast statements.
Such overhead makes hard to measure effects of microoptimizations. To decrease
overhead and get more precise results we should repeat tested statement many
times:
$ ./python
Serhiy Storchaka added the comment:
Confirmed speed up about 20%. Surprisingly it affects even integers outside of
the of preallocated small integers (-5...255).
Before:
$ ./python -m timeit -s x=10 x+x
1000 loops, best of 3: 0.143 usec per loop
$ ./python -m timeit -s x=1000 x+x
Changes by Serhiy Storchaka storch...@gmail.com:
--
title: Decrease iterating overhead it timeit - Decrease iterating overhead in
timeit
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21988
Steven D'Aprano added the comment:
Looks good, but I think it is better to have an unroll option rather than do
it automatically. I'm okay with the default being to unroll, but sometimes I
want to compare the speed between different versions of Python, and having
unroll=False to ensure the
Nick Coghlan added the comment:
Thanks Slavek. That means this bug doesn't affect RHEL 7 or CentOS 7, and if it
affects the Python 3 software collections on RHEL/CentOS 6, we can potentially
deal with it on the collection side of things.
Accordingly, closing this as a problem for downstream
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21965
___
___
Python-bugs-list
Jason R. Coombs added the comment:
Here I use the british pound symbol to attempt to answer that question. I've
disabled the environment variable PYTHONIOENCODING and not set any code page or
loaded any other Powershell profile settings.
PS C:\Users\jaraco echo £
£
PS C:\Users\jaraco chcp
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Extension Modules
nosy: +ezio.melotti
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21965
___
Antoine Pitrou added the comment:
Indeed, what's good for CPython may be quite annoying for e.g. a JIT-enabled
Python implementation. I wonder what the PyPy developers think about this.
--
nosy: +alex, pitrou
___
Python tracker
Martin v. Löwis added the comment:
LGTM
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21765
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
Please use ascii() instead of repr() in your test to identify who
replaces characters with question marks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21927
Martin v. Löwis added the comment:
I agree with Claudiu. IDLE should pickle with a private dispatch_table.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21986
___
Serhiy Storchaka added the comment:
Bytes repr doesn't contains non-ascii characters, therefore Python is actually
receiving a question mark from the pipe.
What are results of following commands?
py -3 -c import sys; sys.stdout.buffer.write(bytes(range(128, 256)))
py -3 -c import sys;
New submission from SylvainDe:
From :
https://docs.python.org/2/tutorial/datastructures.html and
https://docs.python.org/3.4/tutorial/datastructures.html (and all other
versions) :
list.index(x)
Return the index in the list of the first item whose
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +paul.j3
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13023
___
Zachary Ware added the comment:
This appears to me to be a well-documented Windows bug with a clear, documented
fix, and I am not able to reproduce it so I'm not sure if it's even still
relevant. Closing the issue.
--
resolution: - third party
stage: - resolved
status: open -
Changes by ppperry maprea...@olum.org:
--
components: +Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21986
___
___
Python-bugs-list
Mark Lawrence added the comment:
@Jonas do you wish to follow up on this?
--
nosy: +BreamoreBoy, paul.j3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12284
___
Mark Lawrence added the comment:
@Paul what is your take on this, other opinions seem positive?
--
nosy: +BreamoreBoy, paul.j3
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9399
Roundup Robot added the comment:
New changeset 8b3f7aecdf85 by Tal Einat in branch '3.4':
Issue #21765: Add support for non-ascii identifiers to HyperParser
http://hg.python.org/cpython/rev/8b3f7aecdf85
New changeset 73a8c614af4d by Tal Einat in branch 'default':
Issue #21765: Add support for
Mark Lawrence added the comment:
Works fine for me.
Python build: 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32
bit (Intel)]
Path 'C:\Windows\system32' exists in $PATH: True
File 'C:\Windows\system32\acledit.dll' exists: True
ctypes says for 'acledit.dll':
Claudiu Popa added the comment:
Maybe something like the attached patch. It doesn't have tests, though, I
didn't find any tests for the idlelib.rpc anyway.
--
keywords: +patch
Added file: http://bugs.python.org/file35968/idlelib.patch
___
Python
Tal Einat added the comment:
Fix committed to 3.4 and merged to default. (My first commit!)
Not back-porting this to 2.7 despite PEP 434, because support for non-ASCII
identifiers only exists in 3.x.
Close this issue as fixed!
--
___
Python
Mark Lawrence added the comment:
@Robert we're sorry about the delay in getting back to you. Sorry Windows
gurus this is over my head :(
--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
Just to make sure I understand: the issue is that gmail may produce flags with
[] in them, and imaplib currently fails to process such flags when it receives
them from gmail?
In principle I think we would not want to allow imaplib to be used to create
Serhiy Storchaka added the comment:
Instead of copying dispatch_table, use ChainMap.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21986
___
R. David Murray added the comment:
mslib doesn't have many tests, but it looks like it would be easy enough to add
one for this?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21931
Rafał Stożek added the comment:
Yeah, basically. The flags with [] characters are added to gmail (in my
case) by OtherInbox's Organizer app. I contacted them but haven't heard
back yet.
On Wed, Jul 16, 2014 at 4:07 PM, R. David Murray rep...@bugs.python.org
wrote:
R. David Murray added the
Claudiu Popa added the comment:
Thanks, Serhiy.
--
Added file: http://bugs.python.org/file35969/issue21986.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21986
___
New submission from Alex Gaynor:
This makes things slower than they need to be (yes, even on CPython :-)), and
is slightly confusing since usually inner classes are only used when a closure
is needed.
Attached patch simply moves the class definition.
--
components: Library (Lib)
Mark Lawrence added the comment:
Apparently #13923 is related to this.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12806
___
New submission from R. David Murray:
There are a few places in the new email API where dicts are returned containing
what is conceptually static information. Currently this is done by returning a
copy of the dict from the object, so that user code modifying the dict won't
break the object
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +paul.j3
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13923
___
Alex Gaynor added the comment:
I think this is likely to make timeit less representative of how code actually
performs in the real world on systems with a JIT. This is because of the cost
of sequential operations is not strictly additive on PyPy.
If you have statements `a` and `b`, and you
Antoine Pitrou added the comment:
Thanks, then I guess I'm -1 on the patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21988
___
___
Zach Byrne added the comment:
Well, dont' I feel silly. I confirmed both my regression and the inline speedup
using the benchmark Victor added. I wonder if I got my binaries backwards in my
first test...
--
___
Python tracker rep...@bugs.python.org
Armin Rigo added the comment:
The opposite argument might be relevant too: in some cases, a tracing JIT
compiler seeing a long block of code might perform artificially worse. If each
repeated line creates a branching path with two outcomes of roughly equal
likeliness, then if the line is
Armin Rigo added the comment:
...but I don't think PyPy should be by itself a good enough reason to reject
this patch. It would be fine if timeit detects which interpreter it runs on,
and only tries to unroll on CPython, for example.
--
___
Python
Andy Maier added the comment:
Uploaded v9 of the patch for 3.4 and default.
It reflects Marc's comment, plus the result of the recent discussion on
python-dev since v8 of th epatch, up to 2014-07-15 (subject: == on object tests
identity in 3.x).
- Please review the patch.
--
Added
Sebastian Kreft added the comment:
After more testing I finally found that in fact the process is not being
killed. That means that there is no problem with the futures. But instead it is
probably related with subprocess deadlocking, as the problematic process does
not consume any CPU.
Sorry
Sebastian Kreft added the comment:
Disregard the last messages, It seems to be a deadblocking due to subprocess.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20319
___
Changes by Andy Maier andreas.r.ma...@gmx.de:
--
nosy: +andymaier
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11945
___
___
Python-bugs-list
Mark Lawrence added the comment:
Knowing the platform this occurred on would be useful, but given the age do we
care?
--
nosy: +BreamoreBoy
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10991
Mark Lawrence added the comment:
Consider yourself reminded :)
--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16961
___
Mark Lawrence added the comment:
@Paul the attached patch is extremely simple and follows the work on #13609.
Is it okay with you if the patch was committed?
--
nosy: +BreamoreBoy, paul.j3
___
Python tracker rep...@bugs.python.org
Mark Lawrence added the comment:
#11076 was closed as a duplicate of #8982 which was closed as fixed so can this
also be closed as a duplicate?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14149
Mark Lawrence added the comment:
Can someone follow this up noting it refers to #15903.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15994
___
Mark Lawrence added the comment:
Please note this is also referred to from #15994.
--
nosy: +BreamoreBoy
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15903
___
Mark Lawrence added the comment:
Can we have a response to this please.
--
nosy: +BreamoreBoy, benjamin.peterson
type: - behavior
versions: +Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
A solution would be to schedule the callback in the event loop. Since Python
3.3, the C signal handler writes the signal number, which should be enough to
find and schedule the Python callback.
I wrote a patch implementing this idea to fix the issue:
Berker Peksag added the comment:
Updated Serhiy's patch to 3.5. I also added a whatsnew entry.
--
Added file: http://bugs.python.org/file35972/issue4972_imaplib.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4972
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4972
___
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +ezio.melotti
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21989
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9399
___
___
New submission from Igor Bronshteyn:
Quoting Collin Winter:
I'd like there to be an Else() node for If.orelse, While.orelse, etc. My
motivation is that I need the lineno and col_offset values of the else
statement for a code-coverage utility; as it is, I have to find the last lineno
of the
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo, nedbat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21992
___
___
Roundup Robot added the comment:
New changeset 6d5a76214166 by Victor Stinner in branch '3.4':
Issue #21163, asyncio: Ignore destroy pending task warnings for private tasks
http://hg.python.org/cpython/rev/6d5a76214166
New changeset fbd3e9f635b6 by Victor Stinner in branch 'default':
(Merge
Steven D'Aprano added the comment:
On Wed, Jul 16, 2014 at 02:49:31PM +, Armin Rigo wrote:
...but I don't think PyPy should be by itself a good enough reason to
reject this patch. It would be fine if timeit detects which
interpreter it runs on, and only tries to unroll on CPython, for
Roundup Robot added the comment:
New changeset e4fe6706b7b4 by Victor Stinner in branch '3.4':
Issue #21163: Fix destroy pending task warning in test_wait_errors()
http://hg.python.org/cpython/rev/e4fe6706b7b4
New changeset a627b23f57d4 by Victor Stinner in branch 'default':
(Merge 3.4) Issue
STINNER Victor added the comment:
Ok, I fixed the last warnings emitted in unit tests ran in debug mode. I close
the issue.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21163
STINNER Victor added the comment:
I fixed last warnings in tests ran in debug mode. I close the issue.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21985
STINNER Victor added the comment:
Here is a patch implementing a basic synchronization between the parent and the
child processing, to wait until the child is sleeping.
Can you please try this patch?
If it doesn't work, we might add a small sleep of 500 ms after the readline().
--
Mark Lawrence added the comment:
@Senthil do you still intend to run with this or could somebody else pick it up?
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
Mark Lawrence added the comment:
Nosy list set according to experts page.
--
nosy: +BreamoreBoy, georg.brandl
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17026
Mark Lawrence added the comment:
@Paul what is your opinion of this documentation patch?
--
nosy: +BreamoreBoy, paul.j3
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21990
___
___
Python-bugs-list mailing
Changes by Alex Gaynor alex.gay...@gmail.com:
--
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21990
___
___
Lita Cho added the comment:
R. David Murray added the comment:
Just to make sure I understand: the issue is that gmail may produce flags
with [] in them, and imaplib currently fails to process such flags when it
receives them from gmail?
This is correct. Gmail allows you to create flags
eryksun added the comment:
PS C:\Users\jaraco echo £ | py -3 -c import sys;
print(repr(sys.stdin.buffer.read()))
b'?\r\n'
Curiously, it appears as if powershell is actually receiving
a question mark from the pipe.
PowerShell calls ReadConsoleW to read the console input buffer, i.e. it
Antoine Pitrou added the comment:
Le 16/07/2014 12:43, Steven D'Aprano a écrit :
I would *much* rather a parameter to timeit which controls whether or
not to unroll, rather than timeit trying to guess whether you want it to
unroll or not. PyPy can default to off, CPython to on, and other
Terry J. Reedy added the comment:
There is no unittest module for rpc yet.
Should the pickle test include a test that pickling a code object fails, and
with the proper exception? Is ppperry correct about PicklingError?
Chainmap is new in 3.3 so 2.7 would need the copy version of the patch.
Mark Lawrence added the comment:
I'm not particularly interested in 2.7 documentation but is there anybody out
there who could review this please.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17057
Terry J. Reedy added the comment:
ppperry: Component Windows (or Macintosh) means Windows (or Mac) specific. The
rpc code is general to all systems.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21986
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - fixed
stage: test needed - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21765
___
Mark Lawrence added the comment:
@Daniel could you provide a patch for this?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16509
___
Milan Oberkirch added the comment:
Done. I added the keyarg 'enable_AUTH' and two abstract methods to the server:
process_auth(user, password) for authentication and accept_recipient(user,
mailfrom, rcptto) for authorization.
--
Added file:
Mark Lawrence added the comment:
Is it possible to backport the fix from #10845 to 2.7? Is it actually worth
doing?
--
components: +Library (Lib)
nosy: +BreamoreBoy
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 2e578b80c2f3 by Zachary Ware in branch '3.4':
Remove Tools/scripts/pydocgui.pyw.
http://hg.python.org/cpython/rev/2e578b80c2f3
--
___
Python tracker rep...@bugs.python.org
Changes by Case Van Horsen cas...@gmail.com:
--
nosy: +casevh
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21955
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
Christian, what about 2.7?
--
status: open - pending
versions: -Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20394
___
Mark Lawrence added the comment:
At a quick glance the patch looks okay to me so as there's been a lot of
positive comments can we have a formal patch review please.
--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Olaf Hartmann added the comment:
I just run into this issue, so i'll bump it with another test case:
import ctypes
class Struct(ctypes.Structure):
_fields_ = [
(uint8_0, ctypes.c_uint8, 8),
(uint8_1, ctypes.c_uint8, 8),
(uint16_0, ctypes.c_uint16, 1),
Mark Lawrence added the comment:
Presumably the responsibility for this lies with the person who made the
changes for #4074 ?
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
Mark Lawrence added the comment:
How do we stand with eight outstanding issues here?
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17750
R. David Murray added the comment:
Postel's Law says: be conservative in what you do, be liberal in what you
accept from others. So the client should not violate the RFC when sending data
to the server. The server, on the other hand, by that law could accept dirty
data if it can do
Claudiu Popa added the comment:
TypeError is raised only in Python 2, in Python 3 it's PicklingError.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21986
___
1 - 100 of 171 matches
Mail list logo