Re: Abstract and concrete syntax

2005-06-09 Thread Michele Simionato
>From a purist perspective the distinction statements/expressions is a mistake. However, if your primary concerns is readability, it makes sense, since it enforces ifs, try.. excepts, etc. to be consistently written for all coders. This definitely helps code review. Michele Simionato -

problems between 2.4 and 2.1

2005-06-09 Thread DIEZ Ignacio
Title: problems between 2.4 and 2.1 Hi, I have changed the Python release from 2.1 to 2.4 and the results haven't been the expected... With the same code, and with the new release (2.4) the execution of my program raise the following exception: Traceback (most recent call last):   File

Re: my golf game needs gui

2005-06-09 Thread simonwittber
For simple 2D graphics, your best option is pygame. http://pygame.org/ If you need assistance, join the pygame mailing list, where you should find someone to help you out. -- http://mail.python.org/mailman/listinfo/python-list

Re: Incorrect number of arguments

2005-06-09 Thread Andrew Dalke
Steven D'Aprano wrote: > *eureka moment* > > I can use introspection on the function directly to see > how many arguments it accepts, instead of actually > calling the function and trapping the exception. For funsies, the function 'can_call' below takes a function 'f' and returns a new function

multiple inheritance

2005-06-09 Thread newseater
i don't know how to call methods of super classes when using multiple inheritance. I've looked on the net but with no result :( class a(object): def foo(self): print "a" class b(object): def foo(self): print "a" class c(a,b) def foo(self): super( a).foo()

Re: Python Challenge web site

2005-06-09 Thread =?iso-8859-1?B?R3V5b24gTW9y6WU=?=
Wow, no I haven't reached 30 yet, I'm almost at number 16. I did write about my solutions uptil puzzle 10 on my blog: http://gumuz.looze.net/wordpress/index.php/archives/2005/05/09/python-challenge-solutions-part-1/ http://gumuz.looze.net/wordpress/index.php/archives/2005/05/20/python-challenge-s

Re: Writing func_closure?

2005-06-09 Thread Michael Hoffman
Fernando Perez wrote: > Yes, I knew of the new.function() approach, but the problem is that I don't > know > how to make a fresh closure for it. I can reuse the closure from a different > function, but the docs don't say how to make a valid closure tuple. >>> def makeclosure(x): ... def _f

Re: multiple inheritance

2005-06-09 Thread Andreas Kostyrka
I'm sure it's documented somewhere, but here we go :) The correct usage is super(MyClass, self) The idea is that super allows for cooperative calls. It uses MyClass to locate what class "above" to call. This way you can something like that: class A(object): def bar(self): print "A"

Re: Python Challenge web site

2005-06-09 Thread Michael Hoffman
Andy Leszczynski wrote: > http://www.pythonchallenge.com/ > > anybody get to the level 30? :-) No, I've run out of time. It is fun so far though. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple inheritance

2005-06-09 Thread newseater
if I only use the super() construct it seems not to call B class A(object): def foo(self): print "a" class B(object): def foo(self): print "b" class C(A,B): def foo(self): print "c" super(C,self).foo() c

re:how to export data from ZODB to text files

2005-06-09 Thread ls
Hi Josef, Thank you so much. I will ask our Plone administrator to test your script and I will write about result here. I thought also about Python script like //connect to database >>> from ZODB import FileStorage, DB >>> storage = FileStorage.FileStorage('Data.fs') >>> db = DB(storage)

Re: multiple inheritance

2005-06-09 Thread Duncan Booth
newseater wrote: > if I only use the super() construct it seems not to call B > > > > > class A(object): > def foo(self): > print "a" > > class B(object): > def foo(self): > print "b" > > class C(A,B): > def foo(self): > print "c" > supe

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Jun 7)

2005-06-09 Thread Joal Heagney
Ville Vainio wrote: >>"Fred" == Fred Pacquier <[EMAIL PROTECTED]> writes: > > > Fred> Same here : thanks for letting us get away with being > Fred> lazy(er) ! :-) > > Ditto. As someone who's done a couple of p-url's, I can say it's quite > a bit of work to find the interesting tidbit

