Georg Brandl added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13951
___
___
Python-bugs-list mailing list
Unsubscribe:
Ronald Oussoren added the comment:
2.7 works as well.
Roumen: what doesn't work and how can we reproduce that?
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - pending
___
Python tracker rep...@bugs.python.org
New submission from Stefan Behnel:
Line 522 in test file Lib/test/test_pep380.py says:
trace.append(Should not have yielded:, y)
However, 'trace' is a list and list.append() only takes one parameter, so this
should read:
trace.append(Should not have yielded:
Stefan Behnel added the comment:
If runtime checks are needed to prevent mixing arbitrary objects into the tree,
then I don't think they should be considered too costly.
I agree with Florent that this is worth reopening. It doesn't look like a
Tests bug to me rather a Lib/XML bug.
--
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file28504/python-2.7-issue1674555.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file28505/python-3.2-issue1674555.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file28506/python-3.3-issue1674555.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file28507/python-3.4-issue1674555.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Removed file: http://bugs.python.org/file20583/python-3.2-issue1674555.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Removed file: http://bugs.python.org/file20584/python-2.7-issue1674555.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
Stefan Behnel added the comment:
FWIW, PyPy has an (R)Python implementation already:
https://bitbucket.org/pypy/pypy/src/default/pypy/rlib/rrandom.py
--
nosy: +scoder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16659
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16824
___
Charles-François Natali added the comment:
The patch looks good, however there's something really bothering me:
in issue #14635, the same type of patch was applied to telnetlib,
here, it's multiprocessing and AFAICT, any single use of select() in
the standard library is subject to this
Roundup Robot added the comment:
New changeset 9472928af085 by Serhiy Storchaka in branch '3.3':
Issue #16824: Fix a failure guard in the never reached in the normal test
execution code in test_pep380.
http://hg.python.org/cpython/rev/9472928af085
New changeset 5ef7d9d6 by Serhiy Storchaka
Serhiy Storchaka added the comment:
Fixed. Thank you, Stefan. I will be glad to see new bugs which you will found
with Cython.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: compile error - behavior
___
Python
Serhiy Storchaka added the comment:
The fileno parameter was added in the changeset 8e062e572ea4. It was mentioned
in comments at the top of Modules/socketmodule.c, but not in the documentation
or docstrings (nor for _socket.socket, nor for socket.socket).
--
assignee: - docs@python
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Removed file: http://bugs.python.org/file16630/python-LDCXXSHARED.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1222585
Arfrever Frehtes Taifersar Arahesis added the comment:
I attach updated patches for distutils in case somebody wants to use them. (I
privately update them once per week.)
--
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file28508/python-2.7-distutils-C++.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1222585
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file28509/python-3.2-distutils-C++.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1222585
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file28510/python-3.3-distutils-C++.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1222585
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file28511/python-3.4-distutils-C++.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1222585
Serhiy Storchaka added the comment:
The cleanup of BYTESTR_DEPS and UNICODE_DEPS seems reasonable, but can you
explain the rationale behind removing the additional dependencies on
formatter_unicode.c?
This question already was asked by Antoine on IRC.
Because now Python/formatter_unicode.c
Barry Alan Scott added the comment:
Why not use IDLE? Workbench is a lot of code and dependencies.
I expect that it works because idle.app was created using the --no-zipimport
option that is new in 2.7.
However with zip import the code is badly broken.
Build IDLE.app with zip import and you
Georg Brandl added the comment:
20+ years of Python success suggest this isn't a problem that needs solving.
That reasoning could be applied to almost all open tracker issues.
Likewise, Linux itself doesn't preserve the original form of a chmod call.
Where would/could it do so? C has no
Ronald Oussoren added the comment:
It probably works because IDLE.app only uses the stdlib (that is, anything
imported from the main script is in the stdlib)
The bundlebuilder call for IDLE.app:
$(RUNSHARED) @ARCH_RUN_32BIT@ $(BUILDPYTHON) $(BUNDLEBULDER) \
--builddir=. \
Antoine Pitrou added the comment:
The fileno argument looks like an implementation detail to me.
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16802
___
Serhiy Storchaka added the comment:
str_replace_1char.patch: why not implementing replace_1char_inplace() in
stringlib, with one version per character type (UCS1, UCS2, UCS4)?
Because there are no benefits to do it. All three versions (UCS1, UCS2, and
UCS4) have no any common code. The best
Richard Oudkerk added the comment:
The fileno argument looks like an implementation detail to me.
It has at least one potential use. On Windows socket.detach() returns a socket
handle but there is no documented way to close it -- os.close() will not work.
The only way to close it that I
Antoine Pitrou added the comment:
That's a good question. Conceptually it makes sense, but I wonder if programs
currently rely on os.execv not cleaning up anything: not only it doesn't call
atexit handlers, but it also doesn't try to shutdown the interpreter. Which can
be handy if you are
Georg Brandl added the comment:
FTR, with C's atexit(3), the handlers are not called either on exec().
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16822
___
Charles-François Natali added the comment:
The first reason for not calling atexit handlers upon exec() is that
it wouldn't be async-safe anymore, and could result in deadlocks.
Also, since atexit handlers are inherited upon fork(), running atexit
handlers upon exec() could result in such
Roundup Robot added the comment:
New changeset 459a23083b66 by Łukasz Langa in branch '3.3':
Fixes `__setitem__` on parser['DEFAULT'] reported in issue #16820.
http://hg.python.org/cpython/rev/459a23083b66
New changeset f6fb5a5748f0 by Łukasz Langa in branch 'default':
Merged
Łukasz Langa added the comment:
For the record, the bug that caused the following to be equivalent:
parser['DEFAULT'] = {'option': 'value'}
parser['DEFAULT'].update({'option': 'value'})
has been fixed for 3.3.1+ only. This way it's going to be easier for users to
reason about the fix (it
Changes by Bernie Keimel unowne...@gmail.com:
--
nosy: Bernie.Keimel
priority: normal
severity: normal
status: open
title: all OK!!!
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16825
___
Changes by Charles-François Natali neolo...@free.fr:
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16825
___
Ronald Oussoren added the comment:
The patch can cause problems when either DYLD_LIBRARY_PATH or the current
working directory contains whitepace, a better fix is:
RUNSHARED=DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}
(That is, replace the single quotes by double quotes)
--
nosy:
Changes by Brett Cannon br...@python.org:
--
title: Make time_importlib run tests under both _frozen_importlib and
importlib._bootstrap - Make test_importlib run tests under both
_frozen_importlib and importlib._bootstrap
___
Python tracker
Brett Cannon added the comment:
One thing I should say about this list of modules is please don't go nuts
porting every single module blindly. There is always a possibility that another
VM has already ported the code and has simply not contributed it back and so
there is no need to write it
Serhiy Storchaka added the comment:
It has at least one potential use. On Windows socket.detach() returns a
socket handle but there is no documented way to close it -- os.close()
will not work. The only way to close it that I can see (without resorting
to ctypes) is with something like
Brett Cannon added the comment:
In response to Raymond:
First, Serhiy is a core developer now, so if he wants to commit this code and
maintain it I have no objections as it doesn't detract from anything and the
maintenance burden is his if he wants it. Whether any of us view it as the best
Giampaolo Rodola' added the comment:
I know. I proposed something like that here:
http://mail.python.org/pipermail/python-ideas/2012-May/015223.html.
In theory all the necessary pieces are already there. What's missing is an
agreement on what the API should look like, and that's the hard part
Antoine Pitrou added the comment:
I know. I proposed something like that here:
http://mail.python.org/pipermail/python-ideas/2012-May/015223.html.
In theory all the necessary pieces are already there. What's missing
is an agreement on what the API should look like, and that's the hard
part
New submission from Brett Cannon:
Importlib, when checking for PYTHONCASEOK, does not respect -E as it did in
Python 3.2 and earlier
(http://hg.python.org/cpython/file/0786dfc3b2b4/Python/import.c#l1933).
--
components: Interpreter Core
keywords: 3.2regression
messages: 178679
nosy:
New submission from Ramchandra Apte:
Most of the content in section 2 in the tutorial,
http://docs.python.org/3/tutorial/interpreter.html , is relatively advanced and
doesn't belong in, at least, the beginning of the tutorial.
Only 2.1. Invoking the Interpreter, and 2.2.3. Source Code
Ezio Melotti added the comment:
+1
--
keywords: +easy
nosy: +chris.jerdonek, ezio.melotti
stage: - needs patch
type: - enhancement
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
Richard Oudkerk added the comment:
There is an alternative (documented) interface:
socket.fromfd(handle, socket.AF_INET, socket.SOCK_STREAM).close()
socket.fromfd() duplicates the handle, so that does not close the original
handle.
--
___
Hynek Schlawack added the comment:
bikeshed$(pwd)/bikeshed
--
stage: - patch review
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16591
___
Serhiy Storchaka added the comment:
I don't want to make a decision on the inclusion of this code. However, I will
undertake to maintain it. I'm going to fix one algorithmic bug in current
implementation and add C implementations for some methods which significantly
slowed in Python
Ronald Oussoren added the comment:
Hynek Schlawack added the comment:
bikeshed$(pwd)/bikeshed
I'd usually agree, but this is a configure script and those shouldn't contain
shell features invented after 1970 :-)
More seriously, a large subset of command interpolations in configure.ac use
Hynek Schlawack added the comment:
I’m fine with that. My focus was fixing the ticket metadata. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16591
___
Fabian Groffen added the comment:
re: single quotes - double quotes
I made RUNSHARED consistent (although, as you point out, less broken) with the
other RUNSHARED assignments right above. If suggest to tackle the issue of
whitespace support for all RUNSHARED assignments, not just Darwin
Serhiy Storchaka added the comment:
There is one additional benefit. I have already implemented audioop module in
Python, and due to this it has found many bugs in the current C implementation
(issue16686).
--
___
Python tracker
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16783
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6010
___
___
Python-bugs-list mailing list
Ronald Oussoren added the comment:
On 31 Dec, 2012, at 15:59, Fabian Groffen rep...@bugs.python.org wrote:
Fabian Groffen added the comment:
re: single quotes - double quotes
I made RUNSHARED consistent (although, as you point out, less broken) with
the other RUNSHARED assignments
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16826
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Indeed. In any case, if this idiom is widely used, we can't hide this parameter
and should document it (and perhaps document this idiom).
If BDFL not want this parameter was made public, he would not have added it as
an keyword argument. However, may be to
Ralf Schmitt added the comment:
Daniel is pretty much spot on, thanks for that!
Regarding the use case: I disabled IPv6 system wide when building
packages via gentoo's USE flag. I didn't do anything in order to
configure IPv6 or remove it. My local network interface having a local
link address
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: -pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7735
___
___
Python-bugs-list mailing
Giampaolo Rodola' added the comment:
Well, for now I'd say let's just check in this patch as-is.
I would be keen on considering this a bug and hence address the patch for
Python 2.7, 3.2, 3.3 and 3.4.
--
___
Python tracker rep...@bugs.python.org
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
___
___
Python-bugs-list
Giampaolo Rodola' added the comment:
Does asyncore expose its implementation details?
I was talking about asynchat. What is supposed to change is
asynchat.async_chat.producer_fifo attribute which is currently a
collections.deque object.
--
___
Giampaolo Rodola' added the comment:
BTW, the patch looks ok to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16787
___
___
Serhiy Storchaka added the comment:
This was fixed in 3.3 (the complex solution is not backportable), therefore
this is 3.2 only issue.
--
nosy: +haypo, serhiy.storchaka
stage: - patch review
versions: -Python 3.1
___
Python tracker
Serhiy Storchaka added the comment:
This was fixed in 3.3 (the complex solution is not backportable), therefore
this is 3.2 only issue.
--
nosy: +haypo, serhiy.storchaka
stage: - patch review
versions: -Python 3.1
___
Python tracker
Serhiy Storchaka added the comment:
At first sight the patch looks good, but test needed.
--
stage: patch review - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9644
___
Serhiy Storchaka added the comment:
Please provide a full patch, doesn't split it on parts which should be applied
one over other. Test needed.
--
stage: patch review - test needed
___
Python tracker rep...@bugs.python.org
Meador Inge added the comment:
On Mon, Dec 31, 2012 at 4:50 AM, Serhiy Storchaka
rep...@bugs.python.org wrote:
The cleanup of BYTESTR_DEPS and UNICODE_DEPS seems reasonable, but can you
explain the rationale behind removing the additional dependencies on
formatter_unicode.c?
This question
Xavier de Gaye added the comment:
This patch breaks extension modules (for example Ned Batchelder's
coverage.py) that use PyEval_SetTrace to set the trace function.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16653
Guido van Rossum added the comment:
I recommend documenting it.
On Monday, December 31, 2012, Serhiy Storchaka wrote:
Serhiy Storchaka added the comment:
Indeed. In any case, if this idiom is widely used, we can't hide this
parameter and should document it (and perhaps document this
Changes by Ned Batchelder n...@nedbatchelder.com:
--
nosy: +nedbat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16653
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
This was implemented in issue11939 for Python 3.4 only.
--
nosy: +brian.curtin, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10657
___
Roundup Robot added the comment:
New changeset 5530251d9cac by Giampaolo Rodola' in branch '3.2':
Fix issue 10527: make multiprocessing use poll() instead of select() if
available.
http://hg.python.org/cpython/rev/5530251d9cac
New changeset d89891f3f769 by Giampaolo Rodola' in branch '3.3':
Roundup Robot added the comment:
New changeset c5c27b84d7af by Giampaolo Rodola' in branch '2.7':
Fix issue 10527: make multiprocessing use poll() instead of select() if
available.
http://hg.python.org/cpython/rev/c5c27b84d7af
--
___
Python tracker
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
assignee: - giampaolo.rodola
resolution: - fixed
stage: patch review - commit review
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10527
New submission from Martin:
The fix from issue 14398 for 4GB inputs regressed the behaviour when
compressing an empty string. Going by issue 853061 the expectation is this
should work.
The problem was noticed when using the updated Python 2.7 package in Ubuntu
Raring caused test failures in
Martin added the comment:
On trunk, both the compressor and the standalone function (which uses the
compressor) are affected. The easiest fix is rearranging the logic in function
shared between BZ2Compressor.compress and BZ2Compressor.flush so the exit on no
remaining input for the former
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16828
___
___
Python-bugs-list mailing list
Martin added the comment:
On 2.7 only the compress() function is affected, and the fix is much simpler.
Just using BZ_FINISH when the input is less then 4GB is sufficient.
--
Added file: http://bugs.python.org/file28513/bz2_compress_empty_string_27.patch
Fabian Groffen added the comment:
Which shell doesn't have $(command) support? It is not a bash-ism, but
is part of the POSIX shell definition (but wasn't present in older sh
implementations).
Solaris' /bin/sh.
--
___
Python tracker
Meador Inge added the comment:
This patch looks good to me with the exception that versionchanged should be
3.4.
--
assignee: - meador.inge
nosy: +meador.inge
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - patch review
versions: -Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16828
___
Wolfgang Scherer added the comment:
Thanks, works for me.
I only noted the discrepancy and did not give it much thought.
I will just implement a merge method on top of read_dict.
That gives me all options that could be desired :).
However, after implementing the entire compatibility layer, I
Changes by Brian Curtin br...@python.org:
--
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - Implement stat.st_dev and os.path.samefile on windows
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 3738d270c54a by Brian Curtin in branch 'default':
st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is set
to, is a DWORD. This was fixed in #11939 and the overflow was mentioned in
#10657 and seen by me on some machines.
Roundup Robot added the comment:
New changeset 3738d270c54a by Brian Curtin in branch 'default':
st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is set
to, is a DWORD. This was fixed in #11939 and the overflow was mentioned in
#10657 and seen by me on some machines.
Daniel Shahaf added the comment:
Fixed that in v3.
--
Added file: http://bugs.python.org/file28515/inspect-v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16808
___
Changes by Senthil Kumaran sent...@uthcode.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1674555
___
___
Python-bugs-list
Senthil Kumaran added the comment:
+1 from me as well. I am also adding Eric who might have views on the
customization part which added by him.
--
nosy: +eric.araujo, orsenthil
___
Python tracker rep...@bugs.python.org
Changes by Benjamin Peterson benja...@python.org:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16806
___
___
New submission from Rod Nayfield:
Likely has the same issue on any platform which uses the same functionality
(lpr filename to print).
--
components: IDLE
messages: 178715
nosy: Rod.Nayfield
priority: normal
severity: normal
status: open
title: IDLE on Mac OSX can't print filenames
Roger Serwy added the comment:
I can confirm this bug for POSIX platforms. Changing the lpr command in
config-main.def to quote the filename seems to fix the problem.
print-command-posix=lpr %%s
It might also be a problem on Windows, but I haven't tried it.
--
keywords: +easy
Senthil Kumaran added the comment:
Looks an invalid bug to me as well. request is a socket.socket object and has
shutdown method taking a single argument.
The error pasted in the report leads me to believe if the shutdown_request call
is not thread-safe and it is ending up called shutdown
Roundup Robot added the comment:
New changeset 0dbdb85fd141 by Ned Deily in branch '2.7':
Issue #14958: backport to 2.7.x from 3.3 (patch by Roger Serwy)
http://hg.python.org/cpython/rev/0dbdb85fd141
--
___
Python tracker rep...@bugs.python.org
Changes by Daniel Shahaf pyt...@danielsh.fastmail.net:
--
nosy: +danielsh
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9334
___
___
New submission from Bryan Bishop:
Sometimes I am using httplib/http.client and the server is not exactly
conforming to HTTP specs. I need to be able to specify the exact headers that
are sent to the server. By default, httplib/http.client injects headers like
Host and Accept-Encoding.
Issue
Roger Serwy added the comment:
In Objects/unicodeobject.c in PyUnicode_FromObject, the call to
PyUnicode_CheckExact fails when using 8.6.0 but works with 8.5.13.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16809
Changes by Roger Serwy roger.se...@gmail.com:
--
nosy: +serwy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16819
___
___
Python-bugs-list mailing
Changes by Berker Peksag berker.pek...@gmail.com:
--
versions: -Python 2.7, Python 3.1, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16830
___
1 - 100 of 108 matches
Mail list logo