Yoav Weiss yee...@gmail.com added the comment:
What is the reason that the currently submitted patch is not good enough and
current stage is needs patch?
The current patch seem to solve this issue, which is a very common one when
dealing with gzip files coming from the Internet.
In any case,
Ezio Melotti ezio.melo...@gmail.com added the comment:
So to summarize a bit, there are different possible level of strictness:
1) all the possible encodable values, including the ones 10;
2) values in range 0..10;
3) values in range 0..10 except surrogates (aka scalar values);
Sébastien Sablé sa...@users.sourceforge.net added the comment:
I encountered the same problem while compiling the psutil package.
I used Python 3.2.2 that I compiled myself using Visual Studio 2010 SP1 in
Debug mode by following the PCBuild/readme.txt documentation.
I could not compile psutil
New submission from Karsten Wolf karste...@web.de:
In the current Python-2.7.2.tar.bz2 archive ./Lib/plat-mac/findertools.py in
function comment on line 131 the call to FSNewAliasMinimal is misstyped.
current version:
object_alias = object.FSNewAliasMonimal()
corrected version
New submission from Stefan Krah stefan-use...@bytereef.org:
I'm getting random segfaults in `make buildbottest` on qemu-debian-arm:
Linux-2.6.26-2-versatile-armv5tejl-with-debian-5.0.8 little-endian
The segfaults occurred in test_robotparser and test_nntplib and
couldn't be reproduced when
Ezio Melotti ezio.melo...@gmail.com added the comment:
This doesn't seem related to unittest:
class MyTest:
... def test_a(self):
... b = 1
... exec(compile(a = b + 1, '', 'single'))
... assert a == 2
...
t = MyTest()
t.test_a()
Traceback (most recent call last):
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5845
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12910
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12913
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12902
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12915
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12890
___
___
Benjamin Peterson benja...@python.org added the comment:
You're invoking undefined behavior by modifying function locals in exec().
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Stefan Krah stefan-use...@bytereef.org:
Added file: http://bugs.python.org/file23119/51cedae5acfc.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10181
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Here's a completely restructured memoryview implementation that I believe
is quite robust. Both memoryobject.c (the parts I worked on, which is 91%)
and _testbuffer.c have 100% code coverage, including all error conditions [1].
Stefan Krah stefan-use...@bytereef.org added the comment:
Kristján, could you check out the new implementation over at #10181?
I have trouble reproducing a big speed difference between bytearray
and memoryview (Linux, 64-bit). Here are the timings I get for the
current and the new version:
Stefan Krah stefan-use...@bytereef.org added the comment:
The cast method is completely implemented over at #10181.
--
dependencies: +Problems with Py_buffer management in memoryobject.c (and
elsewhere?)
___
Python tracker rep...@bugs.python.org
Changes by Stefan Krah stefan-use...@bytereef.org:
--
dependencies: +Problems with Py_buffer management in memoryobject.c (and
elsewhere?)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10227
Stefan Krah stefan-use...@bytereef.org added the comment:
is over 1000x slower that the optimized versions of memoryview.
Oh dear, scratch that. Lets make that 15x. ;)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10181
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
I'm afraid I had put this matter _far_ out of my head :) Seeing the amount of
discussion on that other defect (stuff I had already come across and scrathced
my head over) I think there is a lot of catching up that I'd need to do
Stefan Krah stefan-use...@bytereef.org added the comment:
I see. I thought this was mainly about memoryview performance, so
I did not specifically look at bytearray. The poor performance seems
to be Windows specific:
C:\Users\stefan\hg\pep-3118\PCbuildamd64\python.exe -m timeit -n 1000 -s
Changes by Andreas Stührk andy-pyt...@hammerhartes.de:
--
nosy: +Trundle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12915
___
___
Stefan Krah stefan-use...@bytereef.org added the comment:
With Stefan Behnel's slice-object-cache.patch, I get this (PEP-3118 branch):
Linux: bytes: 0.097 usec bytearray: 0.127 usec memoryview: 0.12 usec
Windows: bytes: 0.11 usec bytearray: 0,184 usec memoryview: 0.139 usec
On
Changes by Sebastian Ramacher sebasti...@users.sourceforge.net:
--
nosy: +sebastinas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12844
___
___
New submission from Brett Cannon br...@python.org:
Distutils2/packaging does not support all the flags provided in distutils
(e.g., --user, --prefix, etc.). It would be good to provide the same level of
install control (or at least support the --user flag).
--
assignee: tarek
Terry J. Reedy tjre...@udel.edu added the comment:
On 9/8/2011 4:32 AM, Ezio Melotti wrote:
So to summarize a bit, there are different possible level of strictness:
1) all the possible encodable values, including the ones10;
2) values in range 0..10;
3) values in range
New submission from zvin svinartchouk.ale...@free.fr:
The html.escape docstring says:
Replace special characters , and to HTML-safe sequences.
If the optional flag quote is true (the default), the quotation mark
character () is also translated.
But if you set the optional flag quote to
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, sandro.tosi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12938
___
___
Changes by zvin svinartchouk.ale...@free.fr:
--
title: html.escape does not mention single quotes (') - html.escape docstring
does not mention single quotes (')
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12938
zvin svinartchouk.ale...@free.fr added the comment:
Or maybe instead of updating the docstring, we should remove the single quote
(') from _escape_map_full.
cgi.escape did not escaped the single quotes (') and if you use it now, it
says:
PendingDeprecationWarning: cgi.escape is deprecated,
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12937
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
timespec is just a structure of two integers, so we should expose it as a
simple and efficient Python tuple: (int, int). We can simply expose this type
in os.stat, or we can do better by providing an optional callback to convert
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
I suggest to have low-level, POSIX-compatible, (int, int)-based interface in os
module and add high-level, decimal.Decimal-based interface in shutil module.
--
___
Python
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also issue #12760 (Add create mode to open).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12105
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12760
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
On Windows, Python uses the POSIX API (file descriptors), instead of the native
API (file handles). Some features cannot be used using the POSIX API, like
setting security attributes. It would be nice to have a io.FileIO using
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also issue #1602: a prototype of a console object has been proposed to use
the native Windows console API, instead of the POSIX API (read from fd 0, write
to fd 1 or 2). The prototype is implemented in Python using ctypes.
STINNER Victor victor.stin...@haypocalc.com added the comment:
Why not to use CreateFile() on Windows platform?
Good idea! Please open a separate issue for it.
Done, issue #12939.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
It looks like Python cannot do much to workaround OpenBSD issues. IMO the best
fix is just to skip these tests on OpenBSD, until OpenBSD handles correctly
signals in programs linked to pthread. The same fix can be used for #12903.
STINNER Victor victor.stin...@haypocalc.com added the comment:
+if have_long_long:
+class LongLongTest(SignedNumberTest):
+...
It is maybe better to use @unittest.skipIf(not have_long_long, 'need long long
support'). Except of this nit, the patch looks correct.
--
nosy:
New submission from Tim Chase python.l...@tim.thechases.com:
The Turtle example for the cmd module as documented at
http://docs.python.org/py3k/library/cmd.html#cmd-example
In the left() method, it calls turtle.right() instead of turtle.left(). Easy
fix: /def left/+2s/left/right/
Likely
New submission from John Feuerstein j...@feurix.com:
This patch against current hg tip (72314:92842e347d98) adds random.pop():
pop(self, seq) method of Random instance
Remove and return a random element from a non-empty sequence.
Includes test case.
--
components: Library
Tim Chase python.l...@tim.thechases.com added the comment:
(duh, sorry, that's the do_left method, not the left method)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12940
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, sandro.tosi
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12940
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, rhettinger
stage: - patch review
versions: +Python 3.3 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12941
New submission from Aaron Meurer asmeu...@gmail.com:
As suggested in this thread in the Python porting list
(http://mail.python.org/pipermail/python-porting/2011-September/000231.html),
it would be nice if 2to3 had a fixer that translated shebang lines from
#! /usr/bin/env python
to
#!
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 1de6619733d9 by Larry Hastings in branch 'default':
Issue #12904: os.utime, os.futimes, os.lutimes, and os.futimesat now write
http://hg.python.org/cpython/rev/1de6619733d9
--
nosy: +python-dev
Changes by Meador Inge mead...@gmail.com:
Added file: http://bugs.python.org/file23121/issue-1172711.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1172711
___
Meador Inge mead...@gmail.com added the comment:
Victor, I like the decorator approach much better. Thanks. Attached is a new
patch with that update.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1172711
New submission from Meador Inge mead...@gmail.com:
In 2.x, 'python -m tokenize' worked great:
[meadori@motherbrain cpython]$ python2.7 -m tokenize test.py
1,0-1,5:NAME'print'
1,6-1,21: STRING 'Hello, World!'
1,21-1,22: NEWLINE '\n'
2,0-2,0:ENDMARKER ''
In
Julian Berman julian+python@grayvines.com added the comment:
Considering this is pretty easily written more or less as
r = range(20)
r.pop(random.randrange(0, len(r)))
is it really worth adding?
--
nosy: +Julian
___
Python tracker
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12942
___
___
52 matches
Mail list logo