Nick Coghlan [EMAIL PROTECTED] added the comment:
I'd still be inclined to put a @wraps(meth) decorator on the definition
of the wrapper function (and then override to the supplied name
afterwards) - remember that functools.wraps is a decorator factory
rather than a decorator itself.
That
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Added math.factorial() in r64050.
--
resolution: - accepted
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2138
___
New submission from Bohdan Vlasyuk [EMAIL PROTECTED]:
In urllib2.AbstractHTTPHandler.do_open, the following like creates a
circular link:
r.recv = r.read
[r.read is a bound method, so it contains a reference to 'r'. Therefore,
r now refers to itself.]
If the GC is disabled or doesn't
New submission from vincent.chute [EMAIL PROTECTED]:
import locale
locale.setlocale( locale.LC_ALL, u'ja_JP.utf8')
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python2.5/locale.py, line 475, in setlocale
locale = normalize(_build_localename(locale))
vincent.chute [EMAIL PROTECTED] added the comment:
I have confirmed this exists on trunk
http://svn.python.org/view/python/trunk/Lib/locale.py?rev=63824view=markup
(63824 is the latest)
where the line in question is now 475
___
Python tracker [EMAIL
Changes by Raymond Hettinger [EMAIL PROTECTED]:
--
status: closed - open
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3051
___
___
Python-bugs-list
Simon Cross [EMAIL PROTECTED] added the comment:
One of the examples Christoph tried was
unicode(Exception(u'\xe1'))
which fails quite oddly with:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in
position 0: ordinal not in range(128)
The reason for this is Exception
Jim Jewett [EMAIL PROTECTED] added the comment:
Were you using IDLE at the time?
When I try this (Windows XP SP2), the button and its window do not go away
(which is arguably a bug), but it does not crash.
If I then try to close the window using the little X (from the window
manager),
Changes by David Fraser [EMAIL PROTECTED]:
--
nosy: +davidfraser
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2517
___
___
Python-bugs-list mailing
David Fraser [EMAIL PROTECTED] added the comment:
Aha - the __unicode__ method was previously there in Python 2.5, and was
ripped out because of the unicode(Exception) problem. See
http://bugs.python.org/issue1551432.
The reversion is in
David Fraser [EMAIL PROTECTED] added the comment:
Note that this causes problems with converting Exceptions to unicode -
see http://bugs.python.org/issue2517
--
nosy: +davidfraser
___
Python tracker [EMAIL PROTECTED]
Benjamin Peterson [EMAIL PROTECTED] added the comment:
On Mon, Jun 9, 2008 at 8:40 AM, Simon Cross [EMAIL PROTECTED] wrote:
Simon Cross [EMAIL PROTECTED] added the comment:
One of the examples Christoph tried was
unicode(Exception(u'\xe1'))
which fails quite oddly with:
Simon Cross [EMAIL PROTECTED] added the comment:
Concerning http://bugs.python.org/issue1551432:
I'd much rather have working unicode(e) than working unicode(Exception).
Calling unicode(C) on any class C which overrides __unicode__ is broken
without tp_unicode anyway.
Simon Cross [EMAIL PROTECTED] added the comment:
Benjamin Peterson wrote:
What version are you using? In Py3k, str is unicode so __str__ can
return a unicode string.
I'm sorry it wasn't clear. I'm aware that this issue doesn't apply to
Python 3.0. I'm testing on both Python 2.5 and Python 2.6
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment:
Removing 3.0 from the versions list.
--
nosy: +lemburg
versions: -Python 3.0
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2517
___
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Can you please provide the documentation change as a patch relative to
the 2.6 Doc/lib/turtle.rst (or as a complete file based on turtle.rst)?
In the current form, I find it hard to accept, since I would have to
redo all the changes that I had
New submission from Tal Einat [EMAIL PROTECTED]:
Attaching a patch for a straightforward extension config dialog, largely
based on configDialog.py.
This uses the multiple-tab-rows feature of the TabbedPageSet widget from
the tabbedPages module, as well as the included VerticalScrolledFrame
Changes by Tal Einat [EMAIL PROTECTED]:
Removed file:
http://bugs.python.org/file10560/IDLE_configExtensionsDialog.080609.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3068
___
Tal Einat [EMAIL PROTECTED] added the comment:
I forgot to mention:
This patch also removes the paragraph width option from the General
tab in the normal IDLE config, since that configures a parameter of the
FormatParagraph extension, which can now be done in the extension config
dialog.
Added
David Fraser [EMAIL PROTECTED] added the comment:
So I've got a follow-up patch that adds tp_unicode.
Caveat that I've never done anything like this before and it's almost
certain to be wrong.
It does however generate the desired result in this case :-)
Added file:
Benjamin Peterson [EMAIL PROTECTED] added the comment:
On Mon, Jun 9, 2008 at 2:04 PM, David Fraser [EMAIL PROTECTED] wrote:
David Fraser [EMAIL PROTECTED] added the comment:
So I've got a follow-up patch that adds tp_unicode.
Caveat that I've never done anything like this before and it's
Gregor Lingl [EMAIL PROTECTED] added the comment:
Here is the (slightly) modified docfile in rst-format for the new
turtle module for Python 3.0
I'll submit the diff (from the turtle.rst for Python 2.6) in a
follow up posting for your convenience. So you can easily check the few
differences -
Gregor Lingl [EMAIL PROTECTED] added the comment:
And here the diff from docfile turtle.rst to what I have named
turtle30.rst for now.
Gregor
--
keywords: +patch
Added file: http://bugs.python.org/file10564/turtle.rst.diff
___
Python tracker [EMAIL
New submission from Arnaud Delobelle [EMAIL PROTECTED]:
The patch allows the following syntax for s set/frozenset:
* s.union(a, b, c,...)
* s.update(a, b, c,...)
* s.intersection(a, b, c,...)
* s.intersection_update(a, b, c,...)
By extension:
* set.union(a, b, c,...) # provided a is a
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Time machine -- I already put in a version of this last night. See
r64051 and r64055.
Will take a look at your code to see if I can incorporate the sorting
for insection() and harvest it for more tests.
--
assignee: -
Arnaud Delobelle [EMAIL PROTECTED] added the comment:
I must have diffed my patch against the wrong revision then, because I
haven't seen it. I had finished it last thursday, but have had a very
hectic few days and only found a few minutes to send it this evening.
Something must have gone
Changes by Alexandre Vassalotti [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file10566/changeset-2.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2917
___
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
Here is the full patch that adds the _pickle module. I would like to
commit it as soon another developer tests it and (hopefully) reviews it.
A documentation patch is coming as well. However since I don't want to
block the release just
Arnaud Bergeron [EMAIL PROTECTED] added the comment:
Don't blame me for the delay, I have long days (yes, really up to 96
hours long :)
As for the documentation patch, I'm not certain anymore about it.
Unless I bloat the description to about one full screen worth of text,
there will always be
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
Oh, that is simple to fix. You can round the value 2*avail to the
nearest block by doing something like (2*avail) ~(bksize-1) where
bksize is a power of 2, or the less magic (2*avail//bksize) * bksize.
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I'm attaching my version of the docs. (Jesse, I did fix the Sphinx
warnings and some other problems I noticed.) Georg, if you could cast
your expert reST eye over them, I'd be much obliged.
--
assignee: - benjamin.peterson
nosy:
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Would you like to submit a patch?
--
nosy: +benjamin.peterson
priority: - low
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3071
___
Senthil [EMAIL PROTECTED] added the comment:
Attaching the patch to fix this issue. I deliberated upon this for a
while and came up with the approach to:
1) fix the port issue, wherein urlparse should technically recognize the
':' separator for port from ':' after scheme.
2) And Doc fix
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
Fixed in r64059 for Python 3.0
Fixed in r64056 and r64057 for Python 2.6
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2582
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
Fixed in r64056 and r64057 for Python 2.6
Oops, I meant r64057 and r64058.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2582
___
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
I think is a bad idea too. Unless I see patch that implements this
feature cleanly, I will have to reject this feature request.
--
nosy: +alexandre.vassalotti
resolution: - rejected
status: open - pending
New submission from Steve Emmert [EMAIL PROTECTED]:
This bug is explained in the attached file. The list of lists does not
behave correctly when it is defined by the makeGrid function in the
attached file. When attempting to set the value of one element, it
actually sets multiple elements.
Changes by Alexandre Vassalotti [EMAIL PROTECTED]:
--
nosy: +alexandre.vassalotti
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1580
___
___
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Thanks for the patch. Committed as r64061.
Notice that the turtle module was meanwhile moved into the tkinter
package. If you think it should stay as a toplevel module, you should
discuss that on stdlib-sig.
Changes by Martin v. Löwis [EMAIL PROTECTED]:
--
resolution: - accepted
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3064
___
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
I will try to fix issue. I cannot promise that I will get it done before
the beta though.
--
nosy: +alexandre.vassalotti
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2919
Martin v. Löwis [EMAIL PROTECTED] added the comment:
This is not a bug. Please read about references in Python, and what this
means:
py b=[0]
py a=[b,b]
py a[0] is a[1]
True
py c=[[0],[0]]
py c[0] is c[1]
False
py c[0] == c[1]
True
In short, there is only a single list stored in the variable
42 matches
Mail list logo