Pygments 1.6rc1 released

2013-01-10 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm happy to announce the release of Pygments 1.6, release candidate 1. Pygments is a generic syntax highlighter written in Python. Pygments 1.6 is again a large release, with over 30 new languages or markups supported, and a few interesting new

Re: [Tutor] How to run multiline shell command within python

2013-01-10 Thread Hugo Arts
On Thu, Jan 10, 2013 at 7:01 AM, Karim kliat...@gmail.com wrote: Hello all, I want to run multiline shell command within python without using a command file but directly execute several lines of shell. I already use *subprocess.checkoutput(csh -f my_file.csh.split())* but I want to know

Re: PIL or something to open EXIF Metadata with Python

2013-01-10 Thread Pete Forman
Tim Golden m...@timgolden.me.uk writes: On 09/01/2013 14:45, Jose Trevino wrote: I am trying to load the PIL module to manage exif metadata with Python but have had no success. Try pyexiv2: http://tilloy.net/dev/pyexiv2/ TJG Or Hachoir http://pypi.python.org/pypi/hachoir-metadata

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

2013-01-10 Thread Duncan Booth
Dave Cinege d...@cinege.com wrote: You will notice that the code is disgusting simple. However I have found that this has completely changed the way I program in python. I've re-written some exiting programs using Thesaurus, and often relized 15-30% code reduction. Additionally I find the new

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

2013-01-10 Thread 88888 Dihedral
在 2013年1月10日星期四UTC+8下午7时34分23秒,Duncan Booth写道: Dave Cinege d...@cinege.com wrote: You will notice that the code is disgusting simple. However I have found that this has completely changed the way I program in python. I've re-written some exiting programs using Thesaurus, and often

Re: [Tutor] How to run multiline shell command within python

2013-01-10 Thread Karim
On 10/01/2013 09:31, Hugo Arts wrote: On Thu, Jan 10, 2013 at 7:01 AM, Karim kliat...@gmail.com mailto:kliat...@gmail.com wrote: Hello all, I want to run multiline shell command within python without using a command file but directly execute several lines of shell. I already

Re: Python-list Digest, Vol 112, Issue 79

2013-01-10 Thread Niklas Berliner
-- Weitergeleitete Nachricht -- From: Dave Angel d...@davea.name To: python-list@python.org Cc: Date: Thu, 10 Jan 2013 00:56:20 -0500 Subject: Re: subprocess.Popen and multiprocessing fails to execute external program On 01/09/2013 11:08 PM, Niklas Berliner wrote: I

Re: [Tutor] How to run multiline shell command within python

2013-01-10 Thread Matty Sarro
Have you looked a the pexpect class? It works like gangbusters, especially if you're trying to run something with an interactive shell. http://www.noah.org/wiki/pexpect On Thu, Jan 10, 2013 at 9:25 AM, Karim kliat...@gmail.com wrote: On 10/01/2013 09:31, Hugo Arts wrote: On Thu, Jan 10,

Re: Why BOM in logging message?

2013-01-10 Thread Roy Smith
In article roy-10b053.20174309012...@news.panix.com, Roy Smith r...@panix.com wrote: In article mailman.344.1357772847.2939.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Thu, Jan 10, 2013 at 9:54 AM, Roy Smith r...@panix.com wrote: What's weird is that two of the servers,

Re: Why BOM in logging message?

2013-01-10 Thread Chris Angelico
On Fri, Jan 11, 2013 at 3:06 AM, Roy Smith r...@panix.com wrote: Well, this is fascinating. It turns out that while all of our machines report that they're running 2.7.3, they have two different versions of /usr/lib/python2.7/logging/handlers.py! -rw-r--r-- 1 root root 45076 Aug 1 05:39

problems importing from /usr/lib/pyshared/

2013-01-10 Thread Harold
Dear all, I recently upgraded my system from ubuntu 11.4 to 12.4 and since run into an issue when trying to import several packages in python2.7, e.g. harold@ubuntu:~$ python -c 'import gtk' Traceback (most recent call last): File string, line 1, in module File

Re: Why BOM in logging message?

