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
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
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
--
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 snapshot in Linux. PIL has a module
IageGrab, but in the free version it only
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
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 in lcl()
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
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
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
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 quite useful. I forgot two specifications:
1
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 video,
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
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 corruption
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 the
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
his
feedback about what is good and what should be improved.
Thnx
PAolo Pantaleo
--
http://mail.python.org/mailman/listinfo/python-list
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.
url?
--
http://mail.python.org/mailman/listinfo/python
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 of at the
right.
Well... I designed the site
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
--
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 interpreter?
The standard library gets you partway there, with 'shlex
[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
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 complicated]
If for example $y is not defined I get an exception
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 template something like this:
x is: $x
y is: $y
z is: $z
[Actually more
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 the
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
--
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
links to be added.
The page is : http://ppp3.co.nr
Thnx
Paolo Pantaleo
--
http://mail.python.org/mailman/listinfo/python-list
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
?py
python code here
py?
I parse the text file and substitute the python code with its result
[redirecting
I am working on this:
I have a text file, containig certain section in the form
?py
python code here
py?
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
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 [on the =]
... because this syntax is not valid ...
so
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:
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:
32 matches
Mail list logo