Re: Tip: 'Open IPython here' in Windows context menu

2007-02-27 Thread cyberco
Great! That really helps me, thanks. 2B -- http://mail.python.org/mailman/listinfo/python-list

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Is there another possibility of how to solve it just by adding some > lines in script? I think you have to wrap your script in a shell script #!/bin/sh export LD_LIBRARY_PATH=/path/Linux/rh_linux python shrink_bs_070226.py To avoid that you can have the python script

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

2007-02-27 Thread Michele Simionato
On Feb 27, 2:51 am, Dan Bensen <[EMAIL PROTECTED]> wrote: > > Tech HR wrote: > > easier to train a Java programmer or a Perler on Python than Lisp.Dan > Bensen wrote: > > > Are your technical problems simple enough to be solved by Python > > trainees? > > Aahz wrote: > > If they're already goo

Python Source Code Beautifier

2007-02-27 Thread Franz Steinhaeusler
Hello, I did not find any reasonable pyhton source code beautifier program (preferable gui). Some would ask why? Program it immediatly good. (BTW: Would be a nice project, if I would have more spare time). Ich have some foreign source, which are programed in a way I don't like, so I would like t

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread boris . smirnov
On Feb 27, 9:31 am, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Is there another possibility of how to solve it just by adding some > > lines in script? > > I think you have to wrap your script in a shell script > > #!/bin/sh > export LD_LIBRARY_PATH=/path/Linux/rh_linux >

Re: Is type object an instance or class?

2007-02-27 Thread Peter Otten
JH wrote: > I found that a type/class are both a subclass and a instance of base > type "object". > > It conflicts to my understanding that: > > 1.) a type/class object is created from class statement > 2.) a instance is created by "calling" a class object. > > A object should not be both a cla

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

2007-02-27 Thread Duncan Booth
"Phoe6" <[EMAIL PROTECTED]> wrote: > Hi all, > I am trying to disable the NIC card (and other cards) enabled in my > machine to test diagnostics on that card. > I am trying to disable it programmatic using python. I checked python > wmi and i could not find ways to disable/enable, (listing is howe

Re: ArcGIS and Python

2007-02-27 Thread martin . laloux
Try Esri http://support.esri.com/index.cfm?fa=forums.gateway or http://geography.sdsu.edu/People/Pages/jankowski/public_html/web683/lectures683.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: NetUseAdd mystery

2007-02-27 Thread king kikapu
> You need to use level 2 info to pass the username. > Level 1 is for the old-style share with its own password. > Also, it should be 'username': instead of just 'user':. > > hth >Roger Roger many-many thanks! That was it, i had to put "username" instead of "user" and 2 instead of

installing "pysqlite"

2007-02-27 Thread Nader Emami
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 longer than what I send here. % easy_install pysqlite Searching for pysqlite Readin

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread Peter Otten
[EMAIL PROTECTED] wrote: > On Feb 27, 9:31 am, Peter Otten <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > Is there another possibility of how to solve it just by adding some >> > lines in script? >> >> I think you have to wrap your script in a shell script >> >> #!/bin/sh >> export LD

Re: JasperServer

2007-02-27 Thread copermine
On Feb 22, 8:22 pm, "batok" <[EMAIL PROTECTED]> wrote: > JasperServeris a report engine ( java based ). It has asoap > interface. Does anybody has usedJasperserverviaSoap? > > An example would be appreciated. What do you need exactly? -- http://mail.python.org/mailman/listinfo/python-list

Re: Working with C object of python object (pycairo,ctypes)

2007-02-27 Thread AngelBlaZe
Solved my own problem :-) For future reference here is the solution: class PycairoContext(Structure): _fields_ = [("PyObject_HEAD", c_byte * object.__basicsize__), ("ctx", c_void_p), ("base", c_void_p)] z = PycairoContext.from_address(id(ctx)) print z.ctx whe

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread boris . smirnov
On Feb 27, 10:33 am, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Feb 27, 9:31 am, Peter Otten <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >> > Is there another possibility of how to solve it just by adding some > >> > lines in script? > > >> I think you h

