Changes by Florent Xicluna florent.xicl...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13141
___
___
New submission from Ezio Melotti ezio.melo...@gmail.com:
$ cat deleteme.py
from sys import maxint
print 'maxint', maxint
$ 2to3 deleteme.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
Ned Deily n...@acm.org added the comment:
Oleg, thanks. That is consistent with previous reports; so far, this issue has
only been reported with llvm-gcc, not the plain gcc-4.2's shipped in Xcode
prior to 4.2.
--
___
Python tracker
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13252
___
___
Python-bugs-list
Charles-François Natali neolo...@free.fr added the comment:
MoveFileTransacted is only available under Vista or later. You should be able
to use MoveFileEx for the same effect.
Nice.
The solution? Let's remember that metadata changes are atomic. Rename is
such a case.
Hmmm.
Is he
Changes by Petri Lehtinen pe...@digip.org:
--
keywords: +needs review, patch
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13018
___
Changes by Petri Lehtinen pe...@digip.org:
--
keywords: +after moratorium, needs review, patch
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13017
___
Changes by Petri Lehtinen pe...@digip.org:
--
keywords: +needs review, patch
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13016
___
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11440
___
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
The decision should be left to the user.
IMHO, we could disable this automatic fixer.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11440
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11440
___
___
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12501
___
___
Antoine Pitrou pit...@free.fr added the comment:
The solution? Let's remember that metadata changes are atomic. Rename is
such a case.
Hmmm.
Is he referring to the standard rename? The blog doesn't evoke a
specific function, but if it was the case, then why bother at all?
Standard
New submission from marco ghidinelli marc...@gmail.com:
since python 2.7.2
maildir.items() doesn't return anything:
from mailbox import Maildir
x = Maildir('test')
x.items()
[]
untils something was written on the maildir.
x.add('bubu')
'1319447613.M259111P6097Q1.deeppurple'
x.items()
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 221638ba5d2a by Mark Dickinson in branch 'default':
Issue #13248, issue #8540: Remove deprecated Context._clamp attribute from
Decimal module.
http://hg.python.org/cpython/rev/221638ba5d2a
--
nosy:
Mark Dickinson dicki...@gmail.com added the comment:
New changeset 221638ba5d2a by Mark Dickinson in branch 'default':
Issue #13248, issue #8540: Remove deprecated Context._clamp attribute from
Decimal module.
http://hg.python.org/cpython/rev/221638ba5d2a
--
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +r.david.murray
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13254
___
marco ghidinelli marc...@gmail.com added the comment:
i verified now, and the 2.7.1 version is ok, the bug is present since the 2.7.2
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13254
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13254
___
___
Python-bugs-list
marco ghidinelli marc...@gmail.com added the comment:
3.1 is ok
3.2.2 is affected
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13254
___
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
I missed these warnings in C modules.
*array*
fromstring and tostring methods
*io* (like _pyio)
argument max_buffer_size of BufferedWriter and BufferedRWPair
*sys*
sys.getcheckinterval and sys.setcheckinterval
and some
Antoine Pitrou pit...@free.fr added the comment:
*array*
fromstring and tostring methods
I think these ones (and other well-known 2.x methods) should be kept to ease
porting to 3.x.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Nick Coghlan ncogh...@gmail.com added the comment:
OK, looking at the code I realised what you're trying to get at is the idea of
reporting the differences between values in a series, such that:
x = list(accumulate(seq))
assert x == list(accumulate(differences(x)))
I don't think the use cases
Ezio Melotti ezio.melo...@gmail.com added the comment:
PEP 387 explains the rules about backward compatibility. The paragraph could
just link to that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12296
New submission from Florent Xicluna florent.xicl...@gmail.com:
The docstring should say ustr.encode instead of ustr.decode.
The documentation page is correct.
print(array.array.fromunicode.__doc__)
fromunicode(ustr)
Extends this array with data from the unicode string ustr.
The array must be
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
title: wrong docstring for array.fromunicode - wrong docstrings in array module
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 451fa5782145 by Florent Xicluna in branch '3.2':
Issue #13255: wrong docstrings in array module.
http://hg.python.org/cpython/rev/451fa5782145
--
nosy: +python-dev
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
The commit c64216addd7f for issue #6560 added various socket option, but some
of them are not well documented or tested.
Authentication:
* SO_PASSCRED, SO_PEERCRED, LOCAL_PEERCRED
* SCM_RIGHTS, SCM_CREDENTIALS, SCM_CREDS
SCTP:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Another issue: the version added tag is not used, it's not possible to know
that socket.SO_PEERCRED was added in Python 3.3.
--
___
Python tracker rep...@bugs.python.org
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
FYI: In pythonv, the build_scripts functionality provides identical support for
dotted callables to what Éric proposed, while preserving existing functionality
for ordinary script files. Thus:
scripts = demo1
demo2 = amodule.main
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2184df0e0f89 by Nick Coghlan in branch '2.7':
Issue #13237: Rearrange subprocess module documentation to emphasise the
convenience functions and commonly needed arguments
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Re. the launcher changes, those improvements by Guy Rozendorn are welcome. I
noticed some differences from the approach taken by Mark Hammond and Curt
Hagenlocher in the PEP 397 implementation, which I ported to C:
The Ctrl-C is ignored
Nick Coghlan ncogh...@gmail.com added the comment:
Unfortunately, I don't think including implicit shlex.quote() calls is going to
have the effect I was originally looking for:
subprocess.call(du -hs ../py*, shell=True)
593M../py3k
577M../py3k_pristine
479M../python27
300M
Nick Coghlan ncogh...@gmail.com added the comment:
I'm reasonably happy with the changes I just checked in, but rather than doing
multiple forward ports, my plan is to let them settle for a while, update them
based on any feedback I get, then incorporate the final version into the 3.x
series.
R. David Murray rdmur...@bitdance.com added the comment:
I'm assigning this to myself so I don't lose it, but if someone wants to work
on a patch please do. It'll be a bit before I can look at it.
--
assignee: - r.david.murray
priority: normal - high
stage: - needs patch
R. David Murray rdmur...@bitdance.com added the comment:
Since this is a regression I'm upping the priority further to release blocker,
so that we don't put out another release with the regression still in it.
--
nosy: +benjamin.peterson, georg.brandl
priority: high - release blocker
Florent Xicluna florent.xicl...@gmail.com added the comment:
for the RTLD_ constants, refer to issue #13226.
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2470
___
Tobias Oberstein tobias.oberst...@tavendo.de added the comment:
ok, there was feedback on Hybi list:
http://www.ietf.org/mail-archive/web/hybi/current/msg09270.html
1. ws://example.com/something#somewhere
2. ws://example.com/something#somewhere/
3.
Éric Araujo mer...@netwok.org added the comment:
Spamlib-0.1.dist-info is in a directory on sys.path, so the error makes no
sense to me. Can you inspect the content of that directory? (i.e os.listdir
and file contents) Also, if you can interrupt the test to get a Python or pdb
shell, could
Éric Araujo mer...@netwok.org added the comment:
FYI: In pythonv, the build_scripts functionality provides identical support
for dotted
callables to what Éric proposed, while preserving existing functionality for
ordinary script
files.
My current preference is to use only new-style
Antoine Pitrou pit...@free.fr added the comment:
I see that Sun/Oracle Java trusts MoveFileEx to do atomic renames:
290 // atomic case
291 if (atomicMove) {
292 try {
293 MoveFileEx(sourcePath, targetPath,
MOVEFILE_REPLACE_EXISTING);
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3465a9b2d25c by Charles-François Natali in branch '2.7':
Issue #10332: multiprocessing: fix a race condition when a Pool is closed
http://hg.python.org/cpython/rev/3465a9b2d25c
New changeset 52c98a729a71 by
Sjoerd de Vries sjdv1...@gmail.com added the comment:
Hi Éric,
There you go, adapted from http://effbot.org/librarybook/py-compile.htm :
# File: py-compile-example-1.py
import py_compile
# explicitly compile this module
Charles-François Natali neolo...@free.fr added the comment:
While a 20 second timeout may make sense for *unresponsive* servers,
ECONNREFUSED probably indicates that the server is not listening on this
port, so
hammering it with 1,999 more connection attempts isn't going to help.
That's
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
We’ll have to think about the shebang munging and decide if we keep it. I
think
recommending that people use “/usr/bin/env python” (or python3) and not doing
anything to the shebang may be the best thing.
What about Windows
Ariel arielb...@walla.com added the comment:
Excuse me for budging in, I was having the same problem (both python 3.2 and
2.7, on both win XP and 7) without knowing the file extention is the cause.
Why doesn't IDLE editor save files with the .py extention unless specificly
ordered to? The
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - docs@python
components: +Documentation, Tests
nosy: +docs@python
stage: - needs patch
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13256
Charles-François Natali neolo...@free.fr added the comment:
James, thanks for the report!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5d7164febff1 by Petri Lehtinen in branch '2.7':
Issue #13018: Fix reference leaks in error paths in dictobject.c.
http://hg.python.org/cpython/rev/5d7164febff1
New changeset df24a8b57148 by Petri Lehtinen in branch
Petri Lehtinen pe...@digip.org added the comment:
Thanks for the patch, fixed.
--
keywords: -needs review
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Barry A. Warsaw ba...@python.org added the comment:
Still investigating, but FTR, this isn't technically an Ubuntu issue as much as
it is a Debian issue (and thus inherited by Ubuntu). I can reproduce the
failure in Python 3.3 on Debian Wheezy.
--
Changes by Barry A. Warsaw ba...@python.org:
--
title: test_ssl failures on Ubuntu 11.10 - test_ssl failures on Debian/Ubuntu
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13218
___
New submission from Brett Cannon br...@python.org:
Importlib uses the errno module explicitly for properly checking OSError for
EEXIST and IOError for EACCES. Thanks to PEP 3151, however, neither check is
needed since those exceptions correspond to FileExistsError and
PermissionError,
Francisco Martín Brugué franci...@email.de added the comment:
Hi Eli,
I cannot find the file/Distro:
find / -name *'dist-info' 2 /dev/null
/home/ci/cpython/Lib/packaging/tests/fake_dists/grammar-1.0a4.dist-info
/home/ci/cpython/Lib/packaging/tests/fake_dists/towel_stuff-0.1.dist-info
Francisco Martín Brugué franci...@email.de added the comment:
The changeset was:
$ hg tip
changeset: 73075:d4839fea4a5a
[...]
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13193
___
New submission from Florent Xicluna florent.xicl...@gmail.com:
Now that callable() is back in 3.2, we may replace hasattr(obj, '__call__')
with callable(obj).
The built-in function is easier to read and gives better performance than
attribute lookup.
$ ./python -m timeit hasattr(None,
Florent Xicluna florent.xicl...@gmail.com added the comment:
Proposed patch.
--
keywords: +patch
Added file: http://bugs.python.org/file23510/issue13258_callable.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13258
Yuval Greenfield ubershme...@gmail.com added the comment:
An example error with abspath and bytes input:
os.path.abspath('.')
'C:\\Users\\yuv\\Desktop\\YuvDesktop\\\u05d0\u05d1\u05d2\u05d3\u05d4\u05d5'
os.path.abspath(b'.')
b'C:\\Users\\yuv\\Desktop\\YuvDesktop\\??'
Antoine Pitrou pit...@free.fr added the comment:
For packaging I'm not sure it's worth complicating backporting.
--
nosy: +eric.araujo, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13258
Florent Xicluna florent.xicl...@gmail.com added the comment:
Updated with a special note for packaging.
--
Added file: http://bugs.python.org/file23511/issue13258_callable_v2.diff
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
I am guessing that because the extension could be either .py or .pyw, the
initial save does not add either but forces the user to type one or the other.
I find this annoying too, so I am thinking about separating the choices and see
if .py,
STINNER Victor victor.stin...@haypocalc.com added the comment:
callable() is not just faster, it's also more correct: hasattr(obj,
__call__) doesn't call base classes. See callable() of the six module:
def callable(obj):
return any(__call__ in klass.__dict__ for klass in type(obj).__mro__)
Florent Xicluna florent.xicl...@gmail.com added the comment:
We have so many alternatives, it's funny ...
def callable(obj):
return hasattr(obj, '__call__') or hasattr(obj, '__bases__')
def callable(obj):
return isinstance(obj, collections.abc.Callable)
def callable(obj):
return
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8036
___
___
Jesús Cea Avión j...@jcea.es added the comment:
Is it actually appropiate to commit this to 3.2?. I am neutral to it, just
asking.
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13258
STINNER Victor victor.stin...@haypocalc.com added the comment:
@nvetoshkin: Can you please also write tests (in Lib/test/test_os.py) for your
patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8036
STINNER Victor victor.stin...@haypocalc.com added the comment:
Is it actually appropiate to commit this to 3.2?
If it fixes a bug, the fix should be backported to 3.2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13258
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4bb1dc4e2cec by Vinay Sajip in branch '2.7':
Closes #13232: Handle multiple encodings in exception logging.
http://hg.python.org/cpython/rev/4bb1dc4e2cec
--
nosy: +python-dev
resolution: - fixed
stage: test
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Spamlib-0.1.dist-info is in a directory on sys.path, so the error makes no
sense to me. Can you inspect the content of that directory? (i.e os.listdir
and file contents) Also, if you can interrupt the test to get a Python or
pdb
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: docs@python - ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13237
___
___
New submission from Arkadiusz Wahlig arkadiusz.wah...@gmail.com:
It looks like Python 3 supports the __bytes__ magic method (called by
bytes(obj)). However, it's not documented anywhere.
Also, I could not find any reference to BDFL accepting it but it looks like it
got in anyway.
Here are
Francisco Martín Brugué franci...@email.de added the comment:
Where should be the distro?
You won't find it in the hg repository - it gets created by the test, and
then deleted afterwards.
Thanks for the info
The changeset was:
$ hg tip
changeset: 73075:d4839fea4a5a
[...]
That's
Antoine Pitrou pit...@free.fr added the comment:
Indeed. I didn't even remember we had that. There are tests, however, in
Lib/test/test_bytes.py.
This was added in issue #2415, by the way.
--
nosy: +pitrou
stage: - needs patch
versions: -Python 3.1, Python 3.4
Barry A. Warsaw ba...@python.org added the comment:
TL;DR: Let's rip out the false assumption that an SSLv23 client cannot connect
to an SSLv3/TLSv1 server.
I now believe this is simply an erroneous assumption on the part of the Python
test suite, namely that SSLv23 method clients cannot
Santoso Wijaya santoso.wij...@gmail.com added the comment:
I'd also like to point out that Unicode path is handled correctly in both 2.7.x
and 3.x:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
on win
32
Type help, copyright, credits or license for more
Santoso Wijaya santoso.wij...@gmail.com added the comment:
There are also several other edge cases to be taken care of:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
on win
32
Type help, copyright, credits or license for more information.
import os
New submission from Alexander Myodov amyo...@gmail.com:
I was recently trying to cross-compile several extensions (host: Linux, target:
Win32) using mingw-gcc, and noticed that there is quite a little amount of
changes needed to distutils code to at least make proper win32-compabible
modules.
Santoso Wijaya santoso.wij...@gmail.com added the comment:
Additionally, there might be issues in other APIs when handling with extended
path lengths:
D:\Temp\tempdirdir
Volume in drive D is Data
Volume Serial Number is 7E3D-EC81
Directory of D:\Temp\tempdir
10/24/2011 04:22 PMDIR
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 199d9e3fe0ce by Benjamin Peterson in branch '3.2':
document __bytes__ special method (closes #13259)
http://hg.python.org/cpython/rev/199d9e3fe0ce
New changeset 4128de054937 by Benjamin Peterson in branch 'default':
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3982
___
___
Python-bugs-list
80 matches
Mail list logo