Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Probably these are related too. #5259 #5304
--
dependencies: +email/base64mime.py cannot work, smtplib is broken in Python3
nosy: +ocean-city
___
Python tracker rep...@bugs.python.org
lekma lekma...@gmail.com added the comment:
The same against py3k.
Jesse, is there any chance that this will make it in, or should I just
go and implement a local solution?
--
Added file: http://bugs.python.org/file13508/Issue5585_2_py3k.patch
___
Chris Withers ch...@simplistix.co.uk added the comment:
It's probably worth noting that changing:
from email.mime.text import MIMEText
m = MIMEText('foo')
m['subject']='something long'
...to:
from email.header import Header
m = MIMEText('foo')
m['subject']=Header('something long')
...will
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
IIRC, this has already been rejected on python-dev in a number of
discussions (check for ropes in the search). Also, Armin has long ago
implemented some optimizations for string concatenation in a number of
contexts.
Gregory P. Smith g...@krypto.org added the comment:
New patch uploaded. Based on mfoord's 200903301411 version. Adds
documentation. Cleans up a few things and fixes names on a few things.
This patch has been put up for review in:
http://codereview.appspot.com/32080
--
Added file:
Nick Craig-Wood n...@craig-wood.com added the comment:
Oops, my bad, I assumed the patch would by for py3k!
I applied it to trunk and tested it. It works very well - thank you for
fixing that :-)
--
___
Python tracker rep...@bugs.python.org
Gregory P. Smith g...@krypto.org added the comment:
fixed the unintentional extra edits in the docs in gps04.
--
Added file: http://bugs.python.org/file13510/unittest-new-asserts-gps04.diff.txt
___
Python tracker rep...@bugs.python.org
Changes by Gregory P. Smith g...@krypto.org:
Removed file:
http://bugs.python.org/file13480/unittest-new-asserts-gps02.diff.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2578
___
Changes by Gregory P. Smith g...@krypto.org:
Removed file: http://bugs.python.org/file13484/unittest-new-asserts.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2578
___
Changes by Gregory P. Smith g...@krypto.org:
Removed file:
http://bugs.python.org/file13509/unittest-new-asserts-gps03.diff.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2578
___
Steven Bethard steven.beth...@gmail.com added the comment:
Ok, so here's what needs to happen to make this work. Note that all of
the following needs to happen at *runtime*, not at the time at which the
.msi is created:
(1) Find all sub-keys of SOFTWARE\Python\PythonCore in the registry.
These
Frank Chu fpm...@gmail.com added the comment:
Hi,
This is a patch that uses poll() in subprocess.communicate() if it is
available. This is my first patch and may contain style errors. I try
to conform to PEP 8 as close as I can.
Besides the discussion here, I would like to add this is
Richard B. Kreckel ric...@users.sourceforge.net added the comment:
I just tried Python 2.6 (r26:66714, Feb 21 2009, 05:33:00) from SUSE
Linux Enterprise Server 11 (i586) and it didn't fail. This appears to
have been fixed, somehow.
--
___
Python
Jan Ondrej ondr...@users.sourceforge.net added the comment:
I can't confirm this bug on Fedora 8 or Fedora 10.
I think it's fixed now and should be closed.
Also tested on ubuntu-hardy without problems.
--
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg m...@egenix.com added the comment:
On 2009-03-31 03:19, A.M. Kuchling wrote:
A.M. Kuchling li...@amk.ca added the comment:
Is a backport to 2.7 still planned?
I hope it is.
--
___
Python tracker rep...@bugs.python.org
New submission from edmundy yong.su...@163.com:
The following is the test code.
class C1:
myurl = []
def test(self):
url = [5,6,7]
self.myurl.extend(url)
def testv():
c = C1()
c.test()
print(c.myurl)
Christian Heimes li...@cheimes.de added the comment:
For legal reasons we can't ship Python with certain algorithms. If I can
recall correctly IDEA is one of the patented algorithms. The patch is
looking goo.d
--
___
Python tracker
Nick Coghlan ncogh...@gmail.com added the comment:
This came up on python-dev again recently:
http://mail.python.org/pipermail/python-dev/2009-March/087955.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue992389
Jesse Noller jnol...@gmail.com added the comment:
On Mar 31, 2009, at 2:12 AM, lekma rep...@bugs.python.org wrote:
lekma lekma...@gmail.com added the comment:
The same against py3k.
Jesse, is there any chance that this will make it in, or should I just
go and implement a local solution?
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment:
Please correct me, if i'm wrong, but this seems to be a real bug, caused
by people thinking that handle_expt is something like handle_error.
As Tony stated, the docs say that handle_expt is called when out-of-band
data arrives,
Antoine Pitrou pit...@free.fr added the comment:
Andrew, your patch disables the optimization that HAS_ARG(op) is a
constant when op is known by the compiler (that is, inside a
TARGET_##op label), so I'd rather keep the version which is currently
in SVN.
--
versions: -Python 3.1
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +collinwinter, jyasskin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1739789
___
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Well, I think your patch has some issues.
import mmap
m = mmap.mmap(-1, 10)
m.move(10, 10, 0) # legal, should not fail
Traceback (most recent call last):
File stdin, line 1, in module
ValueError: source out of range
m.move(9,
Changes by Antoine Pitrou pit...@free.fr:
--
versions: +Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3675
___
___
Antoine Pitrou pit...@free.fr added the comment:
Armin's proposal is in #812369, closing this bug.
(it is not obvious Armin's patch is enough to solve the problem at hand,
but the problem is well-known anyway and there are certainly other bug
entries pointing to it :-))
--
nosy: +pitrou
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment:
@Aleksy
http://bugs.python.org/issue4501
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1161031
___
Antoine Pitrou pit...@free.fr added the comment:
By the way, an easy way to fix it would probably to rewrite the
destructor in the following way (haven't tested):
def __del__(self):
self.__class__.population -= 1
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Retargetting, and I hope someone can take a look at the patch and give
it the green light :-)
--
stage: - patch review
type: - behavior
versions: +Python 2.7, Python 3.1 -Python 2.6, Python 3.0
___
lekma lekma...@gmail.com added the comment:
I'm thinking about it and plan on discussing it with other core devs
today. Altering the Api is not something done lightly
yep.
Thanks for considering it.
--
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
It's all right, I spotted that and added the C in the commit.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5039
___
R. David Murray rdmur...@bitdance.com added the comment:
I'm a bit confused here. The patch only adds a small feature to
BaseManager and subtypes (the same way Pool does it already). AFAICT the
Thread/Process API equivalence is preserved. Am I missing something?
No, I'm the one who was missing
Changes by Jeremy Hylton jer...@alum.mit.edu:
--
nosy: +jhylton
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1659410
___
___
Python-bugs-list
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment:
Sorry for the noise.
I just registered, and started going through the open issues for
asyncore in order. I'll read them all through before commenting on the
next one..
I also bumped to this:
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I noticed this warning still happens on release26-maint. Is backporting
this to release26-maint not good for binary compatibility reason?
--
___
Python tracker rep...@bugs.python.org
Jeremy Hylton jer...@alum.mit.edu added the comment:
Committed revision 70809 (trunk). Needs to be backported.
--
nosy: +jhylton
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4315
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Committed in r70800(trunk), r70803(release26-maint), r70808(py3k),
r70811(release30-maint).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Senthil orsent...@gmail.com added the comment:
I spent sometime on the patch which replaces the self.msg usage with
self.headers in http.client. Everything is fine.
The next step is to provide an interface in the urllib.response and the
equivalent changes to py2k.
--
assignee:
Jeremy Hylton jer...@alum.mit.edu added the comment:
The current docs cover this case:
http://docs.python.org/reference/executionmodel.html#interaction-with-dynamic-features
It basically says that code compiled via exec / eval can't access free
variables.
--
resolution: - wont fix
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The function is static and not visible to other modules.
The patch can be backported without compatibility problems.
--
___
Python tracker rep...@bugs.python.org
Ned Deily n...@acm.org added the comment:
Also seeing on OS X. Without having looked at the code yet, I wonder if
this might be related to Issue1711605.
--
nosy: +nad
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4951
Jesse Noller jnol...@gmail.com added the comment:
I'll be back porting it today
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5002
___
___
Jesse Noller jnol...@gmail.com added the comment:
MErged 70814
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5002
___
___
Python-bugs-list
Changes by Jeremy Hylton jer...@alum.mit.edu:
--
assignee: - jhylton
nosy: +jhylton
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue991196
___
___
Larry Hastings la...@hastings.org added the comment:
rhettinger: It's a bit unfair to paint the lazy string concatenation
patch with the adjective ropes, then point out ropes have been
rejected many times. Lazy string concatenation objects are a form of
specialized rope but they don't share the
New submission from John Posner john_posner_a...@post.harvard.edu:
The subsection Augmented assignment statements includes a note on this
special case:
a.x += 1
But the parent section Assignment statements does not include such a
note, even though it's essentially the same situation. I
Maksim Kozyarchuk maksim_kozyarc...@yahoo.com added the comment:
AFAIK, This is expected behavior. myurl is a class attribute if you
want it to be different per instance you should re-initialize it in the
__init__ method. See below.
class C1(object):
... def __init__(self):
...
Martin v. Löwis mar...@v.loewis.de added the comment:
In
http://www.installsite.org/pages/en/msi/articles/MultiListBox/index.htm
there is a demo how to modify the listbox contents dynamically using
VBScript.
--
___
Python tracker
New submission from Ned Deily n...@acm.org:
wrong error from curses.wrapper if curses initialization fails
One way to reproduce is trying under IDLE.app in OS X:
import curses
def scr(a):
a.getch()
curses.wrapper(scr)
Traceback before patch:
UnboundLocalError: local variable
Mattias Engdegård yor...@users.sourceforge.net added the comment:
The patch looks all right in general. I would use something like
if poll in dir(select)
instead of catching AttributeError which risks hiding bugs in
_communicate_with_poll().
PEP8 probably wants spaces around the bitwise-or
Guido van Rossum gu...@python.org added the comment:
Hi Greg, I've mostly reviewed for style...
http://codereview.appspot.com/32080/diff/13/1006
File Doc/library/unittest.rst (right):
http://codereview.appspot.com/32080/diff/13/1006#newcode611
Line 611: assertTrue(expr[, msg])
Make assertTrue
Skip Montanaro s...@pobox.com added the comment:
I don't see a patch. Is there some reason that if you need this
you can't simply subclass DictWriter?
--
nosy: +skip.montanaro
___
Python tracker rep...@bugs.python.org
Brett Cannon br...@python.org added the comment:
On Tue, Mar 31, 2009 at 06:39, Aleksi Torhamo rep...@bugs.python.orgwrote:
Aleksi Torhamo
alexerion+pythonb...@gmail.comalexerion%2bpythonb...@gmail.com
added the comment:
Sorry for the noise.
I just registered, and started going through
New submission from Amaury Forgeot d'Arc amaur...@gmail.com:
Python trunk, compiled with VS2005 SP1, release build on Windows 2000:
import os
fd = os.open(t, 0)
os.close(fd)
Traceback (most recent call last):
File stdin, line 1, in module
OSError: [Errno 9] Bad file descriptor
The
Guido van Rossum gu...@python.org added the comment:
Good sleuthing Nick! It's clearly the same bug that Fredrik found.
I tried to test if using Brett' importlib has the same problem, but it
can import neither p.a nor p.b, so that's not helpful as to sorting out
the import semantics.
I
Georg Brandl ge...@python.org added the comment:
I'm not sure it belongs there, since normal assignments do not say
*anything* about the RHS.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5621
New submission from Maksim Kozyarchuk maksim_kozyarc...@yahoo.com:
Number of modules in py3k branch are importing _winreg instead of winreg.
According to fix_import.py module in libpy2to3 all _winreg imports need
to be converted to winreg.
--
components: Library (Lib)
messages: 84801
Maksim Kozyarchuk maksim_kozyarc...@yahoo.com added the comment:
Looking at this now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5624
___
Guido van Rossum gu...@python.org added the comment:
Sorry, never mind about the importlib bug, that was my mistake.
importlib actually behaves exactly the same way as the built-in import.
I conclude that this is probably the best semantics of import that we
can hope for in this corner case.
I
Georg Brandl ge...@python.org added the comment:
Fixed in r70824.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5519
___
John Posner john_posner_a...@post.harvard.edu added the comment:
The Assignment statements section *does* talk about the RHS -- but in
a subtle way:
For targets which are attribute references, the initial
value is retrieved with a getattr()
The retrieving of the initial value (maybe
Mike Coleman m...@users.sourceforge.net added the comment:
My original report didn't mention it specifically, but I believe I was
hitting the FD_SETSIZE limit that Frank mentioned. (Thanks for working
on this!)
--
___
Python tracker
New submission from Ned Deily n...@acm.org:
[NOTE: applies to 2.x urllib2 and similar code in merged 3.x urllib]
test_urllib2 can fail because urllib2.FileHandler assumes incorrectly
that the local host has only a single IP address. It is not uncommon
to have host IP configurations where a
Changes by Ned Deily n...@acm.org:
Added file: http://bugs.python.org/file13515/patch-nad0017-py3k-30.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5625
___
Georg Brandl ge...@python.org added the comment:
Fixed first issue in r70825.
Fixed second issue in r70827.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5566
Georg Brandl ge...@python.org added the comment:
Fixed in r70828, thanks!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5581
___
Ned Deily n...@acm.org added the comment:
Note also Issue5625 - any work for IPv6 should keep in mind that local
hosts may have more than one IP address.
--
nosy: +nad
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1675455
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r70829.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5548
___
Stephan R.A. Deibel sdei...@wingware.com added the comment:
If you are at PyCon 2009 sprints, try to see if you can find John
Ehresman in the Python Core sprint to see it happen at line 115 of
threadops.c in the Wing 3.2 source base. If you're not there or can't
find him, I'll try to make a
Jeremy Hylton jer...@alum.mit.edu added the comment:
This code behaves as intended. The module-level execution environment
is different than other environments. The global scope and local scope
are the same dictionary. Assignments at the top-level become globals
because of this behavior of
Georg Brandl ge...@python.org added the comment:
I found nothing in that document that refers to file objects as seen in
Python 2, e.g. the file type. I'd still refer to all of Python 3's IO
objects as file objects.
--
resolution: - wont fix
status: open - closed
Maksim Kozyarchuk maksim_kozyarc...@yahoo.com added the comment:
Fixed, patch is on appshot.
http://codereview.appspot.com/32083/show
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5624
New submission from Ned Deily n...@acm.org:
The documentation for socket.gethostname() contains the following
comment:
If you want to know the current machine’s IP address, you may want to
use gethostbyname(gethostname()). This operation assumes that there is a
valid address-to-host mapping
Stephan R.A. Deibel sdei...@wingware.com added the comment:
It appears to be specific to 2.x and does not occur under Python 3.0:
Python 3.0 (r30:67503, Jan 15 2009, 09:27:16)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type help, copyright, credits or license for more information.
import
Jeremy Hylton jer...@alum.mit.edu added the comment:
I think this bug ran out of steam. Python is behaving as intended, and
I think Georg addressed all of David's questions.
--
nosy: +jhylton
resolution: - works for me
status: open - closed
___
Georg Brandl ge...@python.org added the comment:
Done in r70830.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5529
___
Jeremy Hylton jer...@alum.mit.edu added the comment:
exec is allowed in a class statement
--
resolution: accepted - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5578
Jeremy Hylton jer...@alum.mit.edu added the comment:
It doesn't seem helpful to leave this issue open, particularly since the
title suggest there's a problem with execfile being removed and that's
not going to change.
--
nosy: +jhylton
status: open - closed
Georg Brandl ge...@python.org added the comment:
Yes, it says that getattr() is used in the section about augassign; but
there the note you refer to is already present.
--
resolution: - works for me
status: open - pending
___
Python tracker
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
nosy: +krisvale
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5623
___
___
Python-bugs-list
Changes by Jeremy Hylton jer...@alum.mit.edu:
--
nosy: +jhylton
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4199
___
___
Python-bugs-list
Changes by Jeremy Hylton jer...@alum.mit.edu:
--
priority: high - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1346238
___
___
Georg Brandl ge...@python.org added the comment:
Why am I assigned this issue?
--
assignee: georg.brandl -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1503789
___
Changes by Jeremy Hylton jer...@alum.mit.edu:
--
nosy: +jhylton
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2344
___
___
Python-bugs-list
Jeremy Hylton jer...@alum.mit.edu added the comment:
Seemed like a good idea, but no one knew how to do it.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2344
Georg Brandl ge...@python.org added the comment:
I'm not sure if this is necessary; you could argue that the syntax error
really is on the last line, because there the parenthesis is missing.
--
___
Python tracker rep...@bugs.python.org
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1653416
___
___
Python-bugs-list
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:
Your analysis WRT handle_expt_event() is correct. I've been meaning to
fix that for a while, but I forgot to do it in 2.6/3.0 with all of the
other changes/fixes. Looking at the docs, you are also right about
POLLNVAL.
I
Georg Brandl ge...@python.org added the comment:
Re-fixed in r70832.
--
assignee: fdrake - georg.brandl
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1386675
Maksim Kozyarchuk maksim_kozyarc...@yahoo.com added the comment:
Fixed Typo, and Re-Uploaded
http://codereview.appspot.com/28156/show
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5624
Gregory P. Smith g...@krypto.org added the comment:
Reviewers: fuzzyman, GvR,
http://codereview.appspot.com/32080/diff/13/1006
File Doc/library/unittest.rst (right):
http://codereview.appspot.com/32080/diff/13/1006#newcode611
Line 611: assertTrue(expr[, msg])
On 2009/03/31 15:01:06, GvR wrote:
Georg Brandl ge...@python.org added the comment:
This seems to be fixed in the development docs.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5522
Guido van Rossum gu...@python.org added the comment:
LG.
http://codereview.appspot.com/32080
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2578
___
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:
When push is called in the current trunk (as of 2.6), the data is
automatically chopped up into self.ac_out_buffer_size blocks for later
writing.
In order to force the use of the asynchat.simple_producer class (which
takes
New submission from Euler Taveira de Oliveira eu...@timbira.com:
PyDict_SetItemString() fails when the second argument (key) is null
pointer. It occurs because PyString_FromString(key) call doesn't check
for null pointer and if we're in a disabled assert environment the
assert() is not caught
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I think lazy evaluation was discussed in the same thread. Either I or
someone else suggested it and there was some issue because the string
struct had long been exposed and people were accessing it directly.
--
Georg Brandl ge...@python.org added the comment:
The function is there, but not documented, so the examples are valid. I
now changed them to refer to PyObject_Call[Object] which are documented
in r70836.
--
resolution: - fixed
status: open - closed
Gregory P. Smith g...@krypto.org added the comment:
Comments applied. committed to trunk in r70837. Needs porting to
python 3.1.
Next changes TODO:
* rename the method def's and add deprecation warnings to fail* variants.
In room discussion at pycon 2009 sprints consensus on Equal vs Equals
Georg Brandl ge...@python.org added the comment:
Documented in r70838, r70840.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue992207
___
Guido van Rossum gu...@python.org added the comment:
I think we should rename the method defs ASAP but not start deprecating
the old names until 3.2. Otherwise many people's tests will be very
noisy and that's just annoying. Give them time to migrate voluntarily.
--
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment:
The _exception() - close() change seems to be wrong. The third set of
select() is supposed to represent oob data, so the previous use in the
select-based loop should have been correct?
Other than that, i can't see anything wrong
1 - 100 of 260 matches
Mail list logo