Wing IDE 4.0 Released

2011-02-21 Thread Wingware
Hi, Wingware has released version 4.0 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

Wingware Sale: 20% off Everything

2011-02-21 Thread Wingware
Hi, To celebrate the release of Wing IDE version 4.0 we are offering 20% off all new licenses, upgrades, and Support+Upgrades subscriptions through March 17th, 2011. Start at https://wingware.com/store and enter discount code w4sale when prompted. For more information on Wing IDE 4.0 see

Re: [RELEASED] Python 3.2

2011-02-21 Thread Peter Otten
Georg Brandl wrote: On behalf of the Python development team, I'm delighted to announce Python 3.2 final release. Congratulations for your first as release manager, and a big thank you to you and all who contributed to this realease. Python 3.2 is a continuation of the efforts to improve

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-21 Thread Mark Dickinson
On Feb 20, 8:08 am, Raymond Hettinger pyt...@rcn.com wrote: [...] n * e 3.1415926 Compute ð ± e by counting Mandlebrot set iterations :-) Very neat! Is it supposed to be obvious why this gives an approximation to pi? If so, I'll think about it a bit more; if not, do you have any

Re: [RELEASED] Python 3.2

2011-02-21 Thread Stefan Behnel
Georg Brandl, 20.02.2011 23:22: On behalf of the Python development team, I'm delighted to announce Python 3.2 final release. [...] Please consider trying Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Note to packagers: This release has a

CEFP 2011 Summer School: call for participation

2011-02-21 Thread CEFP Summer School
= 4TH CENTRAL EUROPEAN FUNCTIONAL PROGRAMMING SCHOOL (CEFP 2011) EOTVOS LORAND UNIVERSITY, BUDAPEST, HUNGARY June 14-24, 2011 http://plc.inf.elte.hu/cefp THE REGISTRATION IS OPEN! = SCOPE OF THE SUMMER SCHOOL The

Re: Problems of Symbol Congestion in Computer Languages

2011-02-21 Thread Ian
On 18/02/2011 07:50, Chris Jones wrote: Always struck me as odd that a country like Japan for instance, with all its achievements in the industrial realm, never came up with one single major piece of software. I think there are two reasons for this. 1) Written Japanese is so hard that the

CENTERIS’2011 | Conference on ENTERprise Information Systems | Call for Papers

2011-02-21 Thread CENTERIS 2011- Conference on ENTERprise Information Systems
Please excuse us if you receive this email more than one. We would be very grateful if you could disseminate this call among your research peers and colleagues. -- -- CENTERIS’2011 | Call for Papers -- Conference on ENTERprise Information Systems -- Vilamoura,

CENTERIS’2011 | Conference on ENTERprise Information Systems | Call for Papers

2011-02-21 Thread CENTERIS’2011 | Conference on ENTERprise Information Systems | Call for Papers
Please excuse us if you receive this email more than one. We would be very grateful if you could disseminate this call among your research peers and colleagues. -- -- CENTERIS’2011 | Call for Papers -- Conference on ENTERprise Information Systems -- Vilamoura,

PyCon Australia 2011 - Call for Participation

2011-02-21 Thread Richard Jones
The second PyCon AU will be held in Sydney on the weekend of the 20th and 21st of August at the Sydney Masonic Center. http://pycon-au.org/ We are looking for proposals for Talks on all aspects of Python programming from novice to advanced levels; applications and frameworks, or how you have

fastPATX Bison is here! for your speedy and safe web browsing needs!

2011-02-21 Thread patx
fastPATX 7.0.0 codenamed Bison is now out! You can get it at patx.me/fastpatx. If you have never tried fastPATX your missing out on the pinnacle of Python and PyQt4 development. Try it, you'll like it, and maybe even learn something from it. It has been awhile since the last fastPATX release, but

Re: Python 3.2 and html.escape function

2011-02-21 Thread Steven D'Aprano
On Sun, 20 Feb 2011 15:33:39 +0100, Peter Otten wrote: Steven D'Aprano wrote: On Sun, 20 Feb 2011 08:15:35 -0500, Gerald Britton wrote: I see that Python 3.2 includes a new module -- html -- with a single function -- escape. I would like to know how this function differs from

