New submission from Robert Xiao:
This issue affects Python 2.5 through 2.7, but not Python 3.
open accepts basically anything for the second argument, so long as it either
starts with r, w, or a, or contains U somewhere in the string. Therefore, the
following are all legal in Python 2.7.3:
Changes by Robert Xiao nneon...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16125
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, pitrou
stage: - needs patch
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16125
___
New submission from Serhiy Storchaka:
PyErr_Format in Modules/_testcapimodule.c uses illegal format specifier (%s)
for Py_ssize_t argument. It causes crash:
import _testcapi
_testcapi.parse_tuple_and_keywords( (), {}, b'', [42])
--
components: Extension Modules, Tests
files:
New submission from Serhiy Storchaka:
In some places in the documentation and in the comments still left incorrect
mention of the narrow build. Suggested patch fixes this.
--
assignee: docs@python
components: Documentation, Unicode
files: doc_narrow_build.patch
keywords: patch
Kushal Das added the comment:
I am working on patch for this.
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16125
___
___
Raymond Hettinger added the comment:
Just so you know, in CPython the bisect version of nsmallest() isn't called at
all. Instead, the C implementation is used and it employs the heap based
algorithm rather than the bisect algorithm.
Instead of mucking with code that call nsmallest(), I'll
Michele Orrù added the comment:
Since AFAIK json.loads runs through every simil-str object, I think that a
repr() is fine here. What do you think?
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16009
Kushal Das added the comment:
Patch to update mode parsing of open call. All tests seem to be running ok.
File changed: Objects/fileobject.c
--
keywords: +patch
Added file: http://bugs.python.org/file27411/open_mode2.patch
___
Python tracker
Christian Heimes added the comment:
Hello Björn,
thanks for the information. Your package didn't turn up on Google when I
started with my experiment. Perhaps it's too new?
Your code and mine have lots of similarities. I was amused when I saw that you
had the same issue with the block size
Kristján Valur Jónsson added the comment:
Ok, here is a new patch. It takes into account various comments and
suggestions:
1) The interface is java-like. a single RWLock instance only has attributes
reader_lock and writer_lock.
2) Since the owning array needs only be process local, the same
Roundup Robot added the comment:
New changeset 4141c36954cd by Jesus Cea in branch 'default':
Closes #15488: Closed files keep their buffer alive
http://hg.python.org/cpython/rev/4141c36954cd
--
nosy: +python-dev
resolution: - fixed
stage: patch review - committed/rejected
status: open
Changes by Jesús Cea Avión j...@jcea.es:
--
keywords: +patch
Added file: http://bugs.python.org/file27413/53aa92a70127.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15488
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15513
___
___
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/issue15475
___
___
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/issue15528
___
___
Python-bugs-list mailing list
Kristján Valur Jónsson added the comment:
Clearly, the finish call is intended to be called, and I think the
documentation is in error.
However, the finish call should also be able to cope with the connection having
been reset and handle such errors as may occur.
--
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8912
___
___
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/issue15550
___
___
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/issue15464
___
___
Python-bugs-list mailing list
Kristján Valur Jónsson added the comment:
Please consider the attached patch and see if it solves the issue.
--
keywords: +patch
Added file: http://bugs.python.org/file27414/socketserver.patch
___
Python tracker rep...@bugs.python.org
Jesús Cea Avión added the comment:
This is security risk, but I can't think about any platform.architecture()
use that would use a untrusted parameter. Nevertheless os.popen() has been
deprecated for ages. I take care of this.
--
assignee: - jcea
nosy: +jcea
versions: -Python 2.6,
New submission from Max:
http://docs.python.org/dev/glossary.html?highlight=hashable says:
Objects which are instances of user-defined classes are hashable by default;
they all compare unequal, and their hash value is their id().
Since x == x returns True by default, so they all compare
Roundup Robot added the comment:
New changeset c73b90b6dadd by Jesus Cea in branch '2.7':
Closes #16112: platform.architecture does not correctly escape argument to
/usr/bin/file
http://hg.python.org/cpython/rev/c73b90b6dadd
New changeset 6c830b657900 by Jesus Cea in branch '3.2':
Closes
Jesús Cea Avión added the comment:
I have a bootstrap problem with python 2.7. Backout that patch, for now.
--
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16112
New submission from Campbell Barton:
note, I was asked to report this issue, posted on the py dev mailing list: see
- http://code.activestate.com/lists/python-dev/118015/
---
We've run into an issue recently with blender3d on ms-windows where we
want to enforce the encoding is UTF-8 with the
Roundup Robot added the comment:
New changeset d6d908dc11f2 by Jesus Cea in branch '2.7':
Closes #16112: platform.architecture does not correctly escape argument to
/usr/bin/file. Solve a 2.7 bootstrap issue
http://hg.python.org/cpython/rev/d6d908dc11f2
--
resolution: - fixed
status:
Jesús Cea Avión added the comment:
Thanks for bringing this up and for your patch.
--
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16112
___
STINNER Victor added the comment:
I did a similar commit two years ago, but I reverted it because I failed to
find a solution for the bootstrap issue.
changeset: 60673:7c90ac194e40
branch: legacy-trunk
parent: 60664:d7d5c76545fb
user:Victor Stinner
Changes by Jesús Cea Avión j...@jcea.es:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16112
___
___
STINNER Victor added the comment:
See also issue #15216.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16129
___
___
R. David Murray added the comment:
A repr of what?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16009
___
___
Python-bugs-list mailing list
STINNER Victor added the comment:
See also issue #9560 and the following email from Marc-Andre Lemburg.
http://mail.python.org/pipermail/python-checkins/2010-April/092099.html
Viktor, before making such changes to platform.py, please coordinate
with me, as I am the maintainer of that module.
R. David Murray added the comment:
Unfortunately, this is a backward compatibility concern (currently
working-even-if-buggy code could stop working), so I'm -1 on fixing it. Option
[2] would be an enhancement/API change, and is thus also ruled out.
A third alternative might be to add a
Ramchandra Apte added the comment:
This is my first patch, so if I've done something wrong please let me know.
The Python Development Guide helps you with all this and more:
http://docs.python.org/devguide/
--
nosy: +ramchandra.apte
___
Python
Ramchandra Apte added the comment:
I do not see the need to cater to something as foolish and rare as using a
multichar delimiter that is also within fields.
I need to generate tables for Google Code wikis.
--
___
Python tracker
Ramchandra Apte added the comment:
Make it pop up a dialog with the message too in the patch, please.
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16123
___
Roundup Robot added the comment:
New changeset 0fc259ac8733 by Jesus Cea in branch '3.3':
Closes #16126: PyErr_Format format mismatch in _testcapimodule.c
http://hg.python.org/cpython/rev/0fc259ac8733
New changeset 366c19bb5ca2 by Jesus Cea in branch 'default':
MERGE: Closes #16126:
New submission from Ramchandra Apte:
Porting to Python 3.3 should be Porting to Python 3.4 in What's new In
Python 3.4 [0]
http://docs.python.org/dev/whatsnew/3.4.html#porting-to-python-3-3
--
assignee: docs@python
components: Documentation
messages: 171951
nosy: docs@python,
Jesús Cea Avión added the comment:
Thanks!.
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16126
___
___
Python-bugs-list mailing
Will Haldean Brown added the comment:
Thanks for the clarification Raymond!
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16098
___
Vinay Sajip added the comment:
Comparing the link command which works:
C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:c:\python33\Libs /LIBPATH:C:\temp\venv2\libs
/LIBPATH:C:\temp\venv2\PCbuild /EXPORT:PyInit__regex
Brett Cannon added the comment:
How are people finding these uses? Grepping around for yield and seeing if it
is in a 'for' loop? Or are people doing something more detailed like an AST
walk of every module in the stdlib looking for some pattern?
--
nosy: +brett.cannon
Michele Orrù added the comment:
A repr of what?
Of the variable s in Lib/json/decoder.py#l358
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16009
___
Changes by Michele Orrù maker...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file27415/issue16009.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16009
___
R. David Murray added the comment:
So you would see a copy of the string being decoded in the error message? That
string might be very long, and would be of doubtful utility. What I had in
mind was at least printing the character position of the parse failure. That
may also be of limited
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?.
--
nosy: +lemburg
___
R. David Murray added the comment:
Raymond said he would make a code change relevant to this at some point, so we
should probably leave this issue open until he does. (Or if he doesn't want
the issue open, we can let him close it).
--
nosy: +r.david.murray
resolution: invalid -
New submission from Piotr Dobrogost:
Pylauncher in Python 3.3 is being installed in Windows system folder instead of
Program Files folder. That's against platform rules. It should be installed in
the same folder Python is installed or in its own folder under Program Files
folder. In the
Vinay Sajip added the comment:
A little more investigation suggests that the disparity is due to some code in
virtualenv's version of distutils.__init__.py, which adds the
\Libs entry which allows the virtualenv version to work.
Adding Carl Meyer as nosy, as I'd like his advice on what the
Changes by Eric V. Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16131
___
___
Python-bugs-list
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:
--
nosy: +jkloth
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16131
___
___
Carl Meyer added the comment:
On cursory inspection, I agree that this is precisely what the if win32 block
in `virtualenv_embedded/distutils-init.py` is intended to fix, and it seems to
me the correct fix is likely to just make the equivalent fix directly in
distutils: change the
Carl Meyer added the comment:
(Actually, to match virtualenv's fix it should add the paths based on both
exec_prefix and base_exec_prefix, if they are different.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16116
Changes by Jesús Cea Avión j...@jcea.es:
--
hgrepos: +151
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
___
Python-bugs-list mailing
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
___
Python-bugs-list mailing
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file27416/775eeaf1a707.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Christian Heimes added the comment:
Release 0.1 of pysha3 [1] is out. I've tweaked the C module to make it
compatible with Python 2.6 to 3.4. The module and its tests run successfully
under Linux and Windows. So far I've tested Linux X84_64 (2.7, 3.2, 3.3, 3.4),
Windows X86 (2.6, 2.7, 3.2,
Antoine Pitrou added the comment:
Please review Modules/sha3module.c
Can't you post a patch here?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
New submission from David Beazley:
This is somewhat related to an earlier bug report concerning memory views, but
as far as I can tell, ctypes is not encoding the '.format' attribute correctly
in most cases. Consider this example:
First, create a ctypes array:
a = (ctypes.c_double *
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file27417/9030a207c5d6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +stoneleaf
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16131
___
___
Python-bugs-list
Kushal Das added the comment:
Documentation patch to show correct Python version.
--
keywords: +patch
nosy: +kushaldas
Added file: http://bugs.python.org/file27418/issue_16130.patch
___
Python tracker rep...@bugs.python.org
New submission from Nidan:
I recently had lots of the following exception:
error: uncaptured python exception, closing channel
servercore_persistent.ConnectionHandler connected 127.0.0.1:53609 at
0x8d27eec (class 'socket.error':[Errno 11] Resource temporarily unavailable
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16131
___
___
Python-bugs-list
Christian Heimes added the comment:
How about a sandbox repos?
--
hgrepos: +152
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
___
Martin v. Löwis added the comment:
This is not a bug, but by design. See PEP 397 for details.
--
nosy: +loewis
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16131
Changes by Christian Heimes li...@cheimes.de:
--
keywords: +patch
Added file: http://bugs.python.org/file27419/4509ef9b28a0.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
Vinay Sajip added the comment:
Since I expect it may be some time before the next Python release is out, ISTM
a temporary workaround would be to add a line following line 192 of
Lib\distutils\command\build_ext.py, which reads
self.library_dirs.append(os.path.join(sys.exec_prefix,
Antoine Pitrou added the comment:
Good, you can click the create patch button when it's ready :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
Vinay Sajip added the comment:
If you like, you can make the added line conditional on if
sys.base_exec_prefix != sys.prefix, which is the form the actual fix is likely
to take. Thus:
if sys.base_exec_prefix != sys.prefix:
Changes by Kyle Shannon k...@pobox.com:
--
nosy: +kyle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13477
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset b21288c1ec68 by Benjamin Peterson in branch 'default':
3.3 - 3.4 (closes #16130)
http://hg.python.org/cpython/rev/b21288c1ec68
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
status: open - closed
Serhiy Storchaka added the comment:
Here is a patch that makes error message more informative. I also changed
message Expecting object to Expecting value as more conformed to JSON
terminology.
--
nosy: +storchaka
Added file: http://bugs.python.org/file27420/json_errmsg.patch
Richard Oudkerk added the comment:
Attached is a new version of Kristjan's patch with support for managers. (A
threading._RWLockCore object is proxied and wrapped in a local instance of a
subclass of threading.RWLock.)
Also I made multiprocessing.RWLock.__init__() use
Serhiy Storchaka added the comment:
Personally I ran the following command:
find -type f -name '*.py' -exec egrep -n -A1 '\bfor\b.*\bin\b' '{}' + | egrep
-v 'yield +from' | egrep -B1 'yield +\w+(, *\w+)* *(#|$)'
I deliberately missed tests and lib2to3, because that's where the changes
Piotr Dobrogost added the comment:
I read this pep. It doesn't tell why installing in Program Files and adding
install folder to PATH wasn't chosen. Please take a look at the link I gave
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Updated patches will be more complex and will depend on functions added in the
patches for issue15490. So I'm waiting for the final adoption of the patches
for issue15490.
--
___
Python tracker
Richard Oudkerk added the comment:
Fixed patch because I didn't test on Unix...
--
Added file: http://bugs.python.org/file27422/rwlock-sbt.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8800
Changes by Richard Oudkerk shibt...@gmail.com:
Removed file: http://bugs.python.org/file27421/rwlock-sbt.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8800
___
Martin v. Löwis added the comment:
I read the discussion, but couldn't see anything relevant in it. Please be
explicit.
As for the reading the PEP, consider this paragraph in particular:
It may be surprising that the launcher is installed into the
Windows directory, and not the
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +giampaolo.rodola, josiahcarlson, stutzbach
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16133
___
Roundup Robot added the comment:
New changeset 7bd9626d8b4f by Antoine Pitrou in branch '3.3':
Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element
element_factory (fixes a regression in SimpleTAL).
http://hg.python.org/cpython/rev/7bd9626d8b4f
New changeset
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16089
___
Changes by Christian Heimes li...@cheimes.de:
Removed file: http://bugs.python.org/file27419/4509ef9b28a0.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
Antoine Pitrou added the comment:
This change broke test_platform for me:
==
ERROR: test_architecture (test.test_platform.PlatformTest)
--
Traceback (most
Christian Heimes added the comment:
Antoine pointed out that the code contains C++ comments and exports a lot of
functions. The latest patch has all // comments replaced, marks all functions
and globals as static and #includes the C files directly.
--
Changes by Christian Heimes li...@cheimes.de:
Added file: http://bugs.python.org/file27423/79e3fb1838ce.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file27420/json_errmsg.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16009
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file27424/json_errmsg.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16009
___
New submission from Jorge Gomes:
Please add support in urlparse for the family of RTMP schemes:
rtmp
rtmpe
rtmps
rtmpt
I believe these schemes should be added to the following module variables:
uses_relative
uses_netloc
uses_params
uses_query
[essentially, the one where rtsp already is]
The
Eric V. Smith added the comment:
As this is a feature request, it can only be applied to 3.4. I've modified the
versions.
--
components: +Library (Lib)
nosy: +eric.smith
versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python
3.5
Roundup Robot added the comment:
New changeset c519b490f4e4 by Andrew Svetlov in branch 'default':
Issue #15417: Add support for csh and fish in venv activation scripts.
http://hg.python.org/cpython/rev/c519b490f4e4
--
nosy: +python-dev
___
Python
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
assignee: - asvetlov
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15417
Roundup Robot added the comment:
New changeset 83da5729e362 by Andrew Svetlov in branch 'default':
Issue #14446: Remove deprecated tkinter functions
http://hg.python.org/cpython/rev/83da5729e362
--
nosy: +python-dev
___
Python tracker
Andrew Svetlov added the comment:
Thanks to Michael Driscoll.
BTW you have forgotten to remove C functions from module definition in your
patch.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker
Serhiy Storchaka added the comment:
Patch updated. Conformed other error messages. Now expected exceptions raised
for all of the following strings:
''
'['
'[42'
'[42,'
'{'
'{'
'{spam'
'{spam'
'{spam:'
'{spam:42'
'{spam:42,'
--
Added file:
Roundup Robot added the comment:
New changeset f6aaac839d83 by Andrew Svetlov in branch '3.2':
Issue #14997: disable F5 in idle shell window.
http://hg.python.org/cpython/rev/f6aaac839d83
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 52ef53398096 by Andrew Svetlov in branch '3.3':
Merge: Issue #14997: disable F5 in idle shell window.
http://hg.python.org/cpython/rev/52ef53398096
New changeset a40981be184d by Andrew Svetlov in branch 'default':
Merge: Issue #14997: disable F5 in
Andrew Svetlov added the comment:
Fixed. Thanks to Roger Serwy.
--
nosy: +asvetlov
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14997
1 - 100 of 167 matches
Mail list logo