gtk.mainquit is deprecated

2007-02-27 Thread awalter1
Hello, (environment : python 2.4.2, pyGTK, GTK+ 2.6.9 under HPUX 11.11: unix) On the instruction self.window.destroy(), I get the following message : lookup.py:121: GtkDeprecationWarning: gtk.mainquit is deprecated, use gtk.main_quit instead self.window.destroy() But I don't want to quit the applic

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Probably I understood it not correctly. What did you mean was to put > that code into my python script "shrink_bs_070226.py" and then calls > script itself? Yes. > So I took my script "shrink_bs_070226.py" and it starts with: > ** > #!/

Re: Lists: Converting Double to Single

2007-02-27 Thread Duncan Booth
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > Something like (pseudo-code): > > > cnt = 0 > for rw in cursor(): > if cnt: > for i,v in enumerate(rw): >sum[i] += v #accumulate next row > else: > sum = rw #initialize to first row >

HTML to dictionary

2007-02-27 Thread Tina I
Hi everyone, I have a small, probably trivial even, problem. I have the following HTML: > > METAR: > > ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG > > > short-TAF: > > ENBR 270800Z 270918 VRB05KT FEW020 SCT040 > > > long-TAF: > > ENBR 271212 VRB05KT FEW020 BKN030 TEMPO

Re: HTML to dictionary

2007-02-27 Thread Tina I
Tina I wrote: > Hi everyone, > > I have a small, probably trivial even, problem. I have the following HTML: >> >> METAR: >> >> ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG >> >> >> short-TAF: >> >> ENBR 270800Z 270918 VRB05KT FEW020 SCT040 >> >> >> long-TAF: >> >> ENBR 27121

spawnl and waitpid

2007-02-27 Thread naima . mans
hello, I run a python cgi script under Apache... and while the script is running i want to display a "please wait" message until the script finish. I have tried to do this but the "please wait" message appears at the script end (which is useless at this time! ) here my script: -

Re: spawnl and waitpid

2007-02-27 Thread naima . mans
i forgot ... thanks for any help :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Pep 3105: the end of print?

2007-02-27 Thread Christophe
Martin v. Löwis a écrit : > Neil Cerutti schrieb: >> On 2007-02-23, I V <[EMAIL PROTECTED]> wrote: >>> While that's true, C++ compiler vendors, for example, take >>> backwards compatibility significantly less seriously, it seems >>> to me. >> Compiler vendors usually take care of their customers w

Re: spawnl and waitpid

2007-02-27 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > hello, > > I run a python cgi script under Apache... > > and while the script is running i want to display a "please wait" > message until the script finish. > > I have tried to do this but the "please wait" message appears a

QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread boris . smirnov
Hi all, I have a python script that works without any problem on Windows but with error: QPaintDevice: Must construct a QApplication before a QPaintDevice on Linux. Where could be the problem? Thanks. Boris -- http://mail.python.org/mailman/listinfo/python-list

Re: JasperServer

2007-02-27 Thread Paul Boddie
On 27 Feb, 10:35, "copermine" <[EMAIL PROTECTED]> wrote: > On Feb 22, 8:22 pm, "batok" <[EMAIL PROTECTED]> wrote: > > > JasperServeris a report engine ( java based ). It has asoap > > interface. Does anybody has usedJasperserverviaSoap? > > > An example would be appreciated. > > What do you need

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi all, > > I have a python script that works without any problem on Windows but > with error: > > QPaintDevice: Must construct a QApplication before a QPaintDevice > > on Linux. > > Where could be the problem? This is the problem: You Must construct a QApplication

Re: spawnl and waitpid

