[issue13299] namedtuple row factory for sqlite3

2011-10-30 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2011-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since following the spec is not a bug, this issue is a feature request for 3.3. I agree with just being lenient with no added parameter. Perhaps that should be mentioned in the doc with (or in) a version-added note. Senthil: does doc standard allow something

[issue13296] IDLE: __future__ flags don't clear on shell restart

2011-10-30 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch! Committed to 27 (for release in 2.7.3), 32 (for 3.2.3), and default (for 3.3). -- assignee: -> ned.deily nosy: +ned.deily resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 -Python 2.6, P

[issue13296] IDLE: __future__ flags don't clear on shell restart

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 87251608cb64 by Ned Deily in branch '2.7': Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart. http://hg.python.org/cpython/rev/87251608cb64 New changeset 9fbf79d6be56 by Ned Deily in branch '3.2': Issue 13296: Fix IDLE to cle

[issue13300] IDLE 3.3 Restart Shell command fails

2011-10-30 Thread Ned Deily
Changes by Ned Deily : -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file23565/issue13300-3x.patch ___ Python tracker ___

[issue13300] IDLE 3.3 Restart Shell command fails

2011-10-30 Thread Ned Deily
New submission from Ned Deily : Currently in the default (pre-3.3) branch, IDLE fails if its Restart Shell command is attempted: Exception in Tkinter callback Traceback (most recent call last): File "Lib/tkinter/__init__.py", line 1397, in __call__ return self.func(*args) File "Lib/idle

[issue13226] Expose RTLD_* constants in the posix module

2011-10-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Python/sysmodule.c still contains references to DLFCN module. -- ___ Python tracker ___ __

[issue13298] Result type depends on order of operands for bytes and bytearray

2011-10-30 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue2979] use_datetime in SimpleXMLRPCServer

2011-10-30 Thread Florent Xicluna
Changes by Florent Xicluna : -- assignee: -> flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13299] namedtuple row factory for sqlite3

2011-10-30 Thread Nick Coghlan
New submission from Nick Coghlan : Currently, sqlite3 allows rows to be easily returned as ordinary tuples (default) or sqlite3.Row objects (which allow dict-style access). collections.namedtuple provides a much nicer interface than sqlite3.Row for accessing ordered data which uses valid Pytho

[issue13298] Result type depends on order of operands for bytes and bytearray

2011-10-30 Thread Nick Coghlan
New submission from Nick Coghlan : In a recent python-ideas discussion of the differences between concatenation and augmented assignment on lists, I pointed out the general guiding principle behind Python's binary operation semantics was that the type of a binary operation should not depend on

[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-30 Thread Senthil Kumaran
Senthil Kumaran added the comment: I agree with your interpretation of the RFC. The parsing rules do not specify any provision for inclusion of blank lines "within" the records. However, I find that inclusion is no harm either. I checked that with a robots.txt parser (Google webmaster tools)

[issue13293] xmlrpc.client encode error

2011-10-30 Thread Florent Xicluna
Florent Xicluna added the comment: FWIW, I opened a feature request #13297. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13297] xmlrpc.client could accept bytes for input and output

2011-10-30 Thread Florent Xicluna
Changes by Florent Xicluna : -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file23564/issue13297_xmlrpc_bytes.diff ___ Python tracker ___

[issue13297] xmlrpc.client could accept bytes for input and output

2011-10-30 Thread Florent Xicluna
New submission from Florent Xicluna : Since Python 3 makes clear the distinction between bytes and string, there is no more reason to use the xmlrpc.client.Binary wrapper for binary objects. The xmlrpc library may deal with bytes and bytearray normally. To support backward compatibility, the Se

[issue2979] use_datetime in SimpleXMLRPCServer

2011-10-30 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox stage: needs patch -> patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-10-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: Changing the error message sounds fine to me. People in need of the feature should lobby their system vendors to provide a Tcl build that uses a 32-bit Tcl_UniChar. Not sure whether it would actually render the string correctly, but at least it would be able

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-10-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: > That's because you didn't define a handle_read() method Ooops... Attached is a patch for dispatcher_with_send and asynchat with a test case for each, that fail when the fix is not applied. -- Added file: http://bugs.python.org/file23563/asyncore_dra

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-10-30 Thread Ned Deily
Ned Deily added the comment: (Merging CC list from duplicate Issue13265. -- nosy: +ezio.melotti, kbk, maniram.maniram, serwy ___ Python tracker ___ _

[issue13265] IDLE crashes when printing some unprintable characters.

2011-10-30 Thread Ned Deily
Ned Deily added the comment: Sorry, I should have noticed earlier that this is a duplicate of Issue12342. The problem is simply that Tcl/Tk does not currently support the display of Unicode code points outside of the BMP. The question then is what IDLE to do when asked to display such chara

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: I went ahead an added the guards to the pure python code. Still disagree with your assertion that non-cpython implementations were somehow broken when an undefined behavior was implemented in a different way -- nsmallest() and nlargest() have no guaranteed

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 155e57a449b5 by Raymond Hettinger in branch '3.2': Issue 13274: Make the pure python code for heapq more closely match the C implementation for an undefined corner case. http://hg.python.org/cpython/rev/155e57a449b5 -- __

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57f73b0f921c by Raymond Hettinger in branch '2.7': Issue 13274: Make the pure python code for heapq more closely match the C implementation for an undefined corner case. http://hg.python.org/cpython/rev/57f73b0f921c -- nosy: +python-dev

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-10-30 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> duplicate ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue13295] html5 template for Lib/http/server.py

2011-10-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ezio: your patch is fine for 3.3. I agree it's not a bug fix. I propose the following additional changes, though: - the name of the root element should be lower-case in the DOCTYPE declaration. - DEFAULT_ERROR_MESSAGE should get an opening html tag. karl: HTML

[issue1467929] %-formatting and dicts

2011-10-30 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: needs patch -> patch review versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue13293] xmlrpc.client encode error

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 013d2881beb5 by Florent Xicluna in branch '3.2': Issue #13293: Better error message when trying to marshal bytes using xmlrpc.client. http://hg.python.org/cpython/rev/013d2881beb5 -- nosy: +python-dev _

