Help me understand this

2007-01-29 Thread ArdPy
Hi, Pls tell me whats going on in the code snippet below: >>> n = 10 >>> statstr = "N = ",n >>> type(statstr) #case1 >>> print statstr ('N = ', 10) >>> print "N = ",n #case 2 N = 10 In the first case the result is printed as a tuple

Re: Learning Python

2006-11-06 Thread ArdPy
kaushal wrote: > Hi > > How do i start Learning Python,is there any reference material which I > can refer since I dont have > any programming experience > > Thanks and Regards > > Kaushal Hi kaushal, Look into http://diveintopython.org. Dive into python is a really readable ebook...enjoy -- h

Re: Really strange behavior

2006-11-04 Thread ArdPy
IloChab wrote: > Sorry I wasn't able to be more specific on my topic but I really do not > know how to classify my problem, I mean that I can't understand if it's > a python > or a twisted > or a Qt4 > problem > I'm trying to run a simple application with Twisted and Qt4. > To do this I downloade

Re: small python cgi webserver

2006-11-04 Thread ArdPy
Fabian Braennstroem wrote: > Hi, > > * ArdPy <[EMAIL PROTECTED]> wrote: > > > > Fabian Braennstroem wrote: > >> Hi, > >> > >> I am looking for a small python script, which starts a small > >> web server with python cgi support on a li

Re: small python cgi webserver

2006-11-04 Thread ArdPy
Fabian Braennstroem wrote: > Hi, > > I am looking for a small python script, which starts a small > web server with python cgi support on a linux machine. > > I tried: > > > #!/usr/bin/env python > import sys > from CGIHTTPServer import CGIHTTPRequestHandler > import BaseHTTPServer > > c

Re: other ways to check for ?

2006-11-02 Thread ArdPy
elderic wrote: > Hi there, > > are there other ways than the ones below to check for > in a python script? > (partly inspired by wrapping Tkinter :P) > > def f(): >print "This is f(). Godspeed!" > > 1.: --> sort of clumsy and discouraged by the docs as far as I read > import types > type(f) i

Re: python, threading and a radio timer

2006-10-31 Thread ArdPy
Renato wrote: > Dear all, > > I found this nifty article on how to record your favourite radio show > using cron and mplayer: > http://grimthing.com/archives/2004/05/20/recording-streaming-audio-with-mplayer/ > > Because I couldn't get the date in the filename (and was too lazy to > look into sh/b

Re: Very simple request about argument setting.

2006-10-29 Thread ArdPy
[EMAIL PROTECTED] wrote: > ArdPy wrote: > > There is an error in the syntax the star must prefix the variable name > > not suffix it. > > Then the items variable will accept the parameter value as a tuple. > > Hmm, tuples are immutable, right? I need something mutabl

I want to work on Python

2006-10-29 Thread ArdPy
Hi there, these days I am desperately searching everywhere on the Internet for part time python jobs. The reason is I want to get actively involved with python programming and get some practical exposure. Please help me in whatever way you can. -- http://mail.python.org/mailman/listinfo/python-li

Re: Very simple request about argument setting.

2006-10-29 Thread ArdPy
[EMAIL PROTECTED] wrote: > I have the argument items in my class room. > > class room: > def __init__(self, name, description, items*): > > I thought I remembered from a tutorial I read once, and I've read so > many I feel like an expert of them, that putting a little star* above > an item m

Where is __builtin__

2006-10-28 Thread ArdPy
Most of the other modules have an accompanying python source file. But that is not the case with __builtin__. What might be the reason? Isn't __builtin__ written in python? -- http://mail.python.org/mailman/listinfo/python-list

Python Source

2006-10-21 Thread ArdPy
I am not sure whether this group is the best place to post my thought. I will ask neverthless: Is it possible to hack through the code written by Guido van Rossum that makes the python interpreter. If yes please let me know how to begin. If its not then pardon me. -- http://mail.python.org/mailm