Wrong exist status for os.system, os.poepen, etc.

2007-03-06 Thread Paolo Pantaleo
Subject: python2.4: Wrong exist status for os.system, os.poepen, etc. Package: python2.4 Version: 2.4.4-2 Severity: normal -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (800, 'testing'), (70, 'stable'), (60, 'unstable') Architecture: i386 (i686) Shell: /bin/sh l

Building C extensions

2006-11-06 Thread Paolo Pantaleo
Well I'm just courious: if I want to buid a C extension, I shoul use the same compiler that has been used to build python (right?). Since python has been built using Visual C, how can I build an extension if I don't have Visual Studio? PAolo -- http://mail.python.org/mailman/listinfo/python-list

A py2exe like tool for Linux

2006-10-24 Thread Paolo Pantaleo
Hi, is thre something like py2exe for Linux? I don't need to build a standalone executable (most Linuxes have python instaled), but at least I need to provide all the needed libraries togheter with my source code, so users just need to download one file, and not several libraries. PAolo -- http:

Re: Screen capture on Linux

2006-10-23 Thread Paolo Pantaleo
APIs ? [I know about nothing about X programing] 2006/10/22, Theerasak Photha <[EMAIL PROTECTED]>: > On 22 Oct 2006 09:06:53 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Paolo Pantaleo wrote: > > > Hi, > > > > > > I need to capture a screen

Screen capture on Linux

2006-10-21 Thread Paolo Pantaleo
Hi, I need to capture a screen snapshot in Linux. PIL has a module IageGrab, but in the free version it only works under Windows. Is there any package to capture the screen on Linux? Thnx PAolo -- http://mail.python.org/mailman/listinfo/python-list

locals() and globals()

2006-10-14 Thread Paolo Pantaleo
Hi this exaple: def lcl(): n=1 x=locals() x["n"]=100 print "n in lcl() is:" +str(n) #This will say Name error #x["new"]=1 #print new n=1 x=globals() x["n"]=100 print "gobal n is:" +str(n) x["new"]=1 print "new is:" +str(new) lcl() produces gobal n is:100 new is:1 n

Tk: filling a frame with a widget

2006-10-04 Thread Paolo Pantaleo
I have this code from Tkinter import * root=Tk() Button(root).pack(fill=BOTH) root.mainloop() I would expect the button filling all the client draw area of the Frame, but when I resize the root window the button becomes wider, but not higher ( I get some empty space under the button). How could

VIdeo Converence Software: Tk and thread synchronization

2006-10-02 Thread Paolo Pantaleo
Hi, I am going on writing my video conference software. I wrote the video grab, code/decode, and netwoark (multicast) transport. I have one thread doing this: [thread 1] while True: for some times: my_socket.recv() #blocking here store data compute image #here we have a complete new

Re: Writing Video conference software for Windows

2006-09-22 Thread Paolo Pantaleo
2006/9/22, Paolo Pantaleo <[EMAIL PROTECTED]>: > Thnx everybody for the precious help :) > > Someone said about VNC... I'll take a look, but since it is an > exercise I need to do it, I can't just say someone else arelady did > that :) > > Everything seems quit

Re: Writing Video conference software for Windows

2006-09-22 Thread Paolo Pantaleo
Thnx everybody for the precious help :) Someone said about VNC... I'll take a look, but since it is an exercise I need to do it, I can't just say someone else arelady did that :) Everything seems quite useful. I forgot two specifications: 1. Screen should be split in small squares and only the c

Re: Writing Video conference software for Windows

2006-09-21 Thread Paolo Pantaleo
19 Sep 2006 09:42:51 -0700, Jordan <[EMAIL PROTECTED]>: > If you're going to need win32 system access use the win32all python > extension (very, very good extension). Do you need single frame image > capture, or constant video stream? PIL can be used for the first, it > might also be usable for vi

Writing Video conference software for Windows

2006-09-19 Thread Paolo Pantaleo
Hi, I need to write a software that allow to see the desktop and hear the microphone capture of a remote PC across a network. I need to do that for a unviresity assignement. The software must run on Windows. Since I like Python very much I am thinking to write that software in Python. Do you thin

Re: Python daemon process

2006-08-27 Thread Paolo Pantaleo
2006/8/26, Thomas Dybdahl Ahle <[EMAIL PROTECTED]>: > Hi, I'm writing a program, using popen4(gnuchess), > The problem is, that gnuchess keeps running after program exit. > > I know about the atexit module, but in java, you could make a process a > daemon process, and it would only run as long as t

Re: avoiding file corruption

2006-08-27 Thread Paolo Pantaleo
27 Aug 2006 00:44:33 -0700, Amir Michail <[EMAIL PROTECTED]>: > Hi, > > Trying to open a file for writing that is already open for writing > should result in an exception. > > It's all too easy to accidentally open a shelve for writing twice and > this can lead to hard to track down database corru

Python & chess

