Re: subprocess.Popen(..., cwd=...) and Makefile $(PWD) don't play nice

2008-10-07 Thread Thomas Bellman
"Gabriel Genellina" <[EMAIL PROTECTED]> writes: > En Mon, 06 Oct 2008 13:09:26 -0300, Miki <[EMAIL PROTECTED]> escribió: >> Can anybody explain why Makefile $(PWD) does show the right directory >> when running under subprocess.Popen(..., cwd=...) >> >> For example: >> [18:07] tmp $cat /tmp/p/

Re: Array of dict or lists or ....?

2008-10-07 Thread Gabriel Genellina
En Mon, 06 Oct 2008 22:52:29 -0300, Tim Chase <[EMAIL PROTECTED]> escribió: __repr__ = __str__ [EMAIL PROTECTED] wrote] I don't know if that's a good practice. I've seen it in a couple places, and it's pretty explicit what it's doing. __repr__ is used as a fallback for __str__, so

Python 2.5.3: call for patches

2008-10-07 Thread Martin v. Löwis
Within a few weeks, we will release Python 2.5.3. This will be the last bug fix release of Python 2.5, afterwards, future releases of 2.5 will only include security fixes, and no binaries (for Windows or OSX) will be provided anymore (from python.org). In principle, the release will include all ch

Re: type-checking support in Python?

2008-10-07 Thread Lorenzo Gatti
On 7 Ott, 08:36, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message <[EMAIL PROTECTED]>, Gabriel > > Genellina wrote: > > As an example, in the oil industry here in my country there is a mix of > > measurement units in common usage. Depth is measured in meters, but

Re: type-checking support in Python?

2008-10-07 Thread Gabriel Genellina
En Tue, 07 Oct 2008 03:36:12 -0300, Lawrence D'Oliveiro <[EMAIL PROTECTED]> escribió: In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: As an example, in the oil industry here in my country there is a mix of measurement units in common usage. Depth is measured in meters, but pump stro

export opengl context to pdf

2008-10-07 Thread Vaibhav . bhawsar
Hi, Does anyone know of a package that will allow me to output an opengl context as a PDF (or postscript)? I am using pyglet to render something on screen that i want to save as PDF. thanks! vaibhav -- http://mail.python.org/mailman/listinfo/python-list

Re: Array of dict or lists or ....?

2008-10-07 Thread Hrvoje Niksic
Tim Chase <[EMAIL PROTECTED]> writes: >>>__repr__ = __str__ >> >> I don't know if that's a good practice. > > I've seen it in a couple places, and it's pretty explicit what it's > doing. But what's the point? Simply define __repr__, and both repr and str will pick it up. -- http://mail.pytho

managing releases of web applications: is svn checkout the best way?

2008-10-07 Thread Ksenia
Hi, For website development, I am using SVN repository to commit the code from my development computer, and on the production server use svn checkout to update the code to the latest version. Is this the most common approach people using? Or is there maybe a better way to manage "live" releases, l

Python pre-release announcements (was: Python 2.5.3: call for patches)

2008-10-07 Thread Ben Finney
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Within a few weeks, we will release Python 2.5.3. I'm glad to see this. Thank you to all involved in the ongoing work of coordinating Python releases. Can I request, in the interest of reducing confusion, that any announcements of pre-release versi

Re: Dict Comprehension ?

2008-10-07 Thread Ernst-Ludwig Brust
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > > Instead of creating the list (array) dif, you can create a lazy > iterator. Then you can fed it to a set. Thangs, this idea is not only less storage-consuming but even faster than the "List-Version". But, i used the idea of pru

Re: Dict Comprehension ?

2008-10-07 Thread Ernst-Ludwig Brust
"Ben Finney" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > "Ernst-Ludwig Brust" <[EMAIL PROTECTED]> writes: > > So, generator expressions can be a powerful way to clarify the purpose > of a section of code. They can be over-used, though: don't use them > unless they actually

Re: Dict Comprehension ?

2008-10-07 Thread Ernst-Ludwig Brust
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > > from collections import defaultdict > da=defaultdict(int) > for x in [10]: >for y in [11]: >da[abs(x-y)]+=1 Thangs, collections are a real good idea. I will use this version. Ernsst-Ludwwig Brust -- http://mail.p

Re: HARD REAL TIME PYTHON

2008-10-07 Thread bieffe62
On 7 Ott, 01:25, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: > To All, > > I have done some additional research into the possibility of utilizing > Python for hard real time development.  I have seen on various websites > where this has been discussed before on the internet.  However, I was > w

