Marc-Andre Lemburg added the comment:
Jesús Cea Avión wrote:
Jesús Cea Avión added the comment:
Thanks for the heads-up, Victor.
I have added Marc-Andre Lemburg to the nosy list, so he can know about this
issue and can provide feedback (or request a backout for 2.7).
Marc-Andre?.
Marc-Andre Lemburg added the comment:
Éric Araujo wrote:
Éric Araujo mer...@netwok.org added the comment:
Feature freeze just came by; sorry we missed this.
Given our recent-ish discussion about additions to mimetypes (and the
consensus (IIRC) that matching the IANA database can be
Marc-Andre Lemburg added the comment:
The implementation of platform.architecture shells out to the file command.
It tries to escape quotes by replacing with \, but that's not sufficient.
$ python3.2 -c 'import platform; platform.architecture(foo\\\; echo Hi
there /tmp/Z; echo \\\)'
New submission from Gregory P. Smith:
Ben Leslie writes this on python-dev:
Hi all,
I have a Python program where I have many threads each calling Popen, and I was
hitting some trouble.
I've been seeing this on 3.2.3, however I believe the same issue is still
potentially a problem on head.
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16140
___
___
Marc-Andre Lemburg added the comment:
IMHO either of these solutions would be fine.
* have a PyOS_PutEnv() function, gettext has gettext_putenv() to
workaround this problem.
This solution would help in many other cases as well, so adding
such an API would certainly help more than
STINNER Victor added the comment:
1.7 -with open(DEV_NULL) as dev_null:
1.8 -proc = subprocess.Popen(['file', '-b', '--', target],
1.9 -stdout=subprocess.PIPE,
stderr=dev_null)
1.9 +proc = subprocess.Popen(['file',
Gregory P. Smith added the comment:
What you've described makes sense.
The file descriptors are indeed conditionally wrapped in file objects using
io.open which could lead to a double close in the error case in a threaded
application. yuck.
1) The code needs to check if the fd was wrapped
STINNER Victor added the comment:
You can use subprocess in platform for Python 2.7, but only if
it's available. Otherwise the module must fall back to the
portable popen() that comes with the platform module.
Marc-Andre: I still don't understand why you want to run platform.py
of Python 2.7
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16112
___
Christian Fertig added the comment:
ok, here's a run with debuglevel for the headers:
python 2.7 on openSuSE 11.4:
fertig@hornisse:/home/fertig python
Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2
Type help, copyright, credits or license for more information.
import urllib2
Christian Fertig added the comment:
the IP is private and even for testing I can't put it in a public IP range, as
the device is an IP Phone with a custom firmware (Siemens optiPoint 420).
--
___
Python tracker rep...@bugs.python.org
Ned Deily added the comment:
A popup menu on every invocation of IDLE would be a very user-unfriendly thing
to do. If it's possible that a print to stderr might not be visible to a user,
another solution might be to use the approach in Lib/idlelib/macosxSupport.py
tkVersionWarning which
Charles-François Natali added the comment:
After the blog post, Mathew, Sandeep from HP asked how to help:
It was more than a year ago.
Has something actually be done?
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
Richard Oudkerk added the comment:
This is more or less a duplicate of #15833 (although the errno mentioned there
is EIO instead of the more sensible EROFS).
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16139
Masami HIRATA added the comment:
I have tested the workaround and it works correctly.
Please see attached log file.
--
Added file: http://bugs.python.org/file27429/Python33_with_venv_2.txt
___
Python tracker rep...@bugs.python.org
Kristján Valur Jónsson added the comment:
Thanks Richard.
I wonder if the issues with the multiprocessing tests can be fixed by making
use of Barriers?
One of the reasons I introduced Barriers into the lib originally was my alarm
at seeing the various springklings of different _wait() calls
Kristján Valur Jónsson added the comment:
although I'd prefer a BSD errno example, such as ECONNRESET, instead of a
winsock one
Are you referring to the comment where I mention ECONNABORTED? That is a
regular unix error (windows version is WSAECONNABORTED).
This error occurs when the local
Roundup Robot added the comment:
New changeset 7cf0d8b2744b by Andrew Svetlov in branch '3.2':
Issue #16138: fix typo.
http://hg.python.org/cpython/rev/7cf0d8b2744b
New changeset a093d39fdda4 by Andrew Svetlov in branch '3.3':
Merge issue #16138: fix typo.
Masami HIRATA added the comment:
btw, it seems to me that -IC:\Python33\include -IC:\Python33\include should
be -IC:\Users\msmhrt\mypython\3.3.0\include -IC:\Python33\include.
What do you think about it?
--
___
Python tracker rep...@bugs.python.org
Andrew Svetlov added the comment:
Fixed. Thanks to py.user
--
nosy: +asvetlov
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16138
Christian Heimes added the comment:
I'll integrate your patch once I'm done with my SHA-3 patch #16113. I'm using
parts of your patch in my new sha3 code to release the GIL.
I'll also check if I can share more code between the SHA family modules.
--
assignee: - christian.heimes
Changes by Christian Heimes li...@cheimes.de:
Added file: http://bugs.python.org/file27431/49a949116245.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
Christian Heimes added the comment:
The hightlights of the next patch are
* release the GIL
* more test vectors
* remove bgr_endian.h
* move typedef UINT64 to sha3module
* declare more globals as static
--
___
Python tracker rep...@bugs.python.org
Richard Oudkerk added the comment:
Kristjan: you seem to have attached socketserver.patch to the wrong issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8800
___
Kristján Valur Jónsson added the comment:
although I'd prefer a BSD errno example, such as ECONNRESET, instead of a
winsock one
Are you referring to the comment where I mention ECONNABORTED? That is a
regular unix error (windows version is WSAECONNABORTED).
This error occurs when the local
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
Removed file: http://bugs.python.org/file27430/socketserver.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8800
___
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
Removed message: http://bugs.python.org/msg172065
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8800
___
Campbell Barton added the comment:
Agree PyOS_PutEnv would be good since its not restricted to string encoding and
resolves the problem of not being able to control env vars for an embedded
interpreter in general.
Having ways to change encoding is good too but a bit outside the scope of this
Antoine Pitrou added the comment:
Le vendredi 05 octobre 2012 à 09:51 +, Kristján Valur Jónsson a
écrit :
Then I started to wonder if it were appropriate to use a Barrier in
the Condition variable tests, particularly given that the former is
implemented by way of the latter :)
Indeed,
Antoine Pitrou added the comment:
BTW: It's probably better to discuss such patches on the tracker first,
before applying them to the code base. It becomes difficult discussing
patches that have already been partially applied to the code.
Agreed with Marc-André. Jesus, please understand that
Changes by Benno Leslie be...@benno.id.au:
--
nosy: +bennoleslie
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16140
___
___
Python-bugs-list
Benno Leslie added the comment:
Regarding #2 my understanding is that the FDs are already always wrapped.
E.g: at line
http://hg.python.org/cpython/file/b9ac3c44a4eb/Lib/subprocess.py#l798 it shows
these always being wrapped (assuming the file descriptor is not -1).
For my test case on
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16134
___
___
Python-bugs-list mailing
Antoine Pitrou added the comment:
In:
+except:
+sys.excepthook(*sys.exc_info())
I would write except Exception instead. You don't want to trap e.g.
KeyboardInterrupt.
For clarity, I would also add _dirty = False at the finalize top-level.
R. David Murray added the comment:
It looks like the data input is the same in both cases. (Although why does your
second example show 'urllib2.Request instance at 0x90d878'? Does urllib2
really output that as part of the debug output?) It is hard to see what could
be causing the divergence
Yury Selivanov added the comment:
I don't know why, but it seems that the bug reappeared in 3.3.
Examples:
1. --- (python 3.4 from repo)
yury@sxair ~/dev/py/python (master) $ ./python.exe
Python 3.4.0a0 (default, Oct 5 2012, 15:08:35)
[GCC 4.2.1 Compatible Apple Clang 4.1
Antoine Pitrou added the comment:
By using openssl s_client -connect 172.23.6.222:443 you can open a
telnet-like session (but using SSL) to your server, and try to type/paste an
HTTP request there. That would help check whether it's a Python problem, or
something else due to OpenSSL changes.
Christian Fertig added the comment:
python3 example, not working on both machines (3.2.1 on openSuSE 12.1 and 3.1.3
on openSuSE 11.4)
fertig@wespe:/home/fertig python3
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: invalid syntax (sitecustomize.py, line 89)
Python 3.2.1
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16140
___
___
Christian Fertig added the comment:
ok actually it isn't working either with curl or wget. So probably this is not
a python problem, it seems more something in the underlying libs:
Output from curl on the machine, where python 2.7 is working:
fertig@hornisse:/home/fertig curl --insecure
Christian Fertig added the comment:
for completeness: the openssl output from the machine, where python 2.7 is
working:
fertig@hornisse:/home/fertig openssl s_client -connect 172.23.6.222:443
CONNECTED(0003)
depth=1 C = DE, L = Munich, O = Siemens AG, OU = Com Enterprise Systems, CN =
Antoine Pitrou added the comment:
Ok, closing then. Thanks for the debugging, and good luck :)
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16109
Jesús Cea Avión added the comment:
Antoine, I agree. I beg your pardon. This patch was suppose to be quite
trivial, and test_platform passes just fine on my Linux and Solaris
computers. And the four buildbots I was monitoring, the testsuite passed.
The suggestion of Marc-Andre of simply
Serhiy Storchaka added the comment:
Patch updated. Tests added. One discrepancy between Python an C versions fixed.
In fact, we can get rid of StopIteration and directly raise ValueError. I don't
know what are the functions of StopIteration here, so preserve it. Perhaps the
author could
New submission from Guido van Rossum:
I just noticed that StreamHandler contains the following fragment in its emit()
method:
try:
do some writing
except (KeyboardInterrupt, SystemExit): #pragma: no cover
raise
except:
self.handleError(record)
Couldn't this
New submission from Idan Kamara:
When known and unknown options are given together in the same option string
(e.g. -xy) then ArgumentParser behaves in a strange way:
- if the known option is given first (so -k is known and the parser is fed with
['-ku']) then the parsing aborts with error:
R. David Murray added the comment:
Looks like parse_known_args needs to be taught to not treat unknown text
following an option as an argument if the option does not take an argument.
That would be in keeping with its mission, I think :)
There will still probably be ambiguous cases that will
Steven D'Aprano added the comment:
A question came up on Python-ideas about readline apparently missing a standard
function. See:
http://mail.python.org/pipermail/python-ideas/2012-October/016329.html
For debugging issues with readline, it would be be very useful to be able to
query the
Changes by Brett Cannon br...@python.org:
--
keywords: +3.2regression
resolution: fixed -
status: closed - open
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
Idan Kamara added the comment:
Yes that'd fix the known option before unknown but not the other way around.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16142
___
R. David Murray added the comment:
Right. I didn't read what you wrote carefully enough. Clearly
parse_known_args is buggy here.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16142
___
Changes by Steven D'Aprano steve+pyt...@pearwood.info:
--
nosy: +stevenjd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5845
___
___
Chris Jerdonek added the comment:
I don't know why, but it seems that the bug reappeared in 3.3.
Part of it could be that the original fix added no tests.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
Vinay Sajip added the comment:
I have tested the workaround and it works correctly.
Please see attached log file.
Thanks for the update.
btw, it seems to me that -IC:\Python33\include -IC:\Python33\include
should be -IC:\Users\msmhrt\mypython\3.3.0\include -IC:\Python33\include.
Could
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16116
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16123
___
___
Brett Cannon added the comment:
http://hg.python.org/cpython/rev/dc18a2a66d16 did add a test, just not the
right one.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
Brett Cannon added the comment:
Actually, I take it back, it removed a test without adding a new one. Obviously
that's my bad.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
New submission from Gregory Andersen:
Seems unicode_empty is still NULL at this point.
A gdb backtrace from an x86_64 build. Reproduced on i686 and mips build as
well.
Program received signal SIGSEGV, Segmentation fault.
0x0044f61e in PyUnicode_DecodeUTF8Stateful (s=0x59a767 ,
Mark Lawrence added the comment:
I can reproduce this on Windows Vista running 2.7.3. With 3.3.0 I get
faulty_time = time.asctime(initial_struct_time)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: Tuple or struct_time argument required
--
nosy:
Stefan Friesel added the comment:
What is the status of this? Does the patch need more reviewing?
--
nosy: +Stefan.Friesel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue812369
___
Christian Heimes added the comment:
I've documented the optimization options of Keccak. The block also contains a
summarization of my modifications of the reference code.
http://hg.python.org/sandbox/cheimes/file/57948df78dbd/Modules/_sha3/sha3module.c#l22
--
Stefan Krah added the comment:
This seems related to #9242: _Py_InitializeEx_Private() calls _Py_ReadyTypes(),
which uses the Unicode API, well before actually calling _PyUnicode_Init().
--
nosy: +georg.brandl, skrah
priority: normal - release blocker
stage: - needs patch
Stefan Krah added the comment:
Sorry, wrong issue number: Related to #10156.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16143
___
___
Stefan Krah added the comment:
See also #16143.
--
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10156
___
___
Serhiy Storchaka added the comment:
Couldn't this be simplified to the following?
I think this is idiomatic now (since 2.5).
There are some places where similar outdated code used. See the attached patch.
There are more dubious places in Lib/multiprocessing/managers.py and
Lib/asyncore.py.
New submission from Manuel Pégourié-Gonnard:
I find the following sentences, from import.rst, section Finders and loaders,
misleading: Python includes a number of default finders and importers. One
knows how to locate frozen modules, and another knows how to locate built-in
modules. in that
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +vinay.sajip
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16141
___
___
Martin v. Löwis added the comment:
At the moment, it's like that the status of the patch needs to be
reestablished. Does it apply? Does it work? Does the test suite still pass?
--
___
Python tracker rep...@bugs.python.org
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +brett.cannon, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16144
___
___
Francisco Martín Brugué added the comment:
I've to say that I also ran into that by following coverage numbers and as a
newbie is not so easy to see what Raymond told. IMHO that information could be
put as a comment.
Regards
francis
--
nosy: +francismb
Changes by Antoine Pitrou pit...@free.fr:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16129
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Viktor, what happen when a large positive number (=100) used as tm_hour?
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16137
Roger Serwy added the comment:
I agree that a message within the shell would be more informative to the user.
The _rev1 patch also adds a message to the shell.
--
Added file: http://bugs.python.org/file27437/idle_deprecate_rev1.patch
___
Python
New submission from Arfrever Frehtes Taifersar Arahesis:
Commit f2adbb1065eb introduced abort in _csv module in debug builds in Python
3.3, when using APSW shell.
(You need to have SQLite =3.7.14 installed.)
$ cd /tmp
$ wget http://apsw.googlecode.com/files/apsw-3.7.14-r2.zip
$ unzip
Andrew Svetlov added the comment:
Is it affected for 3.3 and 3.4 also?
--
nosy: +asvetlov
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16124
___
Andrew Svetlov added the comment:
Please write what exact text you want to see in documentation.
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16128
___
Andrew Svetlov added the comment:
ConfigParser is not intended to be deep copy-able, at least documentation says
nothing about it.
--
nosy: +asvetlov, lukasz.langa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16058
Changes by Christian Heimes li...@cheimes.de:
Added file: http://bugs.python.org/file27438/622009fb6192.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
Antoine Pitrou added the comment:
Well, can you try to enable core dumps and get a complete stack trace?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16145
___
Andrew Svetlov added the comment:
Looks good for me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16123
___
___
Python-bugs-list mailing list
Charles-François Natali added the comment:
Are you referring to the comment where I mention ECONNABORTED? That is a
regular unix error (windows version is WSAECONNABORTED).
This error occurs when the local stack decides to kill the connection, as
opposed to ECONNRESET which occurs on
Roundup Robot added the comment:
New changeset 0430986a8c03 by Andrew Svetlov in branch 'default':
Issue #16123: IDLE - deprecate running without a subprocess.
http://hg.python.org/cpython/rev/0430986a8c03
--
nosy: +python-dev
___
Python tracker
Charles-François Natali added the comment:
This is more or less a duplicate of #15833
Indeed, closing as duplicate.
--
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - most failures to write byte-compiled file no longer suppressed
type: crash
Andrew Svetlov added the comment:
Change priority to deferred blocker for reminding to remove no-subprocess mode
in 3.5.
Thanks, Roger.
--
priority: normal - deferred blocker
___
Python tracker rep...@bugs.python.org
Charles-François Natali added the comment:
We should probably catch all OSErrors, and log a warning in verbose mode, as
suggested by Antoine.
Catching individual errnos is tedious and error-prone.
--
nosy: +neologix
___
Python tracker
STINNER Victor added the comment:
Issue #16139 has been marked as a duplicate of this issue.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15833
___
Andrew Svetlov added the comment:
Filip, please describe why you prevent closing if writeback attribute is not
present.
I see comment for __del__ related to #1339007, but at __exit__ call __enter__
has called already and __init__ has finished definitely with success.
Also I would to see
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
assignee: - asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13896
___
___
Roundup Robot added the comment:
New changeset 0df5aeab229f by Andrew Svetlov in branch '3.3':
Issue #16115: Add test for check that executable arg to Popen() takes
precedence over args[0] arg\n\n
Patch by Kushal Das
Andrew Svetlov added the comment:
Committed. Thank you, Kushal Das.
BTW, please fill http://www.python.org/psf/contrib/ as contributor of Python
project.
We would to get that agreement from everybody who has pushed any patch.
Thanks again.
--
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16115
Andrew Svetlov added the comment:
Maybe better to fix Windows behavior for unifying FileNotFoundError?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16114
___
New submission from yinian1992:
I have a python 2.7.3 installation both on Debian 6 and Windows 7. And under
both environment email.mime.application cannot access.
email.mime.application
Traceback (most recent call last):
File stdin, line 1, in module
AttributeError: 'module' object has no
Chris Jerdonek added the comment:
Actually, I was still working on this. I had assigned it to myself.
+p = subprocess.Popen([nonexistent,-c,'import sys; sys.exit(42)'],
+executable=sys.executable, cwd=python_dir)
The test for the executable argument should
Chris Jerdonek added the comment:
I will be opening a separate issue to have the same behavior in a future
version after this issue is closed. For existing releases, we don't want to
break working code that could be relying on the difference.
--
Chris Jerdonek added the comment:
Sorry, I was confusing this issue with issue 15533. Yes, I support adding the
file path to the error message in the Windows implementation, though my
preference would be for that to be addressed as part of a separate issue.
--
Roger Binns added the comment:
I'm the APSW author. You do not need SQLite installed - APSW's setup can fetch
the current SQLite and use it privately not affecting the rest of the system.
An easier way of testing is:
python3 setup.py fetch --sqlite --version 3.7.14 build_ext --inplace
R. David Murray added the comment:
This is by design. If you want to load the application module, you have to do
so explicitly:
import email.mime.application
This is similar to the way many other packages are organized. An __init__ file
importing a submodule is the (relatively)
1 - 100 of 150 matches
Mail list logo