Serhiy Storchaka added the comment:
self.raw_requestline is read from self.rfile:
self.raw_requestline = self.rfile.readline(65537)
self.rfile is either socket stream
self.rfile = self.connection.makefile('rb', self.rbufsize)
or in-memory bytes stream
self.rfile =
Changes by Georg Brandl ge...@python.org:
--
resolution: - not a bug
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22899
___
Serhiy Storchaka added the comment:
Looks as globals in setup_context() is NULL. I suppose it is
PyThreadState_Get()-interp-sysdict. interp-sysdict is cleared in
PyInterpreterState_Clear(). Other code is executed after setting
interp-sysdict to NULL (clearing interp-sysdict content,
Serhiy Storchaka added the comment:
Yes, suppressing context was introduced for such cases.
Here is a patch.
--
keywords: +patch
nosy: +serhiy.storchaka
stage: needs patch - patch review
Added file: http://bugs.python.org/file37226/importlib_suppress_context.patch
Serhiy Storchaka added the comment:
But isn't it is backward incompatible change?
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19867
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
versions: +Python 2.7, Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20059
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +dstufft, eric.araujo
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20106
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20296
___
Carlos Ralli added the comment:
Is it possible to use this patch for python2.7 ?
--
nosy: +Carlos.Ralli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20215
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20215
___
Serhiy Storchaka added the comment:
An indirect way how to know about interpreter shutdown -- test existing of the
path attribute in sys (issue20603).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22696
Ram Rachum added the comment:
Hi everyone,
Just wanted to follow up here that I've created my own dedicated bag class.
Documentation: https://combi.readthedocs.org/en/stable/bags.html
Install using `pip install combi`
It's packed with features. There are a ton of arithmetic operations
Serhiy Storchaka added the comment:
Thank you for your patch Franck. But it would be more useful to output all mode
argument, not only wrong character. And it should be wrapped in a tuple to
prevent subtle formatting error.
--
nosy: +serhiy.storchaka
versions: +Python 3.5 -Python 3.3
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
type: enhancement - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20604
___
Roundup Robot added the comment:
New changeset 34c7be03259b by Serhiy Storchaka in branch '3.4':
Issue #20604: Added missed invalid mode in error message of socket.makefile().
https://hg.python.org/cpython/rev/34c7be03259b
New changeset d5b36edeecdb by Serhiy Storchaka in branch 'default':
Changes by Peter p.j.a.c...@googlemail.com:
--
nosy: +maubp
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21872
___
___
Python-bugs-list mailing
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20604
___
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:
--
nosy: +piotr.dobrogost
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
___
Serhiy Storchaka added the comment:
Ping. I had added comments on Rietveld.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19949
___
___
Serhiy Storchaka added the comment:
LGTM.
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
stage: - commit review
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20736
Roundup Robot added the comment:
New changeset fb06c8ccfd41 by Serhiy Storchaka in branch '3.4':
Issue #20736: testSendmsgDontWait in test_socket no longer skipped on Linux.
https://hg.python.org/cpython/rev/fb06c8ccfd41
New changeset 23ab1197df0b by Serhiy Storchaka in branch 'default':
Issue
Serhiy Storchaka added the comment:
Thank you for your report and patch David.
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20736
Serhiy Storchaka added the comment:
libffi was updated to v3.1 in issue22176. This release adds support for the
Linux AArch64 and POWERPC ELF ABIv2 little endian architectures.
--
nosy: +serhiy.storchaka
resolution: - out of date
___
Python tracker
Serhiy Storchaka added the comment:
Could you provide tests?
--
assignee: - serhiy.storchaka
nosy: +pje, serhiy.storchaka
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21114
New submission from Jure Erznožnik:
At some point since Python 2.7, the EMin, Emax members got more restrictive
bounds. Emin cannot go above 0 and Emax cannot go below 0.
I would argue against this logic:
.prec specifies total precision
.Emin and .Emax effectively limit possible locations of
Nick Coghlan added the comment:
I would expect this to be a difference between the original pure Python
implementation and the current C accelerated implementation.
The constraint is in alignment with the General Decimal Arithmetic
Specification that the decimal module aims to implement,
Serhiy Storchaka added the comment:
In 3.4+ the example script always writes string bar to file foo. Tested by
running it in a loop hundreds times. Cleaning up at shutdown was enhanced in
3.4.
--
nosy: +serhiy.storchaka
___
Python tracker
Carlos Ralli added the comment:
Sorry, I've got nothing. Did you forget the attachment or mail body ?
2014-11-19 11:08 GMT+01:00 Berker Peksag rep...@bugs.python.org:
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
stage: - patch review
Berker Peksag added the comment:
Can we close this and issue22176 then?
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20885
___
R. David Murray added the comment:
Andreas: I would prefer to avoid a dependency on the ipaddress module. I would
suggest adding an address_family constructor argument that defaults to None,
where a value of None would mean just pass the server_address to bind (or
getaddrinfo?) and find out
New submission from bru:
`test.test_uuid.test_find_mac` relies on `ifconfig` binary presence, which is
on its way out. This makes the test fail on more and more Linux installations.
Using `env` (for example) is more reliable. `ip` could also be used since it's
the replacement to `ifconfig`,
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22901
___
___
STINNER Victor added the comment:
It would be nice to switch to ip link. The ip command became the new standard
on Linux. I don't know if the ip command is available on other operating
systems.
--
___
Python tracker rep...@bugs.python.org
New submission from bru:
Only linux, `uuid.getnode()` will use the Unix ddl, then ifconfig, then random.
`ifconfig` is disappearing in favour of `ip` (from iproute2), which should be
used.
This patch ads `_ip_getnode` getter to `uuid.getnode()`
--
components: Library (Lib)
files:
bru added the comment:
According to http://en.wikipedia.org/wiki/Iproute2 ip is Linux-only.
I opened an issue with a patch that brings ip link list to uuid.getnode():
http://bugs.python.org/issue22902
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
IMO such change can wait for Python 3.5.
--
nosy: +haypo, serhiy.storchaka
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22902
STINNER Victor added the comment:
(Only Python 2.7, 3.4 and 3.5 accepted bug fixes; other versions only accept
security fixes.)
--
versions: -Python 3.2, Python 3.3, Python 3.6
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20885
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19720
___
___
STINNER Victor added the comment:
Is anyone interested to work on the maintain a list of open file objects idea?
I consider that Python 3 does its best to flush data at exit, but it's not a
good practice to rely on the destructors to flush data. I mean, there is no
warranty that files will be
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20296
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22898
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
How the test fail? Could you provide test output?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22901
___
Serhiy Storchaka added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22902
___
___
Python-bugs-list mailing list
STINNER Victor added the comment:
It looks like the problem is that raising the PyExc_RecursionErrorInst
singleton creates a traceback object which contains frames. The singleton keeps
the frames alive longer than expected.
I tried to write a script to raise this singleton, but it looks like
STINNER Victor added the comment:
Oh, I also wrote a draft of patch fixing the issue, but I was unable to
reproduce the issue. See attached warn.patch (not tested).
--
keywords: +patch
Added file: http://bugs.python.org/file37230/warn.patch
___
Serhiy Storchaka added the comment:
I'm +1 on closing this. Agree with Charles-François that it's never been
guaranteed by the Python specification. Pythonic way to work with files is to
use the with statement, or, if you need long living file stream, careful
close files in the finally block
STINNER Victor added the comment:
You should only add the filename if the error if a FileNotFound exception, not
for any OSError, and only if exec() was called. It looks like the variable
child_exec_never_called indicates if exec() was called.
--
nosy: +haypo
bru added the comment:
I realize that I was not working against the tip... The patch I offered does
not apply since revision 88068, which fixes the test by skipping it when
ifconfig isn't available. Therefore this issue is invalid.
However I think that test_find_mac should always should not
Éric Araujo added the comment:
Thank you for your effort! Note that distutils uses try:... finally:
fp.close(), so it tries to avoid the FD leak issues.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22825
Éric Araujo added the comment:
Does this cause a warning to be printed out when it should not? Or did you
find this by reading the code?
[I think I remember this code being changed in the (now defunct) distutils2
project.]
--
versions: +Python 3.5 -Python 3.3
Tabrez Mohammed added the comment:
The former. I copy/pasted the code block to show from where the warning message
was being printed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20106
Zachary Ware added the comment:
Sorry, I haven't had a chance to get back to this one.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19949
___
New submission from Antoine Pitrou:
Just got this:
_pickle.PicklingError: Can't pickle class
'unittest.loader.ModuleImportFailure': attribute lookup ModuleImportFailure on
unittest.loader failed
unittest should use regular exception classes instead.
--
messages: 231398
nosy:
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22903
___
___
Python-bugs-list
R. David Murray added the comment:
They aren't real exceptions, though, if I understand correctly.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22903
___
Akira Li added the comment:
It would be inconsitent to provide filename only if exec is called e.g.:
import subprocess
subprocess.call(not used, cwd=nonexistent)
FileNotFoundError: [Errno 2] No such file or directory: 'nonexistent'
The error message shows the filename (cwd) despite
New submission from Gregory P. Smith:
1) Checkout a 3.4 tree. Mine was at revision d244e1770f1b.
2) ./configure
3) make -j14 profile-opt
4) ./python -m test.regrtest -v test_distutils
FAIL: test_sysconfig_module (distutils.tests.test_sysconfig.SysconfigTestCase)
Gregory P. Smith added the comment:
Should _sysconfigdata.py contain these flags for reference, implying that it is
this test or distutils.sysconfig implementation which is really wrong?
--
___
Python tracker rep...@bugs.python.org
Changes by Gregory P. Smith g...@krypto.org:
--
title: make profile-opt fails to update _sysconfigdata.py during the rebuild -
make profile-opt includes -fprofile* flags in _sysconfigdata CFLAGS
___
Python tracker rep...@bugs.python.org
Gregory P. Smith added the comment:
attaching a proposed workaround in the unittest.
--
keywords: +patch
Added file:
http://bugs.python.org/file37231/issue22904-test-workaround-gps01.diff
___
Python tracker rep...@bugs.python.org
Éric Araujo added the comment:
Can you give us steps to reproduce the issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20106
___
___
Martin Panter added the comment:
As far as I can tell, the “line” attribute isn’t documented anyway. But Issue
8450 is opened about improving the exception when the connection is closed.
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
Changes by Joe Julian jjul...@io.com:
--
nosy: +Joe.Julian
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21963
___
___
Python-bugs-list mailing
Martin Panter added the comment:
I suggest this is the same situation as Issue 6785, and is not a bug in Python.
However it might be reasonable to allow forcing a HTTP client connection to
version 1.0, which could be used as a workaround.
--
___
Tabrez Mohammed added the comment:
I don't have access to the code anymore that repro'ed this issue. I just
remember writing a setup script for a module I was working on, and when
'install' was run, it would print this error message.
It's pretty easy to see in code what the problem is though.
Dan Mick added the comment:
Hi; I'm the original author of the code in the Ceph CLI.
The reason it does what it does is that the Python CLI calls into librados
(Ceph, through ctypes) to connect to the cluster; that connection can block for
various reasons, so it's spawned in a thread; after
Joe Julian added the comment:
I suspect the underlying problem is that the fix expects the daemon threads to
hit a point where they try to acquire the GIL and that's not going to happen
with these librados threads; they stay in librados.
--
___
Martin Panter added the comment:
See also Issue 3566, which also brings up the false BadStatusLine exception,
and suggests some kind of retry logic.
Whatever exception it is, it could be documented better. In Issue 66621, the
poster thought it should be an IncompleteRead exception.
Martin Panter added the comment:
Sorry the IncompleteRead reference was meant to be Issue 666219
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8450
___
Martin Panter added the comment:
I don’t think the peek hack needs to go into to the standard library. It is
just a workaround for code using the current library, to differentiate an empty
status line due to EOF from any other kind of “bad” status line. This is what
Issue 8450, “False
Changes by Ned Deily n...@acm.org:
Removed file: http://bugs.python.org/file37232/readme.exe
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22905
___
___
Changes by Ned Deily n...@acm.org:
--
Removed message: http://bugs.python.org/msg231412
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22905
___
Changes by Ned Deily n...@acm.org:
--
nosy: -glynnc
resolution: - rejected
stage: - resolved
status: open - closed
title: Returned mail: see transcript for details - spam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22905
STINNER Victor added the comment:
I wnated to say that args[0] is not the right filename if exec() was not
called. Yes, there is also cwd for example. The logic to choose the
filename should be done in the child.
--
___
Python tracker
75 matches
Mail list logo