2013-01-10 Thread Roy Smith
On Fri, Jan 11, 2013 at 3:06 AM, Roy Smith r...@panix.com wrote: -rw-r--r-- 1 root root 45076 Aug 1 05:39 /usr/lib/python2.7/logging/handlers.py -rw-r--r-- 1 root root 45143 Apr 20 2012 /usr/lib/python2.7/logging/handlers.py Chris Angelico ros...@gmail.com wrote: $ dpkg -S

Re: Why BOM in logging message?

2013-01-10 Thread Chris Angelico
On Fri, Jan 11, 2013 at 3:40 AM, Roy Smith r...@panix.com wrote: On Fri, Jan 11, 2013 at 3:06 AM, Roy Smith r...@panix.com wrote: -rw-r--r-- 1 root root 45076 Aug 1 05:39 /usr/lib/python2.7/logging/handlers.py -rw-r--r-- 1 root root 45143 Apr 20 2012 /usr/lib/python2.7/logging/handlers.py

average time calculation??

2013-01-10 Thread pmec
Hi there guys i've got a script that's suppose to find the average of two times as strings. The times are in minutes:seconds:milliseconds i'm doing ok in printing the right minutes and seconds my problem is with the milliseconds. Example if i have 00:02:20 and 00:04:40 the average will be

Re: average time calculation??

2013-01-10 Thread Oscar Benjamin
On 10 January 2013 17:50, pmec pcura...@gmail.com wrote: Hi there guys i've got a script that's suppose to find the average of two times as strings. The times are in minutes:seconds:milliseconds i'm doing ok in printing the right minutes and seconds my problem is with the milliseconds. You

Re: average time calculation??

2013-01-10 Thread Oscar Benjamin
Two quick corrections to what I wrote... On 10 January 2013 18:13, Oscar Benjamin oscar.j.benja...@gmail.com wrote: On 10 January 2013 17:50, pmec pcura...@gmail.com wrote: Hi there guys i've got a script that's suppose to find the average of two times as strings. The times are in

Re: average time calculation??

2013-01-10 Thread MRAB
On 2013-01-10 17:50, pmec wrote: Hi there guys i've got a script that's suppose to find the average of two times as strings. The times are in minutes:seconds:milliseconds i'm doing ok in printing the right minutes and seconds my problem is with the milliseconds. Example if i have 00:02:20 and

How to change colors of multiple widgets after hovering in Tkinter

2013-01-10 Thread mountdoom12
Hello, I´m trying to make a script, which will change the background and foreground color of widgets after hovering. - from Tkinter import * root=Tk() Hover1=Button(root,text=Red color, bg=white) Hover1.pack() Hover2=Button(root,text=Yellow color, bg=white)

Re: [Tutor] How to run multiline shell command within python

2013-01-10 Thread Karim
On 10/01/2013 16:21, Matty Sarro wrote: Have you looked a the pexpect class? It works like gangbusters, especially if you're trying to run something with an interactive shell. http://www.noah.org/wiki/pexpect On Thu, Jan 10, 2013 at 9:25 AM, Karim kliat...@gmail.com

Re: How to change colors of multiple widgets after hovering in Tkinter