2007-02-27 Thread naima . mans
On 27 fév, 11:28, Thinker <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > [EMAIL PROTECTED] wrote: > > hello, > > > I run a python cgi script under Apache... > > > and while the script is running i want to display a "please wait" > > message until the script finish.

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread boris . smirnov
On Feb 27, 11:46 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi all, > > > I have a python script that works without any problem on Windows but > > with error: > > > QPaintDevice: Must construct a QApplication before a QPaintDevice > > > on Linux. > > > Where co

Re: Preallocate? -- potentially brain dead question about performance

2007-02-27 Thread bearophileHUGS
Jan Danielsson: >...completely avoiding the design issue I raised altogether. Thanks! > Exactly what I was hoping for! :-) Another common way to do it, it may be a little slower because that n,txt is a tuple: items = set(int(n) for n,txt in mylist) Bye, bearophile -- http://mail.python.org

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread Diez B. Roggisch
> > Yes that I can deduce, but why I'm asking is why it's different on > Windows and Linux. Should it not be platform independent? It should be. I've got no idea why it seems to work on windows but I can say one thing for sure: that would be an artifact that you shouldn't rely on. In Qt, you _alw

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread boris . smirnov
On Feb 27, 11:56 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > Yes that I can deduce, but why I'm asking is why it's different on > > Windows and Linux. Should it not be platform independent? > > It should be. I've got no idea why it seems to work on windows but I can say > one thing for su

Re: gmpy moving to code.google.com

2007-02-27 Thread Daniel Nogradi
Hi Alex, I did another test, this time with python 2.4 on suse and things are worse than in the previous case (which was python 2.5 on fedora 3), ouput of 'python gmp_test.py' follows: Unit tests for gmpy 1.02 release candidate on Python 2.4 (#1, Mar 22 2005, 21:42:42) [GCC 3.3.5 20050117 (p

Re: newbie question(file-delete trailing comma)

2007-02-27 Thread kavitha thankaian
i get an error when i try to delete in file and rename it as out file,,the error says "permission denied". actually i need something like following: in_file = open('in.txt','w') for line in in_file: line.strip().strip(',') but when i run the above code,i get an error"bad fi

Re: HTML to dictionary

2007-02-27 Thread bearophileHUGS
Tina I: > I have a small, probably trivial even, problem. I have the following HTML: This is a little data munging problem. If it's a one-shot problem, then you can just load it with a browser, copy and paste it as text, and then process the lines of the text in a simple way (splitting lines accor

Re: HTML to dictionary

2007-02-27 Thread WEINHANDL Herbert
Tina I schrieb: > Hi everyone, > > I have a small, probably trivial even, problem. I have the following HTML: >> >> METAR: >> >> ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG >> ... BeautifulSoup is really fun to work with ;-) > I have played around with BeautifulSoup but I'm stuck at

[Job Posting] EXCITING OPPORTUNITY FOR EXPERIENCED PYTHON DEVELOPER