[issue13291] latent NameError in xmlrpc package

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset f3d454b20b35 by Florent Xicluna in branch '3.2': Closes #13291: NameError in xmlrpc package. http://hg.python.org/cpython/rev/f3d454b20b35 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected status: open ->

[issue10519] setobject.c no-op typo

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c17394b0b95 by Petri Lehtinen in branch '3.2': Add Misc/NEWS entry for issue #10519 http://hg.python.org/cpython/rev/5c17394b0b95 New changeset 3bda54275817 by Petri Lehtinen in branch '2.7': Add Misc/NEWS entry for issue #10519 http://hg.python.o

[issue12797] io.FileIO and io.open should support openat

2011-10-30 Thread Ross Lagerwall
Ross Lagerwall added the comment: Updated patch: * checks for long overflow * raises original exception if opener returns null * makes it explicit that "opener" must return an open file descriptor. I don't think that mode should be passed in since it is not specified in the parameters to open(

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: > While writing the test case, I found out that the test case does not > fail before the patch. It seems that draining the output buffer > already works: > > The attached script 'asyncore_shutdown.py' drains the output buffer > when run without the patc

[issue13265] IDLE crashes when printing some unprintable characters.

2011-10-30 Thread Roger Serwy
Roger Serwy added the comment: I can reproduce the problem with Ubuntu 11.04 with Python 3.2. The WidgetRedirector calls tk_call with a tuple containing unencoded Unicode strings. Attached is a patch to encode all arguments if the argument has the "encode" attribute. This seems to fix the p

[issue10363] Embedded python, handle (memory) leak

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 608975eafe86 by Antoine Pitrou in branch '3.2': Issue #10363: Deallocate global locks in Py_Finalize(). http://hg.python.org/cpython/rev/608975eafe86 New changeset 728595c16acd by Antoine Pitrou in branch 'default': Issue #10363: Deallocate global

[issue12797] io.FileIO and io.open should support openat

2011-10-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Also, the documentation should indicate what exactly is supposed to be returned by "opener". -- nosy: +benjamin.peterson ___ Python tracker ___

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-10-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: While writing the test case, I found out that the test case does not fail before the patch. It seems that draining the output buffer already works: The attached script 'asyncore_shutdown.py' drains the output buffer when run without the patch, with Python 3.2,

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-10-30 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file23559/asyncore_shutdown.py ___ Python tracker ___ ___ Python-bugs-list mail

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2011-10-30 Thread Roger Serwy
Roger Serwy added the comment: Attached is a patch against 3.2.2 which does proper after_cancel calls on the after calls to checkhide_event. -- Added file: http://bugs.python.org/file23558/patch5219.diff ___ Python tracker

[issue12797] io.FileIO and io.open should support openat

2011-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is my quick review: - shouldn't the opener also get the third open() argument (although it currently seems to always be 0o666)? - when fdobj is NULL, you shouldn't override the original error - PyLong_AsLong can fail (if the opener returns too large an int

[issue13296] IDLE: __future__ flags don't clear on shell restart

2011-10-30 Thread Roger Serwy
New submission from Roger Serwy : The interactive interpreter in IDLE does not reset its compiler __future__ flags when you restart the shell. To verify this, type into the shell: >>> from __future__ import barry_as_FLUFL >>> 1 != 2 You'll get a syntax error. Restart the shell an

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: > The attached patch uses another name In that case, you should use a name starting with an underscore ("private" namespace). > and drains the output buffer only on a close event, not on error conditions. Hmmm... I don't think it's a good idea. For e

[issue13294] http.server - HEAD request when no resource is defined.

2011-10-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13295] html5 template for Lib/http/server.py

2011-10-30 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch to replace 3.2 with 4.01. The output of the page should be checked and validated before committing this. I'm not sure if this should go in 2.7/3.2 too, on one hand it's not a bug fix so it shouldn't, on the other hand I don't think it will break an

[issue13295] html5 template for Lib/http/server.py

