[issue1685453] email package should work better with unicode

2009-03-31 Thread Hirokazu Yamamoto
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

[issue5585] implement initializer for multiprocessing.BaseManager.start()

2009-03-31 Thread lekma
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 ___

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2009-03-31 Thread Chris Withers
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

[issue1569040] Speed up using + for string concatenation

2009-03-31 Thread Raymond Hettinger
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.

[issue2578] Figure out what to do with unittest's redundant APIs

2009-03-31 Thread Gregory P. Smith
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:

[issue5131] pprint doesn't know how to print a set or a defaultdict

2009-03-31 Thread Nick Craig-Wood
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

[issue2578] Figure out what to do with unittest's redundant APIs

2009-03-31 Thread Gregory P. Smith
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

[issue2578] Figure out what to do with unittest's redundant APIs

2009-03-31 Thread Gregory P. Smith
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 ___

[issue2578] Figure out what to do with unittest's redundant APIs

2009-03-31 Thread Gregory P. Smith
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 ___

[issue2578] Figure out what to do with unittest's redundant APIs

2009-03-31 Thread Gregory P. Smith
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 ___

[issue5311] bdist_msi generates version number for pure Python packages

2009-03-31 Thread Steven Bethard
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

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Frank Chu
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

[issue1659171] Calling tparm from extension lib fails in Python 2.5

2009-03-31 Thread Richard B. Kreckel
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

[issue1732662] socket makefile objects are not independent

2009-03-31 Thread Jan Ondrej
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

[issue4753] Faster opcode dispatch on gcc

2009-03-31 Thread Marc-Andre Lemburg
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

[issue5620] The attribute's action of an object is not correct.

2009-03-31 Thread edmundy
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)

[issue5497] openssl compileerror with original source

2009-03-31 Thread Christian Heimes
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

[issue992389] attribute error after non-from import

2009-03-31 Thread Nick Coghlan
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

[issue5585] implement initializer for multiprocessing.BaseManager.start()

2009-03-31 Thread Jesse Noller
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?

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Aleksi Torhamo
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,

[issue4753] Faster opcode dispatch on gcc

2009-03-31 Thread Antoine Pitrou
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

[issue1739789] Accelerate attr dict lookups

2009-03-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +collinwinter, jyasskin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1739789 ___ ___

[issue5387] mmap.move crashes by integer overflow

2009-03-31 Thread Hirokazu Yamamoto
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,

[issue3675] Python 2.6 can't read sets pickled with Python 3.0

2009-03-31 Thread Antoine Pitrou
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 ___ ___

[issue1717900] Destructor behavior faulty

2009-03-31 Thread Antoine Pitrou
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

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Giampaolo Rodola'
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 ___

[issue1717900] Destructor behavior faulty

2009-03-31 Thread Antoine Pitrou
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

[issue812369] module shutdown procedure based on GC

2009-03-31 Thread Antoine Pitrou
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 ___

[issue5585] implement initializer for multiprocessing.BaseManager.start()

2009-03-31 Thread lekma
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

[issue5039] Adjust reference-counting note

2009-03-31 Thread Georg Brandl
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 ___

[issue5585] implement initializer for multiprocessing.BaseManager.start()

2009-03-31 Thread R. David Murray
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

[issue1659410] Minor AST tweaks

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton jer...@alum.mit.edu: -- nosy: +jhylton ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1659410 ___ ___ Python-bugs-list

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Aleksi Torhamo
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:

[issue5002] multiprocessing/pipe_connection.c compiler warning (conn_poll)

2009-03-31 Thread Hirokazu Yamamoto
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

[issue4315] On some Python builds, exec in a function can't create shadows of variables if these are declared global in another function of the same module

2009-03-31 Thread Jeremy Hylton
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

[issue5387] mmap.move crashes by integer overflow

2009-03-31 Thread Hirokazu Yamamoto
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

[issue4773] HTTPMessage not documented and has inconsistent API across 2.6/3.0

2009-03-31 Thread Senthil
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:

[issue1153622] eval does not bind variables in lambda bodies correctly

2009-03-31 Thread Jeremy Hylton
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

[issue5002] multiprocessing/pipe_connection.c compiler warning (conn_poll)

2009-03-31 Thread Amaury Forgeot d'Arc
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

[issue4951] failure in test_httpservers

2009-03-31 Thread Ned Deily
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

[issue5002] multiprocessing/pipe_connection.c compiler warning (conn_poll)

2009-03-31 Thread Jesse Noller
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 ___ ___

[issue5002] multiprocessing/pipe_connection.c compiler warning (conn_poll)

2009-03-31 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: MErged 70814 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5002 ___ ___ Python-bugs-list

[issue991196] An inconsistency with nested scopes

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton jer...@alum.mit.edu: -- assignee: - jhylton nosy: +jhylton ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue991196 ___ ___

[issue1569040] Speed up using + for string concatenation

2009-03-31 Thread Larry Hastings
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

[issue5621] Add description of special case to Assignment statements section

2009-03-31 Thread John Posner
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

[issue5620] The attribute's action of an object is not correct.

2009-03-31 Thread Maksim Kozyarchuk
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): ...

[issue5311] bdist_msi generates version number for pure Python packages

2009-03-31 Thread Martin v. Löwis
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

[issue5622] wrong error from curses.wrapper if curses initialization fails

2009-03-31 Thread Ned Deily
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

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Mattias Engdegård
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

[issue2578] additional unittest type equality methods

