Re: py2exe breaking wxPython?

2010-04-25 Thread Nick Ballard
On Apr 24, 6:53 pm, Alex Hall wrote: > Hello all, > I have a compiled version of my project, but the wx functions do not > work. When run from the python source, instead of the compiled .exe > file, wx works as expected. I am including msvcr90.dll in the dist > folder. I looked for answers on Goog

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Terry Reedy
On 4/25/2010 11:36 PM, Keith wrote: I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. I tested that input is no problem, so the only question is output. Do you think this idea has enough merit to make it to PEP status?

ANN: expy 0.6.4 released!

2010-04-25 Thread Yingjie Lan
expy is an express way to extend python. I have been using this in a big project and the outcome is quite satisfying. What's New: 1. now generated header files are separate from implementation files. 2. bug fixes. 3. updated documentation. For more information: http://expy.sourceforge.net/ C

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Xavier Ho
On Mon, Apr 26, 2010 at 3:39 PM, Chris Rebert wrote: > "The conversion **exactly follows the rules for conversion to > scientific numeric string** except in the case of finite numbers > **where exponential notation is used.**" > Well, then maybe the conversion doesn't exactly follow the rules, i

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Keith
On Apr 26, 1:19 am, Chris Rebert wrote: > Apparently either you and the General Decimal Arithmetic spec differ > on what constitutes engineering notation, there's a bug in the Python > decimal library, or you're hitting some obscure part of the spec's > definition. snip > The spec:http://speleotro

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Chris Rebert
On Sun, Apr 25, 2010 at 10:25 PM, Xavier Ho wrote: > On Mon, Apr 26, 2010 at 3:19 PM, Chris Rebert wrote: >> Apparently either you and the General Decimal Arithmetic spec differ >> on what constitutes engineering notation, there's a bug in the Python >> decimal library, or you're hitting some obs

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Xavier Ho
On Mon, Apr 26, 2010 at 3:19 PM, Chris Rebert wrote: > Apparently either you and the General Decimal Arithmetic spec differ > on what constitutes engineering notation, there's a bug in the Python > decimal library, or you're hitting some obscure part of the spec's > definition. I don't have the e

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Chris Rebert
On Sun, Apr 25, 2010 at 9:42 PM, Keith wrote: > On Apr 26, 12:02 am, Chris Rebert wrote: >> On Sun, Apr 25, 2010 at 8:36 PM, Keith wrote: >> > I am considering writing a PEP for the inclusion of an engineering >> > format specifier, and would appreciate input from others. >  snip >> Relevant rel

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Keith
On Apr 26, 12:29 am, Steven D'Aprano wrote: > On Sun, 25 Apr 2010 20:36:22 -0700, Keith wrote: >>no one talks about 4.7e-5F, as they would rather see 47e-6 >>(micro). Instead of 2.2e-2, engineers need to see 22.0e-3 (milli). >I'd be cautious about making claims about "no one" Good point, and I

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Keith
On Apr 26, 12:02 am, Chris Rebert wrote: > On Sun, Apr 25, 2010 at 8:36 PM, Keith wrote: > > I am considering writing a PEP for the inclusion of an engineering > > format specifier, and would appreciate input from others. snip > Relevant related information: > The Decimal datatype supports engin

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Steven D'Aprano
On Sun, 25 Apr 2010 20:36:22 -0700, Keith wrote: > I am considering writing a PEP for the inclusion of an engineering > format specifier, and would appreciate input from others. [...] > For instance, no one talks about 4.7e-5F, as they would rather see 47e-6 > (micro). Instead of 2.2e-2, engineer

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Chris Rebert
On Sun, Apr 25, 2010 at 8:36 PM, Keith wrote: > I am considering writing a PEP for the inclusion of an engineering > format specifier, and would appreciate input from others. > > Background (for those who don't already know about engineering > notation): > > Engineering notation (EN) is type of fl

Urgent

2010-04-25 Thread frankly1
http://www.scribd.com/doc/30492594/If-Not-Busy-You-Could-Prevent-the-FINAL-WAR-Today This is not a Drill … PRIORITY ONE -- http://mail.python.org/mailman/listinfo/python-list

Engineering numerical format PEP discussion

2010-04-25 Thread Keith
I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. Background (for those who don't already know about engineering notation): Engineering notation (EN) is type of floating point representation. The idea with EN is that the p

Re: Urllib2 urlopen and read - difference

2010-04-25 Thread Aahz
In article , J. Cliff Dyer wrote: >On Thu, 2010-04-15 at 11:25 -0700, koranthala wrote: >> >>Suppose I am doing the following: >> req = urllib2.urlopen('http://www.python.org') >> data = req.read() >> >>When is the actual data received? is it done by the first line? or >> is it done only

Setting a python application as the default app to open a file on a mac?

2010-04-25 Thread Vincent Davis
I have been using ulipad to edit .rst and .py files. I have currently been launching using terminal "python32 ulipad.py" and then opening the file I what to edit. I would like to be able to set ulipad as the defualt editor for .rst and .py files. I posted this question on superuser.com and got a s

Re: Confusing SyntaxError while entering non-indented code in interactive interpreter on continuation line.

2010-04-25 Thread John Bokma
Colin Howell writes: > I know that Dive Into Python is quite old and there have been many > improvements in the language since, FYI There is a Dive Into Python 3. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com

Re: Threading problem

2010-04-25 Thread Patrick Maupin
On Apr 25, 2:55 pm, sdistefano wrote: > I have the following issue: > > My program runs a thread called the MainThread, that loops trough a > number of URLs and decides when it's the right time for one to be > fetched.  Once a URL has to be fetched, it's added to a Queue object, > where the Fetchi

can't get python 2.5.5 to work on mac os x 10.4.11

2010-04-25 Thread new2Cocos
Hi everyone, I posted this in the cocos2d and pyglet discussion group, I thought I'll get a response right away since my problem is quite general but I got no response. I hope you will help me!!! this is the original post http://groups.google.com/group/cocos-discuss/browse_thread/thread/f8bc9249

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Wolfgang Strobl
Daniel Fetchinson : >> for fits and giggles, to show what's possible in only 400 >> lines of python, here is a game of asteroids, written by joe rumsey. >> yes, it runs under pyjamas-desktop too. >> >> http://pyjs.org/examples/asteroids/public/Space.html > >This URL returns a blank page for me

Re: Confusing SyntaxError while entering non-indented code in interactive interpreter on continuation line.

2010-04-25 Thread Patrick Maupin
On Apr 25, 3:31 pm, Colin Howell wrote: > [I originally sent this to python-help; the volunteer who responded > thought it was OK to repost it here.] > > I'm sure this has been discussed somewhere before, but I can't find it > in the Python issue tracker. The following behavior from the > interact

Re: pyjamas 0.7 released

2010-04-25 Thread Patrick Maupin
On Apr 25, 8:49 am, Luke Kenneth Casson Leighton wrote: > pyjamas - the stand-alone python-to-javascript compiler, and separate > GUI Widget Toolkit, has its 0.7 release, today.  this has been much > delayed, in order to allow the community plenty of time between the > 0.7pre2 release and the fina

Confusing SyntaxError while entering non-indented code in interactive interpreter on continuation line.

2010-04-25 Thread Colin Howell
[I originally sent this to python-help; the volunteer who responded thought it was OK to repost it here.] I'm sure this has been discussed somewhere before, but I can't find it in the Python issue tracker. The following behavior from the interactive interpreter is rather confusing. (I've seen this

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Alf P. Steinbach
* Luke Kenneth Casson Leighton: http://pyjs.org/examples/asteroids/public/Space.html An error has been encountered in accessing this page. 1. Server: pyjs.org 2. URL path: /examples/asteroids/public/examples/asteroids/public/bootstrap.js 3. Error notes: NONE 4. Error type: 404 5. Reques

Threading problem

2010-04-25 Thread sdistefano
I have the following issue: My program runs a thread called the MainThread, that loops trough a number of URLs and decides when it's the right time for one to be fetched. Once a URL has to be fetched, it's added to a Queue object, where the FetchingThread picks up and does the actual work. Often,

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Terry Reedy
On 4/25/2010 3:43 PM, Terry Reedy wrote: On 4/25/2010 2:07 PM, Daniel Fetchinson wrote: for fits and giggles, to show what's possible in only 400 lines of python, here is a game of asteroids, written by joe rumsey. yes, it runs under pyjamas-desktop too. http://pyjs.org/examples/asteroids/publi

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Terry Reedy
On 4/25/2010 2:07 PM, Daniel Fetchinson wrote: for fits and giggles, to show what's possible in only 400 lines of python, here is a game of asteroids, written by joe rumsey. yes, it runs under pyjamas-desktop too. http://pyjs.org/examples/asteroids/public/Space.html This URL returns a bla

ANN: pyevolve 0.6rc1 released !

2010-04-25 Thread Christian S. Perone
Pyevolve is an evolutionary computation framework written in pure Python. This is the first release candidate before the 0.6 official release. See more information about this release on the official announce at (http://pyevolve.sourceforge.net/wordpress/?p=1164) or in the Documentation site at (h

Re: (snmp code) perl to python

2010-04-25 Thread John Bokma
Shabbir Ahmed writes: > hi hope all are doing good, i have code written in perl which quries > too many devices and then stores the result in mysqldb, whiel shifting > to python and googling i heared of and studied google asynch python > code, now i wanted to use it n convert my perl code to it b

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Daniel Fetchinson
> for fits and giggles, to show what's possible in only 400 > lines of python, here is a game of asteroids, written by joe rumsey. > yes, it runs under pyjamas-desktop too. > > http://pyjs.org/examples/asteroids/public/Space.html This URL returns a blank page for me on firefox 3.3.5 (linux) wi

Re: Interacting With Another Script

2010-04-25 Thread lkcl
On Mar 11, 2:16 am, alex23 wrote: > Victor Subervi wrote: > > > There's a program (vpopmail) that has commands which, when called, request > > > input ("email address", "password", etc.) from the command line. I would > > > like to build a TTW interface for my clients to use that interacts with >

Re: (snmp code) perl to python

2010-04-25 Thread lkcl
On Apr 25, 9:41 am, Shabbir Ahmed wrote: > hi hope all are doing good, i have code written in perl which quries > too many devices and then stores the result in mysqldb, whiel shifting > to python and googling i heared of and studied google asynch python > code, now i wanted to use it n convert my

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Lie Ryan
On 04/26/10 02:37, Jonathan Fine wrote: > > I don't know if the quadratic running time is an issue for my purpose. It's not until you decide it's yes. -- http://mail.python.org/mailman/listinfo/python-list

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Eduardo Schettino wrote: On Sun, Apr 25, 2010 at 11:44 PM, Jonathan Fine wrote: Eduardo Schettino wrote: On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine wrote: Hi I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Eduardo Schettino
On Sun, Apr 25, 2010 at 11:44 PM, Jonathan Fine wrote: > Eduardo Schettino wrote: >> >> On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine wrote: >>> >>> Hi >>> >>> I'm hoping to avoid reinventing a wheel (or other rolling device).  I've >>> got >>> a number of dependencies and, if possible, I want t

Re: ANN: Oktest-0.2.2 - a new-style testing library

2010-04-25 Thread Jonathan Fine
Makoto Kuwata wrote: Hi, I released Oktest 0.2.2. http://packages.python.org/Oktest/ http://pypi.python.org/pypi/Oktest/ Overview Oktest is a new-style testing library for Python. :: from oktest import ok ok (x) > 0 # same as assert_(x > 0) ok (s) == 'foo

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Eduardo Schettino wrote: On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine wrote: Hi I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is processed. I t

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Makoto Kuwata wrote: On Sun, Apr 25, 2010 at 5:53 AM, Jonathan Fine wrote: I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is processed. I think I c

Re: Need help with basic DOM XML tree traversing

2010-04-25 Thread Stefan Behnel
Barak, Ron, 25.04.2010 17:06: This is my first try at XML with Python, and though I tried to read on the web, I'm unable to traverse a DOM tree, as my top element seems to be DOCUMENT_NODE and I cannot find a way to get to the nodes below it. You might find the xml.etree.ElementTree package a

Need help with basic DOM XML tree traversing

2010-04-25 Thread Barak, Ron
Hi, This is my first try at XML with Python, and though I tried to read on the web, I'm unable to traverse a DOM tree, as my top element seems to be DOCUMENT_NODE and I cannot find a way to get to the nodes below it. Below is a sample data, script and execution. Could you point to where I'm do

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Eduardo Schettino
On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine wrote: > Hi > > I'm hoping to avoid reinventing a wheel (or other rolling device).  I've got > a number of dependencies and, if possible, I want to order them so that each > item has its dependencies met before it is processed. > > I think I could get

Re: Fix bugs without breaking down existing code

2010-04-25 Thread exarkun
On 10:02 am, elvismoodbi...@gmail.com wrote: Say, a Standard Library function works in a way it was not supposed to. Developers (who use Python) handle this issue themselves. And then, you (a python-core developer) fix the behavior of the function. Although you have 1Cfixed 1D the bug, anyone

[ANN] pyjamas 0.7 released

2010-04-25 Thread Luke Kenneth Casson Leighton
pyjamas - the stand-alone python-to-javascript compiler, and separate GUI Widget Toolkit, has its 0.7 release, today. this has been much delayed, in order to allow the community plenty of time between the 0.7pre2 release and the final release, to review and test all the examples. pyjamas allows d

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Makoto Kuwata
On Sun, Apr 25, 2010 at 5:53 AM, Jonathan Fine wrote: > I'm hoping to avoid reinventing a wheel (or other rolling device).  I've got > a number of dependencies and, if possible, I want to order them so that each > item has its dependencies met before it is processed. > > I think I could get what I

ANN: Oktest-0.2.2 - a new-style testing library

2010-04-25 Thread Makoto Kuwata
Hi, I released Oktest 0.2.2. http://packages.python.org/Oktest/ http://pypi.python.org/pypi/Oktest/ Overview Oktest is a new-style testing library for Python. :: from oktest import ok ok (x) > 0 # same as assert_(x > 0) ok (s) == 'foo'# same as

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Aahz wrote: In article , Jonathan Fine wrote: I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is processed. I think I could get what I want by wr

Re: csv.py sucks for Decimal

2010-04-25 Thread John Machin
On Apr 23, 9:23 am, Phlip wrote: > When I use the CSV library, with QUOTE_NONNUMERIC, and when I pass in > a Decimal() object, I must convert it to a string. Why must you? What unwanted effect do you observe when you don't convert it? > the search for an alternate CSV module, without > this bug

Fix bugs without breaking down existing code

2010-04-25 Thread Elvis
Say, a Standard Library function works in a way it was not supposed to. Developers (who use Python) handle this issue themselves. And then, you (a python-core developer) fix the behavior of the function. Although you have “fixed” the bug, anyone who upgrades, will be in trouble. Their code may no

(snmp code) perl to python

2010-04-25 Thread Shabbir Ahmed
hi hope all are doing good, i have code written in perl which quries too many devices and then stores the result in mysqldb, whiel shifting to python and googling i heared of and studied google asynch python code, now i wanted to use it n convert my perl code to it but i have some problem. 1. this

How to choose a debugger

2010-04-25 Thread sanam singh
Hi, I want to debug my c++blocks which are dynamically loaded into python for execution. I am using wingide for debugging python. But its limitation is that when c++module is called in python script it doent take me into c++ module. What I want is that I should be able to visually see the c++ c

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Chris Rebert wrote: On Sat, Apr 24, 2010 at 1:53 PM, Jonathan Fine wrote: Hi I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is processed. I think

exceptions from daemon threads which access the global namespace at interpreter shutdown (how to squelch output?)

2010-04-25 Thread Ben Cohen
I've got an application which makes fairly heavy use of daemon threads to perform 'background' processing and various other long-running tasks that are likely to block. I originally thought I could safely fire off a daemon threading.Thread and essentially forget about managing the thread's life

Re: [Python3] Reading a binary file and wrtiting the bytes verbatim?in an utf-8 file

2010-04-25 Thread fab
> Another possibility is to open the file in binary mode and do the > encoding yourself when writing text. This might actually be a better > solution, since I'm not sure RTF uses utf-8 by default. Yes, thanks for this suggestion, it seems the best to me. Actually RTF is not UTF-8 encoded, it's 8

Re: Deleting more than one element from a list

2010-04-25 Thread Raymond Hettinger
On Apr 21, 12:56 pm, candide wrote: > Is the del instruction able to remove _at the same_ time more than one > element from a list ? > > For instance, this seems to be correct : > >  >>> z=[45,12,96,33,66,'c',20,99] >  >>> del z[2], z[6],z[0] >  >>> z > [12, 33, 66, 'c', 20] >  >>> > > How