Re: Saving/retrieving user preferences

2005-06-09 Thread Miki Tebeka
Hello Brian, > I want to save user preferences, window sizes, recently opened file names, > etc for a python application and I am looking for a package that does this > in a way that is portable across unix/linux and windows (and mac would be > nice as well). > > Is there a 'standard' package fo

Re: killing process in windows

2005-06-09 Thread Miki Tebeka
Hello Veronica, >I am using Trent's process.py but I have a problem with killing the >processes in windows. >For example : > >import process,time > >p=process.ProcessOpen('C:\Program Files\Windows Media >Player\wmplayer') >time.sleep(3) >p.kill() > >will star

Re: Saving/retrieving user preferences

2005-06-09 Thread Fuzzyman
ConfigObj is a nice way of reading/writing text config files. It's case insensitive and handles quoting of keywords/values. Reading and writing config files are single line commands. You get access to keyword values using a dicitionary interface. Values can be single values or lists (including

splitting strings with python

2005-06-09 Thread [EMAIL PROTECTED]
im trying to split a string with this form (the string is from a japanese dictionary file with mulitple definitions in english for each japanese word) str1 [str2] / (def1, ...) (1) def2 / def3 / (2) def4/ def5 ... / the varibles i need are str*, def*. sometimes the (1) and (2) are not inc

Extending Python

2005-06-09 Thread Johannes
I am thinking of replacing Lua as internal script controller and I know how to extend/embed python but is there a way of limiting what functionality can be actually be accessible to the user, f.e. I don't want the script to be able to read/write files? /Johannes -- http://mail.python.org/mai

Re: Saving/retrieving user preferences