Re: Builing Python 2.6 on AIX 5.2

2008-10-07 Thread brasse
On Oct 6, 5:03 pm, "Jesse Noller" <[EMAIL PROTECTED]> wrote: > Looks like AIX is missing sem_timedwait - see:http://bugs.python.org/issue3876 > > Please add your error to the bug report just so I can track it. > > -jesse > OK, I have now added my information to the bug tracker. I would be quite h

Re: how to start thread by group?

2008-10-07 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: > Usually it's more efficient to create all the MAX_THREADS at once, and > continuously feed them with tasks to be done. Given that the bottleneck is most likely to be the internet connection, I'd say the "premature optimization is the root

Re: managing releases of web applications: is svn checkout the best way?

2008-10-07 Thread Michele Simionato
On Oct 7, 9:55 am, Ksenia <[EMAIL PROTECTED]> wrote: > Hi, > > For website development, I am using SVN repository to commit the code > from my development computer, and on the production server use svn > checkout to update the code to the latest version. > Is this the most common approach people us

Re: Is PyFIT dead and abandoned?

2008-10-07 Thread Fuzzyman
On Oct 7, 1:34 am, Ben Finney <[EMAIL PROTECTED]> wrote: > "James Mills" <[EMAIL PROTECTED]> writes: > > On Tue, Oct 7, 2008 at 5:18 AM,  <[EMAIL PROTECTED]> wrote: > > > Has PyFIT been completely abandoned? Is there a better alternative or > > > other resources to help me integrate fitnesse and py

Re: equivalent of py2exe in other os

2008-10-07 Thread Pierre-Alain Dorange
<[EMAIL PROTECTED]> wrote: > For Linux I know of (but never used myself) PyInstaller : > http://pyinstaller.python-hosting.com/ > They seem to have a in-development version for OS/X too, so maybe you > could give it a try ... py2app for Mac works fine.

SMTPlib inside function, extra tab

2008-10-07 Thread Hunter
I am writing a script that needs to send some emails. And I've used smtplib in the past and it is pretty easy. But I thought, gee it would be easier if I could just call it as a function, passing the from, to, subject, and message text. So I wrote it up as a function and it sort of works, but I

automatically insert text in ms-word properties

2008-10-07 Thread gita ziabari
All, I wanna use python to automatically insert text in ms-word properties. Anyone could help me? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: SMTPlib inside function, extra tab

2008-10-07 Thread Tino Wildenhain
Hunter wrote: I am writing a script that needs to send some emails. And I've used smtplib in the past and it is pretty easy. But I thought, gee it would be easier if I could just call it as a function, passing the from, to, subject, and message text. So I wrote it up as a function and it sort

Re: Pure Python interface to MySQL?

2008-10-07 Thread Roy Smith
In article <[EMAIL PROTECTED]>, "James Mills" <[EMAIL PROTECTED]> wrote: > You could for example use an alternative database: > * buzhug > * ZODB > * Durus > * Or any of: pickle, shelve, XML, or flat file. Unfortunately, I don't own the database, just the clients that have to insert records

Re: Pure Python interface to MySQL?

2008-10-07 Thread Gerhard Häring
Gerhard Häring wrote: James Mills wrote: On Tue, Oct 7, 2008 at 9:15 AM, Roy Smith <[EMAIL PROTECTED]> wrote: Does there exist a pure Python version of a MySQL module? I've got a data logging application that needs to run on a whole bunch of OSs, ranging from Windows to a dozen different uni

Acer Laptops 4520NWXMi Athlon LX.AHS0C.032

2008-10-07 Thread Online Shopping
Buy low price Acer Acer Laptops 4520NWXMi Athlon LX.AHS0C.032 - buy best Acer Aspire Laptops 4520NWXMi Athlon LX.AHS0C.032 online at lowest price at homeshop18 laptops shop. For more information visit: http://www.homeshop18.com/shop/u/y/p-Computers-Q-and-Q-Peripherals-S-Laptops-S-Acer-Q-Aspire-Q-45

Re: ABCs -> infix syntax for isinstance() ?

2008-10-07 Thread Boris Borcic
Bruno Desthuilliers wrote: Boris Borcic a écrit : Given the ABC innovation, maybe an infix syntax for isinstance() would be good. Possibilities : - stealing "is" away from object identity. As a motivation, true use cases for testing object identity are rare; "x is None" is a *very* common t

Re: Array of dict or lists or ....?

2008-10-07 Thread Pat
Dennis Lee Bieber wrote: On Mon, 06 Oct 2008 19:45:07 -0400, Pat <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: I can't figure out how to set up a Python data structure to read in data that looks something like this (albeit somewhat simplified and contrived): States Cou

