[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-08-01 Thread Nir Soffer
Nir Soffer added the comment: I was wrong about handle_connect_event - it is called only from the dispatcher, so it will not break 3rd party dispatcher. -- ___ Python tracker __

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-08-01 Thread Nir Soffer
Nir Soffer added the comment: This is asyncore-fix-refused-3.patch with some fixes: 1. Call handle_close instead of non exiting handle_close_event 2. Remove unneeded handle_close_event in test classes 3. Revert removal of handle_expt_event in test classes - not clear why it was removed in t

[issue4432] IDLE.app (Mac) File Menu MIssing Options

2009-08-01 Thread Guilherme Polo
Guilherme Polo added the comment: Closing. I have seen the code changes regarding idle and mac and I believe this issue has been fixed (some time after the OP started this, but it has). -- resolution: -> out of date status: open -> closed ___ Python

[issue3559] Pasted \n not same as typed \n

2009-08-01 Thread Guilherme Polo
Guilherme Polo added the comment: This seems to be problematic in general. I have worked on a patch now, but it fails to succeed while pasting multiple lines. The problem is that when a second line is pasted, IDLE is still marked as "executing" so it ends up just pasting the line without executi

[issue6615] multiprocessing logging support test

2009-08-01 Thread OG7
New submission from OG7 : There is an additional test for multiprocessing's logging support here: http://code.google.com/p/python-multiprocessing/issues/detail?id=18 (disregard the fix, it is only needed for the backport). -- components: Library (Lib) messages: 91163 nosy: OG7, jnoller s

[issue6611] HTMLParser cannot deal with mixture of arbitrary data and character reference

2009-08-01 Thread Liu DongMiao
Liu DongMiao added the comment: i think this should not be a bug. as we dont know the encoding of str, so we cannt deal with str and unicode together. in my example, str is in utf-8, so i need to convert unicode to str in utf-8. i will takes bones' suggestion. -- status: open -> clo

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-08-01 Thread Josiah Carlson
Josiah Carlson added the comment: handle_expt_event was removed in the test classes because it is no longer being used by any of the tests. None of them send OOB data (also known as priority data), so handle_expt_event should never be called. When I have a chance to compare your patch to mi

[issue5124] IDLE - pasting text doesn't delete selection

2009-08-01 Thread Guilherme Polo
Guilherme Polo added the comment: btw, I just added a patch for issue3559 which could be easily adjusted to work as described in this issue. -- ___ Python tracker ___ ___

[issue6616] PyList_APPEND (append without incref)

2009-08-01 Thread Campbell Barton
New submission from Campbell Barton : This patch was made on python r74276 Often when writing in C/Python I want to append to a list within a C loop of an unknown length. When this is done for newly created PyObject (which is quite common) - you need to assign each item to a variable and then de

[issue4832] idle filename extension

2009-08-01 Thread Guilherme Polo
Guilherme Polo added the comment: I'm attaching a very similar patch that I tested on Linux and Windows. It just combines the default behaviour with the details required for Windows, that is, the default extension is set to '.py' for Windows and '' elsewhere (the default). -- Added file

[issue6616] PyList_APPEND (append without incref)

2009-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: > This simple patch allows... > PyList_APPEND(list, PyFloat_FromDouble(x)) This isn't a good idea because the error checking for the inner function is lost. The current API encourages keeping one function per line so that the ref counting and error-check

[issue6617] During compiling python 3.1 getting error Undefined symbol libintl_bind_textdomain_codeset

2009-08-01 Thread Sandip Thorat
New submission from Sandip Thorat : Hi I am installing Python-3.1 on "SunOS sunx7qa 5.10 Generic_127112-06 i86pc i386 i86pc". ./configure done without any error. But 'make' throwing folloing error: gcc -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict- prototypes -I. -IIncl

[issue6615] multiprocessing logging support test

2009-08-01 Thread Jesse Noller
Changes by Jesse Noller : -- assignee: -> jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6618] Typo in a listing in 5.2.9 of language reference

2009-08-01 Thread Gregor Lingl
New submission from Gregor Lingl : Error in: Python v3.1 documentation >> The Python language reference >> In the listing at the end of section 5.2.9 Yield expressions, line 7: ... except Exception, e: is syntactically incorrect and consequently raises a Syntax Error. Should read:

[issue6619] Remove duplicated function in Lib/inspect.py

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The isgenerator() function looks duplicated, remove the one with the shortest docstring -- components: Library (Lib) files: py3k-inspect.py-remove-duplicated-func.patch keywords: patch messages: 91172 nosy: vincele severity: normal status: open title:

[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The last_interval variable could potentially be used before being first assigned a value. -- components: Library (Lib) files: py3k-locale.py-use-before-assignment.patch keywords: patch messages: 91173 nosy: vincele severity: normal status: open title:

[issue6621] [RFC] Remove leftover use of Carbon module from Lib/binhex.py

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The binhex module still has uses of the deprecated and now now removed Carbon module. The attached patch 'fix' this by removing the code, something else may be required, but I don't know what. So this is only a RFC to start discussion -- components:

[issue6622] [RFC] wrong variable used in Lib/poplib.py

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The poplib modules use the 'secret' variable during its creation, this may be a mistake. Perhaps the intention was to use the 'password' instead... -- components: Library (Lib) files: py3k-poplib.py-use-wrong-variable.patch keywords: patch messages: 9

[issue6623] Lib/ftplib.py

2009-08-01 Thread Vincent Legoll
Changes by Vincent Legoll : -- components: Library (Lib) nosy: vincele severity: normal status: open title: Lib/ftplib.py versions: Python 3.2 ___ Python tracker ___ _

[issue6623] Lib/ftplib.py netrc class parsing problem

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll : The 'macro_lines' list should probably be emptied upon leaving macro parsing mode. Simplify code by using the 'macro_name' variable as the boolean for macro parsing mode. Deprecated code probably should be fixed until completely removed -- keywords:

[issue6624] PyArg_ParseTuple with "s" format and NUL: Bogus TypeError detail string.

2009-08-01 Thread Sean Reifschneider
New submission from Sean Reifschneider : As detailed in the python-dev post: http://mail.python.org/pipermail/python-dev/2009-July/090791.html I have found a bug in the handling of PyArg_ParseTuple where a NUL in an argument causes a message like this: syslog.syslog('hello\0there') Ty

[issue6624] PyArg_ParseTuple with "s" format and NUL: Bogus TypeError detail string.

2009-08-01 Thread Sean Reifschneider
Sean Reifschneider added the comment: Fixed in python trunk commit 74277. Fixed in py3k trunk commit 74278. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6616] PyList_APPEND (append without incref)

2009-08-01 Thread Campbell Barton
Campbell Barton added the comment: Hi Raymond, in general I agree with your comments that adding 2 ways to do things is not great. The reason I still think this is an advantage is that I know the API well enough (with manipulating dicts/lists etc) and I still want this function for the sake of c