2006-08-24 Thread Paolo Pantaleo
Well Python is not a good language for writing a chess engine (even if a chess engine exists: http://www.kolumbus.fi/jyrki.alakuijala/pychess.html), but it could be grat for chess interfaces, for drawing boards, and similar things. I foudn out a library for these things (http://www.alcyone.com/soft

Re: p-gal: photo gallery generator with templating support

2006-08-14 Thread Paolo Pantaleo
14 Aug 2006 10:16:37 -0700, ajaksu <[EMAIL PROTECTED]>: > Paolo Pantaleo wrote: > > www.sf.net/projects/ppgal > > Ciao Paolo! > > The homepage (http://paolopan.freehostia.com/p-gal/ ) looks weird in my > SeaMonkey 1.0.4, contents appear below GoogleAds instead

Re: [Announce] p-gal: photo gallery generator with templating support

2006-08-14 Thread Paolo Pantaleo
14 Aug 2006 08:31:06 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid>: > "Paolo Pantaleo" <[EMAIL PROTECTED]> writes: > > I would anyone to take a look at my piece of code, and give me his > > feedback about what is good and what should be improved.

[Announce] p-gal: photo gallery generator with templating support

2006-08-14 Thread Paolo Pantaleo
ve me his feedback about what is good and what should be improved. Thnx PAolo Pantaleo -- http://mail.python.org/mailman/listinfo/python-list

Re: Grammar parsing

2006-08-03 Thread Paolo Pantaleo
2006/8/3, Ben Finney <[EMAIL PROTECTED]>: > "Paolo Pantaleo" <[EMAIL PROTECTED]> writes: > > > How can I write a pareser for a certain gramamr? I found PyPy that > > does it, is thare any other tool? Maybe something built-in the > > python interpre

Grammar parsing

2006-08-03 Thread Paolo Pantaleo
Hi, How can I write a pareser for a certain gramamr? I found PyPy that does it, is thare any other tool? Maybe something built-in the python interpreter? Thnx PAolo -- if you have a minute to spend please visit my photogrphy site: http://mypic.co.nr -- http://mail.python.org/mailman/listinfo

Re: Behavior on non definded name in Cheetah

2006-08-02 Thread Paolo Pantaleo
2006/8/2, Peter Otten <[EMAIL PROTECTED]>: > Paolo Pantaleo wrote: > > > 2006/8/2, Stephan Diehl <[EMAIL PROTECTED]>: > >> Paolo Pantaleo wrote: > >> > [I hope I am posting to the right place] > >> > > >> > I have a cheetah

Re: Behavior on non definded name in Cheetah

2006-08-02 Thread Paolo Pantaleo
2006/8/2, Stephan Diehl <[EMAIL PROTECTED]>: > Paolo Pantaleo wrote: > > [I hope I am posting to the right place] > > > > I have a cheetah template something like this: > > > > x is: $x > > y is: $y > > z is: $z > > > > [Actually more

Behavior on non definded name in Cheetah

2006-08-02 Thread Paolo Pantaleo
[I hope I am posting to the right place] I have a cheetah template something like this: x is: $x y is: $y z is: $z [Actually more complicated] If for example $y is not defined I get an exception and the parsing of the template stops. Is there any way to substitute $y with an emty string and m

Re: python - regex handling

2006-07-04 Thread Paolo Pantaleo
2006/7/4, bruce <[EMAIL PROTECTED]>: > hi... > > does python provide regex handling similar to perl. can't find anything in > the docs i've seen to indicate it does... > > -bruce > > -- > http://mail.python.org/mailman/listinfo/python-list > http://python.org/doc/2.4.1/lib/module-re.html Here is t

Specifing arguments type for a function

2006-06-20 Thread Paolo Pantaleo
I have a function def f(the_arg): ... and I want to state that the_arg must be only of a certain type (actually a list). Is there a way to do that? Thnx PAolo -- if you have a minute to spend please visit my photogrphy site: http://mypic.co.nr -- http://mail.python.org/mailman/listinfo/python

Getting backtrace on an axception

2006-06-10 Thread Paolo Pantaleo
So I have this code try: do something except: do something else In the except block I need to print detailed output about the error occured, and in particular I need to read the backtrace for the line that raised the exception [then modify and print it]. I know about the exception.extrac

Request for comment: programmer starting page (micro knowledge base)

2006-05-24 Thread Paolo Pantaleo
ggest links to be added. The page is : http://ppp3.co.nr Thnx Paolo Pantaleo -- http://mail.python.org/mailman/listinfo/python-list

Re: Includeing Python in text files

2006-05-23 Thread Paolo Pantaleo
2006/5/23, Chris Smith <[EMAIL PROTECTED]>: > Diez B. Roggisch wrote: > > Paolo Pantaleo wrote: > > > > > >>I am working on this: > >> > >>I have a text file, containig certain section in the form > >> >> python code here &

Includeing Python in text files

2006-05-22 Thread Paolo Pantaleo
I am working on this: I have a text file, containig certain section in the form I parse the text file and substitute the python code with its result [redirecting sys.stdin to a StringIO]. It something like php or embedded perl. So my little toy works not bad, but I was wondering if such a feat

Re: test assignmet problem

2006-04-24 Thread Paolo Pantaleo
2006/4/23, Paul McGuire <[EMAIL PROTECTED]>: > > "Paolo Pantaleo" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > So I tried this > > if(not (attr=global_re.match(line)) ): > break > > it says invalid syntax [o

test assignmet problem

2006-04-23 Thread Paolo Pantaleo
So I tried this if(not (attr=global_re.match(line)) ): break it says invalid syntax [on the =] so it is not possible to do test and assignment in C style? how can I write this otherwise? Thnx PAolo -- if you have a minute to spend please visit my photogrphy site: http://mypi

Re: list example

2006-04-23 Thread Paolo Pantaleo
2006/4/22, Edward Elliott <[EMAIL PROTECTED]>: > No substantive problems. The str() calls are unnecessary, print calls > list.__str__ already. You can replace the loop with list comprehensions or > slices. Same result, a bit more succinct. See these pages for more: > > http://docs.python.org/li