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

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

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

2009-03-31 Thread Chris Withers
Chris Withers 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 do folding without the \

[issue1569040] Speed up using + for string concatenation

2009-03-31 Thread Raymond Hettinger
Raymond Hettinger 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. -- nosy: +rhettinger

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

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

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

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

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

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

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

2009-03-31 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file13480/unittest-new-asserts-gps02.diff.txt ___ Python tracker ___ ___ Py

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

2009-03-31 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file13484/unittest-new-asserts.diff ___ Python tracker ___ ___ Python-bugs-l

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

2009-03-31 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file13509/unittest-new-asserts-gps03.diff.txt ___ Python tracker ___ ___ Py

[issue5311] bdist_msi generates version number for pure Python packages

2009-03-31 Thread Steven Bethard
Steven Bethard 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 are the versions, e.g. 2.

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Frank Chu
Frank Chu 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 desired because select(

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

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

[issue1732662] socket makefile objects are not independent

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

[issue4753] Faster opcode dispatch on gcc

2009-03-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-03-31 03:19, A.M. Kuchling wrote: > A.M. Kuchling added the comment: > > Is a backport to 2.7 still planned? I hope it is. -- ___ Python tracker

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

2009-03-31 Thread edmundy
New submission from edmundy : 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) i = 0 while i<10

[issue5497] openssl compileerror with original source

2009-03-31 Thread Christian Heimes
Christian Heimes 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 added the comment: This came up on python-dev again recently: http://mail.python.org/pipermail/python-dev/2009-March/087955.html -- ___ Python tracker ___

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

2009-03-31 Thread Jesse Noller
Jesse Noller added the comment: On Mar 31, 2009, at 2:12 AM, lekma wrote: > > lekma 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? > I'm thinking about it and plan on discussing it

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Aleksi Torhamo
Aleksi Torhamo 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, and that is - i think - correct.

[issue4753] Faster opcode dispatch on gcc

2009-03-31 Thread Antoine Pitrou
Antoine Pitrou 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 : -- nosy: +collinwinter, jyasskin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5387] mmap.move crashes by integer overflow

2009-03-31 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 "", line 1, in ValueError: source out of range >>> m.move(9, 9, -1) # should not cra

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

2009-03-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1717900] Destructor behavior faulty

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

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: @Aleksy http://bugs.python.org/issue4501 -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1717900] Destructor behavior faulty

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

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

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

[issue5039] Adjust reference-counting note

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: It's all right, I spotted that and added the "C" in the commit. -- ___ Python tracker ___ ___ Python-b

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

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

[issue1659410] Minor AST tweaks

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- nosy: +jhylton ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Aleksi Torhamo
Aleksi Torhamo 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: http://groups.google.com/group/python-dev2/browse_thread/thread/eec1d

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

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

[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 added the comment: Committed revision 70809 (trunk). Needs to be backported. -- nosy: +jhylton resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5387] mmap.move crashes by integer overflow

2009-03-31 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Committed in r70800(trunk), r70803(release26-maint), r70808(py3k), r70811(release30-maint). -- resolution: -> fixed status: open -> closed ___ Python tracker __

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

2009-03-31 Thread Senthil
Senthil 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: georg.brandl -> jhylton resol

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

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton 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 status: open -> closed

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

2009-03-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The function is static and not visible to other modules. The patch can be backported without compatibility problems. -- ___ Python tracker ___

[issue4951] failure in test_httpservers

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

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

2009-03-31 Thread Jesse Noller
Jesse Noller added the comment: I'll be back porting it today -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2009-03-31 Thread Jesse Noller
Jesse Noller added the comment: MErged 70814 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue991196] An inconsistency with nested scopes

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- assignee: -> jhylton nosy: +jhylton ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1569040] Speed up using + for string concatenation

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

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

2009-03-31 Thread John Posner
New submission from John Posner : 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 suggest replacing the bulleted para

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

2009-03-31 Thread Maksim Kozyarchuk
Maksim Kozyarchuk 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): ... self.myurl = [] ...

[issue5311] bdist_msi generates version number for pure Python packages

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

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Mattias Engdegård
Mattias Engdegård 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 operator. Some systems cann

[issue2578] additional unittest type equality methods

2009-03-31 Thread Guido van Rossum
Guido van Rossum 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 the first/preferr

[issue1537721] csv module: add header row to DictWriter

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

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Brett Cannon
Brett Cannon added the comment: On Tue, Mar 31, 2009 at 06:39, Aleksi Torhamo wrote: > > Aleksi Torhamo > > > 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 th

[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 : 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 "", line 1, in OSError: [Errno 9] Bad file descriptor The _PyVerify_fd() returned F

[issue992389] attribute error after non-from import

2009-03-31 Thread Guido van Rossum
Guido van Rossum 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 believe that at some po

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

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: I'm not sure it belongs there, since normal assignments do not say *anything* about the RHS. -- ___ Python tracker ___ __

[issue5624] Py3K branch import _winreg instead of winreg

2009-03-31 Thread Maksim Kozyarchuk
New submission from Maksim Kozyarchuk : 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 nosy: Kozyarchuk severity: no

[issue5624] Py3K branch import _winreg instead of winreg

2009-03-31 Thread Maksim Kozyarchuk
Maksim Kozyarchuk added the comment: Looking at this now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue992389] attribute error after non-from import

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

[issue5519] Deletion of some statements in re documentation

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r70824. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

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

2009-03-31 Thread John Posner
John Posner 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 "current value" would be better) occur

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Mike Coleman
Mike Coleman 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 : [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 host has more th

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

2009-03-31 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file13515/patch-nad0017-py3k-30.txt ___ Python tracker ___ ___ Python-bugs-list maili

[issue5566] Minor error in document of PyLong_AsSsize_t

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Fixed first issue in r70825. Fixed second issue in r70827. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r70828, thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

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

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

[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 added the comment: Thanks, fixed in r70829. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue1608921] PyThread_release_lock with pthreads munges errno

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

[issue991196] An inconsistency with nested scopes

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

[issue5540] "file objects" in python 3 tutorial

2009-03-31 Thread Georg Brandl
Georg Brandl 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 added the comment: Fixed, patch is on appshot. http://codereview.appspot.com/32083/show -- ___ Python tracker ___ __

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

2009-03-31 Thread Ned Deily
New submission from Ned Deily : 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 for the host

[issue1608805] Py_FileSystemDefaultEncoding can be non-canonical

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

[issue4831] exec() behavior - revisited

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

[issue5529] Backport sys module docs involving import to 2.7

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Done in r70830. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue5578] unqualified exec in class body

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: exec is allowed in a class statement -- resolution: accepted -> rejected status: open -> closed ___ Python tracker ___ __

[issue5524] execfile() removed from Python3

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

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

2009-03-31 Thread Georg Brandl
Georg Brandl 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 : -- nosy: +krisvale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4199] add shorthand global and nonlocal statements

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- nosy: +jhylton ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1346238] A constant folding optimization pass for the AST

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- priority: high -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1503789] Cannot write source code in UTF16

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Why am I assigned this issue? -- assignee: georg.brandl -> ___ Python tracker ___ ___ Python-bugs-

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

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- nosy: +jhylton ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: Seemed like a good idea, but no one knew how to do it. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue1501979] syntax errors on continuation lines

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

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

2009-03-31 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Josiah Carlson
Josiah Carlson 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 also don't *know* what to do when p

[issue1386675] _winreg specifies EnvironmentError instead of WindowsError

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Re-fixed in r70832. -- assignee: fdrake -> georg.brandl nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5624] Py3K branch import _winreg instead of winreg

2009-03-31 Thread Maksim Kozyarchuk
Maksim Kozyarchuk added the comment: Fixed Typo, and Re-Uploaded http://codereview.appspot.com/28156/show -- ___ Python tracker ___ __

[issue2578] additional unittest type equality methods

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

[issue5522] HTTPRedirectHandler documentation is wrong

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: This seems to be fixed in the development docs. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ _

[issue2578] additional unittest type equality methods

2009-03-31 Thread Guido van Rossum
Guido van Rossum added the comment: LG. http://codereview.appspot.com/32080 -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2009-03-31 Thread Josiah Carlson
Josiah Carlson 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 an argument for the block size to s

[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 : 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 and strlen() fails.

[issue1569040] Speed up using + for string concatenation

2009-03-31 Thread Raymond Hettinger
Raymond Hettinger 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 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 ___ Python trac

[issue2578] additional unittest type equality methods

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

[issue992207] exec statement balks at CR/LF

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Documented in r70838, r70840. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue2578] additional unittest type equality methods

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

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Jeremy Hylton
New submission from Jeremy Hylton : import io import urllib.request f_bytes = urllib.request.urlopen("http://www.python.org/";) f_string = io.TextIOWrapper(f_bytes, "iso-8859-1") print(f_string.read()) -- components: Library (Lib) messages: 84840 nosy: jhylton severity: normal status: o

  1   2   3   >