Pyastro

2007-02-28 Thread l
Where can I find the code... I have checked starship, "the vaults" and googled for a long time. either they point to starshup(wiki) where it doesn't exists, or to dead links. Any help would be much appreciated. TIA -- http://mail.python.org/mailman/listinfo/python-list

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
On Feb 28, 8:56 am, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Tuesday 27 February 2007 11:09 pm, shredwheat wrote: > > > When your programs stops with the error, it should also be printing a > > stack trace. This is a list of all the functions that have been called > > when Python had the probl

Re: gtk.mainquit is deprecated

2007-02-28 Thread awalter1
Thank you You're right. a connection was made between "destroy" and gtk.main_quit (a bad cut and paste from an old application). On 27 fév, 17:25, Alan Franzoni <[EMAIL PROTECTED]> wrote: > Il 27 Feb 2007 01:56:33 -0800, awalter1 ha scritto: > > > But I don't want to quit the application, I need o

Re: newbie question(file-delete trailing comma)

2007-02-28 Thread kavitha thankaian
ok,,, my script writes a dictionary to a file.but i need only the values from the dictionary which should be sepearted by a comma,,,so i did as following: some=getAllData()-->dictionary f=open("test.txt", "w") for value in some.values(): f.writelines('\%s\,' % value )

Re: How can I disable a device in windows using python

2007-02-28 Thread Phoe6
On Feb 27, 2:21 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am trying to disable it programmatic using python. I checked python > > wmi and i could not find ways to disable/enable, (listing is however, > > possible). > > > Where should I look for to enable/disable devices in pyth

Re: database without installation again

2007-02-28 Thread Andrzej S.
[EMAIL PROTECTED] wrote: > MySQL is a server software. You cannot just drop some files and expect > the whole thing to work. Yes, sure. There is mySQL server installed. I can access it from php. >> I think, the >> best solution would be db stored in binary file with interface in based on >> stan

Cover up attempt

2007-02-28 Thread Jennifer Crosby
http://toiletseatcoverup.blogspot.com/ - Yahoo ads not performing well? Publisher profits in the toilet? Join the best affiliate program known to man. Jennifer Crosby very hot but is she single? Ya its no two man race to a one man shit show this time dear. -- http://mail.python.org/mailm

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
On Feb 28, 9:07 am, [EMAIL PROTECTED] wrote: > On Feb 28, 8:56 am, Phil Thompson <[EMAIL PROTECTED]> > wrote: > > > On Tuesday 27 February 2007 11:09 pm, shredwheat wrote: > > > > When your programs stops with the error, it should also be printing a > > > stack trace. This is a list of all the func

Re: spawnl and waitpid

2007-02-28 Thread naima . mans
On 27 fév, 19:31, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On 27 Feb 2007 05:39:51 -0800, [EMAIL PROTECTED] declaimed the > following in comp.lang.python: > > > > > On 27 fév, 12:27, Thinker <[EMAIL PROTECTED]> wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > > > > Your program wi

Re: Lists: Converting Double to Single

2007-02-28 Thread Duncan Booth
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > For floating point, smallest magnitude to largest IS the most > precise. > > Pretend you only have 2 significant digits of precision... > > 10 + 0.4 + 0.4 + 0.4 => 10 > > 0.4 + 0.4 + 0.4 + 10 => 11 and if you try the way I sugg

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread Phil Thompson
On Wednesday 28 February 2007 9:00 am, [EMAIL PROTECTED] wrote: > On Feb 28, 9:07 am, [EMAIL PROTECTED] wrote: > > On Feb 28, 8:56 am, Phil Thompson <[EMAIL PROTECTED]> > > > > wrote: > > > On Tuesday 27 February 2007 11:09 pm, shredwheat wrote: > > > > When your programs stops with the error, it s

Re: Installing java2python (Newbie)

2007-02-28 Thread John Machin
On Feb 28, 4:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Hi Jeremy, that's the problem I'm having. Where should I type that " > > python setup.py install" ? Once again I'm using Windows system and not > > Unix. Should I move the file to a specific folder under Python 2.5 and > > then

using telnetlib

2007-02-28 Thread Phoe6
Hi All, I am trying to use the telnetlib module. Manually when I do telnet 172.31.128.244 I get: Login: (I type root) Password: ( I type Password) And it enters to the Telnet Session: [root]# Now, I am trying to use telnetlib module >>> import telnetlib >>> tn = telnetlib.Telnet("172.31.128.244"

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
On Feb 28, 10:22 am, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Wednesday 28 February 2007 9:00 am, [EMAIL PROTECTED] wrote: > > > > > > > On Feb 28, 9:07 am, [EMAIL PROTECTED] wrote: > > > On Feb 28, 8:56 am, Phil Thompson <[EMAIL PROTECTED]> > > > > wrote: > > > > On Tuesday 27 February 2007 1