2011-10-30 Thread Ezio Melotti
Ezio Melotti added the comment: I think HTML 4.01 strict is still fine -- no need to move to HTML 5 yet. The template that uses HTML 3.2 can probably be updated though. -- nosy: +eric.araujo, ezio.melotti versions: +Python 3.3 -Python 3.1, Python 3.2 ___

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-10-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Note that the patch may break applications that have given different > semantics to 'closing' ('closing' being such a common name for a > network application) after they noticed that this attribute is never > used by asyncore nor by asynchat. I was thinking a

[issue13295] html5 template for Lib/http/server.py

2011-10-30 Thread karl
New submission from karl : The code has a set of old HTML templates. Here is a patch to change it to very simple html5 templates. -- components: Library (Lib) files: server-html5.patch keywords: patch messages: 146641 nosy: karlcow, orsenthil priority: normal severity: normal status: op

[issue12801] C realpath not used by os.path.realpath

2011-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: Another problem with the POSIX realpath(3): it can fail with ENOENT if the target path doesn't exist, whereas the current Python implementation "succeeds" even if a component in the path doesn't exist. Note the quotes around "succeeds", because I'm no

[issue13294] http.server - HEAD request when no resource is defined.

2011-10-30 Thread karl
New submission from karl : A very simple HTTP server #!/usr/bin/python3 import http.server from os import chdir # CONFIG ROOTPATH = '/Your/path/' PORT = 8000 # CODE def run(server_class=http.server.HTTPServer, server_handler=http.server.SimpleHTTPRequestHandler): server_address = ('', POR

[issue13293] xmlrpc.client encode error

2011-10-30 Thread Florent Xicluna
Florent Xicluna added the comment: binary data should be wrapped with Binary. http://docs.python.org/dev/library/xmlrpc.client.html#binary-objects -- components: +Library (Lib), XML nosy: +flox resolution: -> invalid stage: -> committed/rejected status: open -> closed ___

[issue12762] EnvironmentError_str contributes to unportable code

2011-10-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13277] tzinfo subclasses information

2011-10-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +belopolsky, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue13293] xmlrpc.client encode error

2011-10-30 Thread luchenue
New submission from luchenue : import xmlrpc.client server = xmlrpc.client.Server('XXX') print(server.login(b'bHVjaGVudWU=',b'bHVjaGVudWU=')) => xmlrpc.client def dump_string write(escape(value)) dispatch[bytes] = dump_string => def escape(s): s = s.replace("&", "&") bytes can't rep

[issue10519] setobject.c no-op typo

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ddc7b339a8b by Petri Lehtinen in branch '2.7': Fix the return value of set_discard (issue #10519) http://hg.python.org/cpython/rev/7ddc7b339a8b New changeset b643458a0108 by Petri Lehtinen in branch '3.2': Fix the return value of set_discard (issu

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-10-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the explanations. I confirm that the patch fixes 'asyncore_12498.py' with your changes applied to this script. Note that the patch may break applications that have given different semantics to 'closing' ('closing' being such a common name for a netwo

[issue10519] setobject.c no-op typo

2011-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72de2ac8bb4f by Petri Lehtinen in branch '2.7': Avoid unnecessary recursive function calls (closes #10519) http://hg.python.org/cpython/rev/72de2ac8bb4f New changeset 664bf4f3a820 by Petri Lehtinen in branch '3.2': Avoid unnecessary recursive funct

[issue13292] missing versionadded for bytearray

2011-10-30 Thread Florent Xicluna
New submission from Florent Xicluna : versionadded is missing here: http://docs.python.org/library/functions.html#bytearray -- assignee: docs@python components: Documentation messages: 146633 nosy: docs@python, flox priority: normal severity: normal stage: needs patch status: open title:

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-10-30 Thread Ezio Melotti
Ezio Melotti added the comment: Attached a new patch with a few more tests and minor refactoring. -- keywords: +needs review stage: patch review -> commit review versions: +Python 2.7 Added file: http://bugs.python.org/file23553/issue670664.diff ___

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: Here's the error message: """ error: File not found: /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyc error: File not found: /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/fo

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: > This does not seem to work. Yes, the proposed fix is buggy: the solution is to drain the output buffer, guarding against recursive calls between send() and handle_close() (patch attached). > Note that after the first 'handle_close' has been printed,

[issue13291] latent NameError in xmlrpc package

2011-10-30 Thread Florent Xicluna
Florent Xicluna added the comment: Thank you. Patch updated. -- Added file: http://bugs.python.org/file23551/issue13291_xmlrpc_v2.diff ___ Python tracker ___ ___

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-30 Thread Nadeem Vawda
Nadeem Vawda added the comment: > New changeset 3c225f938dae by Barry Warsaw in branch '2.7': > - Issue #13218: Fix test_ssl failures on Debian/Ubuntu. > http://hg.python.org/cpython/rev/3c225f938dae This changeset appears to have broken a number of the 2.7 Linux buildbots: http://www.pyt

[issue13291] latent NameError in xmlrpc package

2011-10-30 Thread Ezio Melotti
Ezio Melotti added the comment: I left a couple of comments on rietveld. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bug