2005-06-09 Thread bruno modulix
Brian Wallis wrote: > This may be a FAQ,but I cannot find it. > > I want to save user preferences, window sizes, recently opened file names, > etc for a python application and I am looking for a package that does this > in a way that is portable across unix/linux and windows (and mac would be > n

Re: help with sending mail in Program

2005-06-09 Thread Kent Johnson
Tim Roberts wrote: > Kent Johnson <[EMAIL PROTECTED]> wrote: > >>Ivan Shevanski wrote: >> >>>Could someone send me a good tutorial for sending mail then? The one I >>>found is not what I'm looking for. Also please dont send me the stmp >>>definition cause i've looked at that enough. >> >>Here i

Re: multiple inheritance

2005-06-09 Thread newseater
how nice! is this due to a linearization taking place of A and B when compiling C ? is this a 'feature' of the language or its actual semantics to behave like this? > class IFoo(object): > def foo(self): > pass > > class A(IFoo): > def foo(self): > print "a" > supe

a library of stock mock objects?

2005-06-09 Thread ischenko
There is a (relatively) widely used technique in unit testing, called mock objects. There is even a pMock library which provides a Mock class for a Python environment. Given the "duck typing" nature of the Python itself, it's pretty trivial to build mocks without using any pre-built libraries. Wha

RE: identifying 64-bit Windows from 2.3.5?

2005-06-09 Thread Steven Knight
Hi Ivan-- >> If I have installed 2.3.5 from the python.org Windows installer, can >> any one point me to a run-time way to identify whether I'm running on >> a 32-bit vs. 64-bit version of Windows XP, given that Python itself was >> built on/for a 32-bit system? > > I really don't think it matters

Graduate / Junior Open Source Developer (Python) required

2005-06-09 Thread Rakesh Thakrar
Hi, I am looking for a Graduate / Junior Open Source Developer to work as a python developer for one of my clients, please have a look at the job spec below. Please do not hesitate to call me if you are interested. I also have a Junior Tester rol

Re: Annoying behaviour of the != operator

2005-06-09 Thread Antoon Pardon
Op 2005-06-08, Mahesh schreef <[EMAIL PROTECTED]>: > No, why should Python assume that if you use != without supplying a > __ne__ that this is what you want? Without direction it will compare > the two objects which is the default behavior. > > So, s != t is True because the ids of the two objects

Re: splitting strings with python

2005-06-09 Thread inhahe
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > im trying to split a string with this form (the string is from a > japanese dictionary file with mulitple definitions in english for each > japanese word) > > > str1 [str2] / (def1, ...) (1) def2 / def3 / (2) def4/ def5 ... / > > >

Re: multiple inheritance

2005-06-09 Thread Michele Simionato
If you are curious, the MRO algorithm is explained here: http://www.python.org/2.3/mro.html Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: Abstract and concrete syntax

2005-06-09 Thread David Baelde
Well, thanks for the answers. I guess the fact is that python does not want to be a functional programming language. This concept is quite large, and since there is a proper notion of function with closure, I'd say python is already quite a functional programming language. Even if assignations and

Re: optparse.py: FutureWarning error

2005-06-09 Thread Magnus Lycka
John Abel wrote: > Magnus Lycka wrote: > As a programmer on Win32, and *nix platforms, I agree with needing > better tools. however, I find cygwin a pita. For tools such as grep > and find, try this http://unxutils.sourceforge.net/. No need for cygwin > ( though that's not say cygwin isn't u

Re: Python as client-side browser script language

2005-06-09 Thread Magnus Lycka
Paul Rubin wrote: > Magnus Lycka <[EMAIL PROTECTED]> writes: > >>Of course, one might suggest that it's the task of the browser, >>and not of the scripting language, to provide a safe sandbox >>where scripts can mess around and without causing havoc on >>your computer. Such a system in the browser

Premature script error

2005-06-09 Thread Jatinder Singh
I am running a CGI Programme. which is throwing Premature script error for some inputs. I have checked and couldn't fig out the problem. Even error log is empty. Can anybody help me out of this or can I use try except to catch the Error and how? plz get back soon .Its urgent -- Regards, Jatinder

Re: optparse.py: FutureWarning error

2005-06-09 Thread John Abel
Magnus Lycka wrote: >John Abel wrote: > > >>Magnus Lycka wrote: >> >> > > > >>As a programmer on Win32, and *nix platforms, I agree with needing >>better tools. however, I find cygwin a pita. For tools such as grep >>and find, try this http://unxutils.sourceforge.net/. No need for cyg

XML + SOAP + Webservices

2005-06-09 Thread Johan =?iso-8859-1?Q?Segern=E4s?=
I'm put on building a system in Python and I haven't used either webservices, SOAP or Python so I'm a bit lost. This system will require callback functions, should I use Python thru Apache for this or build my own listening daemon? Use module for Apache or do I make some kind of CGI script in Pyth

Re: How do I know when a thread quits?

2005-06-09 Thread harold fellermann
On 07.06.2005, at 16:44, harold fellermann wrote: > import thread > > def parentThread() : > lock = thread.allocate_lock() > child = thread.start_new_thread(childThread,(parent,)) > lock.acquire() > > def childThread(parent) : > parent.lock.acquire() > do_something_w

tail -f sys.stdin

2005-06-09 Thread Antal Rutz
Hi! Maybe a very newbie question but: I'd like to write a prog which reads one line at a time on its sys.stdin and immediately processes it. If there are'nt any new lines wait (block on input). I couldn't find a solution for it. Several methods that doesn't fit here: - reading the entire file-lik

Re: XML + SOAP + Webservices

2005-06-09 Thread Johan =?iso-8859-1?Q?Segern=E4s?=
On 2005-06-09 13:21 +0200 or thereabouts, Johan Segernäs wrote: > I'm put on building a system in Python and I haven't used either webservices, > SOAP or Python so I'm a bit lost. Addon: I will speak to .NET-stuff in the other end, does this create problems? signature.asc Description: Digital s

Re: identifying 64-bit Windows from 2.3.5?

2005-06-09 Thread Peter Hansen
Steven Knight wrote: > ... the same Python executable and code works just fine on both systems, > but I need to do different things (in this case, invoke a different > compiler with a different set of compiler options) based on whether or > not I'm building on a 32-bit or 64-bit system. Would a te

Re: help with sending mail in Program

2005-06-09 Thread Peter Hansen
Kent Johnson wrote: > Tim Roberts wrote: >> Not exactly like this, you didn't. The list of destination addresses in >> SMTP.sendmail must be a sequence, not a string: > > Yes, exactly like that. This is a working module, the only thing I > changed to post it was the email address and the name of

Re: Saving/retrieving user preferences

2005-06-09 Thread Peter Hansen
Brian Wallis wrote: > This may be a FAQ,but I cannot find it. > > I want to save user preferences, window sizes, recently opened file names, > etc for a python application and I am looking for a package that does this > in a way that is portable across unix/linux and windows (and mac would be > ni

Re: Re: XML + SOAP + Webservices

2005-06-09 Thread Holger Joukl
Hi there, just about now I´ve started to write a little howto for the first steps with a python ZSI-based webservice to be consumed from C++ clients (gSOAP) and an Excel XP spreadsheet. More or less I am just documenting what I did, and I am by no means an expert on the subject, but still...might b

Python Developers Handbook

2005-06-09 Thread wooks
http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=5206943952 -- http://mail.python.org/mailman/listinfo/python-list

Re: Premature script error

2005-06-09 Thread Peter Hansen
Jatinder Singh wrote: > I am running a CGI Programme. > which is throwing Premature script error for some inputs. > I have checked and couldn't fig out the problem. > Even error log is empty. > Can anybody help me out of this or can I use try except to catch the Error and > how? > plz get back soon

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Jun 7)

2005-06-09 Thread Simon Brunning
On 6/9/05, Joal Heagney <[EMAIL PROTECTED]> wrote: > Great community resource. (Are the old weekly URL's stored somewhere > other than the newsgroup archives?) - but that requires a subscription. I tend to pick up my Dr. Dobbs from a newsagent, so I just use

Re: Abstract and concrete syntax

2005-06-09 Thread Andrea Griffini
On Thu, 09 Jun 2005 03:32:12 +0200, David Baelde <[EMAIL PROTECTED]> wrote: >I tried python, and do like it. Easy to learn and read This is a key point. How easy is to *read* is considered more important than how easy is to *write*. Re-read the absence of a ternary operator or the limitations of

Re: tail -f sys.stdin

2005-06-09 Thread Antal Rutz
Maybe I've found a poorman's one: import sys while True: try: line = sys.stdin.readline() except: sys.stdin.seek(0) else: process(line) Antal Rutz wrote: > Hi! > > Maybe a very newbie question but: > I'd like to write a prog which reads one line at a time on

Re: Annoying behaviour of the != operator

2005-06-09 Thread Dan Sommers
On Thu, 09 Jun 2005 15:50:42 +1200, Greg Ewing <[EMAIL PROTECTED]> wrote: > Rocco Moretti wrote: >> The main problem is that Python is trying to stick at least three >> different concepts onto the same set of operators: equivalence (are >> these two objects the same?), ordering (in a sorted list,

Re: XML + SOAP + Webservices

2005-06-09 Thread Diez B. Roggisch
Johan Segernäs wrote: > I'm put on building a system in Python and I haven't used either webservices, > SOAP or Python so I'm a bit lost. > > This system will require callback functions, should I use Python thru Apache > for this or build my own listening daemon? Use module for Apache or do I make

Re: tail -f sys.stdin

2005-06-09 Thread Antal Rutz
OK, it was really a newbie thing: import sys while True: line = sys.stdin.readline() process(line) sorry. -- --arutz -- http://mail.python.org/mailman/listinfo/python-list

Re: pack heterogeneous data types

2005-06-09 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hello, > > How do i pack different data types into a struct or an array. Examples > would be helpful. > > Say i need to pack an unsigned char( 0xFF) and an long( 0x) > into a single array? The reason i need to do this is send a packet over > a network. You've b

Re: running distutils installer without admin on windows

2005-06-09 Thread [EMAIL PROTECTED]
I found out how to build it with Cygwin python setup.py build --compiler=mingw32 bdist I can then unzip the zip file it creates and put it in site-packages. It looks like I can install a bdist_wininst installer with Python 2.4, but not 2.3.5 (without admin). -- http://mail.python.org/mailman/

Re: help with sending mail in Program

2005-06-09 Thread Kent Johnson
Kent Johnson wrote: > Tim Roberts wrote: >> Not exactly like this, you didn't. The list of destination addresses in >> SMTP.sendmail must be a sequence, not a string: > > Yes, exactly like that. This is a working module, the only thing I > changed to post it was the email address and the name of

MySQLDBAPI

2005-06-09 Thread Gregory Piñero
Hey guys, I'm trying to install the MySQLDB API at my web host. I only have limited permissions on the system so I want to install it in my home directory. I'm having a lot of trouble though. My first question is if there is anything built into python as far as a Database API that will work wit

Generating HTML from python

2005-06-09 Thread Philippe C. Martin
Hi, I wish to use an easy way to generate reports from wxPython and feel wxHtmlEasyPrinting could be a good solution. I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have a title followed by lines of text that do not look too ugly. If possible I would like to use an existi

Re: help

2005-06-09 Thread James Carroll
> When i try to open IDLE(python GUI) it says that i have a socket error: > conection refused what do i do to fix this if you're on linux, try making sure that localhost (the lo interface) is up and running if you do an ifconfig you should see one paragraph for the lo interface, and if you do an

Re: identifying 64-bit Windows from 2.3.5?

2005-06-09 Thread Thomas Heller
Steven Knight <[EMAIL PROTECTED]> writes: > Hi Ivan-- > >>> If I have installed 2.3.5 from the python.org Windows installer, can >>> any one point me to a run-time way to identify whether I'm running on >>> a 32-bit vs. 64-bit version of Windows XP, given that Python itself was >>> built on/for a

Re: MySQLDBAPI

2005-06-09 Thread deelan
Gregory Piñero wrote: > Hey guys, (...) > > My first question is if there is anything built into python as far as > a Database API that will work with MySQL. It seems like there should > be because Python without it is kinda useless for web development. If > there is then I'd probably prefer to

Re: splitting strings with python

2005-06-09 Thread [EMAIL PROTECTED]
one problem is that str1 is unicode (japanese kanji), and str2 is japanese kana can i still use re.findall(~)? thanks for your help! -- http://mail.python.org/mailman/listinfo/python-list

Re: XML + SOAP + Webservices

2005-06-09 Thread Johan =?iso-8859-1?Q?Segern=E4s?=
On 2005-06-09 14:20 +0200 or thereabouts, Diez B. Roggisch wrote: > a way to pass a server the necessary callback information. It basically > consists of the url to talk to. That by the way is no limitation of But of course, a little slip in my thoughts. > Sooo - concluding remarks could be: >

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
PS: I am looking at the formatter module which seems to be related to HTML somehow, but without any code sample I'm a bit lost Philippe C. Martin wrote: > Hi, > > I wish to use an easy way to generate reports from wxPython and feel > wxHtmlEasyPrinting could be a good solution. > > I now need

How to determine your pthread in Python?

2005-06-09 Thread adsheehan
Does anyone know how to determine the pthread or native thread identifier while in Python ? FYI I have a multi-threaded C++ app on Solaris that embeds the Python interpreter. While in the interpreter I need to determine its actual running thread id. FYI2 The python interpreter is not firing off e

Re: splitting strings with python

2005-06-09 Thread [EMAIL PROTECTED]
sorry, i should be more specific about the encoding it's euc-jp i googled alittle, and you can still use re.findall with the japanese kana, but i didnt find anything about kanji. -- http://mail.python.org/mailman/listinfo/python-list

Re: computer algebra packages

2005-06-09 Thread Florian Diesch
Rahul <[EMAIL PROTECTED]> wrote: > Well is there an open source computer algebra system written in python > or at least having a python interface? > I know of 2 efforts: pythonica and pyginac...are there any others? Probably this is usable for you (I never used any of them): Package: mascyma De

Simple SMTP server

2005-06-09 Thread Jesse Noller
Hello - I am looking at implementing a simple SMTP server in python - I know about the smtpd module, but I am looking for code examples/snippets as the documentation is sparse. The server I am looking at writing is really simple - it just needs to fork/thread appropriately for handling large batc

Re: Simple SMTP server

2005-06-09 Thread John Abel
Jesse Noller wrote: >Hello - > >I am looking at implementing a simple SMTP server in python - I know >about the smtpd module, but I am looking for code examples/snippets as >the documentation is sparse. > >The server I am looking at writing is really simple - it just needs to >fork/thread appropri

Windows Installer with Debug Dlls and Libs

2005-06-09 Thread DE
Hello, I have a problem with python builds since some time. On windows, it is not a good idea to link your debug build to release builds of libs and dlls. But python installer gives you only release builds. So I need to build python myself, no problem, but I have never managed to setup py

Re: Another solution to How do I know when a thread quits?

2005-06-09 Thread Prashanth Ellina
Hi, Thanks for the code sample. I will try it out. I guess there is no reliable way to get away with just the "threads" module. Thanks, Prashanth Ellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Software licenses and releasing Python programs for review

2005-06-09 Thread Terry Hancock
On Thursday 02 June 2005 01:42 am, poisondart wrote: > If this thread has shown anything it is I'm a bit green with respect to > software licenses, Yep. We've all been there at some time, though. ;-) > but the other thing is that I consider myself as an > isolated case and I wanted to know if th

Python as CGI on IIS and Windows 2003 Server

2005-06-09 Thread lothar . sch
Hi, My python scripts are running as cgi scripts on an IIS on Windows XP. I have to distribute it to IIS on Windows 2003 Server. I tried to set python as cgi scripts in IIS on this machine in IIS using advices from http://python.markrowsoft.com/iiswse.asp No test with or without any " let the IIS

Re: Simple SMTP server

2005-06-09 Thread Tim Williams
- Original Message - From: "Jesse Noller" <[EMAIL PROTECTED]> > I am looking at implementing a simple SMTP server in python - I know > about the smtpd module, but I am looking for code examples/snippets as > the documentation is sparse. > > If anyone has any good examples/recipes I'd gre

Re: Another solution to How do I know when a thread quits?

2005-06-09 Thread Peter Hansen
Prashanth Ellina wrote: > Thanks for the code sample. I will try it out. I guess there is no > reliable way to get away with just the "threads" module. As "threading" is built on top of "thread", that statement seems wrong, but the real question you should ask yourself is why you want to use the

Re: Generating HTML from python

2005-06-09 Thread Michele Simionato
You could generate your report in reStructuredText format (Google is your friend) and then convert them in HTML, PS, PDF, etc. Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-09 Thread Thomas Bartkus
"Renato Ramonda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus ha scritto: > > The attractiveness of wxPython here is that it extends the platform > > neutrality of Python to GUI interfaces. On a Windows platform, the work > > looks like any other Windows program.

Re: Generating HTML from python

2005-06-09 Thread Thomas Guettler
Am Thu, 09 Jun 2005 12:43:19 + schrieb Philippe C. Martin: > Hi, > > I wish to use an easy way to generate reports from wxPython and feel > wxHtmlEasyPrinting could be a good solution. > > I now need to generate the HTML wxHtmlEasyPrinting can print I don't know wxPython, but generating HTM

Re: (OT) lincense protection generator

2005-06-09 Thread Terry Hancock
On Thursday 02 June 2005 05:46 pm, Elliot Temple wrote: > Why not check if all files you use are in appropriate directories, > but not worry about same computer? This is pretty trivial, by the way --- just use dirlist recursively, use tuples, and hash the result. All you want is an idiot-proof

Re: tail -f sys.stdin

2005-06-09 Thread garabik-news-2005-05
Antal Rutz <[EMAIL PROTECTED]> wrote: > Hi! > > Maybe a very newbie question but: > I'd like to write a prog which reads one line at a time on its sys.stdin > and immediately processes it. > If there are'nt any new lines wait (block on input). > what about: for line in sys.stdin: process(li

Re:

2005-06-09 Thread Terry Hancock
On Monday 06 June 2005 01:42 am, Jatinder Singh wrote: > B and C are subdirectories of Parent Directory A. > I am executing a file in Directory C which is importing a file f' in directory > B. > Now while running python file m getting an error of can't open f'. If I copy > f' > in > current dire

Re: XML + SOAP + Webservices

2005-06-09 Thread Diez B. Roggisch
> Basically, don't write the implementation to talk to the SOAP/WDSL-services > in Python, find something else and this 'something else' produces an XML file > which I then parse with Python? For example - or better, instead of passing XML use an RPC mechanism Python is good at - e.g. corba. So y

Re: how to retrieve info about print jobs

2005-06-09 Thread Guy Lateur
Hmm, this only seems to work for jobs that originate on the machine running the script. I really need something that actually gathers the info from the printers (net-based). Would that be possible at all? "Simon Brunning" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] On 6/2/05

Re: help with sending mail in Program

2005-06-09 Thread Ivan Shevanski
>>#!/usr/local/bin/python >> >>''' Send mail to me ''' >> > >>from smtplib import SMTP > >>def sendToMe(subject, body): >> me = '"Kent Johnson" <[EMAIL PROTECTED]>' >> send(me, me, subject, body) >> >> >>def send(frm, to, subject, body): >> s = SMTP() >>#s.set_debuglevel(1) >> s.conn

Posting a reply to a post in an existing thread

2005-06-09 Thread Hughes, Chad O
Title: Posting a reply to a post in an existing thread This may be a dumb question.  I am new to using this list, and I cannot figure out how to send a reply to a message that has been posed in a thread without creating a new thread.  Let me rephrase my question.  The instructions for posting

Re: killing process in windows

2005-06-09 Thread Trent Mick
[Miki Tebeka wrote] > Hello Veronica, > > >I am using Trent's process.py but I have a problem with killing the > >processes in windows. > >For example : > > > >import process,time > > > >p=process.ProcessOpen('C:\Program Files\Windows Media > >Player\wmplayer') > >tim

Start application & continue after app exits

2005-06-09 Thread Guy Lateur
Hi all, I was wondering if it would be possible to launch an application, block until the app exits, and do some cleanup afterwards. Maybe an example will be clearer: I would like to make a temperary (text) file, open it with MS Word for the user to edit/layout/print, and then delete the temp

Re: identifying 64-bit Windows from 2.3.5?

2005-06-09 Thread Trent Mick
[Steven Knight wrote] > If I have installed 2.3.5 from the python.org Windows installer, can > any one point me to a run-time way to identify whether I'm running on > a 32-bit vs. 64-bit version of Windows XP, given that Python itself was > built on/for a 32-bit system? > > I hoped sys.getwindowsv

Re: Windows Installer with Debug Dlls and Libs

2005-06-09 Thread Trent Mick
[DE wrote] > Hello, > > I have a problem with python builds since some time. > > On windows, it is not a good idea to link your debug build to release > builds of libs and dlls. > > But python installer gives you only release builds. > > So I need to build python myself, no problem, but >

Re: Posting a reply to a post in an existing thread

2005-06-09 Thread Richie Hindle
[Chad] > What I need to know is, what do I put in either the TO field, the CC > field, or the SUBJECT field for the list to see my message as a reply to > an existing post in a thread and not a new thread. You should use your email client's Reply feature to reply to one of the existing messages i

Re: XML + SOAP + Webservices

2005-06-09 Thread Holger Joukl
This may be of some help for you. It´s unfinished business, though. So far, the ZSI stuff has worked quite well for me, but as mentioned I am also a web services beginner. I am writing this in lyx so I might be able to post in other formats. For the time being, this is the first part in pure text.

Re: killing process in windows

2005-06-09 Thread Veronica Tomescu
Hi Mick,   Thanks for your reply.It works fine until killing the process.Wmplayer is started,I can see the process in the task manager list,I also tried with notepad and it's the same problem. I appreciate if you can help. Vero Trent Mick <[EMAIL PROTECTED]> wrote: [Miki Tebeka wrote]> Hello Veroni

PIL and GeoTIFF

2005-06-09 Thread Matt Feinstein
Hi all-- I've succeeded in using the PIL (Python Imaging Library) to read a simple GeoTIFF file and to extract data from the file's GeoTIFF key-- but I'd also like to write GeoTIFFs, and there doesn't appear to be a one-step way of doing that. I suspect, first, that -writing- a GeoTIFF file with

Re: Annoying behaviour of the != operator

2005-06-09 Thread David M. Cooke
Greg Ewing <[EMAIL PROTECTED]> writes: > Rocco Moretti wrote: > > > This gives the wacky world where >> "[(1,2), (3,4)].sort()" works, whereas "[1+2j, 3+4j].sort()" doesn't. > > To solve that, I would suggest a fourth category of "arbitrary > ordering", but that's probably Py3k material. We've g

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
I'll take a pick thanks - I like the fact it's buit-in (no extra installation) Michele Simionato wrote: > You could generate your report in reStructuredText > format (Google is your friend) and then convert > them in HTML, PS, PDF, etc. > > Michele Simionato -- http://mail.python.o

Re: Windows Installer with Debug Dlls and Libs

2005-06-09 Thread DE
Thanks Trent. That's good news. Does ActivateState produce the debug package everytime they build a python release ? If this is a policy at ActivateState, I will feel myself on better grounds :) Ciao, DE -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
Thanks a bunch, I'm currently playing with HTMLGen (great but not in Python distrib ...) and it look very good - Yet your code example looks simple enough for me to look at that alternative. Thomas Guettler wrote: > Am Thu, 09 Jun 2005 12:43:19 + schrieb Philippe C. Martin: > >> Hi, >>

Re: Start application & continue after app exits

2005-06-09 Thread Paul McNett
Guy Lateur wrote: > I was wondering if it would be possible to launch an application, block > until the app exits, and do some cleanup afterwards. > Maybe an example will be clearer: I would like to make a temperary (text) > file, open it with MS Word for the user to edit/layout/print, and then

Re: different time tuple format

2005-06-09 Thread Maksim Kasimov
maybe you are right, i've searched in google groups - such a question was posted to comp.lang.python many times and i has not found (yet) the answer on "how to tune up the output of time.strptime()?" [EMAIL PROTECTED] wrote: > It is probably the best to calculate back to UTC. > > Assume "2005

Re: Abstract and concrete syntax

2005-06-09 Thread Terry Reedy
"David Baelde" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Well, thanks for the answers. I guess the fact is that python does not > want to be a functional programming language. Correct. Python is a procedural, functional, OO language. > I agree that statements as expressio

Re: Extending Python

2005-06-09 Thread Terry Reedy
"Johannes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am thinking of replacing Lua as internal script controller and I know >how to extend/embed python but is > there a way of limiting what functionality can be actually be accessible > to the user, f.e. I don't want the scri

Re: help with sending mail in Program

2005-06-09 Thread Tim Williams
- Original Message - From: "Ivan Shevanski" <[EMAIL PROTECTED]> I think this seems like it would work, but I still can't seem to get it to work. I turned on the debugging and everything seemed alright. I'll post how I modified it (I probally made a simple mistake). Can someone help h

Re: Start application & continue after app exits

2005-06-09 Thread Ivan Shevanski
>From: Paul McNett <[EMAIL PROTECTED]> >To: python-list@python.org >Subject: Re: Start application & continue after app exits >Date: Thu, 09 Jun 2005 09:07:47 -0700 > >Guy Lateur wrote: > > I was wondering if it would be possible to launch an application, block > > until the app exits, and do some

Re: Python Developers Handbook

2005-06-09 Thread Terry Reedy
"wooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=5206943952 Are you the seller flogging his item? We really don't need every auction listing for Python books copied to this forum. Please don't repeat. TJR -- http:/

Exe file

2005-06-09 Thread Philip Seeger
Hi @ll I'm sorry for that newbie question but how can I compile a program (a .py file) to an executable file? -- Philip Seeger -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >