Re: version

2018-05-31 Thread Ralf Schoenian
Hi Mike, you can check for the major version with import sys sys.version_info.major On 01.06.2018 04:44, Mike McClain wrote: OK so I installed python 3.2, which is the latest available as a package in Debian Wheezy, because I've seen so many folks say it's a waste of time to play with Py

Re: Import python modules from sub-directories

2010-08-05 Thread Ralf Schoenian
Navkirat Singh wrote: Hi guys, I am new to python and would like to import certain classes in sub-directories of the working directory. I was wondering how will I be able to achieve this? Regards, Nav Hi, put an empty file with the name __init__.py in your subdirectory. I call it sub1 here

Re: Python + webservice

2009-10-07 Thread Ralf Schoenian
Fred Chevitarese wrote: Hello all... I'm new here and a search in tis group but unfortunately i didn't find any kind of solution/code/question etc ... I have to made a python script that communicates with an websevice over the web. I tried out use SoapPy, ZSI, BeautifullSoap and others, but get

Re: Python book

2009-09-30 Thread Ralf Schoenian
lallous wrote: Hello Can anyone suggest a good book Python book for advancing from beginner level? (I started with Learning Python 3rd ed) Regards, Elias Hi Elias, welcome to Python. I have learned Python with the official tutorial and with the outstanding book: Beginning Python, From No

Re: How to use Python to interface with Web pages?

2009-07-07 Thread Ralf Schoenian
Peter wrote: Any help would be appreciated :-) I want to write an auction sniping tool in Python. I know Python, but I know absolutely nothing about web pages, javascript etc i.e. I want the program to automatically log me into my eBay account, access the appropriate item, locate how many mins/s

Re: Network programming ?

2009-05-25 Thread Ralf Schoenian
that it is useable at windows and linux. For the socket programming I would like to suggest using the xmlrpclib. You can find the official documentation here: http://docs.python.org/library/xmlrpclib.html Regards, Ralf Schoenian -- http://mail.python.org/mailman/listinfo/python-list

Re: equivalent of source command in tcl for python

2009-03-18 Thread Ralf Schoenian
sys.exit() Ralf Schoenian -- http://mail.python.org/mailman/listinfo/python-list

Re: Email Program

2009-03-01 Thread Ralf Schoenian
these are the big ones. Actually, ff you want to see an Python email client in action have a look at Chandler: http://chandlerproject.org/ it's written in wxPython. Regards, Ralf Schoenian -- http://mail.python.org/mailman/listinfo/python-list

Re: Empty string is False right?

2009-01-31 Thread Ralf Schoenian
AJ Ostergaard wrote: Hello, First post so bear with me if I'm being a numpty ... Is it me or is there something slightly counter intuitive and thus not so pythonesque about this: >>> s = '' >>> if s: True else: False False >>> s and eval(s) '' >>> Regards, AJ Hi, yes, the

Re: Extending Python with C or C++

2009-01-05 Thread Ralf Schoenian
Ryan wrote: I've been using Python for many years now. It's a wonderful language that I enjoy using everyday. I'm now interested in getting to know more about the guts (C/C++) and extending it. But, extending python still seems like a black art to me. Is there anymore docs or info on extending it

Re: Which SOAP module?

2009-01-04 Thread Ralf Schoenian
Roy Smith wrote: I'm starting to play with SOAP. The zeroth question that needs answering is, "Which SOAP module should I use?" There seem to be a number of different ones to pick from. Any suggestions? It depends on whether you want to write a client or a server application. If you only wa