2009-03-31 Thread Guido van Rossum
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

[issue1537721] csv module: add header row to DictWriter

2009-03-31 Thread Skip Montanaro
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

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Brett Cannon
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

[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-03-31 Thread Amaury Forgeot d'Arc
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

[issue992389] attribute error after non-from import

2009-03-31 Thread Guido van Rossum
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

[issue5621] Add description of special case to Assignment statements section

2009-03-31 Thread Georg Brandl
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

[issue5624] Py3K branch import _winreg instead of winreg

2009-03-31 Thread Maksim Kozyarchuk
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

[issue5624] Py3K branch import _winreg instead of winreg

2009-03-31 Thread Maksim Kozyarchuk
Maksim Kozyarchuk maksim_kozyarc...@yahoo.com added the comment: Looking at this now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5624 ___

[issue992389] attribute error after non-from import

2009-03-31 Thread Guido van Rossum
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

[issue5519] Deletion of some statements in re documentation

2009-03-31 Thread Georg Brandl
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 ___

[issue5621] Add description of special case to Assignment statements section

2009-03-31 Thread John Posner
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

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Mike Coleman
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

[issue5625] test_urllib2 fails - urlopen error file not on local host

2009-03-31 Thread Ned Deily
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

[issue5625] test_urllib2 fails - urlopen error file not on local host

2009-03-31 Thread Ned Deily
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 ___

[issue5566] Minor error in document of PyLong_AsSsize_t

2009-03-31 Thread Georg Brandl
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

[issue5581] abc.abstractproperty() docs list fget as required; fget is not required by abc.abstractproperty()

2009-03-31 Thread Georg Brandl
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 ___

[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2009-03-31 Thread Ned Deily
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

[issue5548] In the tutorial, PyMODINIT_FUNC is shown as having a return type of void rather than PyObject *

2009-03-31 Thread Georg Brandl
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 ___

[issue1608921] PyThread_release_lock with pthreads munges errno

2009-03-31 Thread Stephan R.A. Deibel
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

[issue991196] An inconsistency with nested scopes

2009-03-31 Thread Jeremy Hylton
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

[issue5540] file objects in python 3 tutorial

2009-03-31 Thread Georg Brandl
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

[issue5624] Py3K branch import _winreg instead of winreg

2009-03-31 Thread Maksim Kozyarchuk
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

[issue5626] misleading comment in socket.gethostname() documentation

2009-03-31 Thread Ned Deily
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

[issue1608805] Py_FileSystemDefaultEncoding can be non-canonical

2009-03-31 Thread Stephan R.A. Deibel
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

[issue4831] exec() behavior - revisited

2009-03-31 Thread Jeremy Hylton
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 ___

[issue5529] Backport sys module docs involving import to 2.7

2009-03-31 Thread Georg Brandl
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 ___

[issue5578] unqualified exec in class body

2009-03-31 Thread Jeremy Hylton
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

[issue5524] execfile() removed from Python3

2009-03-31 Thread Jeremy Hylton
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

[issue5621] Add description of special case to Assignment statements section

2009-03-31 Thread Georg Brandl
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

[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-03-31 Thread Amaury Forgeot d'Arc
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

[issue4199] add shorthand global and nonlocal statements

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton jer...@alum.mit.edu: -- nosy: +jhylton ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4199 ___ ___ Python-bugs-list

[issue1346238] A constant folding optimization pass for the AST

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton jer...@alum.mit.edu: -- priority: high - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346238 ___ ___

[issue1503789] Cannot write source code in UTF16

2009-03-31 Thread Georg Brandl
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 ___

[issue2344] Using an iteration variable outside a list comprehension needs a Py3K warning

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton jer...@alum.mit.edu: -- nosy: +jhylton ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2344 ___ ___ Python-bugs-list

[issue2344] Using an iteration variable outside a list comprehension needs a Py3K warning

2009-03-31 Thread Jeremy Hylton
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

[issue1501979] syntax errors on continuation lines

2009-03-31 Thread Georg Brandl
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

[issue1653416] print f, Hello produces no error: normal?

2009-03-31 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1653416 ___ ___ Python-bugs-list

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Josiah Carlson
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

[issue1386675] _winreg specifies EnvironmentError instead of WindowsError

2009-03-31 Thread Georg Brandl
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

[issue5624] Py3K branch import _winreg instead of winreg

2009-03-31 Thread Maksim Kozyarchuk
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

[issue2578] additional unittest type equality methods

2009-03-31 Thread Gregory P. Smith
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:

[issue5522] HTTPRedirectHandler documentation is wrong

2009-03-31 Thread Georg Brandl
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

[issue2578] additional unittest type equality methods

2009-03-31 Thread Guido van Rossum
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 ___

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2009-03-31 Thread Josiah Carlson
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

[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-03-31 Thread Euler Taveira de Oliveira
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

[issue1569040] Speed up using + for string concatenation

2009-03-31 Thread Raymond Hettinger
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. --

[issue5417] Reference to missing(?) function in Extending Embedding Document

2009-03-31 Thread Georg Brandl
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

[issue2578] additional unittest type equality methods

2009-03-31 Thread Gregory P. Smith
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

[issue992207] exec statement balks at CR/LF

2009-03-31 Thread Georg Brandl
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 ___

[issue2578] additional unittest type equality methods

2009-03-31 Thread Guido van Rossum
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. --

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Aleksi Torhamo
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   2   3   >