Re: Installing java2python (Newbie)

2007-02-28 Thread Troy Melhase
> Hi Troy, Windows users don't really "want" to do that. They'd prefer > to download a Windows installer, and "double-click on it". Hi John, Understood and agreed. I was thinking about Andy's problem, and I realized that many users would benefit from a gui to do side-by-side translation. If I e

Re: newbie question(file-delete trailing comma)

2007-02-28 Thread Mikael Olofsson
kavitha thankaian wrote: > my script writes a dictionary to a file.but i need only the values > from the dictionary which should be sepearted by a comma,,,so i did as > following: > [snip code that generates the incorrect original file] > when i execute the above code,my test.txt file has the fol

msvcr71.dll

2007-02-28 Thread Konte
Are there news about the impossibility of redistributing msvcr71.ddl with own stand-alone application written in python for who doesn't have MSVC7 license? -- http://mail.python.org/mailman/listinfo/python-list

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread Phil Thompson
On Wednesday 28 February 2007 9:26 am, [EMAIL PROTECTED] wrote: > On Feb 28, 10:22 am, Phil Thompson <[EMAIL PROTECTED]> > > wrote: > > On Wednesday 28 February 2007 9:00 am, [EMAIL PROTECTED] wrote: > > > On Feb 28, 9:07 am, [EMAIL PROTECTED] wrote: > > > > On Feb 28, 8:56 am, Phil Thompson <[EMAI

Re: newbie question(file-delete trailing comma)

2007-02-28 Thread kavitha thankaian
Thanks Sanket,,, But still doesnt solve my problem,,, now my file contains: aa,ba,b,ca,b,c, and so on,,, the comma at the end is deleted,,,but the file contains some junk values,,, kavitha sanket kathalkar <[EMAIL PROTECTED]> wrote: Solution to this problem is: -

Three days left for Zope3 boot camp registration

2007-02-28 Thread Chris Calloway
Registration ends Friday: http://trizpug.org/boot-camp/camp5 -- Sincerely, Chris Calloway http://www.seacoos.org office: 332 Chapman Hall phone: (919) 962-4323 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 -- http://mail.python.org/mailman/listinfo/python-list

msvcr71.dll

2007-02-28 Thread Konte
Are there news about the impossibility of redistributing msvcr71.dll with own stand-alone application written in python, without having MSVC7 license? -- http://mail.python.org/mailman/listinfo/python-list

Re: spawnl and waitpid

2007-02-28 Thread naima . mans
On 28 fév, 10:13, [EMAIL PROTECTED] wrote: > On 27 fév, 19:31, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > > > > > On 27 Feb 2007 05:39:51 -0800, [EMAIL PROTECTED] declaimed the > > following in comp.lang.python: > > > > On 27 fév, 12:27, Thinker <[EMAIL PROTECTED]> wrote: > > > > -BEGIN

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-28 Thread boris . smirnov
On Feb 28, 10:45 am, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Wednesday 28 February 2007 9:26 am, [EMAIL PROTECTED] wrote: > > > > > > > On Feb 28, 10:22 am, Phil Thompson <[EMAIL PROTECTED]> > > > wrote: > > > On Wednesday 28 February 2007 9:00 am, [EMAIL PROTECTED] wrote: > > > > On Feb 28,

Re: Python, SOAP & SSL

2007-02-28 Thread Simon Brunning
On 2/28/07, Barker, CJ <[EMAIL PROTECTED]> wrote: > Was this ever solved? You might get more feedback about this on the Python web services list at . -- Cheers, Simon B [EMAIL PROTECTED] http://www.brunningonline.net/simon/blog/ GTalk:

Re: Installing java2python (Newbie)

2007-02-28 Thread John Machin
On Feb 28, 8:33 pm, "Troy Melhase" <[EMAIL PROTECTED]> wrote: > > Hi Troy, Windows users don't really "want" to do that. They'd prefer > > to download a Windows installer, and "double-click on it". > > Hi John, > > Understood and agreed. I was thinking about Andy's problem, and I > realized that m

Re: msvcr71.dll

2007-02-28 Thread Simon Brunning
On 2/28/07, Konte <[EMAIL PROTECTED]> wrote: > Are there news about the impossibility of redistributing msvcr71.ddl > with own stand-alone application written in python for who doesn't have > MSVC7 license? Last I heard the consensus was that it's OK to distribute msvcr71.ddl. But IANAL, and neith

Re: spawnl and waitpid

2007-02-28 Thread naima . mans
On 27 fév, 19:32, Thinker <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > [EMAIL PROTECTED] wrote: > > On 27 f憝, 18:54, Thinker <[EMAIL PROTECTED]> wrote: > > hello > > ha ok... > > i tried this one and the browser don't write the message at once... > > I have alos

Re: os.system and quoted strings

2007-02-28 Thread Duncan Booth
"Dan Bishop" <[EMAIL PROTECTED]> wrote: > Windows system calls treat / and \ interchangeably, but the command > prompt insists on backslashes. No. Commands built-in to the command prompt and certain other programs (mostly but not exclusively from Microsoft) insist on backslashes. Most programs,

Re: Installing java2python (Newbie)

2007-02-28 Thread Troy Melhase
> Did you think I was suggesting that you write a GUI version of > java2python? Please carefully (re)?read the documentation link that I > gave you. The idea is that with a simple variation of your setup.py > build comamnd, you create a Windows installer for your existing > package, and make it ava

Re: Installing java2python (Newbie)

2007-02-28 Thread John Machin
On Feb 28, 9:39 pm, "Troy Melhase" <[EMAIL PROTECTED]> wrote: > > Did you think I was suggesting that you write a GUI version of > > java2python? Please carefully (re)?read the documentation link that I > > gave you. The idea is that with a simple variation of your setup.py > > build comamnd, you c

random textimage

2007-02-28 Thread gert
import string import random import PIL from PIL import Image, ImageFont, ImageDraw from PIL import ImageEnhance, ImageOps, ImageStat from StringIO import StringIO import os pwd = os.path.dirname(os.path.abspath(__file__)) fpath=os.path.join(pwd,'img.ttf') iname=os.path.join(pwd,'pass.jpg') def ge

py2exe, library.zip and python.exe

2007-02-28 Thread Martin Evans
I have converted a Python script using py2exe and have it set to not bundle or compress. The result is my exe and all the support files including library.zip (exactly as planned - nice job py2exe). Question: My py2exe application needs to be able to execute extra copies of python.exe. I have p

Re: installing "pysqlite"

2007-02-28 Thread Nader Emami
Paul Boddie wrote: > On 27 Feb, 10:31, Nader Emami <[EMAIL PROTECTED]> wrote: >> I have installed "TurboGears" and I would install 'pysqlite' also. I am >> a user on a Linux machine. If I try to install the 'pysqlite' with >> 'easy_install' tool I get the next error message. The error message is >>

Re: random textimage

2007-02-28 Thread James Stroud
gert wrote: > import string > import random > import PIL > from PIL import Image, ImageFont, ImageDraw > from PIL import ImageEnhance, ImageOps, ImageStat > from StringIO import StringIO > import os > > pwd = os.path.dirname(os.path.abspath(__file__)) > fpath=os.path.join(pwd,'img.ttf') > iname=os

Re: using telnetlib

2007-02-28 Thread Bjoern Schliessmann
Phoe6 wrote: import telnetlib tn = telnetlib.Telnet("172.31.128.244") tn.read_until("Login: ") > '\r\nLogin: ' tn.write("root\n:") ^^^ With telnet, use "\r\n" for line breaks at *all* times to be on the safe side. Also, what's the ":" at the end for? Regards

Re: Curses sorely lacking an event loop?

2007-02-28 Thread James Stroud
Michele Simionato wrote: > On Feb 27, 1:27 pm, James Stroud <[EMAIL PROTECTED]> wrote: >> Hello, >> >> Is curses really lacking an event loop? Do I have to write my own? I >> infer from the docs that this is the case. For example, I want the >> screen to be updated with resize but I find myself wai

Re: Curses sorely lacking an event loop?

2007-02-28 Thread James Stroud
Michael Zawrotny wrote: > On Tue, 27 Feb 2007 12:27:17 GMT, James Stroud wrote: >> Is curses really lacking an event loop? Do I have to write my own? I >> infer from the docs that this is the case. For example, I want the >> screen to be updated with resize but I find myself waiting for getch(

Re: newbie question(file-delete trailing comma)

2007-02-28 Thread kavitha thankaian
thanks,, now i have one more problem,,, the strings should be seperated in an order,,, some={1:'a', 2:7, 3:'c', 4:'d'} i need the output to be a,c,d,7 before my code was: field_order = [1,3,4,2] for field in field_order: f.writelines('\"%s\",' % someprt[f

Re: py2exe, library.zip and python.exe

2007-02-28 Thread Thomas Heller
Martin Evans schrieb: > I have converted a Python script using py2exe and have it set to not bundle > or compress. The result is my exe and all the support files including > library.zip (exactly as planned - nice job py2exe). > > Question: My py2exe application needs to be able to execute extra

Re: finding out the precision of floats

2007-02-28 Thread Bart Ogryczak
On Feb 27, 7:58 pm, "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote: > On 27 Feb, 14:09, "Bart Ogryczak" <[EMAIL PROTECTED]> wrote: > > > On Feb 27, 1:36 pm, Facundo Batista <[EMAIL PROTECTED]> wrote: > > > > Arnaud Delobelle wrote: > > > > (and I don't want the standard Decimal class :) > > > > Why?

Re: random textimage

2007-02-28 Thread gert
On Feb 28, 12:13 pm, James Stroud <[EMAIL PROTECTED]> wrote: > gert wrote: > > [EMAIL PROTECTED]:~/Desktop/svn/xhtml$ python2.5 textimg.py > > Traceback (most recent call last): > > File "textimg.py", line 27, in > > print gen() > > File "textimg.py", line 22, in gen > > f.write(im) >

Re: installing "pysqlite"

2007-02-28 Thread Paul Boddie
On 28 Feb, 12:07, Nader Emami <[EMAIL PROTECTED]> wrote: > > I am back with another problem. I suppose that I can tell it! > I have installed both, 'sqlite' and 'pysqlite' without any problem. But > If I try to test whether the 'pysqlite' interface works, I get the next > error message: [...] > /

Re: py2exe, library.zip and python.exe

2007-02-28 Thread Matthias Vodel
Hey, [Offtopic:] Use PyInstaller...very easy to use - better than py2exe!! see here: http://pyinstaller.hpcf.upr.edu/cgi-bin/trac.cgi Bye, Matthias -- http://mail.python.org/mailman/listinfo/python-list

Re: Running Python scripts from BASH

2007-02-28 Thread Hendrik van Rooyen
"Ishpeck" <[EMAIL PROTECTED]> wrote: 8<--- a bash problem - If it were Python, the advice would have been to use the print statement to figure out what the content of the variables were. As it is Bash, you may have to stoop to something like echo to see what is

Creating arrays (builtin) in C Extensions

2007-02-28 Thread iwl
Hello, there is an builtin documented array module in phyton, but no documentation how such an array can be created in C-Extension functions. So I have to use Lists at time, but this is I think inefficient with large data sets. Is there some interface aviable which I can link to my Programm witho

Re: book for a starter

2007-02-28 Thread Ramon Diaz-Uriarte
On 2/27/07, Wensui Liu <[EMAIL PROTECTED]> wrote: > Thank you all for your wonderful suggestion and advice. > > Have a great evening! > > wensui > > On 27 Feb 2007 12:08:46 -0800, RickMuller <[EMAIL PROTECTED]> wrote: > > On Feb 27, 12:08 pm, "Sriram" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > >

Re: design question: no new attributes

2007-02-28 Thread Alan Isaac
Ben Finney writes: > Really, though, adding attributes to an instance is a normal thing to > do in Python, and you've not yet shown why you want that normal > functionality to be special-cased here. I accept your earlier point that if an interface changes one can just trap use of the old interfac

Re: using telnetlib

2007-02-28 Thread Phoe6
On Feb 28, 4:15 pm, Bjoern Schliessmann wrote: > Phoe6 wrote: > import telnetlib > tn = telnetlib.Telnet("172.31.128.244") > tn.read_until("Login: ") > > '\r\nLogin: ' > tn.write("root\n:") > >^^^ > > With telnet, use "\r\n" for line breaks at *all* times to

pyopengl vs directpython

2007-02-28 Thread Gigs_
can someone tell me which is better for making 3d game in python. something like tennis simulation thx -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe, library.zip and python.exe

2007-02-28 Thread Martin Evans
"Thomas Heller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Martin Evans schrieb: >> I have converted a Python script using py2exe and have it set to not >> bundle >> or compress. The result is my exe and all the support files including >> library.zip (exactly as planned - nice

Re: Creating arrays (builtin) in C Extensions

2007-02-28 Thread Duncan Booth
"iwl" <[EMAIL PROTECTED]> wrote: > there is an builtin documented array module in phyton, > but no documentation how such an array can be > created in C-Extension functions. I would guess you create an array from C the same way you create any other Python objects. So call PyImport_ImportModule t

cPickle EOF Error

2007-02-28 Thread Roopesh
I am trying to write xml files which are inside a zip file into the database. In the zipfile module the function read returns bytes. What I did was to make a blob out of the returned bytes and write it to the database(for this I used cPickle). I also used _mysql's escape_string which escapes some

Re: f2py and Fortran90 gfortran_filename error

2007-02-28 Thread Tyler
On Feb 28, 12:40 am, Robert Kern <[EMAIL PROTECTED]> wrote: > Tyler wrote: > > Hello All: > > > Since my last post I have attempted to use the f2py program which > > comes with numpy. > > It's better to ask these questions on numpy-discussion, instead. There are > more > f2py users per capita ther

Re: f2py and Fortran90 gfortran_filename error

2007-02-28 Thread Beliavsky
On Feb 28, 12:40 am, Robert Kern <[EMAIL PROTECTED]> wrote: > Tyler wrote: > > Hello All: > > > Since my last post I have attempted to use the f2py program which > > comes with numpy. > > It's better to ask these questions on numpy-discussion, instead. There are > more > f2py users per capita ther

Re: pyopengl vs directpython

2007-02-28 Thread Diez B. Roggisch
Gigs_ wrote: > can someone tell me which is better for making 3d game in python. > something like tennis simulation OpenGL is platform-agnostic. If you ever want to reach people on linux or macs, use that. Beyond that I've got no idea which is technically superior - but John Carmack seems to fav

Re: installing "pysqlite"

2007-02-28 Thread Nader
On Feb 28, 12:51 pm, "Paul Boddie" <[EMAIL PROTECTED]> wrote: > On 28 Feb, 12:07, Nader Emami <[EMAIL PROTECTED]> wrote: > > > > > I am back with another problem. I suppose that I can tell it! > > I have installed both, 'sqlite' and 'pysqlite' without any problem. But > > If I try to test whether t

Re: pyopengl vs directpython

2007-02-28 Thread sturlamolden
On Feb 28, 2:59 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > OpenGL is platform-agnostic. If you ever want to reach people on linux or > macs, use that. > > Beyond that I've got no idea which is technically superior - but John > Carmack seems to favor OpenGL :) To ask which is better, Open

Re: design question: no new attributes

2007-02-28 Thread Alan Isaac
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The easy, but inelegant, way is to set a flag. That is the approach I explored here: http://mail.python.org/pipermail/python-list/2007-February/428562.html Btw, I add some background comments about "why" here: http://

pyscripter

2007-02-28 Thread Gigs_
im using pyscripter ide it is all alright till the next def class Checkbar(Frame): def __init__(self, parent=None, picks=[], side=LEFT, anchor=W): Frame.__init__(self, parent) self.vars = [] for pick in picks: var = IntVar() chk = Checkbut

Re: os.system and quoted strings

2007-02-28 Thread Sion Arrowsmith
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: import os.path os.path.join("c:", >..."Documents and Settings", >..."somepath") >'c:Documents and Settings\\somepath' > >Hmmm, a quick test with > >dir "e:userdata" > >worked, so the top level \ may not be needed... "drive:" is

Re: design question: no new attributes

2007-02-28 Thread Diez B. Roggisch
> However I will observe that > - entire languages are structured on the premise that dynamic > attribute creation can be hazardous Yup, and you are free to use one of them. And as an additional benefit, they will be more performant because you then can optimize the code further. But they certain

Re: msvcr71.dll

2007-02-28 Thread Fredrik Lundh
Simon Brunning wrote: >> Are there news about the impossibility of redistributing msvcr71.ddl >> with own stand-alone application written in python for who doesn't have >> MSVC7 license? > > Last I heard the consensus was that it's OK to distribute msvcr71.ddl. > But IANAL, and neither is anyone e

Re: PyCon blogs?

2007-02-28 Thread Max Erickson
[EMAIL PROTECTED] wrote: > Was anybody blogging about PyCon (talks and/or sprints)? Got any > pointers? > > Thanks, > > Skip In no particular order: http://www.nedbatchelder.com/blog/20070226T075948.html http://www.oreillynet.com/onlamp/blog/2007/02/pycon_day_1_1.html http://wamber.net/PyCon

Re: finding out the precision of floats

2007-02-28 Thread John Machin
On Feb 28, 10:38 pm, "Bart Ogryczak" <[EMAIL PROTECTED]> wrote: > [1] eg. consider calculating interests rate, which often is defined as > math.pow(anualRate,days/365.0). In what jurisdiction for what types of transactions? I would have thought/hoped that the likelihood that any law, standard or

Mail System Error - Returned Mail

2007-02-28 Thread Mail Administrator
The original message was received at Wed, 28 Feb 2007 15:56:52 +0100 from [137.64.156.226] - The following addresses had permanent fatal errors - - Transcript of session follows - ... while talking to 189.80.161.199: 554 5.0.0 Service unavailable; [35.216.143.37] blocked using b

Curses and resizing windows

2007-02-28 Thread Nick !
> Chris Share wrote: > > I've been writing an application using curses, and have been trying to > > handle resizing the terminal, if running in xterm or similar. Increasing > > the window size is working perfectly, however shrinking it is not > > working at all. No matter how much I shrink the win

Re: The Python interactive interpreter has no command history

2007-02-28 Thread ThomasC
On 2月16日, 上午1時14分, "Eduardo \"EdCrypt\" O. Padoan" <[EMAIL PROTECTED]> wrote: > > Hello, > > > How to configure Python2.5's interactive interpreter to get command > > history ? > > > I always got ^[[A and ^[[B . > > Are you using Ubuntu? The last comes with 2.4.x and 2.5. This only > occurs on 2.5.

Re: Running Python scripts from BASH

2007-02-28 Thread ina
On Feb 27, 11:16 pm, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > "Ishpeck" <[EMAIL PROTECTED]> wrote: > > 8<--- a bash problem - > > If it were Python, the advice would have been to use the > print statement to figure out what the content of the > variables wer

Re: PyCon blogs?

2007-02-28 Thread Kumar McMillan
> > Was anybody blogging about PyCon (talks and/or sprints)? Got any > > pointers? or ... if you're lazy like me, read them all in one place! http://planetpython.org/ http://www.pythonware.com/daily/ http://planet.python.org/ ps. http://flickr.com/search/?q=pycon2007 :) -- http://mail.python.

Re: Python Source Code Beautifier

2007-02-28 Thread Alan Franzoni
Il Wed, 28 Feb 2007 07:53:47 +1100, Delaney, Timothy (Tim) ha scritto: > Alan Franzoni wrote: >> the += operator is syntactic sugar just to save time... if one >> doesn't use it I don't think it's a matter of beauty. > > This change can have semantic differences, and so should not be done for > a

Eric on XP for Newbie

2007-02-28 Thread jeffwatkins2000
I'm starting on the path of freeing myself from proprietory software but I need to migrate, not make one huge jump. I'm looking at using Python and Eric for programming I've got Python up and running but can someone please point me to a simple step by step guide for installing Eric? I've download

Re: Python Source Code Beautifier

2007-02-28 Thread Alan Franzoni
Il 27 Feb 2007 16:14:20 -0800, [EMAIL PROTECTED] ha scritto: > Those mean different things: > a=[1] b=a a += [2] a > [1, 2] b > [1, 2] a=[1] b=a a = a + [2] a > [1, 2] b > [1] This is a really nasty one! I just answered to Tim above here, and the

Re: Eric on XP for Newbie

2007-02-28 Thread Alan Franzoni
Il 28 Feb 2007 08:13:42 -0800, [EMAIL PROTECTED] ha scritto: [cut] Forget the tars. http://www.quadgames.com/download/pythonqt/ Get the two EXEs here. BTW, I don't think Eric3 is a really good IDE on Windows (yet). Try something like SPE, or Scite, or any other editor like UltraEdit32. N.B: yo

Re: Python Source Code Beautifier

2007-02-28 Thread Duncan Booth
Alan Franzoni <[EMAIL PROTECTED]> wrote: > Yeah, that's right, it could have semantic differences, but that > shouldn't be the case anyway. I mean, if I don't define an __iadd__ > method, writing > > a += n > > or > > a = a + n > > is just the same, right? > > > So, if I bother to define an

cPickle FU on Solaris

2007-02-28 Thread Bart Ogryczak
It seems, that on Solaris cPickle is unable to unpickle some values, which it is able to pickle. >>> import cPickle >>> cPickle.dumps(1e-310) 'F9.9694e-311\n.' >>> cPickle.loads(_) Traceback (most recent call last): File "", line 1, in ? ValueError: could not convert string to float

SocketServer.ForkingMixIn and zombie processes

2007-02-28 Thread [EMAIL PROTECTED]
Hi, I noticed that when I used SocketServer.ForkingMixIn (ForkingTCPServer), there were always zombie processes around. I searched for where waitpid() is called in ForkingMixIn and found it in SocketServer.py: def process_request(self, request, client_address): """Fork a new subproc

Re: spawnl and waitpid

2007-02-28 Thread naima . mans
On 28 fév, 11:23, [EMAIL PROTECTED] wrote: > On 27 fév, 19:32, Thinker <[EMAIL PROTECTED]> wrote: > > > > > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > [EMAIL PROTECTED] wrote: > > > On 27 f憝, 18:54, Thinker <[EMAIL PROTECTED]> wrote: > > > hello > > > ha ok... > > > i tried this on

Curious UnboundLocalError Behavior

2007-02-28 Thread Matthew Franz
I'm probably fundamentally misunderstanding the way the interpreter works with regard to scope, but is this the intended behavior... franz-macbook:~ mdfranz$ python unboundlocal.py ('Darwin', 'franz-macbook.local', '8.8.5', 'Darwin Kernel Version 8.8.5: Mon Dec 11 19:39:17 PST 2006; root:xnu-792.1

Re: Eric on XP for Newbie

2007-02-28 Thread jeffwatkins2000
On Feb 28, 4:27 pm, Alan Franzoni <[EMAIL PROTECTED]> wrote: > Il 28 Feb 2007 08:13:42 -0800, [EMAIL PROTECTED] ha scritto: > > [cut] > > Forget the tars. > > http://www.quadgames.com/download/pythonqt/ > > Get the two EXEs here. BTW, I don't think Eric3 is a really good IDE on > Windows (yet). Try

Re: finding out the precision of floats

2007-02-28 Thread Bart Ogryczak
On Feb 28, 3:53 pm, "John Machin" <[EMAIL PROTECTED]> wrote: > On Feb 28, 10:38 pm, "BartOgryczak" <[EMAIL PROTECTED]> wrote: > > > [1] eg. consider calculating interests rate, which often is defined as > > math.pow(anualRate,days/365.0). > > In what jurisdiction for what types of transactions? I w

Re: Curious UnboundLocalError Behavior

2007-02-28 Thread Daniel Nogradi
> I'm probably fundamentally misunderstanding the way the interpreter > works with regard to scope, but is this the intended behavior... > [] > SOMEGLOBAL: > Traceback (most recent call last): > File "unboundlocal.py", line 15, in ? > foo() > File "unboundlocal.py", line 11, in foo >

Re: finding out the precision of floats

2007-02-28 Thread Arnaud Delobelle
On 28 Feb, 11:38, "Bart Ogryczak" <[EMAIL PROTECTED]> wrote: > On Feb 27, 7:58 pm, "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote: > > This is one of the reasons (by no means the main) why I decided to > > write my own class. > > Why not GMP? I need decimals. > My point is, that neither is Decimal.

Writing an interpreter for language similar to python!!

2007-02-28 Thread luvsat
Hello all, I am new to python and working on a project that involves designing a new language. The grammar of the language is very much inspired from python as in is supports nearly all the statements and expressions that are supported by python. Since my project is in initial stage, so I think it

Re: pyHook or SetWindowsHookEx

2007-02-28 Thread abcd
anyone? -- http://mail.python.org/mailman/listinfo/python-list

Re: finding out the precision of floats

2007-02-28 Thread Bart Ogryczak
On Feb 28, 6:34 pm, "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote: > > So as long as you're dealing with something like > > invoices, Decimal does just fine. When you start real calculations, > > not only scientific, but even financial ones[1], it doesn't do any > > better then binary float, and it'

Re: Automatic reloading, metaclasses, and pickle

2007-02-28 Thread andrewfelch
On Feb 27, 6:47 pm, "Ziga Seilnacht" <[EMAIL PROTECTED]> wrote: > Andrew Felch wrote: > > Thanks for checking. I think I narrowed the problem down to > > inheritance. I inherit from list or some other container first: > > > class PointList( list, AutoReloader ): > > def PrintHi1(self): > >

Re: f2py and Fortran90 gfortran_filename error

2007-02-28 Thread Robert Kern
Beliavsky wrote: > On Feb 28, 12:40 am, Robert Kern <[EMAIL PROTECTED]> wrote: >> Tyler wrote: >>> Hello All: >>> Since my last post I have attempted to use the f2py program which >>> comes with numpy. >> It's better to ask these questions on numpy-discussion, instead. There are >> more >> f2py us

How do I Color a QTableView row in PyQt4

2007-02-28 Thread Mel
I am currently porting an SQL centered Visual Basic application to run on Linux, Python, and Qt4. Currently I am stumped on changing row colors in the QTableView widget. My test code is based on code from the PyQt4 examples and looks like this: *** Start Code *** import sys from PyQt4 import Q

Re: Jobs: Lisp and Python programmers wanted in the LA area

2007-02-28 Thread Ray Dillinger
> Actually, it just occurred to me that the company location was also in > the subject line of this thread ;-) D'oh! Should have looked at the verbose header before responding. I've got my newsreader set to display one title per line, and then didn't give it enough horizontal room to see your f

Re: Py2EXE problem

2007-02-28 Thread Sick Monkey
Ok I found an extremely easy way to resolving this issue (I cannot believe I did not think of it sooner). After Py2exe created the .exe file I noticed a "library.zip" file. I took a look at the Py2exe output, and saw all of the libraries that it failed to insert. I copied all of the .pyc that m

Re: pyopengl vs directpython

2007-02-28 Thread Gigs_
thanks hey, is there any good tutorial for directpython? or maybe you could suggest me the book -- http://mail.python.org/mailman/listinfo/python-list

Re: Py2EXE problem

2007-02-28 Thread Thomas Heller
Sick Monkey schrieb: > Ok I found an extremely easy way to resolving this issue (I cannot believe I > did not think of it sooner). > > After Py2exe created the .exe file I noticed a "library.zip" file. I took a > look at the Py2exe output, and saw all of the libraries that it failed to > insert.

Re: PyCon blogs?

2007-02-28 Thread Luis M. González
On Feb 27, 9:36 pm, [EMAIL PROTECTED] wrote: > Was anybody blogging about PyCon (talks and/or sprints)? Got any pointers? > > Thanks, > > Skip http://blogsearch.google.com/blogsearch?hl=en&tab=wb&q=pycon&btnG=Search+Blogs -- http://mail.python.org/mailman/listinfo/python-list

Re: Eric on XP for Newbie

2007-02-28 Thread SPE - Stani's Python Editor
On Feb 28, 6:15 pm, [EMAIL PROTECTED] wrote: > On Feb 28, 4:27 pm, Alan Franzoni > > <[EMAIL PROTECTED]> wrote: > > Il 28 Feb 2007 08:13:42 -0800, [EMAIL PROTECTED] ha scritto: > > > [cut] > > > Forget the tars. > > >http://www.quadgames.com/download/pythonqt/ > > > Get the two EXEs here. BTW, I do

Re: Py2EXE problem

2007-02-28 Thread Sick Monkey
Awesome. That is good to know. On 2/28/07, Thomas Heller <[EMAIL PROTECTED]> wrote: Sick Monkey schrieb: > Ok I found an extremely easy way to resolving this issue (I cannot believe I > did not think of it sooner). > > After Py2exe created the .exe file I noticed a "library.zip" file. I took

Reading csv files using SQL

2007-02-28 Thread Pablo was Paolo
Hi, exists a Python library that allows to interface to csv files as if you manage a database, using SQL language? Something like csvjdbc in Java, where table name is file name and the field's names are in first row. Thanks! Paolo -- http://mail.python.org/mailman/listinfo/python-list

Question about raise and exceptions.

2007-02-28 Thread Steven W. Orr
In my class I have class Error(Exception): """Base class for exceptions in this module.""" pass class TransitionError(Error): """Raised when an operation attempts a state transition that's not allowed. Attributes: previous -- st

RE: Eric on XP for Newbie

2007-02-28 Thread Sells, Fred
I've been using Eclipse with the PyDev extension. it's not bad, although you need a reasonably powerful computer to handle the bloat of Eclipse. For short programs, I still like emacs, but I'm old school. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of SPE

Re: Question about raise and exceptions.

2007-02-28 Thread Daniel Klein
On Wed, 28 Feb 2007 13:48:54 -0500 (EST), "Steven W. Orr" <[EMAIL PROTECTED]> wrote: >When I run it I get this: > >884 > ./t_fsm.py >Traceback (most recent call last): > File "./t_fsm.py", line 3, in ? > from fsm import * > File "/home/boston/VIASAT/sorr/py/fsm/fsm.py", line 76 > raise

class declaration shortcut

2007-02-28 Thread Luis M. González
I've come across a code snippet in www.rubyclr.com where they show how easy it is to declare a class compared to equivalent code in c#. I wonder if there is any way to emulate this in Python. The code is as follows: Person = struct.new( :name, :birthday, :children) I tried something like this, b

  1   2   >