2013-01-10 Thread Peter Otten
mountdoo...@gmail.com wrote: I´m trying to make a script, which will change the background and foreground color of widgets after hovering. but when I hover on any button, nothing happens, they stay white. I know I could use a function, but there would be two functions for every widget (1

Re: RIse and fall of languages in 2012

2013-01-10 Thread Michael Torrie
On 01/10/2013 12:23 AM, Steven D'Aprano wrote: In general-purpose scripting languages, Python continues to grow slowly, JavaScript and Ruby are treading water, and Perl continues its long decline. According to Google trends, the number of searches for Perl is 19% of what it was in 2004. Its

Re: average time calculation??

2013-01-10 Thread pmec
Hi Oscar, Thank you for your reply, and you are absolutely right, I meant hundredths of a second to be outputed -- http://mail.python.org/mailman/listinfo/python-list

Re: average time calculation??

2013-01-10 Thread pmec
Hi Oscar, again I do apologize for my beginner mistakes, I've changed the code taking in consideration some of your and MRAB suggestions. Could you give me an example on how could I use the datetime.timedelta function in this particular case. This is my code: def lap_average(lap1, lap2):

Organic Chemistry, 8th Ed by Wade, Jan Simek

2013-01-10 Thread kalvinmanual
I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com and let me know its title, author and edition. Please this service is NOT free. instructor's solutions manual to OpenScape Voice V3.1R3 Test

Re: average time calculation??

2013-01-10 Thread Ian Kelly
On Thu, Jan 10, 2013 at 1:31 PM, pmec pcura...@gmail.com wrote: Hi Oscar, again I do apologize for my beginner mistakes, I've changed the code taking in consideration some of your and MRAB suggestions. Could you give me an example on how could I use the datetime.timedelta function in this

Re: RIse and fall of languages in 2012

2013-01-10 Thread John Ladasky
On Wednesday, January 9, 2013 11:23:51 PM UTC-8, Steven D'Aprano wrote: One should always be careful pronouncing a language dead or dying, No kidding! https://www.google.com/#q=is+fortran+still+used I usually use the query phrase Why isn't Fortran dead yet?, but you get a better list of

Re: RIse and fall of languages in 2012

2013-01-10 Thread Steven D'Aprano
On Thu, 10 Jan 2013 12:42:49 -0700, Michael Torrie wrote: And from the TIOBE Index, Python is steady at number 8: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html The TIOBE index is meaningless. Since it's based on google searches, one could probably guess that any

Re: Why BOM in logging message?

2013-01-10 Thread Terry Reedy
On 1/10/2013 11:06 AM, Roy Smith wrote: Well, this is fascinating. It turns out that while all of our machines report that they're running 2.7.3, they have two different versions of /usr/lib/python2.7/logging/handlers.py! -rw-r--r-- 1 root root 45076 Aug 1 05:39

Re: RIse and fall of languages in 2012

2013-01-10 Thread Walter Hurry
On Thu, 10 Jan 2013 07:23:51 +, Steven D'Aprano wrote: In general-purpose scripting languages, Python continues to grow slowly, JavaScript and Ruby are treading water, and Perl continues its long decline. According to Google trends, the number of searches for Perl is 19% of what it was in

Probabilistic unit tests?

2013-01-10 Thread Nick Mellor
Hi, I've got a unit test that will usually succeed but sometimes fails. An occasional failure is expected and fine. It's failing all the time I want to test for. What I want to test is on average, there are the same number of males and females in a sample, give or take 2%. Here's the unit

Re: Probabilistic unit tests?

2013-01-10 Thread Roy Smith
In article b312f3e7-5c73-486e-925e-da8343963...@googlegroups.com, Nick Mellor thebalance...@gmail.com wrote: Hi, I've got a unit test that will usually succeed but sometimes fails. An occasional failure is expected and fine. It's failing all the time I want to test for. What I want to

Re: Probabilistic unit tests?

2013-01-10 Thread Steven D'Aprano
On Thu, 10 Jan 2013 17:59:05 -0800, Nick Mellor wrote: Hi, I've got a unit test that will usually succeed but sometimes fails. An occasional failure is expected and fine. It's failing all the time I want to test for. Well, that's not really a task for unit testing. Unit tests, like most

Re: How to modify this script?

2013-01-10 Thread Kurt Hansen
Kurt wrote: Spooky behavior. Yes, the green-apple-example also works for me with your new script, BUT ...! Try to copy the table content on this page: http://www.danacord.dk/frmsets/records/732-r.html which is a realistic scenario. That's whar I am doing these days. Pasting it into Gedit

Re: RIse and fall of languages in 2012

2013-01-10 Thread Craig Yoshioka
At one point or another I'm pretty sure I've googled _ sucks for every language I've ever used- even the ones I like. ie: Python easily more than once. Craig reporting from the road 10550 N Torrey Pines Rd La Jolla CA 92037 work: 858 784 9208 cell: 619 623 2233 On Jan 10, 2013, at 3:32

Re: Over 30 types of variables available in python ?

2013-01-10 Thread Rick Johnson
On 1-7-2013 2:53:26 AM UTC-6, chaouche yacine wrote: Thanks for all your comments. It appears to me that there is a slight confusion between types and classes then, plus other entities (protocols ?) The only confusion stems from improper terminology. Class is the worst possible word to

Re: How to change colors of multiple widgets after hovering in Tkinter

2013-01-10 Thread Rick Johnson
On Thursday, January 10, 2013 1:13:38 PM UTC-6, Peter Otten wrote: mountdoom wrote: I´m trying to make a script, which will change the background and foreground color of widgets after hovering. Peter's advice is spot on except you may want ALL widgets to change colors on ENTER and LEAVE

PyWart: Module access syntax

2013-01-10 Thread Rick Johnson
Python's module/package access uses dot notation. mod1.mod2.mod3.modN Like many warts of the language, this wart is not so apparent when first learning the language. The dot seems innocently sufficient, however, in truth it is woefully inadequate! Observe: name1.name2.name3.name4.name5

PyWart: Import resolution order

2013-01-10 Thread Rick Johnson
Python's import resolution order is terrible.[1] The fact that Python looks in the stdlib _first_ is not a good idea. It would seem more intuitive for a custom math module (living in the current directory) to /override/ the stlib math module. The proper order is as follows: 1. Current

Re: PyWart: Import resolution order

2013-01-10 Thread Chris Angelico
On Fri, Jan 11, 2013 at 5:13 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: The fact that Python looks in the stdlib _first_ is not a good idea. It would seem more intuitive for a custom math module (living in the current directory) to /override/ the stlib math module. The proper order

[issue16913] ElementTree tostring error when method='text'

2013-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you please provide an example of data for which the tostring method fails? I can't reproduce this on simple data. import xml.etree.ElementTree as ET ET.tostring(ET.XML('rootbq/bwerty/root'), method='text', encoding='unicode') 'qwerty' --

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-01-10 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- title: symlinks incorrectly resolved on Linux - symlinks incorrectly resolved on POSIX platforms ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6975

[issue16913] ElementTree tostring error when method='text'

2013-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I found such example. It happens when the data contains XML entity. ET.tostring(ET.XML('rootaamp;/root'), method='text', encoding='unicode') Traceback (most recent call last): File stdin, line 1, in module File

[issue16909] urlparse: add userinfo attribute

2013-01-10 Thread Olof Johansson
Olof Johansson added the comment: Thank you for you feedback. I agree, the reason I wanted this was because of a corner case, but otoh, the username:password syntax is the real corner case imho. Of course, I understand that this must be supported for backwards compatability. (For fully RFC

[issue16913] ElementTree tostring error when method='text'

2013-01-10 Thread Frank
Frank added the comment: It happens whenever the method is called, regardless of input. I'm using HTML that has been tidied first with HTML entities (if any) converted to unicode values. -- ___ Python tracker rep...@bugs.python.org

[issue16912] Wrong float sum w/ 10.14+10.1 and 10.24+10.2

2013-01-10 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16912 ___ ___

[issue16913] ElementTree tostring error when method='text'

2013-01-10 Thread Frank
Frank added the comment: Scratch that, it happens whenever there are XML entities (lt;, quot; and friends) that are appearing the text as you pointed out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16913

[issue16913] ElementTree tostring error when method='text'

2013-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for 3.3+. 2.7 and 3.2 are not affected. -- keywords: +patch stage: needs patch - patch review versions: +Python 3.4 Added file: http://bugs.python.org/file28666/etree_itertext.patch ___ Python

[issue15948] Unchecked return value of I/O functions

2013-01-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15948 ___ ___

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-10 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +daniel.urban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16894 ___ ___

[issue16865] ctypes arrays =2GB in length causes exception

2013-01-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: In _ctypes.c there are (only!) two occurrences of the long type... both are related to ctypes arrays and look suspect. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16865

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2013-01-10 Thread gac
New submission from gac: I had cause to use smtplib to help me pinpoint why some outgoing mail was failing, but found that while it offered verbose logging (via debuglevel 1) this was without timestamps, making it difficult to make my case to the server operator that it was a server-side

[issue16874] setup.py upload option repeated in docs

2013-01-10 Thread Marek Šuppa
Marek Šuppa added the comment: So what do you think should be done here? Just removing the or --repository= part? -- nosy: +mrshu ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16874 ___

[issue16874] setup.py upload option repeated in docs

2013-01-10 Thread Berker Peksag
Berker Peksag added the comment: I think the problem is the usage of `:option:`. |:option:`--repository=url` or :option:`--repository=section`| should be written like |:option:`--repository=*url*` or :option:`--repository=*section*`| See: -

[issue16715] Get rid of IOError. Use OSError instead

2013-01-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: It's not a typo. 1. LoadError is inherited from OSError so LoadError exception is also caught. 2. Pointed code just resets cookie state and reraises exception, exception type is saved. The code is correct from my perspective. --

[issue13198] Remove duplicate definition of write_record_file

2013-01-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Eric, if you want to keep distutils2 issues on the tracker for a while — I'm ok with that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13198 ___

[issue16915] mode of socket.makefile is more limited than documentation suggests

2013-01-10 Thread Antoon Pardon
New submission from Antoon Pardon: The documentation of socket.makefile states that its arguments are interpreted the same way as by the built-in open() function. However the mode argument of socket.makefile only allows 'r', 'w' and 'b'. That some options are not allowed seems perfectly

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2013-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d6dadfecf22 by Eli Bendersky in branch '3.3': Issue #16076: make _elementtree.Element pickle-able in a way that is compatible http://hg.python.org/cpython/rev/8d6dadfecf22 New changeset 4c268b7c86e6 by Eli Bendersky in branch 'default': Issue

[issue16917] Misleading missing parenthesis syntax error

2013-01-10 Thread Dražen Lučanin
New submission from Dražen Lučanin: When running this script: things = ['a', 'b'] things.append('c' for a in things: print a I get the following output: $ python script.py File script.py, line 3 for a in things: ^ SyntaxError: invalid syntax the SyntaxError is

[issue16916] The Extended Iterable Unpacking (PEP-3132) for byte strings doesn't match the specification

2013-01-10 Thread Marco Buttu
New submission from Marco Buttu: The PEP 3132 said: ... if seq is a slicable sequence, all the following assignments are equivalent if seq has at least three elements: a, b, c = seq[0], seq[1:-1], seq[-1] a, *b, c = seq [a, *b, c] = seq But this doesn't happen for byte strings: seq =

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2013-01-10 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed in 3.3 and default. Thanks for the good work, Daniel. A separate issue can be opened for TreeBuilder. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue16917] Misleading missing parenthesis syntax error

2013-01-10 Thread Dražen Lučanin
Changes by Dražen Lučanin kermit...@gmail.com: -- type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16917 ___ ___

[issue16917] Misleading missing parenthesis syntax error

2013-01-10 Thread Ezio Melotti
Ezio Melotti added the comment: The colon is the first invalid char, for example this is valid python and works: things = ['a', 'b'] things.append('c' ... for a in things) things ['a', 'b', generator object genexpr at 0xb76dacfc] In your case Python expects a genexp like things.append('c'

[issue16917] Misleading missing parenthesis syntax error

2013-01-10 Thread Mark Dickinson
Mark Dickinson added the comment: The error is in a missing parenthesis after the append call Well, that's one *possible* cause of the error. But fixing that missing parenthesis isn't the only way to make the code correct, and Python doesn't have any reasonable way to guess which of the

[issue16913] ElementTree tostring error when method='text'

2013-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d965ff47cf94 by Eli Bendersky in branch '3.3': Issue #16913: Fix Element.itertext()'s handling of text with XML entities. http://hg.python.org/cpython/rev/d965ff47cf94 New changeset 9ab8632e7213 by Eli Bendersky in branch 'default': Issue #16913:

[issue16913] ElementTree tostring error when method='text'

2013-01-10 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed. Thanks. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16913 ___

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2013-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset c46054b49b6c by Eli Bendersky in branch '3.3': Update Misc/NEWS for issue #16076 http://hg.python.org/cpython/rev/c46054b49b6c -- ___ Python tracker rep...@bugs.python.org

[issue16613] ChainMap.new_child could use improvement

2013-01-10 Thread Walter Dörwald
Walter Dörwald added the comment: I'd like to have this feature too. However the code should use d if d is not None else {} instead of d or {} For example I might want to use a subclass of dict (lowerdict) that converts all keys to lowercase. When I use an empty lowerdict in

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2013-01-10 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching an alternative patch, that goes one (little) step further. Instead of repeating the ignored list all over the place (code, docstrings, ReST docs), the module exposes DEFAULT_IGNORES so everything can refer to it. Also added some tests for this

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2013-01-10 Thread Eli Bendersky
Eli Bendersky added the comment: Ariel, are you interested in pursuing this issue? Serhiy, I see you assigned this to yourself - would you like to submit a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14377

[issue16917] Misleading missing parenthesis syntax error

2013-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For better syntax error messages see issue1634034. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16917 ___

[issue16917] Misleading missing parenthesis syntax error

2013-01-10 Thread Dražen Lučanin
Dražen Lučanin added the comment: Yes, sure, I agree with both comments. Fors are a bit disambiguous in this context in comparison to while loops. But something in the style of Ezio's explanation might come in handy in the error output. e.g. SyntaxError: invalid syntax. , or ) expected in the

[issue16509] sqlite3 docs do not explain check_same_thread

2013-01-10 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16509 ___ ___

[issue16917] Misleading missing parenthesis syntax error

2013-01-10 Thread Ezio Melotti
Ezio Melotti added the comment: This would all be a bit simpler if an indent was obligatory after inserting a newline in the middle of a command. This is not such a bad idea, but it is not backward-compatible and it would be inconsistent with how parentheses works in other situations.

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2013-01-10 Thread R. David Murray
R. David Murray added the comment: For the record, this is a regression introduced by the fix for issue 9750. I plan to commit the fix shortly, thanks for the report and patch. -- nosy: +r.david.murray stage: - commit review type: crash - behavior versions: +Python 2.7, Python 3.3,

[issue9750] sqlite3 iterdump fails on column with reserved name

2013-01-10 Thread R. David Murray
R. David Murray added the comment: For the record, this patch also introduced another regression (issue 15545). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9750 ___

[issue10182] match_start truncates large values

2013-01-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Note that this change is causing problems with genshi due to API backward incompatibility. This is reported here: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1097783 The reason the user found it in Ubuntu first is that we track hg tip, but I've

[issue10182] match_start truncates large values

2013-01-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Nosied Benjamin since this is a release issue. Re-opened, assigned to him, and release blocked for 2.7.4. -- assignee: - benjamin.peterson nosy: +georg.brandl, larry priority: normal - release blocker status: closed - open

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2013-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2cdb599172ab by R David Murray in branch '3.2': #15545: fix sqlite3.iterdump regression on unsortable row_factory objects. http://hg.python.org/cpython/rev/2cdb599172ab New changeset 6a85894c428f by R David Murray in branch '3.3': merge #15545: fix

[issue10182] match_start truncates large values

2013-01-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10182 ___ ___

[issue16613] ChainMap.new_child could use improvement

2013-01-10 Thread Vinay Sajip
Vinay Sajip added the comment: d if d is not None else {} Your intention makes sense, though I would prefer to write it as: if d is None: d = {} return self.__class__(d, *self.maps) -- ___ Python tracker rep...@bugs.python.org

[issue16218] Python launcher does not support unicode characters

2013-01-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16218 ___ ___ Python-bugs-list mailing list

[issue9750] sqlite3 iterdump fails on column with reserved name

2013-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2cdb599172ab by R David Murray in branch '3.2': #15545: fix sqlite3.iterdump regression on unsortable row_factory objects. http://hg.python.org/cpython/rev/2cdb599172ab New changeset 6a85894c428f by R David Murray in branch '3.3': merge #15545: fix

[issue10182] match_start truncates large values

2013-01-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: Actually, 2.7 should just use PyInt_FromSsize_t, which only promotes when needed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10182 ___

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2013-01-10 Thread R. David Murray
R. David Murray added the comment: Peter, I see you've made contributions before, but you don't show as having a contributor agreement on file according to the tracker. Have you sent one in? If not, would you, please? Thanks again for the fix. -- components: +Library (Lib) -None

[issue10182] match_start truncates large values

2013-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f5067d9e1d8 by Benjamin Peterson in branch '2.7': use PyInt_FromSsize_t instead of PyLong_FromSsize_t (#10182) http://hg.python.org/cpython/rev/0f5067d9e1d8 -- ___ Python tracker rep...@bugs.python.org

[issue10182] match_start truncates large values

2013-01-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's good you were able to report this before we released anything. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10182 ___

[issue16918] Fix test discovery for test_codecs.py

2013-01-10 Thread Zachary Ware
New submission from Zachary Ware: Here's the fix for test_codecs.py, I believe. I had a few headaches trying to get this patch created without changing some of the characters or adding a BOM to the file, and at one point the test was failing for no apparent reason. This version of the patch

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2013-01-10 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email nosy: +barry, r.david.murray stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16914 ___

[issue16919] Fix test discovery for test_crypt.py

2013-01-10 Thread Zachary Ware
New submission from Zachary Ware: Here's a fix for test_crypt.py, inspired by Ezio's mention of using setUpModule in issue 16905. I can't test this on a platform that actually has _crypt at the moment, but I should be able to later today if nobody else has before then. Some tinkering has

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch rewritten using recursion. Non-recursive version is not stack limited (and a little faster), but recursive version is perhaps more understandable. Some comments added. -- Added file: http://bugs.python.org/file28672/posix_realpath_2.patch

[issue1634034] Show expected token on syntax error

2013-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: dict(a = i for i in range(10)) +SyntaxError: invalid syntax - ')' expected The () are ok, the message is misleading. dict(a = i) is valid syntax, the compiler expects ) instead of invalid for. 'name' here is a bit vague. The compiler

[issue16919] Fix test discovery for test_crypt.py

2013-01-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16919 ___

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2013-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Serhiy, I see you assigned this to yourself - would you like to submit a patch? Not right now. This is low priority for me too. But I want to see this feature in 3.4. -- ___ Python tracker

[issue16918] Fix test discovery for test_codecs.py

2013-01-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16918 ___

[issue1634034] Show expected token on syntax error

2013-01-10 Thread Ezio Melotti
Ezio Melotti added the comment: I'm not saying that these errors are wrong -- just that they are misleading (i.e. they might lead the user on the wrong path, and make finding the actual problem more difficult). It should be noted that the examples I pasted don't include a full traceback

[issue16920] multiprocessing.connection listener gets MemoryError on recv

2013-01-10 Thread John Brearley
New submission from John Brearley: Using a multiprocessing.connection listener, I can accept an incoming socket OK, but when I do conn.recv(), I get memory error. The attached script mpl_bug.py will readily reproduce the issues on WinXP WinVista, see sample output below: pre c:\python

[issue16920] multiprocessing.connection listener gets MemoryError on recv

2013-01-10 Thread John Brearley
Changes by John Brearley brear...@magma.ca: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16920 ___ ___ Python-bugs-list

[issue16921] Docs of subprocess.CREATE_NEW_CONSOLE are wrong

2013-01-10 Thread Torsten Landschoff
New submission from Torsten Landschoff: The documentation of CREATE_NEW_CONSOLE at http://docs.python.org/3/library/subprocess.html#subprocess.CREATE_NEW_CONSOLE states: This flag is always set when Popen is created with shell=True. This does not fit the code which does if

[issue16920] multiprocessing.connection listener gets MemoryError on recv

2013-01-10 Thread John Brearley
John Brearley added the comment: In V3.2.2.3, the conn.accept() was failing to resolve the socket address. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16920 ___

[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: import xml.etree.cElementTree as ET ET.XML('rootempty //root').findtext('empty') b'' -- components: XML files: etree_finditer_empty.patch keywords: patch messages: 179580 nosy: eli.bendersky, serhiy.storchaka priority: normal severity: normal

  1   2   >