2007-02-27 Thread Azri Careers
Azri Solutions Pvt Limited ( http://www.azri.biz) provides a challenging work environment, an open work culture & competitive remuneration : the right ingredients to facilitate superlative performance.Vacancies for Experienced PYTHON DEVELOPER are currently open. Azri is an extremely flexible & sus

Re: spawnl and waitpid

2007-02-27 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > On 27 f憝, 11:28, Thinker <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: hello, I run a python cgi script under Apache... and while the script is running i want to display a "please wait" message until th

Re: HTML to dictionary

2007-02-27 Thread Paul Boddie
On 27 Feb, 11:08, Tina I <[EMAIL PROTECTED]> wrote: > > I have a small, probably trivial even, problem. I have the following HTML: >> >> METAR: >> >> ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG >> >> >> short-TAF: >> >> ENBR 270800Z 270918 VRB05KT FEW020 SCT040 >> >> >> long-

Job Ad: Full-time Python software developer, Wimbledon, London, England

2007-02-27 Thread John J. Lee
`ReportLab `_ (Wimbledon, London, England) **Job Description**: ReportLab develop enterprise reporting and document generation solutions using cutting-edge Python technology, and have a growing business

Re: QPaintDevice: Must construct a QApplication before a QPaintDevice

2007-02-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > On Feb 27, 11:56 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> > Yes that I can deduce, but why I'm asking is why it's different on >> > Windows and Linux. Should it not be platform independent? >> >> It should be. I've got no idea why it seems to work on windows

Re: what the heck is going on here?

2007-02-27 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I found the following ways to generate permutations on the ASPN: > Python Cookbook page. > > SLOW (two defs): > > def xcombinations(items,n): > if n == 0: yield[] > else: > for i in xrange(len(items)): > for cc in xcombinations(items[:i]+it

Re: installing "pysqlite"

2007-02-27 Thread Paul Boddie
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 > longer than what I send

Re: Help on object scope?

2007-02-27 Thread bmaron2
On Feb 26, 1:16 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 26 Feb 2007 07:54:12 +0200, "Hendrik van Rooyen" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > > > from param import * > > "from <> import *" (or any "from <> import ..." variant) is NOT th

Re: Python Source Code Beautifier

2007-02-27 Thread Neil Hodgson
Franz Steinhaeusler: > Hello, I did not find any reasonable pyhton source code beautifier > program (preferable gui). > ... > convert: > ... > from "is" to "==" and "is not" to "!=" (ok a find replace could do that > easily also), but in a program that would be more comfortable. That's an unsa

Re: Odd import behavior

2007-02-27 Thread Facundo Batista
Gregory Piñero wrote: > I didn't realize Python behaved like this. Is there an FAQ I can read on > this? I'll explain step by step: > FILE module1.py: > VAR1='HI' > > FILE MAIN.py: > from module1 import * > import module1 Here you have, in your module scope, a name 'VAR1' that points to "HI"

Python, Embedded linux and web development

2007-02-27 Thread Tzury
Regarding the platform described below, can anyone suggest from his experience what would be the best library choice to develop the following application. a) application that deals with data transformed via TCP sockets. b) reading and writing to and from sqlite3 (include Unicode manipulations). c)

Re: Bypassing __setattr__ for changing special attributes

2007-02-27 Thread Facundo Batista
Ziga Seilnacht wrote: object.__setattr__(f, '__class__', Bar) f.__class__ is Bar > True Interesting, but... why I must do this? And, I must *always* do this? With Foo and Bar like the OP coded (just two new style classes, f is instance of Foo), see this: >>> f <__main__.Foo object at

Is there a technic to avoid this bug

2007-02-27 Thread hg
Hi, In C/C++ I got used to write an expression like so: #define TEST 0 if (TEST == value) { } in order to avoid the usual bug: if (value = TEST) { } In a relatively similar domain, I spent a few hours find this bug: value == self.Get_Value() if value == WHATEVER: do this instead of va

Re: Python, Embedded linux and web development

2007-02-27 Thread Paul Boddie
On 27 Feb, 13:12, "Tzury" <[EMAIL PROTECTED]> wrote: > > c) small web application that will be used as front end to configure > the system (flat files and sqlite3 db are the back-end). > > Our platform is base on the Intel PXA270 processor (XSCALE family, > which is ARM compatible) running at 312MH

Curses sorely lacking an event loop?

2007-02-27 Thread James Stroud
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 waiting for getch() if I want user input, and so the screen must remain ugly until the user presses

Re: ANN: PyDSTool now compatible with numpy 1.0.1, scipy 0.5.2 and 64-bit CPUs.

2007-02-27 Thread [EMAIL PROTECTED]
On Feb 20, 4:16 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > Sounds GREAT ! > thank you ! > I just took a quick look, > the comparison to SimuLink looks good, > now if someone could make a comparison with Modelica;-) > > cheers, > Stef Mientki As far as I can tell, PyDSTool provides some basic sy

Re: finding out the precision of floats

