Re: Learning Python...
Falc wrote: > Hi there... > > I have been looking at learning Python, so far it looks like an > absolutely grat language. I am having trouble finding some free > resources to learn Python from. I am on windows and the only experience > I have with programming is with PHP. > > I have been trying to look at the free online book "Dive Into Python" > but this is far too difficult for me as it explains it in caparison > with C++ or Java. > I like the book called "A Byte Of Python" > (http://www.byteofpython.info) but it's made for version 2.3 (Would > this matter anyway?). > So if you have any books you could reccomend me that would rock, I > can't really afford a book so if online that would be excellent. > > Thanks in Advance. There are some cool stuff at "ActiveState". Try "ActivePython" ;-). After installing you have not only 'Python' but also some good documentations and also some extra modules like 'win32' (or some else, i can't remember) to access Wintedo specific things. Stuff not to pay, it's not like the Komodo and Visual Python... these last two products looks be good, i must look for a suchs GNU/Linux version... Open you're eyes on the follow link ;-) http://en.wikipedia.org/wiki/Python_programming_language I also recommend the website mentioned and this project. On the botton of the page look for the free books and ... Pay attention on this page ! Stuff that must by pay. O'Reilly have some good books about Python (and more) here a little list that im surrely recomends. I like the books of O'Reilly because it's easy to read, the used english language are clear and funny to read. The content are right, just some time it's refer/recommends to other books. But finally when you have some (good!!!)books its easyer. At first when beginning with Python i have encounter some troubles to find the right book on my level. In the begin i have read some books not specially here in the list and some other here of the list but in another order and founds the level to high because i have no programming background (or recive some courses). I have interesting in programming, it's a little begin. My recommended list of books and direction to read : 1) Learning Python 2) programming Python 3) Python Pocket Reference 4) Python in a Nuteshell 5) Python Essential Reference 6) Python Cookbook Try the first, second, third, ... If you like it, buy the book, so you contribute for next devloppments of his books ... Other great books but not from O'Reilly Think like a computer scientiste For Dummies Beginning Programming (with Liberty Basic and not her to be in subject but i like these ;-)) Sorry for the bad English, i try to help ... -- David Van Mosselbeen - Debian Sarge user [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list
Re: Great books on Python?
Tolga wrote: > > I am not unfamiliar to programming but a newbie in Python. Could you > recommend me (a) great book(s) to start with? Free online books or > solid books are welcome. > > Thanx in advance. Some days ago there was an similar subject 'Learning Python', wish give you some usefull informations a hope. If you ask me for some greats book, a answer "O'Reilly !" 1) Learning Python 2) programming Python 3) Python Pocket Reference 4) Python in a Nuteshell 5) Python Essential Reference 6) Python Cookbook Begin to buy the first ('1)') book, then second ('2)') ... A fatal link that surelly help http://nl.wikipedia.org/wiki/Python_%28programmeertaal%29 . I know it's in Dutch language but there is a usefull link on the bottom of this page ... I hope you think in same manner (some troubles to explain me), try and buy... Buy if you like it and if you use it...I hope is clearly enought !!! N.B.: I have not make this page on Wikipedia. -- David Van Mosselbeen - Debian Sarge user [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list
Show current ip on Linux
Hi, Im a newbie in Python, and also in Fedora Core 3. (Yes, Linux is fine man :-) My question is : How can i rwite a script that show my current ip. If i have more than one network card, the script must then show all used ip. It's important that this will work on a linux. i Have rwite some piece of code that realy work under Windows XP, but the same script wil not work on Linux. Verry thanks to all vulunteers. -- David Van Mosselbeen - DVM http://dvm.zapto.org: --- Fedora Core 3 User -- http://mail.python.org/mailman/listinfo/python-list
Re: Show current ip on Linux
Lee Harr wrote: > On 2005-06-13, David Van Mosselbeen <[EMAIL PROTECTED]> > wrote: >> Hi, >> Im a newbie in Python, and also in Fedora Core 3. (Yes, Linux is fine >> man :-) >> >> My question is : How can i rwite a script that show my current ip. If i >> have more than one network card, the script must then show all used ip. >> >> It's important that this will work on a linux. i Have rwite some piece of >> code that realy work under Windows XP, but the same script wil not work >> on Linux. >> >> Verry thanks to all vulunteers. >> > > This comes up at least once a month. Google. Is. Your. Friend. > > http://mail.python.org/pipermail/python-list/2005-January/258883.html Thanks for support. I have read the refered page you show above. I try some piece of code that im have copy and paste it into a blank file that i give the name "ip_adress.py" to test it. THE SOURCE CODE : - import commands ifconfig = '/sbin/ifconfig' # name of ethernet interface iface = 'eth0' # text just before inet address in ifconfig output telltale = 'inet addr:' def my_addr(): cmd = '%s %s' % (ifconfig, iface) output = commands.getoutput(cmd) inet = output.find(telltale) if inet >= 0: start = inet + len(telltale) end = output.find(' ', start) addr = output[start:end] else: addr = '' return addr # End python code But now, it's fine to have some piece of code but this wil not work on my computer. I'm sure that y do somethings bad. To run the python script on a Linux machine. How to proceed it ? 1) I have open a terminal 2) then i type "python ip_adress.py" (to run the script) But nothings, i not view the current ip of my computer. What happend ? -- David Van Mosselbeen - DVM http://dvm.zapto.org: --- Fedora Core 3 User -- http://mail.python.org/mailman/listinfo/python-list
Re: Show current ip on Linux
Sibylle Koczian wrote: > David Van Mosselbeen schrieb: >> >> Thanks for support. >> I have read the refered page you show above. I try some piece of code >> that im have copy and paste it into a blank file that i give the name >> "ip_adress.py" to test it. >> >> >> THE SOURCE CODE : >> - >> >> import commands >> >> ifconfig = '/sbin/ifconfig' >> # name of ethernet interface >> iface = 'eth0' >> # text just before inet address in ifconfig output >> telltale = 'inet addr:' >> >> def my_addr(): >> cmd = '%s %s' % (ifconfig, iface) >> output = commands.getoutput(cmd) >> >> inet = output.find(telltale) >> if inet >= 0: >> start = inet + len(telltale) >> end = output.find(' ', start) >> addr = output[start:end] >> else: >> addr = '' >> >> return addr >> # End python code >> >> But now, it's fine to have some piece of code but this wil not work on my >> computer. I'm sure that y do somethings bad. >> To run the python script on a Linux machine. How to proceed it ? >> >> 1) I have open a terminal >> 2) then i type "python ip_adress.py" (to run the script) >> >> But nothings, i not view the current ip of my computer. >> What happend ? >> > > You have defined a function, but you never call this function. Running a > script won't do anything, if this script consists only of function (or > class) definitions. > > You can either > > - open the interactive python interpreter and type: > import ip_adress > ip_adress.my_addr() > > or, probably simpler, > > - add the following two lines to your script, after the definition of > your function: > > if __name__ == '__main__': > print my_addr() > > Then run your script just as you did before. Now you are calling the > function and printing the value it returns. > It's work now :-) Verry thanks to all peoples that work free ont participating on documentation and shares hers brain. -- David Van Mosselbeen - DVM http://dvm.zapto.org: --- Fedora Core 3 User -- http://mail.python.org/mailman/listinfo/python-list
Re: Alternative Ways to install Python 2.4?
James wrote: I have also some troubleshouting when i will work on mapped drives. Let's take a example : A Word doc on a mapped drive. Double click on it (i try to open it). And waiting ... waiting... nothing do > If this is a bug with the standard distribution alone, maybe he can try > ActiveState's distribution (ActivePython) instead. When i work on Windows XP i use Python distributed by the ActiveState's and find that ActiveState's included really good stuff into this package. It's a really good when you plan to use it on a Windows box. -- David Van Mosselbeen - DVM http://dvm.zapto.org: --- Fedora Core 3 User -- http://mail.python.org/mailman/listinfo/python-list
Re: Brussels Python Interest/Users Group
on Sat, 29 Dec 2007 04:51:12 -0800 (PST), seb <[EMAIL PROTECTED]> wrote: > Hi Pythonistas, > > Is anyone interested in forming a Brussels(Belgium) area Python User > Group ? I am not aware of any python focused group in this area. > > Language could be whatever fits the bill (English/French/Dutch/...) > Focus would be python, ironpython/silverlight, scipy, ORMs, web > frameworks, and whatever is of interest to us. > > Interested ? Please post on this thread. > > Seb I'm interested to get some advises at some python user group. English, Dutch and French is not a problem for me. -- David Van Mosselbeen http://dvm.zapto.org:8080/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Python for web...
on Tue, 25 Dec 2007 20:42:03 -0800 (PST), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I have to develop a web based enterprise application for my final year > project. Since i am interested in open source, i searched the net. > Almost 90% of them were PHP and MySQL. Cant we use python for that ? I > tried several sites, but there is not enough tutorial for beginners > [mod_python, PSP etc]. I couldnt find any detailed book, not even a > single book :( All the python books are covering only CGI part) > > Any suggestions? Any recommended book? > > Execuse my English. > > Thushanthan. You can also take a look to `webpy` and `cherrypy`. These where not yet mentioned. -- David Van Mosselbeen http://dvm.zapto.org:8080/ -- http://mail.python.org/mailman/listinfo/python-list