Re: Python leaks in cyclic garbage collection

2011-02-21 Thread n00m
Wild guess: maybe when python exits they are called but sys.stdout has already been closed and nothing gets written on it anymore. Certainly NOT. class Foo(): def __init__(self): self.b = Bar(self) def __del__(self): print Free Foo class Bar(): def

Re: Making Line Graphs

2011-02-21 Thread Jean-Michel Pichavant
spam head wrote: I'm looking for an easy way to display simple line graphs generated by a python program in Windows. It could be done from within the program, or I could write the information out to a file and call an external program. Either is fine. Does anybody have any recommendations for

Re: hmac module and key format

2011-02-21 Thread Stuart Longland
On Feb 21, 4:59 am, Peter Pearson ppear...@nowhere.invalid wrote: On Sun, 20 Feb 2011 04:01:20 -0800, Paul Rubin no.em...@nospam.invalid wrote: Stuart Longland redhat...@gentoo.org writes: What format does hmac require the key to be in? It's an arbitrary string.       I have a key in

Re: IDLE won't wrap lines of text

2011-02-21 Thread Duncan Booth
André Roberge andre.robe...@gmail.com wrote: On Sunday, February 20, 2011 10:51:38 PM UTC-4, Dick Moores wrote: Problem is I know of no text editor that can handle Japanese. The editor in Crunchy (http://code.google.com/p/crunchy) appears to be working just fine with the sample code you

Re: Problems of Symbol Congestion in Computer Languages

2011-02-21 Thread Tim Wintle
On Fri, 2011-02-18 at 12:27 +, Ian wrote: 2) Culture. In the West, a designer will decide the architecture of a major system, and it is a basis for debate and progress. If he gets it wrong, it is not a personal disgrace or career limiting. If it is nearly right, then that is a major

Re: Python 3.2 and html.escape function

2011-02-21 Thread Tim Delaney
On 21 February 2011 19:56, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 20 Feb 2011 15:33:39 +0100, Peter Otten wrote: Steven D'Aprano wrote: On Sun, 20 Feb 2011 08:15:35 -0500, Gerald Britton wrote: I see that Python 3.2 includes a new module -- html -- with a

Re: return an object of a different class

2011-02-21 Thread Jean-Michel Pichavant
alex23 wrote: Jean-Michel Pichavant jeanmic...@sequans.com wrote: You simply don't return inconsistent types with a return statement. This is a general rule in programming that has probably exceptions but regarding what you're saying, you clearly don't want to do that. I don't think

ImportError: No module named gobject

2011-02-21 Thread Luther
I recently had to install 2.7.1 from source, and since then, I have been unable to run exaile, which comes with Trisquel 4.0. Here is the error message: Traceback (most recent call last): File /usr/lib/exaile/exaile.py, line 52, in module main() File /usr/lib/exaile/exaile.py, line 49, in

Re: ImportError: No module named gobject

2011-02-21 Thread Виталий Волков
You should install python-gobject 2011/2/21 Luther luther...@gmail.com I recently had to install 2.7.1 from source, and since then, I have been unable to run exaile, which comes with Trisquel 4.0. Here is the error message: Traceback (most recent call last): File

Re: ImportError: No module named gobject

2011-02-21 Thread Luther
I've tried installing pygtk, pygobject, and gobject-introspection from source, but none of them will compile, and nothing I install through synaptic has any effect. I've tried too many things to post all the details here, but I'll post any details on request. --

Re: [RELEASED] Python 3.2

2011-02-21 Thread Duncan Booth
Georg Brandl ge...@python.org wrote: Please consider trying Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ It looks like this release breaks the builtin `input()` function on Windows by leaving a trailing '\r' on the end of the string.

Re: QWebView: notify python when I clicked on a certain web eleemnt