2007-02-27 Thread Facundo Batista
Arnaud Delobelle wrote: > (and I don't want the standard Decimal class :) Why? -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ -- http://mail.python.org/mailman/listinfo/python-list

Re: installing "pysqlite"

2007-02-27 Thread Nader
On Feb 27, 12:44 pm, "Paul Boddie" <[EMAIL PROTECTED]> 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

Re: Is there a technic to avoid this bug

2007-02-27 Thread Diez B. Roggisch
hg wrote: > Hi, > > In C/C++ I got used to write an expression like so: > > #define TEST 0 > > if (TEST == value) > { > > } > > in order to avoid the usual bug: > if (value = TEST) > { > > } > > In a relatively similar domain, I spent a few hours find this bug: > > value == self.Get_Value

Re: Is type object an instance or class?

2007-02-27 Thread René Fleschenberg
Hi The article you read at http://www.cafepy.com/article/python_types_and_objects is really good, and the most comprehensive one I know about Python's object system. I recommend that you read it as many times as you need to understand it. It can be confusing -- just don't give up ;) I will try to

Re: newbie question(file-delete trailing comma)

2007-02-27 Thread Mikael Olofsson
kavitha thankaian wrote: > i get an error when i try to delete in file and rename it as out > file,,the error says > "permission denied". Perhaps you should give us both the exact code you are running and the complete traceback of the error. That could make things easier. There can be numerous re

Re: Curses sorely lacking an event loop?

2007-02-27 Thread Michael Zawrotny
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() > if I want user input

Re: Curses sorely lacking an event loop?

2007-02-27 Thread Michele Simionato
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 waiting for getch() > if I want use

Re: spawnl and waitpid

2007-02-27 Thread naima . mans
On 27 fév, 12:27, Thinker <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > > > [EMAIL PROTECTED] wrote: > > On 27 f憝, 11:28, Thinker <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > hello, I run a python cgi script under Apache... and while > t

Calling Python Web Services from C#

2007-02-27 Thread jvframework
I have a C# .NET cliente calling a Python web services. I pass two string values to web service and I wanna receive a string from the method. But, the server side receive my string values and the client side only display a empty string (""). I generate a C# Proxy class from the python web service

Re: Calling Python Web Services from C#

2007-02-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > I have a C# .NET cliente calling a Python web services. I pass two > string values to web service and I wanna receive a string from the > method. > > But, the server side receive my string values and the client side only > display a empty string (""). > > I generate a

pyHook or SetWindowsHookEx

2007-02-27 Thread abcd
I am having trouble with pyHook on python 2.4.1. Basically I have a python app that uses pyHook to capture keyboard events and write them straight to a file. The application is running as a service on a windows machine. If I am at that windows machine the application works just fine, logging my

Re: finding out the precision of floats

2007-02-27 Thread Bart Ogryczak
On Feb 27, 1:36 pm, Facundo Batista <[EMAIL PROTECTED]> wrote: > Arnaud Delobelle wrote: > > (and I don't want the standard Decimal class :) > > Why? Why should you? It only gives you 28 significant digits, while 64-bit float (as in 32-bit version of Python) gives you 53 significant digits. Also n

os.system and quoted strings

2007-02-27 Thread svata
Hello, as I'm new to python I've stumbled accros os.system and its not very well documented usage. I use Win XP Pro and Python 2.5. Here is the code snippet: -- import time import os dir = "C:\\Doc

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

2007-02-27 Thread Wade Humeniuk
Tech HR wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] wrote: > >> On Feb 26, 6:32 am, Tech HR <[EMAIL PROTECTED]> wrote: >>> Our >>> website is currently a LAMP appication with P=Python. We are looking for >>> bright motivated people who know or are willing to learn Python and/or >

Re: Is there a technic to avoid this bug

2007-02-27 Thread Michele Simionato
On Feb 27, 1:49 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > However, it might be that either pychecker or pylint will give you a warning > for such statements. Yep, pychecker gives a warning "Statement appears to have no effect" Michele Simionato -- http://mail.python.org/mailman/lis

Re: os.system and quoted strings

2007-02-27 Thread Sriram
Hello svata, It is always better to compose your string before you send it as a command. try printing your command string out like this : print 'gvim dir+fileName+".txt". You'll see what the problem is. One possible solution is to compose your command string in the following manner: cmd = "gvim %

Re: os.system and quoted strings

2007-02-27 Thread Sick Monkey
Do you mean: import time, os dir = "C:\\Documents and Settings\\somepath\\" fileName = time.strftime("%d%m%Y") finalname = "%s%s.txt" % (dir,fileName) print finalname C:\Documents and Settings\somepath\27022007.txt On 27 Feb 2007 06:24:41 -0800, svata <[EMAIL PROTECTED]> wrote: Hello, as I

Re: Is there a technic to avoid this bug

2007-02-27 Thread hg
Michele Simionato wrote: > pychecker Thanks all ... pydev extension does not however ... will have to install pychecker also. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system and quoted strings

2007-02-27 Thread zefciu
svata wrote: > Hello, > > as I'm new to python I've stumbled accros os.system and its not very > well documented usage. > > I use Win XP Pro and Python 2.5. > > Here is the code snippet: > > -- > >

Re: Lists: Converting Double to Single

2007-02-27 Thread Steven D'Aprano
On Tue, 27 Feb 2007 10:06:29 +, Duncan Booth wrote: > Adding up a long list of values > and then dividing by the number of values is the classic computer > science example of how to get an inaccurate answer from a floating point > calculation. I'm not entirely ignorant when it comes to com

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

2007-02-27 Thread dixkey
> Who is the CTO? > > Wade Don't you people have Google in your villag^W universe? -- http://mail.python.org/mailman/listinfo/python-list

Re: installing "pysqlite"

2007-02-27 Thread Diez B. Roggisch
Nader wrote: > On Feb 27, 12:44 pm, "Paul Boddie" <[EMAIL PROTECTED]> 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 >> > 'eas

Re: installing "pysqlite"

2007-02-27 Thread Paul Boddie
On 27 Feb, 13:35, "Nader" <[EMAIL PROTECTED]> wrote: > > Thank for your reaction. I don't know also how the interaction sith > 'easy_install' is. I think that I have to install 'pysqlite' from > source code also, because i can change ther the 'setup.cfg' file and I > can give there where the 'libsq

Re: Python Source Code Beautifier

2007-02-27 Thread Chuck Rhode
Franz Steinhaeusler wrote this on Tue, 27 Feb 2007 09:45:42 +0100. My reply is below. > Hello, I did not find any reasonable pyhton source code beautifier > program (preferable gui). -snip- > Is there such a tool around? Why, yes! Yes, there is: o http://lacusveris.com/PythonTidy/PythonTidy.

Re: os.system and quoted strings

2007-02-27 Thread Steven D'Aprano
On Tue, 27 Feb 2007 06:24:41 -0800, svata wrote: > Hello, > > as I'm new to python I've stumbled accros os.system and its not very > well documented usage. Documentation seems pretty good to me. system(...) system(command) -> exit_status Execute the command (a string) in a subshell. W

book for a starter

2007-02-27 Thread Wensui Liu
Good morning, all, I just start learning python and have a question regarding books for a newbie like me. If you are only allowed to buy 1 python book, which one will you pick? ^_^. Thank you so much! -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system and quoted strings

2007-02-27 Thread svata
On Feb 27, 2:36 pm, "Sriram" <[EMAIL PROTECTED]> wrote: > Hello svata, > It is always better to compose your string before you send it as a > command. > > try printing your command string out like this : > print 'gvim dir+fileName+".txt". You'll see what the problem is. > > One possible solution is

Re: gmpy moving to code.google.com

2007-02-27 Thread Alex Martelli
On Feb 27, 2007, at 2:59 AM, Daniel Nogradi wrote: > Hi Alex, > > I did another test, this time with python 2.4 on suse and things are > worse than in the previous case (which was python 2.5 on fedora 3), > ouput of 'python gmp_test.py' follows: Interesting! gmpy interacts with decimal.Decimal

Re: installing "pysqlite"

2007-02-27 Thread Nader Emami
Paul Boddie wrote: > On 27 Feb, 13:35, "Nader" <[EMAIL PROTECTED]> wrote: >> Thank for your reaction. I don't know also how the interaction sith >> 'easy_install' is. I think that I have to install 'pysqlite' from >> source code also, because i can change ther the 'setup.cfg' file and I >> can give

Re: book for a starter

2007-02-27 Thread Sick Monkey
I personally would get "Programming Python, Third Edition " http://www.oreilly.com/catalog/python3/ On 2/27/07, Wensui Liu <[EMAIL PROTECTED]> wrote: Good morning, all, I just start learning python and have a question regarding books for a newbie like me. If you are only allowed to buy 1 pyt

Re: How to use cmp() function to compare 2 files?

2007-02-27 Thread samuel . y . l . cheung
On Feb 27, 12:07 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > wrote: > > > File "./scripts/regressionTest.py", line 30, in getSnapShot > > if (difflib.context_diff(f1.readlines(), f2.readlines()).len() == > > 0): > > # no diffe

Re: Checking for EOF in stream

2007-02-27 Thread kousue
On Feb 19, 6:58 pm, GiBo <[EMAIL PROTECTED]> wrote: > Hi! > > Classic situation - I have to process an input stream of unknown length > until a I reach its end (EOF, End Of File). How do I check for EOF? The > input stream can be anything from opened file through sys.stdin to a > network socket. An

Re: book for a starter

2007-02-27 Thread abcd
I'd pick, Dive Into Python (http://www.diveintopython.org/) you can read it online for FREE! -- http://mail.python.org/mailman/listinfo/python-list

Re: installing "pysqlite"

2007-02-27 Thread Paul Boddie
On 27 Feb, 16:34, Nader Emami <[EMAIL PROTECTED]> wrote: > > I have first installed "sqlite" and then I have configure the > "setup.cfg" file of "pysqlite" package. I had to do two things in > 'pysqlite' directory: > 1- python setup.py build > 2- python setup.py install > > It has done without any

Re: Help on object scope?

2007-02-27 Thread Jussi Salmela
[EMAIL PROTECTED] kirjoitti: > > global names seemed to be the best idea. The only problem is now I > have to type common.r.t instead of just r.t. If I put common in the / > lib directory, it is even worse and I have to type lib.common.r.t. I > like that it is explicit and perhaps this is the Pyt

Re: book for a starter

2007-02-27 Thread king kikapu
Me, i bought this http://www.amazon.com/Core-Python-Programming-2nd/dp/0132269937/sr=8-1/qid=1172592163/ref=pd_bbs_sr_1/105-9302229-1138834?ie=UTF8&s=books and i really think it is a great book for learning Python. It refers to the latest Python version (2.5) and covers a lot of things, besides the

Re: book for a starter

2007-02-27 Thread David Brochu
From: "Wensui Liu" <[EMAIL PROTECTED]> To: python-list@python.org Date: Tue, 27 Feb 2007 10:09:57 -0500 Subject: book for a starter Good morning, all, [I just start learning python and have a question regarding books for a newbie like me. If you are only allowed to buy 1 python book, which one wi

Re: How to use cmp() function to compare 2 files?

2007-02-27 Thread Jussi Salmela
[EMAIL PROTECTED] kirjoitti: > On Feb 27, 12:07 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >> wrote: >> >>> File "./scripts/regressionTest.py", line 30, in getSnapShot >>> if (difflib.context_diff(f1.readlines(), f2.readlines()).len()

Re: gtk.mainquit is deprecated

2007-02-27 Thread Alan Franzoni
Il 27 Feb 2007 01:56:33 -0800, awalter1 ha scritto: > But I don't want to quit the application, I need only to close the > window. > My application includes others places where "self.window.destroy()" > instruction is used and the execution is done without warning. > Very strange. But does then t

Re: Help on object scope?

2007-02-27 Thread Bart Ogryczak
On Feb 25, 10:25 pm, [EMAIL PROTECTED] wrote: > Hello everybody, > > I have a (hopefully) simple question about scoping in python. I have a > program written as a package, with two files of interest. The two > files are /p.py and /lib/q.py > > My file p.py looks like this: > > --- > > from lib impo

Re: Lists: Converting Double to Single

2007-02-27 Thread Neil Cerutti
On 2007-02-27, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Tue, 27 Feb 2007 10:06:29 +, Duncan Booth wrote: >> Adding up a long list of values and then dividing by the >> number of values is the classic computer science example of >> how to get an inaccurate answer from a floating point >>

Re: Python, Embedded linux and web development

2007-02-27 Thread [EMAIL PROTECTED]
On 27 fév, 13:27, "Paul Boddie" <[EMAIL PROTECTED]> wrote: > On 27 Feb, 13:12, "Tzury" <[EMAIL PROTECTED]> wrote: > > > > > c) small web application that will be used as front end to configure > > the system (flat files and sqlite3 db are the back-end). > > > Our platform is base on the Intel PXA27

Re: Python Source Code Beautifier

2007-02-27 Thread Alan Franzoni
Il Tue, 27 Feb 2007 09:45:42 +0100, Franz Steinhaeusler ha scritto: > Hello, I did not find any reasonable pyhton source code beautifier > program (preferable gui). Well, most of the things you ask should be written as such, not written and then beautified! > Use Spaces, size: 4 Your editor sho

MI5 Persecution: Stand up for Free Speech 14/8/95 (363)

2007-02-27 Thread MI5Victim
From: [EMAIL PROTECTED] (Richard Ingram) Newsgroups: uk.misc Date: Mon Aug 14 10:08:32 1995 Some cencorship loving bore wrote : > In article <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Gareth Evans) writes: > > His sysadmin is also next to useless, and has not replied to my request or > even ackno

Re: gmpy moving to code.google.com

2007-02-27 Thread Daniel Nogradi
> > Hi Alex, > > > > I did another test, this time with python 2.4 on suse and things are > > worse than in the previous case (which was python 2.5 on fedora 3), > > ouput of 'python gmp_test.py' follows: > > Interesting! gmpy interacts with decimal.Decimal by "monkey- > patching" that class on th

Re: Python Source Code Beautifier

2007-02-27 Thread Michael Spencer
Franz Steinhaeusler wrote: > Use Spaces, size: 4 > detect mixed line ending > detect tabs mixed with space > trim trailing whitespaces. look at: tools/scripts/reindent.py > convert structs like: if (a > b): to if a > b: > fill in spaces, but not in functions between operators: > > a+=1 =>

Re: HTML to dictionary

2007-02-27 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, Tina I <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have a small, probably trivial even, problem. I have the following HTML: > > > > METAR: > > > > ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG > > > > > > short-TAF: > > > > ENBR 270800Z 270918 VRB

Re: spawnl and waitpid

2007-02-27 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > i have tried as you said (cf bellow) and same result... is there > any link which explain how a server Web read script and send the > answer ? > - > pid

Re: book for a starter

2007-02-27 Thread Bjoern Schliessmann
Wensui Liu wrote: > I just start learning python and have a question regarding books > for a newbie like me. http://wiki.python.org/moin/IntroductoryBooks > If you are only allowed to buy 1 python book, which one will you > pick? ^_^. I'd pick a reference. YMMV. Regards, Björn (having been a

  1   2   3   >