Georg Brandl ge...@python.org added the comment:
In 2.x, the method is really called next().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8288
___
Eric Smith e...@trueblade.com added the comment:
Hi.
Please don't use the bug tracker to ask Python questions. You've already been
asked twice to refer to
http://www.python.org/about/help/#got-a-python-problem-or-question . Please
read and follow those instructions. Your questions have not
Changes by Georg Brandl ge...@python.org:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1086642
___
___
Changes by Georg Brandl ge...@python.org:
--
status: open - languishing
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1542308
___
___
Georg Brandl ge...@python.org added the comment:
PEP 101 is up to date. I don't know about 102, it should probably be
withdrawn, as 101 has all the info.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Georg Brandl ge...@python.org:
--
assignee: - georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1944
___
___
Python-bugs-list
Ray.Allen ysj@gmail.com added the comment:
Yes, I agree with this feature request. And also the super(Class, obj) call
should return a reasonable AttributeError message when the requested attribute
is not found in one of Class's base classes, not just 'super' object has no
attribute
STINNER Victor victor.stin...@haypocalc.com added the comment:
Commited: r79654 (trunk), r79655 (2.7), blocked in py3k and 3.1 (see #8215 and
#2322)
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Ray.Allen ysj@gmail.com added the comment:
In fact, there are only three types of tp_getattro functions:
1.For type objects, it is type_getattro(), in case of AttributeError, this
function give the message format:
type object %(type)s has no attribute %(attr)s
2.For super
Charles-Francois Natali neolo...@free.fr added the comment:
In the test script, simply changing
def emit(f, data=snips):
for datum in data:
f.write(datum)
to
def gemit(f, data=snips):
datas = ''.join(data)
f.write(datas)
improves direct gzip performance from
New submission from Kristján Valur Jónsson krist...@ccpgames.com:
This patch does several things:
1) Creates a separate lock type PyThread_type_gil and locking functions for
that. This allows tweaking of the GIL without affecting regular lock behaviour.
2) Creates a uniform implementation of
Martin v. Löwis mar...@v.loewis.de added the comment:
I think this is too late for 2.7. 2.7b1 will be released RSN, and we should not
implement such a change after the first beta release.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
I think in both cases the error text should state not just what module was
being imported but also what module was being imported from
FYI, I filed the following report partly in response to some of the comments I
made above:
Martin v. Löwis mar...@v.loewis.de added the comment:
I still get failures, after applying file16727. I'm attaching the complete
regrtest output.
--
versions: +Python 2.7
Added file: http://bugs.python.org/file16745/failures
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Merged to py3k in r79670.
--
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8294
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Ezio Melotti wrote:
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here's a new patch. Should be complete but I want to test it some more before
committing.
I decided to follow RFC 3629, putting 0 instead of 5/6 for bytes in
Mark Dickinson dicki...@gmail.com added the comment:
r79588 and r79589 were merged to py3k in r79668.
--
resolution: invalid - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Closing this; it's too late for Python 2.7.
--
status: open - closed
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1023290
Mark Dickinson dicki...@gmail.com added the comment:
Merged to py3k in r79668.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2531
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Updating the ticket title to what we actually have in SVN (I had renamed the
APIs to mark them as private to the interpreter some time ago).
--
title: Remove PyUnicode_AsString(), rework PyUnicode_AsStringAndSize(), add
Mark Dickinson dicki...@gmail.com added the comment:
Closing this; a separate feature request should be opened for the idea of
adding __index__ awareness to struct.pack in py3k.
--
resolution: - fixed
status: open - closed
___
Python tracker
New submission from Mark Dickinson dicki...@gmail.com:
In Python 2.7, struct.pack with an integer format can handle non-integers that
provide an __int__ method (although this *does* raise a DeprecationWarning).
Python 2.7a4+ (trunk:79659:79661, Apr 3 2010, 11:28:19)
[GCC 4.2.1 (Apple Inc.
Changes by Mark Dickinson dicki...@gmail.com:
--
components: +Extension Modules
stage: - test needed
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8300
___
Mark Dickinson dicki...@gmail.com added the comment:
I've opened issue 8300 for adding the __index__ handling.
--
superseder: - Allow struct.pack to handle objects with an __index__ method.
___
Python tracker rep...@bugs.python.org
Michel Samia m.sa...@seznam.cz added the comment:
Could you please apply that patch? People are starting to use non-standard
libraries to process xml files because of this issue
for example this man is using lxml or pyxml:
David Beazley d...@dabeaz.com added the comment:
Without looking at this patch, I think it would wise to proceed with caution on
incorporating any kind of GIL patch into 2.X. If there is anything to be taken
away from my own working studying the GIL, it's that the problem is far more
tricky
Lukas Lueg knabberknusperh...@yahoo.de added the comment:
agreed
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1501108
___
___
Python-bugs-list
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Martin: Well, this patch was originally conceived more as a demonstration of
the GIL problem and an alternative fix proposal.
However, it is possible to configure it so that there is no change from
existing functionality, simply
Marc-Andre Lemburg m...@egenix.com added the comment:
A.M. Kuchling wrote:
New submission from A.M. Kuchling li...@amk.ca:
While looking at #4440, I grepped for similar problems and found one in
platform.py in the following line:
if no_os_uname or not filter(None, (system, node,
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Antoine: Please take a look, the change is really simple, particularly the
ROUNDROBIN_GIL variant which fixes the originally observed problem.
the GIL is still a lock, implemented using a mutex and a semaphore. It is
modified to
Antoine Pitrou pit...@free.fr added the comment:
Additionally, since issue7471 was fixed, you should be able to wrap a GzipFile
in a Buffered{Reader,Writer} object for faster buffering.
--
resolution: - out of date
status: open - closed
___
Python
David Beazley d...@dabeaz.com added the comment:
I'm not sure where you're getting your information, but the original GIL
problem *DEFINITELY* exists on multicore Windows machines. I've had numerous
participants try it in training classes and workshops they've all observed
severely degraded
David Beazley d...@dabeaz.com added the comment:
Just ran the CPU-bound GIL test on my wife's dual core Windows Vista machine.
The code runs twice as slow using two threads as it does using no threads
(original observed behavior in my GIL talk).
--
Antoine Pitrou pit...@free.fr added the comment:
Kristjan, I agree with Martin, it's probably too late to make such
changes for 2.7.
Additionally, your round-robin scheme only seems round-robin when
there are two threads competing. Otherwise, you could have three threads
A, B and C, and the GIL
Mark Dickinson dicki...@gmail.com added the comment:
Here's a patch for trunk. It combines the docs and tests from Meador Inge's
patch in issue 1530559 with a C-level change to get_pylong in Modules/struct.c.
--
keywords: +patch
versions: +Python 2.7
Added file:
Mark Dickinson dicki...@gmail.com added the comment:
Adding Meador Inge to nosy.
--
nosy: +minge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8300
___
New submission from Michael Foord mich...@voidspace.org.uk:
Putting functions (rather than TestCase instances) directly in TestSuites was
never officially supported but it used to work:
from unittest import TestSuite, TestResult
def f(): pass
...
s = TestSuite()
s.addTest(f)
New submission from Michael Foord mich...@voidspace.org.uk:
SkipTest exception in setUpClass or setUpModule is marked as an error rather
than a skip.
--
assignee: michael.foord
messages: 102260
nosy: michael.foord
severity: normal
stage: needs patch
status: open
title: SkipTest
Charles-Francois Natali neolo...@free.fr added the comment:
$ cat /tmp/test.py
import socket
SIZE = 10L
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
try:
s.recv(SIZE)
finally:
s.close()
$ python /tmp/test.py
Traceback (most recent call last):
File /tmp/test.py, line
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Removed file: http://bugs.python.org/file16519/python-distutils-C++.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1222585
Mark Dickinson dicki...@gmail.com added the comment:
That patch was a bit hasty in many respects; here's a better one.
For 2.7, the scheme is as follows: when packing a non-integer with an integer
format:
(1) First __index__ is tried
(2) If the __index__ method doesn't exist, or the call to
Changes by Mark Dickinson dicki...@gmail.com:
--
priority: - normal
stage: test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8300
___
Mark Dickinson dicki...@gmail.com added the comment:
Committed this patch to trunk in r79674. Will forward port to py3k.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8300
___
Andy Buckley a...@insectnation.org added the comment:
That sort of idea, yes: just a wild thought, but it would be really nice if
this was available so that in combination with a standard bash/zsh function,
getting basic automatic command completion for scripts built with optparse (and
any
STINNER Victor victor.stin...@haypocalc.com added the comment:
I also found out that, according to RFC 3629, surrogates
are considered invalid and they can't be encoded/decoded,
but the UTF-8 codec actually does it.
Python2 does, but Python3 raises an error.
Python 2.7a4+ (trunk:79675,
STINNER Victor victor.stin...@haypocalc.com added the comment:
The PEP 3118 describes some points about discontigious buffers, but there is no
module nor third party libraries supporting them.
PIL 1.1.7 (the last version) doesn't support the buffer API (an image can not
be exported as a
New submission from Michael Foord mich...@voidspace.org.uk:
The usage messages for unittest from the command line are slightly incorrect.
They show: Usage: unittest [options] when it should be Usage: python -m
unittest [options] (or even python -m unittest discover).
--
assignee:
Michael Foord mich...@voidspace.org.uk added the comment:
In TestProgram.usageExit the command name comes from:
self.progName = os.path.basename(argv[0])
For test discovery the usage message is auto-generated by optparse. Probably
using sys.argv[0].
--
New submission from AndiDog andi...@web.de:
There is inconsistent behavior in time.strftime, comparing Python 2.6 and 3.1.
In 3.1, non-ASCII Unicode characters seem to get dropped whereas in 2.6 you can
keep them using the necessary Unicode-to-UTF8 workaround.
This should be fixed if it isn't
New submission from STINNER Victor victor.stin...@haypocalc.com:
memory_item() function creates a new memoryview object if ndim is different
than 1. Example with numpy:
from numpy import array
y=array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])
y.shape = 3,4
STINNER Victor victor.stin...@haypocalc.com added the comment:
Full example (using numpy) crashing Python: memoryview_crash.py
--
Added file: http://bugs.python.org/file16749/memoryview_crash.py
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
components: +Interpreter Core
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8305
___
Changes by Benjamin Peterson benja...@python.org:
--
priority: release blocker - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7723
___
Benjamin Peterson benja...@python.org added the comment:
I think this small change can slip in after beta.
--
nosy: +benjamin.peterson
priority: release blocker - deferred blocker
___
Python tracker rep...@bugs.python.org
Benjamin Peterson benja...@python.org added the comment:
Lowering priority.
--
priority: release blocker - critical
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7319
___
Changes by Benjamin Peterson benja...@python.org:
--
priority: release blocker - critical
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Benjamin Peterson benja...@python.org added the comment:
Lowering priority.
--
nosy: +benjamin.peterson
priority: release blocker - critical
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7755
Martin v. Löwis mar...@v.loewis.de added the comment:
I think Installer has features to remove registry keys with no subkeys; we
probably would need to declare that we create these keys, and then Installer
might remove them automatically.
--
___
Dave Malcolm dmalc...@redhat.com added the comment:
It looks like all of the failures were due to gdb.Frame not having a function
method.
I did some digging, and it appears that this attribute may not yet be in the
upstream version of gdb.
The gdb/python integration was largely implemented
STINNER Victor victor.stin...@haypocalc.com added the comment:
I can try to cook up a patch fixing this.
Did you wrote something? I don't see any patch attached to this issue :-/
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
According to #2394, the implementation of the new buffer API is not complete.
--
nosy: +teoliphant
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8305
Martin v. Löwis mar...@v.loewis.de added the comment:
What is the output of gdb --version on this machine?
GNU gdb (GDB) 7.0.1-debian
This GDB was configured as x86_64-linux-gnu.
The debian package is 7.0.1-2
$ gdb --batch --eval-command python print gdb.Frame.function
--eval-command
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
title: 2to3 generates malformed diffs - 2to3 -j 4 generates malformed diffs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6409
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
memoryview() function is not documented in library/functions.rst, whereas it's
a builtin function.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7696
Changes by Eric Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8304
___
___
Python-bugs-list mailing
Filip Gruszczyński grusz...@gmail.com added the comment:
I'll take a look at optparse code and try to provide a patch. But first
holidays must finish and I must come back to ma usual residence, where I have
programming environment.
--
___
Python
Changes by Benjamin Peterson benja...@python.org:
--
priority: high - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8108
___
___
New submission from Benjamin Peterson benja...@python.org:
These coercions shouldn't be allowed:
import ctypes
buf = ctypes.create_string_buffer(hi)
buf.value
b'hi'
buf.value = 23
buf.value
b'23'
--
assignee: theller
components: ctypes
messages: 102282
nosy: benjamin.peterson,
Benjamin Peterson benja...@python.org added the comment:
Could I request that the python-gdb.py script not be put in the top level
directory? It's a little annoying to have another executable script starting
with python when you're trying to test the python executable.
--
nosy:
Martin v. Löwis mar...@v.loewis.de added the comment:
That is tricky to do. gdb will consider it automatically only if it is called
exename-gdb.py.
I agree that there should be a better solution, though. David, is it possible
to somehow hook this into .gdbinit, with an arbitrary path?
Jeffrey Yasskin jyass...@gmail.com added the comment:
http://sourceware.org/gdb/current/onlinedocs/gdb/Auto_002dloading.html says If
this file exists and is readable, gdb will evaluate it as a Python script. So
maybe it doesn't need to be executable?
--
Benjamin Peterson benja...@python.org added the comment:
2010/4/3 Martin v. Löwis rep...@bugs.python.org:
Benjamin, would a .gdbinit in the top-level build directory still be annoying?
That would be fine with me.
--
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
I do know something about web development, so I did a more extensive edit. I'm
not saying I've brought it completely up to date or fixed any inaccuracies, but
I did change the tone here and there, tightened up a bunch of the language,
Martin v. Löwis mar...@v.loewis.de added the comment:
I have now changed Makefile.pre.in to not install python-gdb.py as a script
anymore; this seems to work fine. People will still need to remove there
existing python-gdb.py (or make clean) to see this change.
--
Mark Dickinson dicki...@gmail.com added the comment:
This still seems to be an issue for OS X. With the current trunk (r79716), I
get:
Mark-Dickinsons-MacBook-Pro:trunk dickinsm$ ./python.exe -3
./Lib/test/regrtest.py test_macostools test_py3kwarn
test_macostools
Torsten Landschoff t.landsch...@gmx.net added the comment:
Silly question, I know, but why isn't the GIL just implemented as a lock of the
host operating system? After all, we want mutual exclusion, I don't see why
condition variables are required for this.
I have to admin that I did not look
David Beazley d...@dabeaz.com added the comment:
It's not a simple mutex because if you did that, you would have performance
problems much worse than those described in issue 7946.
http://bugs.python.org/issue7946
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
I don't think this should be a release blocker for the beta, although I agree
it should be one for the final release (and RCs).
By the way, it doesn't affect maintenance branches.
--
versions: -Python 2.6, Python 3.1
Antoine Pitrou pit...@free.fr added the comment:
Giampaolo, which call exactly triggers the error: [Errno 0] Error?
It doesn't seem it can be _sslobj.shutdown itself.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8108
Changes by Benjamin Peterson benja...@python.org:
--
priority: release blocker - critical
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8108
___
New submission from Mark Dickinson dicki...@gmail.com:
I'm seeing a very peculiar test_pep263 failure when doing 'make test' on OS X
10.6.3. It's enough to run test___all__ and test_pep263, in that order:
Mark-Dickinsons-MacBook-Pro:trunk dickinsm$ ./python.exe -Wd -3 -E -tt
Mark Dickinson dicki...@gmail.com added the comment:
That should be NameError in the last line of the previous message, not
TypeError.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8307
Antoine Pitrou pit...@free.fr added the comment:
This is quite obscure because there's no definition of the buffer
protocol.
You can find it at http://www.python.org/dev/peps/pep-3118/#id5 (assuming it is
not outdated)
the memoryview.suboffsets attribute is not documented on the 6.10
Antoine Pitrou pit...@free.fr added the comment:
memoryview() function is not documented in library/functions.rst
You should look more carefully...
See http://docs.python.org/dev/library/functions.html#max
(I don't know why it doesn't have its own anchor, though)
--
Ezio Melotti ezio.melo...@gmail.com added the comment:
This seems to be fixed now, on both 3.1 and 3.2.
Can you try with 3.1.2 and see if it works?
What operating system are you using?
--
nosy: +ezio.melotti
priority: - normal
status: open - pending
versions: -Python 2.6
Ned Deily n...@acm.org added the comment:
Duplicated in Issue8307
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8208
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
resolution: - duplicate
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8208
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
See also #8208.
--
components: +Tests
nosy: +ezio.melotti, haypo, l0nwlf, ned.deily
priority: - normal
stage: - needs patch
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
After some more digging, it looks as though this is due to the Tkinter import
(that ends up happening as a result of test___all__) changing the locale(?),
and in particular the meaning of isalpha:
Python 2.7a4+ (trunk:79716, Apr 3 2010,
Mark Dickinson dicki...@gmail.com added the comment:
(Is there some way that I can see the locale change more explicitly from
Python?)
Found it. :)
locale.nl_langinfo(locale.CODESET)
'US-ASCII'
[40683 refs]
import Tkinter
[56953 refs]
locale.nl_langinfo(locale.CODESET)
'UTF-8'
[56953
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
priority: - low
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8297
___
Ned Deily n...@acm.org added the comment:
Or this:
Python 2.7a4+ (trunk, Apr 3 2010, 15:18:51)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type help, copyright, credits or license for more information.
import locale
locale.getlocale()
(None, None)
import Tkinter
Mark Dickinson dicki...@gmail.com added the comment:
I realize that the above doesn't really explain why the NameError is occurring:
Python's token recognition algorithm, in tok_get in tokenizer.c, uses isalpha,
which is locale-aware. In particular, it seems that chr(255) is considered
Mark Dickinson dicki...@gmail.com added the comment:
Ned: yes, that works too. Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8307
___
R. David Murray rdmur...@bitdance.com added the comment:
Please target argparse rather than optparse, or better yet in addition to
optparse. And I'm +1 for making it easier to write completion scripts.
--
nosy: +bethard, r.david.murray
___
Python
New submission from John Machin sjmac...@users.sourceforge.net:
According to the following references, the bytes 80, A0, FD, FE, and FF are not
defined in cp932:
http://msdn.microsoft.com/en-au/goglobal/cc305152.aspx
http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
priority: - normal
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8308
___
Ned Deily n...@acm.org added the comment:
Verified that r79725 fix to tokenizer.c prevents the original test failure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8307
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Actually the bug seems related to Windows.
--
components: +Windows
nosy: +brian.curtin
status: pending - open
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
Meador Inge mead...@gmail.com added the comment:
I may be missing something subtle, but how can 'PyNumber_Index(v) != NULL'
*and* '!PyInt_Check(v) !PyLong_Check(v)' both be satisfied in the
'get_pylong' mods? It seems to me that 'PyNumber_Index' only returns non-NULL
when the object being
1 - 100 of 111 matches
Mail list logo