2011-02-21 Thread Дамјан Георгиевски
I have a web page (existing page, can't modify it) and I would like to browse it in a QtWebview. (This is already working) Now I Wonder how I could achieve following behaviour: When I click on a certain element e.g. span id=clickme/a I would like to notify my python script. What is

Converting from shell to python

2011-02-21 Thread Rita
Hello, I have been using shell for a long time and I decided to learn python recently. So far I am liking it a lot especially the argparse module which makes my programs more professional like. Currently, I am rewriting my bash scripts to python so I came across a subprocess and environment

Re: Python 3.2

2011-02-21 Thread Rafe Kettler
On Feb 21, 10:54 am, Duncan Booth duncan.bo...@invalid.invalid wrote: Georg Brandl ge...@python.org wrote: Please consider trying Python 3.2 with your code and reporting any bugs you may notice to:    http://bugs.python.org/ It looks like this release breaks the builtin `input()`

Re: Converting from shell to python

2011-02-21 Thread Ritesh Nadhani
Hello cmd is already a list after cmd.split(). So, suprocess.Popen(cmd, ) On Mon, Feb 21, 2011 at 8:33 AM, Rita rmorgan...@gmail.com wrote: Hello, I have been using shell for a long time and I decided to learn python recently. So far I am liking it a lot especially the argparse module

Re: Converting from shell to python

2011-02-21 Thread Peter Otten
Rita wrote: Hello, I have been using shell for a long time and I decided to learn python recently. So far I am liking it a lot especially the argparse module which makes my programs more professional like. Currently, I am rewriting my bash scripts to python so I came across a

Re: Python 3.2

2011-02-21 Thread Stefan Behnel
Rafe Kettler, 21.02.2011 17:30: On Feb 21, 10:54 am, Duncan Booth wrote: Georg Brandlge...@python.org wrote: Please consider trying Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ It looks like this release breaks the builtin `input()`

ANN: Wing IDE 4.0 Released

2011-02-21 Thread Wingware
Hi, Wingware has released version 4.0 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

python and parsing an xml file

2011-02-21 Thread Matt Funk
Hi, I was wondering if someone had some advice: I want to create a set of xml input files to my code that look as follows: ?xml version=1.0 encoding=UTF-8? !-- Settings for the algorithm to be performed -- Algorithm !-- The

Re: python and parsing an xml file

2011-02-21 Thread Stefan Behnel
Matt Funk, 21.02.2011 18:30: I want to create a set of xml input files to my code that look as follows: ?xml version=1.0 encoding=UTF-8? !-- Settings for the algorithm to be performed -- Algorithm !-- The algorithm type.

LDFLAGS problem

2011-02-21 Thread Robin Becker
After installing python 2.7.1 on a Freebsd 8.0 system with the normal configure make dance ./configure --prefix=$HOME/PYTHON --enable-unicode=ucs2 make make install I find that when I build extensions PIL, MySQLdb I'm getting errors related to a dangling ${LDFLAGS} eg MySQLdb running

Re: Problems of Symbol Congestion in Computer Languages

2011-02-21 Thread Westley Martínez
On Mon, 2011-02-21 at 01:08 +, BartC wrote: WestleyMartínez aniko...@gmail.com wrote in message news:mailman.202.1298081685.1189.python-l...@python.org... You have provided me with some well thought out arguments and have stimulated my young programmer's mind, but I think we're

Europython 2011 - Call for Papers

2011-02-21 Thread Fabio Pliger
Europython is coming back around! Europython will be held in Florence, Italy from the 20th to the 25th of june. EuroPython is a conference for the Python programming language community. It is aimed at everyone in the Python community, of all skill levels, both users and programmers. It's one of

Re: python and parsing an xml file

2011-02-21 Thread Terry Reedy
On 2/21/2011 12:30 PM, Matt Funk wrote: Hi, I was wondering if someone had some advice: I want to create a set of xml input files to my code that look as follows: Why? ... So there are comments, whitespace etc ... in it. I would like to be able to put everything into some sort of structure

Re: Which non SQL Database ?

2011-02-21 Thread Dave
Interesting thread. It started as a discussion of small footprint, embeddable non-SQL databases and has ranged all over the place. For the original purpose of this thread, it certainly sounds like SQLite fits the bill. It's a great package. If you need SQLite's ease of use and simplicity, but

Re: hmac module and key format

2011-02-21 Thread Peter Pearson
On Mon, 21 Feb 2011 02:27:36 -0800 (PST), Stuart Longland wrote: [snip] Before I worried about that though, I needed to have some kind of understanding as to how the hmac module was used. Arbitrary string, sounds to me like I give it something akin to a passphrase, and that is hashed(?) to

Return Values lambda

2011-02-21 Thread pradeepbpin
I have a main program module that invokes an input dialog box via a menu item. Now, the code for drawing and processing the input of dialog box is in another module, say 'dialogs.py'. I connect the menu item to this dialog box by a statement like, manu_item.connect('activate', lambda a:

Re: python and parsing an xml file

2011-02-21 Thread Stefan Behnel
Terry Reedy, 21.02.2011 19:22: On 2/21/2011 12:30 PM, Matt Funk wrote: Hi, I was wondering if someone had some advice: I want to create a set of xml input files to my code that look as follows: Why? ... So there are comments, whitespace etc ... in it. I would like to be able to put

Re: Python 3.2 and html.escape function

2011-02-21 Thread Rafe Kettler
On Feb 20, 8:15 am, Gerald Britton gerald.brit...@gmail.com wrote: I see that Python 3.2 includes a new module -- html -- with a single function -- escape.  I would like to know how this function differs from xml.sax.saxutils.escape and, if there is no difference (or only a minor one), what

Re: Return Values lambda

2011-02-21 Thread Benjamin Kaplan
On Mon, Feb 21, 2011 at 1:59 PM, pradeepbpin pradeepb...@gmail.com wrote: I have a main program module that invokes an input dialog box via  a menu item. Now, the code for drawing and processing the input of dialog box is in another module, say 'dialogs.py'. I connect the menu item to this

Re: Problems of Symbol Congestion in Computer Languages

2011-02-21 Thread rantingrick
On Feb 20, 7:08 pm, BartC b...@freeuk.com wrote: WestleyMartínez aniko...@gmail.com wrote in message news:mailman.202.1298081685.1189.python-l...@python.org... You have provided me with some well thought out arguments and have stimulated my young programmer's mind, but I think we're coming

Re: python and parsing an xml file

2011-02-21 Thread Matt Funk
Hi Terry, On 2/21/2011 11:22 AM, Terry Reedy wrote: On 2/21/2011 12:30 PM, Matt Funk wrote: Hi, I was wondering if someone had some advice: I want to create a set of xml input files to my code that look as follows: Why? mmmh. not sure how to answer this question exactly. I guess it's a

Re: python and parsing an xml file

2011-02-21 Thread Matt Funk
HI Stefan, thank you for your advice. I am running into an issue though (which is likely a newbie problem): My xml file looks like (which i got from the internet): ?xml version=1.0? catalog book id=bk101 authorGambardella, Matthew/author titleXML Developer's Guide/title

Re: LDFLAGS problem

2011-02-21 Thread Philip Semanchuk
On Feb 21, 2011, at 12:56 PM, Robin Becker wrote: After installing python 2.7.1 on a Freebsd 8.0 system with the normal configure make dance ./configure --prefix=$HOME/PYTHON --enable-unicode=ucs2 make make install I find that when I build extensions PIL, MySQLdb I'm getting errors

python on a cray xt5, ImportError: No module named site

2011-02-21 Thread Burlen Loring
Hi, Got some trouble running python on a Cray XT5 which has a reduced os on the compute nodes, and you're supposed to link everything statically. I configured the build with --disable-shared and uncommented the modules in Modules/Setup which made sense (nearly all of them), and built with

Re: Python Tutorial on Multithreading

2011-02-21 Thread Alexander Kapps
On 21.02.2011 23:30, KevinSimonson wrote: I've been teaching myself Python from the tutorial routed at http:// www.tutorialspoint.com/python/index.htm. It's worked out pretty well, but when I copied its multithreading example from the bottom of the page at http://www.tutorialspoint.com/python/

Re: python and parsing an xml file

2011-02-21 Thread Matt Funk
Hi Stefan, i don't mean to be annoying so sorry if i am. According to your instructions i do: parser = objectify.makeparser(ns_clean=True, remove_comments=True) root = objectify.parse(inputfile,parser).getroot() print root.catalog.book.author.text which still gives the following error:

Re: python and parsing an xml file

2011-02-21 Thread Stefan Behnel
Matt Funk, 21.02.2011 23:07: thank you for your advice. I am running into an issue though (which is likely a newbie problem): My xml file looks like (which i got from the internet): ?xml version=1.0? catalog book id=bk101 authorGambardella, Matthew/author titleXML Developer's

Re: LDFLAGS problem

2011-02-21 Thread Stefan Krah
Philip Semanchuk phi...@semanchuk.com wrote: On Feb 21, 2011, at 12:56 PM, Robin Becker wrote: After installing python 2.7.1 on a Freebsd 8.0 system with the normal configure make dance ./configure --prefix=$HOME/PYTHON --enable-unicode=ucs2 make make install I find that when I

Python Tutorial on Multithreading

2011-02-21 Thread KevinSimonson
I've been teaching myself Python from the tutorial routed at http:// www.tutorialspoint.com/python/index.htm. It's worked out pretty well, but when I copied its multithreading example from the bottom of the page at http://www.tutorialspoint.com/python/ python_multithreading.htm and tried to run

Pickle compatibility between Python 2.7 and python 3.2

2011-02-21 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have 10MB pickled structure generated in Python 2.7. I only use basic types (no clases) like sets, dictionaries, lists, strings, etc. The pickle stores a lot of strings. Some of them should be bytes, while other should be unicode. My idea is to

Re: Problems of Symbol Congestion in Computer Languages

2011-02-21 Thread Westley Martínez
On Mon, 2011-02-21 at 11:28 -0800, rantingrick wrote: On Feb 20, 7:08 pm, BartC b...@freeuk.com wrote: WestleyMartínez aniko...@gmail.com wrote in message news:mailman.202.1298081685.1189.python-l...@python.org... You have provided me with some well thought out arguments and have

Re: return an object of a different class

2011-02-21 Thread Steven D'Aprano
On Mon, 21 Feb 2011 14:23:10 +0100, Jean-Michel Pichavant wrote: What is not legit, is to return different objects for which the caller has to test the type to know what attributes he can use. Well, I don't know... I'm of two minds. On the one hand, I find it *really annoying* when this

Re: Problems of Symbol Congestion in Computer Languages

2011-02-21 Thread Alexander Kapps
On 22.02.2011 00:34, Westley Martínez wrote: On Mon, 2011-02-21 at 11:28 -0800, rantingrick wrote: The ascii char i would suffice. However some languages fell it necessary to create an ongoing tutorial of the language. Sure French and Latin can sound pretty, however if all you seek is pretty

Python on OSX

2011-02-21 Thread Robert
Can I install 2.7 and 3.2 side by side? -- Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.2 and html.escape function

2011-02-21 Thread Martin v. Loewis
Well, I just learned something, thank you. I was under the mistaken impression that adding new functionality after the first alpha release was not permitted by the Python devs. It's the first beta release after which no new functionality could be added. Regards, Martin --

Re: Python Tutorial on Multithreading

2011-02-21 Thread KevinSimonson
On Feb 21, 4:04 pm, Alexander Kapps alex.ka...@web.de wrote: That tutorial seems to be wrong. According to the official docs: If the subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread.

Re: Python on OSX

2011-02-21 Thread Chris Rebert
On Mon, Feb 21, 2011 at 3:54 PM, Robert sigz...@gmail.com wrote: Can I install 2.7 and 3.2 side by side? Yes, of course. Just don't fiddle with the System Python (i.e. the copy preinstalled by Apple). You may wish to install your additional Pythons via Fink or MacPorts. Cheers, Chris --

Re: Problems of Symbol Congestion in Computer Languages

2011-02-21 Thread Westley Martínez
On Tue, 2011-02-22 at 00:48 +0100, Alexander Kapps wrote: On 22.02.2011 00:34, Westley Martínez wrote: On Mon, 2011-02-21 at 11:28 -0800, rantingrick wrote: The ascii char i would suffice. However some languages fell it necessary to create an ongoing tutorial of the language. Sure French

Re: Return Values lambda

2011-02-21 Thread Rafe Kettler
On Feb 21, 1:59 pm, pradeepbpin pradeepb...@gmail.com wrote: I have a main program module that invokes an input dialog box via  a menu item. Now, the code for drawing and processing the input of dialog box is in another module, say 'dialogs.py'. I connect the menu item to this dialog box by a

Re: An amazing one-minute bit of fun at the interactive prompt

2011-02-21 Thread Raymond Hettinger
On Feb 21, 12:08 am, Mark Dickinson dicki...@gmail.com wrote: On Feb 20, 8:08 am, Raymond Hettinger pyt...@rcn.com wrote: [...] n * e 3.1415926 Very neat!  Is it supposed to be obvious why this gives an approximation to pi?  If so, I'll think about it a bit more;  if not, do you have

Re: Return Values lambda

2011-02-21 Thread Steven D'Aprano
On Mon, 21 Feb 2011 16:43:49 -0800, Rafe Kettler wrote: On Feb 21, 1:59 pm, pradeepbpin pradeepb...@gmail.com wrote: I have a main program module that invokes an input dialog box via  a menu item. Now, the code for drawing and processing the input of dialog box is in another module, say

ANN: pyTenjin 1.0.0 - a high-speed and full-featured template engine

2011-02-21 Thread Makoto Kuwata
Hi all, I released pyTenjin 1.0.0. http://pypi.python.org/pypi/Tenjin/ http://www.kuwata-lab.com/tenjin/ This release contains a lot of enhancements and changes. Overview * Very fast: about 10 times faster than Django template engine * Easy to learn: no need to learn

Re: Python on OSX

2011-02-21 Thread Ned Deily
In article AANLkTinwXiTJLN=jv4wt9grjkjdwypg_wsrr1h5kf...@mail.gmail.com, Chris Rebert c...@rebertia.com wrote: On Mon, Feb 21, 2011 at 3:54 PM, Robert sigz...@gmail.com wrote: Can I install 2.7 and 3.2 side by side? Yes, of course. Just don't fiddle with the System Python (i.e. the copy

Creating Long Lists

2011-02-21 Thread Kelson Zawack
I have a large (10gb) data file for which I want to parse each line into an object and then append this object to a list for sorting and further processing. I have noticed however that as the length of the list increases the rate at which objects are added to it decreases dramatically. My

Re: Creating Long Lists

2011-02-21 Thread alex23
On Feb 22, 12:57 pm, Kelson Zawack zawack...@gis.a-star.edu.sg wrote: I did not bother to further analyze or benchmark it.  Since the answers in the above forums do not seem very definitive  I thought  I would inquire here about what the reason for this decrease in performance is, and if there

Re: Creating Long Lists

2011-02-21 Thread John Bokma
alex23 wuwe...@gmail.com writes: On Feb 22, 12:57 pm, Kelson Zawack zawack...@gis.a-star.edu.sg wrote: I did not bother to further analyze or benchmark it.  Since the answers in the above forums do not seem very definitive  I thought  I would inquire here about what the reason for this

Re: Creating Long Lists

2011-02-21 Thread Dan Stromberg
On Mon, Feb 21, 2011 at 6:57 PM, Kelson Zawack zawack...@gis.a-star.edu.sgwrote: I have a large (10gb) data file for which I want to parse each line into an object and then append this object to a list for sorting and further processing. I have noticed however that as the length of the list

Re: Creating Long Lists

2011-02-21 Thread Ben Finney
Kelson Zawack zawack...@gis.a-star.edu.sg writes: I have a large (10gb) data file for which I want to parse each line into an object and then append this object to a list for sorting and further processing. What is the nature of the further processing? Does that further processing access the

Re: Python on OSX

2011-02-21 Thread Jason Swails
On Mon, Feb 21, 2011 at 7:08 PM, Chris Rebert c...@rebertia.com wrote: On Mon, Feb 21, 2011 at 3:54 PM, Robert sigz...@gmail.com wrote: Can I install 2.7 and 3.2 side by side? Yes, of course. Just don't fiddle with the System Python (i.e. the copy preinstalled by Apple). Good advice. I

Re: Return Values lambda

2011-02-21 Thread Rafe Kettler
On Feb 21, 7:59 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Mon, 21 Feb 2011 16:43:49 -0800, Rafe Kettler wrote: On Feb 21, 1:59 pm, pradeepbpin pradeepb...@gmail.com wrote: I have a main program module that invokes an input dialog box via  a menu item. Now, the code

Re: Creating Long Lists

2011-02-21 Thread Dan Stromberg
On Mon, Feb 21, 2011 at 7:24 PM, Dan Stromberg drsali...@gmail.com wrote: On Mon, Feb 21, 2011 at 6:57 PM, Kelson Zawack zawack...@gis.a-star.edu.sg wrote: I have a large (10gb) data file for which I want to parse each line into an object and then append this object to a list for sorting

Python 2 or 3 ? with Django , My SQL and YUI

2011-02-21 Thread Sumit
Python 2 or 3 ? with Django , My SQL and YUI For a web project We have decided to work on Python 2 or 3 ? with Django , My SQL and YUI, and this would be the first time to work with Python, just now I explored a little and found Python -2 vs 3 Stuff , Is there experienced python dev can guide me

Ruby on rails training for Python developers

2011-02-21 Thread Wan Li Zhu
If you're a Python developer in the Boston area looking to learn Ruby, Fairhaven Capital and thoughtbot are teaming up to offer Ruby on Rails training courses in Boston at 50% off regular price ($600 for 2 full days of training, intro and advanced levels). Details at

Re: Return Values lambda

2011-02-21 Thread pradeepbpin
On Feb 22, 5:59 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Mon, 21 Feb 2011 16:43:49 -0800, Rafe Kettler wrote: On Feb 21, 1:59 pm, pradeepbpin pradeepb...@gmail.com wrote: I have a main program module that invokes an input dialog box via  a menu item. Now, the code

Re: Python Tutorial on Multithreading

2011-02-21 Thread Terry Reedy
On 2/21/2011 7:02 PM, KevinSimonson wrote: On Feb 21, 4:04 pm, Alexander Kappsalex.ka...@web.de wrote: That tutorial seems to be wrong. According to the official docs: If the subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__())

Re: python and parsing an xml file

2011-02-21 Thread Stefan Behnel
Matt Funk, 21.02.2011 23:40: On 2/21/2011 3:28 PM, Stefan Behnel wrote: Matt Funk, 21.02.2011 23:07: thank you for your advice. I am running into an issue though (which is likely a newbie problem): My xml file looks like (which i got from the internet): ?xml version=1.0? catalog book

[issue11264] Format Specification Mini-Language missing type 'i'?

2011-02-21 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Is there any reason 'd' was chosen over 'i'? Is there a more appropriate place I can find this out? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11264

[issue11268] 3.2 Mac OS X installer may fail if documentation was previously installed

2011-02-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: If a version of Python 3.2 has been previously installed, a subsequent re-install of Python 3.2 may fail attempting to install the Documentation package. On Mac OS X 10.6, the message reported by the installer is: The following installation step

[issue11269] cgi.FieldStorage forgets to unquote field names when parsing multipart/form-data

2011-02-21 Thread Sergey Schetinin
New submission from Sergey Schetinin ser...@maluke.com: Tested on Python 2.7, but probably affects all versions. Test case is attached. The reason this went unnoticed until now is that browsers are very conservative when quoting field names, so most field names are the same after their

[issue11269] cgi.FieldStorage forgets to unquote field names when parsing multipart/form-data

2011-02-21 Thread Sergey Schetinin
Sergey Schetinin ser...@maluke.com added the comment: And here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file20820/cgi-patch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11269

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-21 Thread Barry Scott
Barry Scott barry.sc...@onelan.co.uk added the comment: The attached patch builds on Mike's work. The core of the problem is that the Request object did not know what was going on. This means that it was not possible for get_authorization() to work for proxy-auth and www-auth. I change Request

[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-02-21 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- priority: critical - high versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10736 ___

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-21 Thread Barry Scott
Barry Scott barry.sc...@onelan.co.uk added the comment: Attached is the code I used to test these changes. See the README.txt file for details include the results of a test run. -- Added file: http://bugs.python.org/file20822/urllib2_tests.tar.gz ___

[issue11268] 3.2 Mac OS X installer may fail if documentation was previously installed

2011-02-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The attached patch corrects the problem in the installer. I'll apply it after py3k is re-opened. -- keywords: +patch stage: needs patch - commit review versions: +Python 2.7 Added file:

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-21 Thread Barry Scott
Barry Scott barry.sc...@onelan.co.uk added the comment: I left out some white space changes to match the style of the std lib code. Re posting with white space cleanup. -- Added file: http://bugs.python.org/file20824/http_proxy_https.patch ___ Python

[issue7291] urllib2 cannot handle https with proxy requiring auth

2011-02-21 Thread Barry Scott
Changes by Barry Scott barry.sc...@onelan.co.uk: Removed file: http://bugs.python.org/file20821/http_proxy_https.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7291 ___

[issue11264] Format Specification Mini-Language missing type 'i'?

2011-02-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: It would be redundant, so we don't need both. I don't recall any discussion when PEP 3101 was developed as to choosing 'd' over 'i'. In all of the C code I've seen use printf, I don't think I've ever seen 'i' used. -- resolution: -

[issue10160] operator.attrgetter slower than lambda after adding dotted names ability

2011-02-21 Thread Christos Georgiou
Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the comment: This is not the proper place for it, but in the 3.2 and 2.7 news it is reported that “The multi-argument form of operator.attrgetter() function now runs slightly faster” while it should be “The multi-argument

[issue11184] Broken large file support on AIX

2011-02-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - georg.brandl versions: +Python 2.7 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11184 ___

[issue11133] inspect.getattr_static code execution

2011-02-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: __dict__ as a property is documented as an exception to the no code execution claim. The patch is not sufficient - instances may have a class member __dict__ whilst still having an instance __dict__. Alternatively the __dict__ property

[issue10276] zlib crc32/adler32 buffer length truncation (64-bit)

2011-02-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch looks good to me. -- nosy: +pitrou stage: - patch review versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10276

[issue11270] logging: RotatingFileHandler crash when opening the Logfile in an Texteditor

2011-02-21 Thread Andreas Sauer
New submission from Andreas Sauer sauerandr...@gmx.de: Module: logging OS: Windows XP When using the RotatingFileHandler, the logging cras when i open the Logfile in an Texteditor. I think there is a Problem in renaming the Files, while it's open in the Texteditor. Traceback (most recent

[issue10829] PyUnicode_FromFormatV() bugs with % and %% format strings

2011-02-21 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Hi, haypo, Your patch seems cannot be applied cleanly on current py3k trunk. And after modified your patch, test_unicode.py runs into Segmentation fault. Is there something wrong or some changes which could influence this bug had been already

[issue10829] PyUnicode_FromFormatV() bugs with % and %% format strings

2011-02-21 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10829 ___ ___ Python-bugs-list mailing

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-02-21 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: see also #7330, I'm implementing %.100s in that issue. -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10833 ___

[issue11271] concurrent.futures.ProcessPoolExecutor.map() slower than multiprocessing.Pool.map() for fast function argument

2011-02-21 Thread Tobias Brink
New submission from Tobias Brink tobias.br...@gmail.com: I tested the new concurrent.futures.ProcessPoolExecutor.map() in 3.2 with the is_prime() function from the documentation example. This was significantly slower than using multiprocessing.Pool.map(). Quick look at the source showed that

[issue11272] input() has trailing carriage return on windows

2011-02-21 Thread Duncan Booth
New submission from Duncan Booth kupu...@gmail.com: In Python 3.2, the builtin function `input()` returns a string with a trailing '\r' on windows: C:\Python32python Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or

  1   2   >