Re: execute a function before and after any method of a parent class

2008-10-07 Thread Michele Simionato
On Oct 3, 9:23 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > Ok, but then you have to explicitely decorate every method. To avoid this,   > you may use a metaclass; this article by Michael Foord explains > how:http://www.voidspace.org.uk/python/articles/metaclasses.shtml#a-metho... Since

several version of eggs

2008-10-07 Thread Sed
Hello, I thought that with eggs, I will be able to choose at run time, which version of an egg I would like to use. But after some tests with dummy eggs, I've tried to make it work with SQLAlchemy for example, with no success at all. So does some one know if such feature is available with eggs ?

Re: Getting namespaces right when parsing/executing Python ASTs

2008-10-07 Thread Orestis Markou
Have you tried passing in empty dicts for globals and locals? I think that the defaults will be the *current* globals and locals, and then of course your namespace is broken... On Tue, Oct 7, 2008 at 1:26 PM, Gordon Fraser <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to parse Python code to an

Re: several version of eggs

2008-10-07 Thread Diez B. Roggisch
Sed wrote: > Hello, > > I thought that with eggs, I will be able to choose at run time, which > version of an egg I would like to use. > > But after some tests with dummy eggs, I've tried to make it work with > SQLAlchemy for example, with no success at all. > > So does some one know if such fe

Re: equivalent of py2exe in other os

2008-10-07 Thread Benjamin Kaplan
On Tue, Oct 7, 2008 at 6:43 AM, Almar Klein <[EMAIL PROTECTED]> wrote: > Hi, > I was going to say "try google", but it seems quite hard to find indeed. > Use "freeze" for linux and "py2app" for osx. > > I know of a program called gui2exe which is a gui which uses the three > to compile executables

Re: managing releases of web applications: is svn checkout the best way?

2008-10-07 Thread jdd
On Oct 7, 3:55 am, Ksenia <[EMAIL PROTECTED]> wrote: > Hi, > > For website development, I am using SVN repository to commit the code > from my development computer, and on the production server use svn > checkout to update the code to the latest version. > Is this the most common approach people us

Re: Builing Python 2.6 on AIX 5.2

2008-10-07 Thread brasse
On Oct 6, 10:16 am, brasse <[EMAIL PROTECTED]> wrote: > Hello! > > I am having some trouble building Python 2.6 on AIX. The steps I have > taken are: > > export PATH=/usr/bin/:/usr/vacpp/bin/ > ./configure --with-gcc=xlc_r --with-cxx=xlC_r --disable-ipv6 > make > > This is the error message I'm see

Re: equivalent of py2exe in other os

2008-10-07 Thread Astan Chee
Hi, Thanks for the replies. I forgot to add that I am developing my python scripts in windows, but would like to make executables/binaries for win, linux and osx without the os themselves. Does this make sense? Also, it seems that freeze requires some sort of python installed on the linux box,

Re: equivalent of py2exe in other os

2008-10-07 Thread Benjamin Kaplan
I believe that all (or nearly all) Unix variants come with Python preinstalled. Ubuntu, at least, has a lot of system programs written in Python. Even Mac OS X requires Python. On Tue, Oct 7, 2008 at 7:43 AM, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > Thanks for the replies. I forgot to add t

Re: [Python-Dev] Python 2.5.3: call for patches

2008-10-07 Thread Aahz
On Tue, Oct 07, 2008, "Martin v. L?wis" wrote: > > In principle, the release will include all changes that are already on > the release25-maint branch in subversion [1]. If you think that specific > changes should be considered, please create an issue in the bug tracker > [2], and label it with th

Re: Getting namespaces right when parsing/executing Python ASTs

2008-10-07 Thread Gordon Fraser
Hi, Am Dienstag, den 07.10.2008, 15:30 +0100 schrieb Orestis Markou: > Have you tried passing in empty dicts for globals and locals? I think > that the defaults will be the *current* globals and locals, and then > of course your namespace is broken... That seems to work, thanks. Still trying to m

Re: HARD REAL TIME PYTHON

2008-10-07 Thread Kurt Mueller
Am 07.10.2008 um 11:44 schrieb Diez B. Roggisch: Kurt Mueller wrote: David, As others mentioned before, python is not the right tool for "HARD REAL TIME". But: Maybe you can isolate the part of your application that needs "HARD REAL TIME". Then implement this part in an approriate Environment

Re: equivalent of py2exe in other os

2008-10-07 Thread Joe Strout
On Oct 7, 2008, at 8:43 AM, Benjamin Kaplan wrote: I believe that all (or nearly all) Unix variants come with Python preinstalled. Ubuntu, at least, has a lot of system programs written in Python. Even Mac OS X requires Python. Yes, but with significant differences between different Python

Re: several version of eggs

2008-10-07 Thread Sed
> you need to easy_install with -m/--multi-version. All of your packages. Unfortunately, this is not even working :( let's try it: $ easy_install -m 'SQLAlchemy==0.4.6' ... $ easy_install -m 'SQLAlchemy==0.4.4' ... check that the easy-install.pth doesn't contain any more some sql entry: $ grep -i

Re: HARD REAL TIME PYTHON

2008-10-07 Thread Diez B. Roggisch
>> I've done this using RTAI + ctypes. Of course the hard realtime >> tasks are >> written in C - but only the absolutely minimal core. >> Works like a charm. > > (Btw, what is this application like) It's for a robot with 8 motors, with a industrial PIII-based PC on board, running RTAI Linux 2.6.

Re: how to get the thighest bit position in big integers?

2008-10-07 Thread Thomas Heller
Mark Dickinson schrieb: > On Oct 5, 11:40 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: >> Your point, that taking floor(log2(x)) is redundant, is a good catch. >> However, you should have added 'untested' ;-). When value has more >> significant bits than the fp mantissa can hold, this expression can

Re: equivalent of py2exe in other os

2008-10-07 Thread Diez B. Roggisch
Astan Chee wrote: > Hi, > I was just wondering if there is a equivalent of py2exe on linux > (centOS) and mac (OS X). I have a python script that uses wx and I dont > want to install wx on linux/mac machines. What are my choices? > Thanks > Astan Did you bother googling? http://www.google.com/s

ssh problem using paramiko?

2008-10-07 Thread sa6113
I use this code : import paramiko import socket hostname = "192.168.1.4" username = "test" port = 22 password = ''123456" # now connect try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((hostname, port)) except Exception, e: print 'Connect failed: ' + str(e

How do you get rid of useless warnings?

2008-10-07 Thread Grant Edwards
I'm getting awfully tired of constant warnings about what's going to happen at some point in the future. Warnings like this: ./surfplot.py:313: Warning: 'with' will become a reserved keyword in Python 2.6 And this: /usr/lib/python2.5/site-packages/scipy/linalg/__init__.py:32: Deprecatio

Re: equivalent of py2exe in other os

2008-10-07 Thread Lars Stavholm
Almar Klein wrote: > Hi, > I was going to say "try google", but it seems quite hard to find indeed. > Use "freeze" for linux and "py2app" for osx. http://python.net/crew/atuining/cx_Freeze /L > I know of a program called gui2exe which is a gui which uses the three > to compile executables of your

url - Free

2008-10-07 Thread wbdismalgoldstein
http://forums.vogue.com.au/member.php?u=92158 zoo tube 365 com http://forums.vogue.com.au/member.php?u=92159 zootube365 com http://forums.vogue.com.au/member.php?u=92166 miley cyrus naked http://forums.vogue.com.au/member.php?u=92164 tila tequila nude http://forums.vogue.com.au/member.php?u=92163 s

Re: Pure Python interface to MySQL?

2008-10-07 Thread Gerhard Häring
James Mills wrote: On Tue, Oct 7, 2008 at 9:15 AM, Roy Smith <[EMAIL PROTECTED]> wrote: Does there exist a pure Python version of a MySQL module? I've got a data logging application that needs to run on a whole bunch of OSs, ranging from Windows to a dozen different unix flavors on all sorts of

Re: Builing Python 2.6 on AIX 5.2

2008-10-07 Thread M.-A. Lemburg
On 2008-10-07 12:24, brasse wrote: > OK. I have made some changes in the source that lets me build on AIX > 5.2. I thought I could post the patch here and perhaps someone can > tell me if I am on the wrong track or if this is an OK fix on AIX. Thanks. Please post the patch on the Python bug tracke

time

2008-10-07 Thread Gabriel Rossetti
Hello everyone! I trying to work with time and I a bit confused... If I look at my clock, it's 16:59 (4:59pm), if I type "date" in a terminal, it says the same thing. I'm wanting to write a simple NTP-type server/client (it's not NTP at all actually, but does the same thing). The idea is that

Re: equivalent of py2exe in other os

2008-10-07 Thread bieffe62
On 7 Ott, 11:32, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I was just wondering if there is a equivalent of py2exe on linux > (centOS) and mac (OS X). I have a python script that uses wx and I dont > want to install wx on linux/mac machines. What are my choices? > Thanks > Astan > > -- > "Formu

Re: In Python 2.6, bytes is str

2008-10-07 Thread Christian Heimes
Bryan Olson wrote: Python 3 has the 'bytes' type, which the string type I've long wanted in various languages. Among other advantages, it is immutable, and therefore bytes objects can be dict keys. There's a mutable version too, called "bytearray". In Python 2.6, the name 'bytes' is defined

how can we send keys to keyboard

2008-10-07 Thread mhangman
how can we send keys to keyboard? i want to write a script that will push keyboard buttons and do what i want. its for a macro prog. there are some kinds at c++ and at java. for example actools prog. but i want to this in python... note:im not talking about print a key im talking about use it from

Re: Pure Python interface to MySQL?

2008-10-07 Thread Skip Montanaro
> http://github.com/mopemope/pure-python-mysql/tree/master/pymysql > > I've never used it, though, so I have no idea whether it works or how > well it works. On the project's home page I noticed: pymysql is Pure Perl MySQL driver. pymysql is the Python DB API-2.0 interface. support

Re: several version of eggs

2008-10-07 Thread Diez B. Roggisch
Sed wrote: >> you need to easy_install with -m/--multi-version. All of your packages. > Unfortunately, this is not even working :( It is. [EMAIL PROTECTED]:/tmp$ virtualenv --no-site-packages test New python executable in test/bin/python2.5 Installing setuptoolsdone. [EMAIL PROTECTED

Compiler, ast and forwards/backwards compatibility

2008-10-07 Thread Orestis Markou
Hello, I'm the developer of PySmell ( http://github.com/orestis/pysmell ), a static analysis/intellisense provider for Python. I am targeting Python 2.4 code so I'm using the compiler package. I've been toying around yesterday with the ast module in Python 2.6 and it seems much more cleaner. One

Re: Favorite Python System Administration Examples

2008-10-07 Thread Mike Driscoll
On Oct 6, 2:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > I'm giving a talk at LISA this year, and while the slides are ready I > would like to go armed with as many examples of good system > administration code as possible. > > If you have a favorite administration tool that you wouldn't mind m

Re: gif creator

2008-10-07 Thread Peter Pearson
On Mon, 6 Oct 2008 08:18:14 -0700 (PDT), [EMAIL PROTECTED] wrote: > has anyone written a gif creator program purely in python that doesn't > require PIL or tons of other claptrap? If you would be interested in an old and simpleminded Python program for manipulating PNM files, contact me by email.

RE: Array of dict or lists or ....?

2008-10-07 Thread Barak, Ron
Would the following be suitable data structure: ... struct = {} struct["Nebraska"] = "Wabash" struct["Nebraska"]["Wabash"] = "Newville" struct["Nebraska"]["Wabash"]["Newville"]["topics"] = "Math" struct["Nebraska"]["Wabash"]["Newville"]["Math"]["Max Allowed Students"] = 20 struct["Nebraska"]["Wabas

ms-word automation- Properties

2008-10-07 Thread gita ziabari
I want to automatically add some text in properties of ms-word using python. I know the function to be called is CustomDocumentProperties, but my code is not working. Any suggestion? Thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

Getting namespaces right when parsing/executing Python ASTs

2008-10-07 Thread Gordon Fraser
Hi, I'm trying to parse Python code to an AST, apply some changes to the AST and then compile and run the AST, but I'm running into problems when trying to evaluate/execute the resulting code object. It seems that the global namespace differs depending on where I call parse and eval/exec. The fol

Re: type-checking support in Python?

2008-10-07 Thread Bas
On Oct 7, 8:36 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message <[EMAIL PROTECTED]>, Gabriel > > Genellina wrote: > > As an example, in the oil industry here in my country there is a mix of > > measurement units in common usage. Depth is measured in meters, bu

Race condition when generating .pyc files

2008-10-07 Thread [EMAIL PROTECTED]
I have a large body of Python code which runs on many different (Unix) machines concurrently. Part of the code lives in one place, but most of it lives in directories which I find at runtime. I only have one copy of each Python source file and I think I'm hitting a race condition where two hosts

Re: equivalent of py2exe in other os

2008-10-07 Thread Almar Klein
Hi, I was going to say "try google", but it seems quite hard to find indeed. Use "freeze" for linux and "py2app" for osx. I know of a program called gui2exe which is a gui which uses the three to compile executables of your os of choise (but I think only py2exe was implemented thus far). Almar 2

Re: How do you get rid of useless warnings?

2008-10-07 Thread skip
Grant> In the meantime, how do I get rid of this useless warning? I thought something like this would work: % python2.5 -W 'ignore:.*:Warning:.*:0' Python 2.5.3a0 (release25-maint:66627M, Sep 26 2008, 14:40:24) [GCC 4.2.2] on sunos5 Type "help", "copyright", "credits" or "lice

export opengl context to pdf

2008-10-07 Thread Vaibhav . bhawsar
Hi, Does anyone know of a package that will allow me to output an opengl context as a PDF (or postscript)? I am using pyglet to render something on screen that i want to save as PDF. thanks! vaibhav -- Vaibhav Bhawsar -- http://mail.python.org/mailman/listinfo/python-list

Lenovo Laptops N3000 0769CVQ - Buy Lenovo Laptops N3000 0769CVQ

2008-10-07 Thread Online Shopping
Lenovo Laptops N3000 0769CVQ - Buy Lenovo N3000 0769CVQ Laptop online at this laptop shop | homeshop18 offers best Lenovo laptops at lowest price online. To know more visit: http://www.homeshop18.com/shop/u/y/p-Computers-Q-and-Q-Peripherals-S-Laptops-S-Lenovo-Q-N3000-Q-0769CVQ-Q-Notebook/Home_Onlin

Re: Builing Python 2.6 on AIX 5.2

2008-10-07 Thread Tino Wildenhain
brasse wrote: Hello! I am having some trouble building Python 2.6 on AIX. The steps I have taken are: ... a funny side note: I was originally drawn to python because perl wouldn't build on my particular installation of AIX but python did :-) But this was 1.4 or so back then :-) Cheers Tino

Professional training in Python & Biopython

2008-10-07 Thread bioinformatica
Dear Students, The Bioinformatica Solutions is providing training in all the fields of Bioinformatics like vaccine design, siRNA design, Gene identification, Structure based rational Drug designing, genomics, proteomics, QSAR, metabolomics, new metabolic pathway design ,bioperl, biopython, pharma

Re: how can we send keys to keyboard

2008-10-07 Thread Mike Driscoll
On Oct 7, 10:13 am, mhangman <[EMAIL PROTECTED]> wrote: > how can we send keys to keyboard? i want to write a script that will > push keyboard buttons and do what i want. its for a macro prog. there > are some kinds at c++ and at java. for example actools prog. but i > want to this in python... > >

equivalent of py2exe in other os

2008-10-07 Thread Astan Chee
Hi, I was just wondering if there is a equivalent of py2exe on linux (centOS) and mac (OS X). I have a python script that uses wx and I dont want to install wx on linux/mac machines. What are my choices? Thanks Astan -- "Formulations of number theory: Complete, Consistent, Non-trivial. Choose

Re: HARD REAL TIME PYTHON

2008-10-07 Thread Diez B. Roggisch
Kurt Mueller wrote: > David, > > > Am 07.10.2008 um 01:25 schrieb Blubaugh, David A.: >> I have done some additional research into the possibility of utilizing >> Python for hard real time development. I have seen on various >> websites >> where this has been discussed before on the internet.

Re: HARD REAL TIME PYTHON

2008-10-07 Thread Kurt Mueller
David, Am 07.10.2008 um 01:25 schrieb Blubaugh, David A.: I have done some additional research into the possibility of utilizing Python for hard real time development. I have seen on various websites where this has been discussed before on the internet. However, I was wondering as to how s

Re: How do you get rid of useless warnings?

2008-10-07 Thread Martin Geisler
Grant Edwards <[EMAIL PROTECTED]> writes: > I'm getting awfully tired of constant warnings about what's > going to happen at some point in the future. > > Warnings like this: > > ./surfplot.py:313: Warning: 'with' will become a reserved keyword in > Python 2.6 > > And this: > > /usr/lib/pyth

Re: how can we send keys to keyboard

2008-10-07 Thread mhangman
On 7 Ekim, 18:34, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Oct 7, 10:13 am, mhangman <[EMAIL PROTECTED]> wrote: > > > how can we send keys to keyboard? i want to write a script that will > > push keyboard buttons and do what i want. its for a macro prog. there > > are some kinds at c++ and at

Re: How do you get rid of useless warnings?

2008-10-07 Thread Grant Edwards
On 2008-10-07, Martin Geisler <[EMAIL PROTECTED]> wrote: > Grant Edwards <[EMAIL PROTECTED]> writes: > >> I'm getting awfully tired of constant warnings about what's >> going to happen at some point in the future. >> >> Warnings like this: >> >> ./surfplot.py:313: Warning: 'with' will become a re

Re: time

2008-10-07 Thread Mike Driscoll
On Oct 7, 10:05 am, Gabriel Rossetti <[EMAIL PROTECTED]> wrote: > Hello everyone! > > I trying to work with time and I a bit confused... If I look at my > clock, it's 16:59 (4:59pm), if I type "date" in a terminal, it says the > same thing. I'm wanting to write a simple NTP-type server/client (it's

Re: Race condition when generating .pyc files

2008-10-07 Thread Gerhard Häring
[EMAIL PROTECTED] wrote: I have a large body of Python code which runs on many different (Unix) machines concurrently. Part of the code lives in one place, but most of it lives in directories which I find at runtime. I only have one copy of each Python source file and I think I'm hitting a race

Re: how can we send keys to keyboard

2008-10-07 Thread Mike Driscoll
On Oct 7, 10:42 am, mhangman <[EMAIL PROTECTED]> wrote: > On 7 Ekim, 18:34, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Oct 7, 10:13 am, mhangman <[EMAIL PROTECTED]> wrote: > > > > how can we send keys to keyboard? i want to write a script that will > > > push keyboard buttons and do what

Re: time

2008-10-07 Thread Richard Brodie
"Gabriel Rossetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] . > I'm a UTC/GMT +1, I tried obtaining the UTC time, it says it's 2 hours > earlier than the > current time (14:59). I tried various other methods, I still get the wrong > time. Does > anyone have an idea with wha

Re: how to get the thighest bit position in big integers?

2008-10-07 Thread mmgarvey
> See also http://bugs.python.org/issue3439 > where there's a proposal to expose the _PyLong_NumBits method.  This > would give an O(1) solution. > > In every case I can think of, I've wanted (0).numbits() to be 0. Here is surely the wrong place to respond to http://bugs.python.org/msg71384 but

Re: time

2008-10-07 Thread Mike Driscoll
On Oct 7, 11:11 am, "Richard Brodie" <[EMAIL PROTECTED]> wrote: > "Gabriel Rossetti" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > . > > > I'm a UTC/GMT +1, I tried obtaining the UTC time, it says it's 2 hours > > earlier than the > > current time (14:59). I tried various other

Re: how to start thread by group?

2008-10-07 Thread Terry Reedy
Lawrence D'Oliveiro wrote: In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: Usually it's more efficient to create all the MAX_THREADS at once, and continuously feed them with tasks to be done. Given that the bottleneck is most likely to be the internet connection, I'd say the "prematu

Re: how can we send keys to keyboard

2008-10-07 Thread mhangman
On 7 Ekim, 18:57, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Oct 7, 10:42 am, mhangman <[EMAIL PROTECTED]> wrote: > > > > > On 7 Ekim, 18:34, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > On Oct 7, 10:13 am, mhangman <[EMAIL PROTECTED]> wrote: > > > > > how can we send keys to keyboard? i wan

Re: automatically insert text in ms-word properties

2008-10-07 Thread Peter Wang
"gita ziabari" <[EMAIL PROTECTED]> writes: > All, > > I wanna use python to automatically insert text in ms-word properties. > Anyone could help me? Why not use VBA for that work? > > Thanks > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/pyt

Re: Compiler, ast and forwards/backwards compatibility

2008-10-07 Thread Terry Reedy
Orestis Markou wrote: Hello, I'm the developer of PySmell ( http://github.com/orestis/pysmell ), a static analysis/intellisense provider for Python. I am targeting Python 2.4 code so I'm using the compiler package. I've been toying around yesterday with the ast module in Python 2.6 and it seems

Re: Array of dict or lists or ....?

2008-10-07 Thread Aaron "Castironpi" Brady
On Oct 7, 10:16 am, "Barak, Ron" <[EMAIL PROTECTED]> wrote: > Would the following be suitable data structure: > ... > struct = {} > struct["Nebraska"] = "Wabash" > struct["Nebraska"]["Wabash"] = "Newville" > struct["Nebraska"]["Wabash"]["Newville"]["topics"] = "Math" > struct["Nebraska"]["Wabash"][

Re: Race condition when generating .pyc files

2008-10-07 Thread Aaron "Castironpi" Brady
On Oct 7, 10:21 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have a large body of Python code which runs on many different (Unix) > machines concurrently.  Part of the code lives in one place, but most > of it lives in directories which I find at runtime.  I only have one > copy of each P

Re: Race condition when generating .pyc files

2008-10-07 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : I have a large body of Python code which runs on many different (Unix) machines concurrently. Part of the code lives in one place, but most of it lives in directories which I find at runtime. I only have one copy of each Python source file and I think I'm hitting a r

Re: how can we send keys to keyboard

2008-10-07 Thread Jason Scheirer
On Oct 7, 9:28 am, mhangman <[EMAIL PROTECTED]> wrote: > On 7 Ekim, 18:57, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Oct 7, 10:42 am, mhangman <[EMAIL PROTECTED]> wrote: > > > > On 7 Ekim, 18:34, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > > On Oct 7, 10:13 am, mhangman <[EMAIL PRO

Re: Race condition when generating .pyc files

2008-10-07 Thread [EMAIL PROTECTED]
> If you package your apps using setup, pyc should be automatically > generated. Don't know if it can apply to your problem. But surely I'd go > this way (ie : automating pyc creation one way or another). Yeah, I don't package up my code, it's all integrated into my build system, not an actual del

Re: type-checking support in Python?

2008-10-07 Thread Aaron "Castironpi" Brady
On Oct 7, 5:24 am, Bas <[EMAIL PROTECTED]> wrote: > On Oct 7, 8:36 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] > > central.gen.new_zealand> wrote: > > In message <[EMAIL PROTECTED]>, Gabriel > > > Genellina wrote: > > > As an example, in the oil industry here in my country there is a mix of > > > me

Re: equivalent of py2exe in other os

2008-10-07 Thread Benjamin Kaplan
On Tue, Oct 7, 2008 at 10:58 AM, Joe Strout <[EMAIL PROTECTED]> wrote: > On Oct 7, 2008, at 8:43 AM, Benjamin Kaplan wrote: > > I believe that all (or nearly all) Unix variants come with Python >> preinstalled. Ubuntu, at least, has a lot of system programs written in >> Python. Even Mac OS X req

Re: How do you get rid of useless warnings?

2008-10-07 Thread Terry Reedy
Grant Edwards wrote: /usr/lib/python2.5/site-packages/scipy/linalg/__init__.py:32: DeprecationWarning: NumpyTest will be removed in the next release; please update your code to use nose or unittest I'm also not using "the next release" of scipy, I'm using _this_ release of scipy. I've no

Re: How do you get rid of useless warnings?

2008-10-07 Thread Peter Otten
Grant Edwards wrote: > I'm getting awfully tired of constant warnings about what's > going to happen at some point in the future. > > Warnings like this: > > ./surfplot.py:313: Warning: 'with' will become a reserved keyword in > Python 2.6 The "with" and "as" warnings bypass the warning mechani

Re: Compiler, ast and forwards/backwards compatibility

2008-10-07 Thread Orestis Markou
On Tue, Oct 7, 2008 at 5:39 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > Orestis Markou wrote: >> >> Hello, >> >> I'm the developer of PySmell ( http://github.com/orestis/pysmell ), a >> static analysis/intellisense provider for Python. I am targeting >> Python 2.4 code so I'm using the compiler pa

Re: how can we send keys to keyboard

2008-10-07 Thread mhangman
On 7 Ekim, 19:50, Jason Scheirer <[EMAIL PROTECTED]> wrote: > On Oct 7, 9:28 am, mhangman <[EMAIL PROTECTED]> wrote: > > > > > On 7 Ekim, 18:57, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > > On Oct 7, 10:42 am, mhangman <[EMAIL PROTECTED]> wrote: > > > > > On 7 Ekim, 18:34, Mike Driscoll <[EMAIL

re : do something in time interval

2008-10-07 Thread Hendrik van Rooyen
"Petr Jakeš" <[EMAIL PROTECTED]> wrote: >"Leon Zhang" <[EMAIL PROTECTED]> wrote: > >> >> I am not an expert, but why not to use time.sleep(5)? >> If you are using wxPython, you may also try wx.Timer, in which you could >> set its interval. >> >> >Thanks for your reply. >During the 5s period my sc

re: HARD REAL TIME PYTHON

2008-10-07 Thread Hendrik van Rooyen
"Blubaugh, David A." wrote: >I have done some additional research into the possibility of utilizing >Python for hard real time development. I have seen on various websites >where this has been discussed before on the internet. However, I was >wondering as to how successful anyone has truly be

Making Non Callable Objects Callable

2008-10-07 Thread exiquio
I am trying to figure out if there is a way to make an object in python callable, modules in particular. I wrongly assume that defining '__call__' in the the objects __dict__ would work. Any help would be appreciated. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >