RE: Converting MSWord Docs to PDF

2006-10-11 Thread [EMAIL PROTECTED]
>Sybren Stuvel wrote: > [EMAIL PROTECTED] enlightened us with: > >is it possible to convert MSword docs into PDF format? > > > Yes, it is. check out http://www.stuvel.eu/ooo-python#header3. It's > about converting Excel to PDF, but it equally applies to MSWord. thank you very much this will greatl

Re: Converting MSWord Docs to PDF

2006-10-11 Thread Theerasak Photha
On 10/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >An alternative to Adobe Distiller (part of Acrobat) is PDFCreator > > > yeah, i am actually just barely testing it out and so far it has > given me very good results, thanks for the tip. See also: http://www.pytex.org (La)TeX is the ki

Re: OT: Sarcasm and irony

2006-10-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: [...] > Any? Don't people plan June weddings thinking the weather > will be nice? And isn't one of the defintions of irony when > things turn out the opposite of what you expect? > But rain at a June wedding isn't truly ironic since it isn't the result of the planners' ac

Re: OT: Sarcasm and irony

2006-10-11 Thread Theerasak Photha
On 10/11/06, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > [...] > > Any? Don't people plan June weddings thinking the weather > > will be nice? And isn't one of the defintions of irony when > > things turn out the opposite of what you expect? > > > But rain at a June wedding

Re: Converting MSWord Docs to PDF

2006-10-11 Thread Steve Holden
Andrew McLean wrote: > Steve Holden wrote: > >>If that *isn't* satisfactory then a modest investment in Adobe >>Acrobat/Distiller plus the use of Python's scripting facilities to >>direct the conversion would be preferable to spending a huge amount of >>time writing a hand-crafted solution. >

Re: what is this UnicodeDecodeError:....?

2006-10-11 Thread Steve Holden
John Machin wrote: > Marc 'BlackJack' Rintsch wrote: > > >>Because you are trying to compare a unicode string `val` with a byte >>string in the list. The unicode string will be converted to a byte string >>for this comparison with the default encoding: ASCII. > > > :-) > > I presume you must l

Re: default variable in python $_

2006-10-11 Thread MaR
rh0dium wrote: > Hi all, > > So I have this simple little routine.. say like this.. > > > def foo() >return {"a":"b", "b":"c"} > > if foo(): >print "Have foo" > > > Now I want the dictionary item a (ie. b) > > How can I do it the above way or do I still have to go like this.. > > def foo(

3D Vector Type Line-Drawing Program

2006-10-11 Thread nelson -
hi, > > Take a look at VPython -- easy to start, 3-D display (wall-eye / > > cross-eye) easy to run on. > > I really like VPython because of how easy it is to use once you are familiar > with it. > > Is there a way to have the display show a wire frame image instead of shaded > shapes? And with

Re: OT: Sarcasm and irony

2006-10-11 Thread Hendrik van Rooyen
"Steve Holden" <[EMAIL PROTECTED]> wrote: 8< > ... It's well-known among Brits that Americans don't > understand irony. They can be pretty oblique when it come to sarcasms > too, for that matter. *ducks to avoid the nuclear fal

Re: OT: Sarcasm and irony

2006-10-11 Thread Theerasak Photha
On 10 Oct 2006 22:34:39 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Like Alanis Morisette said about the song "Isn't it Ironic": > > What's ironic about the song is that it doesn't actually > > contain any irony. > > Any? Don't people plan June weddings thinking the weather > will be n

Re: OT: Sarcasm and irony

2006-10-11 Thread bryan rasmussen
I believe they are reputed to have a sense of humor. Cheers, Bryan Rasmussen On 10/11/06, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > "Steve Holden" <[EMAIL PROTECTED]> wrote: > > 8< > > ... It's well-known among Brits that A

Re: OT: Sarcasm and irony

2006-10-11 Thread Ben Finney
"Theerasak Photha" <[EMAIL PROTECTED]> writes: > I hate June. June sucks. Blindly following some Roman custom relating > to Juno (the real reason why people have June weddings) Well, our traditions and ceremonies in the anti-podes (thanks SteveH) are very Euro-centric; but we still have our weddi

Re: OT: Sarcasm and irony

2006-10-11 Thread Theerasak Photha
On 10/11/06, bryan rasmussen <[EMAIL PROTECTED]> wrote: > I believe they are reputed to have a sense of humor. Some of jokes I have heard on BBC World Service bordered on the unprofessional. :) After the big tsunami, one of the announcers mentioned that "we've been getting a *flood* of e-mail" on

PyDoc and mod_python

2006-10-11 Thread durumdara
Hi ! I need to write documentation for my mod_python website, for the base classes, functions, modules. The problem, that mod_python is imported "apache" that not existing in the normal, pythonic way (only in Apache). If my source is containing a tag that use this module, or it's submodule, th

Re: Tkinter: populating Mac Help menu?

2006-10-11 Thread Alexander Schliep
"Edward K. Ream" <[EMAIL PROTECTED]> writes: > Creating a 'Help' menu 'by hand' on the Mac does not work, or > rather, it creates a *second* Help menu. Presuming you are talking about MacOS X, it doesn't for me. See Gato from http://gato.sourceforge.net/Download/ The menu code is at

Re: OT: Sarcasm and irony

2006-10-11 Thread Theerasak Photha
On 10/11/06, Ben Finney <[EMAIL PROTECTED]> wrote: > "Theerasak Photha" <[EMAIL PROTECTED]> writes: > > > I hate June. June sucks. Blindly following some Roman custom relating > > to Juno (the real reason why people have June weddings) > > Well, our traditions and ceremonies in the anti-podes (than

Re: PyDoc and mod_python

2006-10-11 Thread Fredrik Lundh
durumdara wrote: > I need to write documentation for my mod_python website, for the base > classes, functions, modules. > The problem, that mod_python is imported "apache" that not existing in > the normal, pythonic way (only in Apache). > problem in c:\test.py - ImportError: No module named _a

Re: sufficiently pythonic code for testing type of function

2006-10-11 Thread Bruno Desthuilliers
Theerasak Photha wrote: > I wrote this for someone else to take an object and list of types, > then check if obj is one of those types, This is already what isinstance(obj, tuple_of_types) does. > raising an error otherwise. > > Is it enough to rely on side effects or absence thereof, or should

Re: People's names

2006-10-11 Thread Roel Schroeven
Theerasak Photha schreef: > On 10/10/06, Piet van Oostrum <[EMAIL PROTECTED]> wrote: >>> Roel Schroeven <[EMAIL PROTECTED]> (RS) wrote: >>> RS> It's the same here in Belgium. Except that our Van is with a capital V >>> in >>> RS> most cases; if it's a lower v it either indicates nobility or a

Re: sufficiently pythonic code for testing type of function

2006-10-11 Thread Theerasak Photha
On 10/11/06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Now the real question : what if the object is not an instance of any of > the types, but still support the expected interface ? Perhaps: try: for attribute in ['foo', 'bar', '__baz__']: getattr(mystery_object, '__%s__' % attribu

Re: People's names

2006-10-11 Thread Theerasak Photha
On 10/11/06, Roel Schroeven <[EMAIL PROTECTED]> wrote: > My observation is that in general names keep hanging on to archaic forms > much longer than normal language. Examples: > > - A very common name around here is Hendrickx. In normal language, the > 'ckx' construction is replaced with 'ks'. > -

Re: How to write Smart Python programs?

2006-10-11 Thread Bruno Desthuilliers
Raj wrote: > Hi, > > We just executed a project with Python using TG. The feedback was to > use more python like programming rather than C style code executed in > Python. The feedback is from a Python purist and for some reasons we > cannot solicity his help. > > So we'd like to do is to scrub t

Re: How to write Smart Python programs?

2006-10-11 Thread Theerasak Photha
On 10/11/06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > 2/ functions that returns a status code and modify their arguments. Argument modification for lists with one item is *sometimes* used to emulate full lexical closure. (or at least that's what the folks on freenode #python told me) --

Re: Python component model

2006-10-11 Thread Bruno Desthuilliers
Peter Maas wrote: > Bruno Desthuilliers schrieb: >> Marc 'BlackJack' Rintsch wrote: >> (snip) >> Python itself is a RAD tool. >> >> +1 QOTW > > No, please stop self-assuring, self-pleasing QOTWs! Certainly not !-) (snip) > I for my part would be happy to see a Delphi-like RAD tool for Python

Re: what is this UnicodeDecodeError:....?

2006-10-11 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, John Machin wrote: > Marc 'BlackJack' Rintsch wrote: > >> Because you are trying to compare a unicode string `val` with a byte >> string in the list. The unicode string will be converted to a byte string >> for this comparison with the default encoding: ASCII. > > :-) >

Re: OT: Sarcasm and irony

2006-10-11 Thread Ant
Brian van den Broek wrote: ... > A quick check with the on-line text of the second edition of the > Oxford English Dictionary (sadly, a link only available by > subscription) gives as the first meaning: If we're going to start using dictionary definitions, then I claim that the following joke is

Re: sufficiently pythonic code for testing type of function

2006-10-11 Thread Fredrik Lundh
Theerasak Photha wrote: >> Now the real question : what if the object is not an instance of any of >> the types, but still support the expected interface ? > > Perhaps: > > try: > for attribute in ['foo', 'bar', '__baz__']: > getattr(mystery_object, '__%s__' % attribute) > except Attribute

dynamic creation of global Identifier

2006-10-11 Thread Alexander Eisenhuth
Hello alltogether, I've a little problem in creating a new identifier in the global namespace. The following code creates a as local var in the namespace of init() class A: def __init__(self, v): print "ctr of", self.__class__, "with", v self._v = v def i

Re: sufficiently pythonic code for testing type of function

2006-10-11 Thread Theerasak Photha
On 10/11/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > can be a lot better than a 30-level traceback that ends with a line > looking something like > > fnut.index(gah) Despite long experience with Perl, I am not a big follower of the "goose_level: blah" method of error reporting... > also,

Re: Converting MSWord Docs to PDF

2006-10-11 Thread Ant
Theerasak Photha wrote: > On 10/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ... > (La)TeX is the king of document processing, and does PDF. Except that the OP want's to print Word documents as PDF. LaTeX is good, granted, but just try converting LaTeX documents to Word or vice versa... A

Re: How to write Smart Python programs?

2006-10-11 Thread Fredrik Lundh
Theerasak Photha wrote: >> 2/ functions that returns a status code and modify their arguments. > > Argument modification for lists with one item is *sometimes* used to > emulate full lexical closure. (or at least that's what the folks on > freenode #python told me) sounds like they (or you) ar

Re: dynamic creation of global Identifier

2006-10-11 Thread Theerasak Photha
On 10/11/06, Alexander Eisenhuth <[EMAIL PROTECTED]> wrote: > but why doesent exec "global ... create a identifier in the global namespace. I haven't had much use for exec, but it operates in its own, more or less cloistered namespace. It can't set globals among other things. You can frob the gl

Re: How to write Smart Python programs?

2006-10-11 Thread Theerasak Photha
On 10/11/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Theerasak Photha wrote: > > >> 2/ functions that returns a status code and modify their arguments. > > > > Argument modification for lists with one item is *sometimes* used to > > emulate full lexical closure. (or at least that's what the fo

Bad Code (that works) help me re-write!

2006-10-11 Thread Matthew Warren
I have the following piece of code, taken from a bigger module, that even as I was writing I _knew_ there were better ways of doing it, using a parser or somesuch at least, but learning how wasn't as fun as coding it... And yes alarm bells went off when I found myself typing eval(), and I'm sure th

Re: Tkinter: populating Mac Help menu?

2006-10-11 Thread Eric Brunel
On Tue, 10 Oct 2006 14:29:46 +0200, Edward K. Ream <[EMAIL PROTECTED]> wrote: [snip] > So given x (a string), how does one create a widget whose name is > '%s.help' > % x ? This is a can of corn in Tk, but nothing comes to mind looking at > the > Tkinter source code. Use the 'name' keyword

Can pdb be set to break on warnings?

2006-10-11 Thread LorcanM
Hello, I use pdb under Linux to debug my Python code, as in: python -m pdb myprogram.py By default it does a postmortem of unhandled exceptions, is there a way to get it to break on warnings? Thanks a lot, Lorcan. -- http://mail.python.org/mailman/listinfo/python-list

Re: what is this UnicodeDecodeError:....?

2006-10-11 Thread John Machin
Steve Holden wrote: > John Machin wrote: > > :-) [stuff] > > (-: > > > I see you also use little-endian smileys in the antipodes. > I was using it in a bracketing manner similar to the Spanish ¿and ¡ except at the other end of the bracketed text. This admittedly confusing usage of course overloa

RE: How to find a file or a device is currently used by which processor which program ?

2006-10-11 Thread Tim Golden
[EMAIL PROTECTED] | When I want to uninstall my usb disk on windows, the | operating systems | sometimes tells me the device is being used by other program. But I | can't find which program is using it. Can I do this using python ? This is really one of those questions that could better be rep

Re: Can pdb be set to break on warnings?

2006-10-11 Thread Fredrik Lundh
LorcanM wrote: > I use pdb under Linux to debug my Python code, as in: > > python -m pdb myprogram.py > > By default it does a postmortem of unhandled exceptions, is there a way > to get it to break on warnings? is python -m pdb -Werror myprogram.py what you're looking for ? -- htt

Re: sufficiently pythonic code for testing type of function

2006-10-11 Thread Fredrik Lundh
Theerasak Photha wrote: > I'll do that as soon as my green noggin figures out what 'idempotent' means. "Acting as if used only once, even if used multiple times", to quote the first explanation I saw on the google result page. and from the irony department, googling for "indempotent" provides an

Re: How to write Smart Python programs?

2006-10-11 Thread Antoine De Groote
> Googling for "python is not java" may be a good start. Also, here are 2 > common C-style smells: Ok, the first Google result (http://dirtsimple.org/2004/12/python-is-not-java.html) says this somewhere: "Getters and setters are evil. Evil, evil, I say! Python objects are not Java beans. Do not

Re: How to write Smart Python programs?

2006-10-11 Thread Paul Rubin
Antoine De Groote <[EMAIL PROTECTED]> writes: > To me this seems contradictory. Why would one not want to do something > that is included in the documentation? Or am I just confused? Does > anybody have an idea how to put me in the right direction? The library reference states the technical proced

Re: dynamic creation of global Identifier

2006-10-11 Thread Steve Holden
Theerasak Photha wrote: > On 10/11/06, Alexander Eisenhuth <[EMAIL PROTECTED]> wrote: > > >>but why doesent exec "global ... create a identifier in the global namespace. > > > I haven't had much use for exec, but it operates in its own, more or > less cloistered namespace. It can't set globals

Re: How to write Smart Python programs?

2006-10-11 Thread Ben Finney
Antoine De Groote <[EMAIL PROTECTED]> writes: > Ok, the first Google result > (http://dirtsimple.org/2004/12/python-is-not-java.html) says this somewhere: > > "Getters and setters are evil. Evil, evil, I say! Python objects are > not Java beans. Do not write getters and setters. This is what the

Re: Can pdb be set to break on warnings?

2006-10-11 Thread LorcanM
Fredrik Lundh wrote: > LorcanM wrote: > > > I use pdb under Linux to debug my Python code, as in: > > > > python -m pdb myprogram.py > > > > By default it does a postmortem of unhandled exceptions, is there a way > > to get it to break on warnings? > > is > > python -m pdb -Werror myprogram.

Re: Python component model

2006-10-11 Thread Paul Boddie
Peter Maas wrote: > Bruno Desthuilliers schrieb: > > Marc 'BlackJack' Rintsch wrote: > > (snip) > > Python itself is a RAD tool. > > > > +1 QOTW > > No, please stop self-assuring, self-pleasing QOTWs! +1 QOTW! ;-) [Java, Ruby, JRuby, the hype] > To prevent this to happen parts of the Pyth

Re: Can pdb be set to break on warnings?

2006-10-11 Thread Fredrik Lundh
"LorcanM" wrote: >> python -m pdb -Werror myprogram.py > > It sounds like what I want, but it doesn't work for me. When I try the > above line of code, it replies: > > Error: -Werror does not exist > > I'm running Python 2.4.3 sorry, pilot cut and paste error. try: python -Werror -m pd

Re: Motions.

2006-10-11 Thread Gerrit Holl
On 2006-10-11 00:26:38 +0200, Dr. Pastor wrote: > I would like to track the motions of > small birds in short (20-30sec) .avi films. > What tool-set/programs would be wise to use? > Thanks for any guidance. I'd use PIL with numpy and subtract a birdless background picture from each picture. Make t

Re: Python component model

2006-10-11 Thread Fredrik Lundh
Paul Boddie wrote: > Meanwhile, the Web programming standardisation scene remains > stagnant. Aw, come on. The Python web programming standardisation wars are over, for now. There's Django, and there's TurboGears, and there's Zope 2/3, all with slightly different approaches, and slightly differ

Re: Can pdb be set to break on warnings?

2006-10-11 Thread Gabriel Genellina
At Wednesday 11/10/2006 07:31, LorcanM wrote: > > python -m pdb -Werror myprogram.py > It sounds like what I want, but it doesn't work for me. When I try the above line of code, it replies: Error: -Werror does not exist Try: python -h -- Gabriel Genellina Softlab SRL

Alternative constructors naming convention

2006-10-11 Thread Will McGugan
Hi, Is there a naming convention regarding alternative constructors? ie static methods where __new__ is called explicity. I use lower_case for methods in general, but thought maybe CamelCase would be better for alternative contstructors to distinguish them from methods... So which is better? c =

Re: sufficiently pythonic code for testing type of function

2006-10-11 Thread Bruno Desthuilliers
Theerasak Photha wrote: > On 10/11/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > >> can be a lot better than a 30-level traceback that ends with a line >> looking something like >> >> fnut.index(gah) > > Despite long experience with Perl, I am not a big follower of the > "goose_level: blah"

Re: How to write Smart Python programs?

2006-10-11 Thread Bruno Desthuilliers
Theerasak Photha wrote: > On 10/11/06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > >> 2/ functions that returns a status code and modify their arguments. > > Argument modification for lists with one item is *sometimes* used to > emulate full lexical closure. (or at least that's what the folk

Re: How to write Smart Python programs?

2006-10-11 Thread Bruno Desthuilliers
Antoine De Groote wrote: >> Googling for "python is not java" may be a good start. Also, here are 2 >> common C-style smells: > > Ok, the first Google result > (http://dirtsimple.org/2004/12/python-is-not-java.html) says this > somewhere: > > "Getters and setters are evil. Evil, evil, I say! Pyth

Re: Bad Code (that works) help me re-write!

2006-10-11 Thread Giles Brown
Matthew Warren wrote: > I have the following piece of code, No doubt you will get some kind soul to suggest some things, but if you want really good answers I think you need explain why you want this command file (as opposed to using say a python script itself). Are you attempting to create a sim

Re: Asychronous execution *with* return codes?

2006-10-11 Thread utabintarbo
Fredrik Lundh wrote: > utabintarbo wrote: > > > If so, how do I handle the poll() on long-running processes? Run a > > bunch and then start a check loop? > > or use a thread to keep track of each external process. > > This sounds most promising. Might you have a code snippet (or link to same) il

Re: Bad Code (that works) help me re-write!

2006-10-11 Thread MatthewWarren
oop. posted with wrong account, sorry for attatched disclamers in other posts. -- http://mail.python.org/mailman/listinfo/python-list

RE: Bad Code (that works) help me re-write!

2006-10-11 Thread Matthew Warren
> -Original Message- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > rg] On Behalf Of Giles Brown > Sent: 11 October 2006 12:38 > To: python-list@python.org > Subject: Re: Bad Code (that works) help me re-write! > > Matthew Warren wrote: > > I have the following piece of cod

Re: does raw_input() return unicode?

2006-10-11 Thread Neil Cerutti
On 2006-10-11, Leo Kislov <[EMAIL PROTECTED]> wrote: >> Unfortunately, I can't tell you how to make sys.stdin return >> unicode for use with raw_input. I tried what I thought should >> work and as you can see it messed up the buffering on stdin. >> Does anyone else know how to wrap sys.stdin so it

Re: Alternative constructors naming convention

2006-10-11 Thread Bruno Desthuilliers
Will McGugan wrote: > Hi, > > Is there a naming convention regarding alternative constructors? ie > static methods where __new__ is called explicity. I use lower_case for > methods in general, but thought maybe CamelCase would be better for > alternative contstructors to distinguish them from meth

Re: Python component model

2006-10-11 Thread Paul Boddie
Fredrik Lundh wrote: > Paul Boddie wrote: > > > Meanwhile, the Web programming standardisation scene remains > > stagnant. > > Aw, come on. The Python web programming standardisation wars are over, for > now. Well, that's just another way of saying that the scene remains stagnant, because I don'

Re: Bad Code (that works) help me re-write!

2006-10-11 Thread MatthewWarren
Matthew Warren wrote: > > -Original Message- > > From: > > [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > rg] On Behalf Of Giles Brown > > Sent: 11 October 2006 12:38 > > To: python-list@python.org > > Subject: Re: Bad Code (that works) help me re-write! > > > > Matthew Warren wrote:

Re: Encode differences between idle python and python

2006-10-11 Thread Neil Cerutti
On 2006-10-10, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Gabriel, Peter: > Many thanks for your clear answers!! Best regards. Something I've been working on is currently using the following trick: # Create some string of non-ASCII text in ISO 8859-1. some_string = ''.join(chr(a) for a in

Re: How to write Smart Python programs?

2006-10-11 Thread Antoine De Groote
Bruno Desthuilliers wrote: >> And what does property mean anyway? > > See above. A property is a computed attribute : you access it like a > 'data' attribute, but it really uses getters/setters. The point here is > that client code doesn't know nor need to know if it's a plain attribute > or a co

thread lock question

2006-10-11 Thread Ritesh Raj Sarraf
Hi, I have a question regarding locks in threads. Following is the code example: if download_file(foo, bar) == True: if some condition: do_something() if zip_bool: ziplock.acquire() try:

Re: Python component model

2006-10-11 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > one, two, overflow ? or are you saying that the lack of a monopoly means > market stagnation, no matter how innovative the three big ones are ? It worked for Ruby on Rails... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-11 Thread Fredrik Lundh
Paul Boddie wrote: >> Aw, come on. The Python web programming standardisation wars are over, for >> now. > > Well, that's just another way of saying that the scene remains > stagnant, because I don't see any winners. one, two, overflow ? or are you saying that the lack of a monopoly means mark

Re: How to write Smart Python programs?

2006-10-11 Thread Fredrik Lundh
Antoine De Groote wrote: > Don't forget to derive your class from object, otherwise properties > won't work. getters work, setters don't (because the old-style objects checks the instance before it looks for hooks in the class): >>> class Spam: ... def getx(self): ... return "x"

Experiences with Py2Exe

2006-10-11 Thread Isaac Rodriguez
Hi, I am looking for feedback from people that has used or still uses Py2Exe. I love to program in python, and I would like to use it to write support tools for our development team, but I cannot require everyone to install python in their machines, so I was thinking that Py2Exe would help on that

Re: How to write Smart Python programs?

2006-10-11 Thread Roy Smith
Antoine De Groote <[EMAIL PROTECTED]> wrote: > In Java, you have to use getters and setters because using public fields > gives you no opportunity to go back and change your mind later to using > getters and setters. This is a good example of an anti-pattern. The general thought process here i

Re: Experiences with Py2Exe

2006-10-11 Thread Antoine De Groote
Isaac Rodriguez wrote: > Hi, > > I am looking for feedback from people that has used or still uses > Py2Exe. I love to program in python, and I would like to use it to > write support tools for our development team, but I cannot require > everyone to install python in their machines, so I was thin

Re: Experiences with Py2Exe

2006-10-11 Thread Tim N. van der Leeuw
Hi Isaac, Isaac Rodriguez wrote: > Hi, > > I am looking for feedback from people that has used or still uses > Py2Exe. I love to program in python, and I would like to use it to > write support tools for our development team, but I cannot require > everyone to install python in their machines, so

Seeking Publicity Coordinator for PyCon 2007

2006-10-11 Thread Jeff Rush
The PyCon organizers are looking for someone to volunteer as publicity coordinator for PyCon 2007. This year we have started planning sufficiently in advance that we'd like to get some press coverage in print magazines. What is involved, you ask? 1. Brainstorm/collect a list of candidate publica

Re: Python component model

2006-10-11 Thread Paul Boddie
Fredrik Lundh wrote: > Paul Boddie wrote: > > > > Well, that's just another way of saying that the scene remains > > stagnant, because I don't see any winners. > > one, two, overflow ? or are you saying that the lack of a monopoly means > market stagnation, no matter how innovative the three big o

Re: Experiences with Py2Exe

2006-10-11 Thread Larry Bates
Isaac Rodriguez wrote: > Hi, > > I am looking for feedback from people that has used or still uses > Py2Exe. I love to program in python, and I would like to use it to > write support tools for our development team, but I cannot require > everyone to install python in their machines, so I was thin

Re: How to write Smart Python programs?

2006-10-11 Thread John Salerno
Bruno Desthuilliers wrote: > Googling for "python is not java" may be a good start. I have a question about this section of a blog with that title. I'll ask the question first so it doesn't get lost at the bottom: does the following opinion of XML apply to GUIs? (i.e., using an XML resource to

hundreds of seconds?

2006-10-11 Thread eur . van . andel
Hi all How can I access partial seconds on the system clock? I measure air speed and water flow in a heat-exchanger test stand and count pulses from both water meter and air speed meter. I divide the amount of these counts over a certain interval with the time of that interval. Since I only have

Re: Can pdb be set to break on warnings?

2006-10-11 Thread LorcanM
Fredrik Lundh wrote: > "LorcanM" wrote: > > >> python -m pdb -Werror myprogram.py > > > > It sounds like what I want, but it doesn't work for me. When I try the > > above line of code, it replies: > > > > Error: -Werror does not exist > > > > I'm running Python 2.4.3 > > sorry, pilot cut and

Re: hundreds of seconds?

2006-10-11 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi all > > How can I access partial seconds on the system clock? > > I measure air speed and water flow in a heat-exchanger test stand and > count pulses from both water meter and air speed meter. I divide the > amount of these counts over a certain interval with the t

Re: OT: Sarcasm and irony

2006-10-11 Thread Grant Edwards
On 2006-10-11, Ben Finney <[EMAIL PROTECTED]> wrote: > Grant Edwards <[EMAIL PROTECTED]> writes: > >> Sarcasm is a form of irony. Irony is when what is meant is >> different from the obvious literal meaning of the statement. > > Irony need not have anything to do with the meaning and intent of the

Re: OT: Sarcasm and irony

2006-10-11 Thread Grant Edwards
On 2006-10-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Like Alanis Morisette said about the song "Isn't it Ironic": >> What's ironic about the song is that it doesn't actually >> contain any irony. > > Any? Don't people plan June weddings thinking the weather > will be nice? And isn't one

Re: sufficiently pythonic code for testing type of function

2006-10-11 Thread A.T.Hofkamp
On 2006-10-11, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > Now the real question : what if the object is not an instance of any of > the types, but still support the expected interface ? > one possible answer: Use ZopeInterfaces (and ask objects 'do you implement interface X' rather than 'a

Re: default variable in python $_

2006-10-11 Thread rh0dium
Hi Maria, This is exactly what I was looking for. I (as others have asked me to) cleared my head of the other languages, but was mearly giving perl as an example indicating the compactness I was after. Thanks Maria!! MaR wrote: > rh0dium wrote: > > Hi all, > > > > So I have this simple little r

A Call for a Presenter on Python Eggs

2006-10-11 Thread Jeff Rush
Eggs are important to Python and will become more so over the next few years, if understood and embraced by the community. They are a key competitive feature - I've been asked so many times what is the Python equivalent to CPAN and finally we're developing an answer. At PyCon 2007 we need a solid

Re: OT: Sarcasm and irony

2006-10-11 Thread [EMAIL PROTECTED]
Grant Edwards wrote: > On 2006-10-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >> Like Alanis Morisette said about the song "Isn't it Ironic": > >> What's ironic about the song is that it doesn't actually > >> contain any irony. > > > > Any? Don't people plan June weddings thinking the wea

RE: hundreds of seconds?

2006-10-11 Thread Michael . Coll-Barth
> -Original Message- > From: [EMAIL PROTECTED] > How can I access partial seconds on the system clock? What is wrong with time.time()? >>> import time >>> time.time() 1160578386.0109401 >>> time.time() 1160578386.87324 >>> time.time() 1160578387.5790291 >>> x = time.time() >>> y = tim

Newbie: trying to twist my head around twisted (and python)

2006-10-11 Thread Jan Bakuwel
Hoi all, Please see below a small piece of python code that resembles a smtpserver using the twisted framework. The code is based on the example smtp server discussed in Twisted Network Programming Essentials. The unmodified example code can be found on the O'Reilly website: (http://examples.oreil

Re: OT: Sarcasm and irony

2006-10-11 Thread Grant Edwards
On 2006-10-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Grant Edwards wrote: >> On 2006-10-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >> Like Alanis Morisette said about the song "Isn't it Ironic": >> >> What's ironic about the song is that it doesn't actually >> >> contain any

ANN:UliPad 3.4 Release

2006-10-11 Thread limodou
What's it? It's an Editor based on wxPython. NewEdit is the old name, and UliPad is the new name. UliPad uses Mixin and Plugin technique as its architecture. Most of its classes can be extended via mixin and plugin components, and finally become an integrity class at creating the instance

Re: Newbie: trying to twist my head around twisted (and python)

2006-10-11 Thread Jean-Paul Calderone
On Wed, 11 Oct 2006 17:15:09 +0200, Jan Bakuwel <[EMAIL PROTECTED]> wrote: >Hoi all, > >Please see below a small piece of python code that resembles a >smtpserver using the twisted framework. The code is based on the example >smtp server discussed in Twisted Network Programming Essentials. >The unm

Compile python extension

2006-10-11 Thread Martijn de Munnik
Hi, I'm trying to build/install pysqlite on a Solaris 10 platform. I've got Sun Studio 11 on a AMD 64 platform and got this error. I'm a python newbie and just want to install trac. I've got ActiveState python: ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on Python 2.4.3 (#1, Apr

Re: [python-nl] Compile python extension

2006-10-11 Thread Ronald Oussoren
On Wednesday, October 11, 2006, at 02:43PM, Martijn de Munnik <[EMAIL PROTECTED]> wrote: >Hi, > >I'm trying to build/install pysqlite on a Solaris 10 platform. I've got >Sun Studio 11 on a AMD 64 platform and got this error. I'm a python newbie >and just want to install trac. I've got ActiveSta

Re: sufficiently pythonic code for testing type of function

2006-10-11 Thread Bruno Desthuilliers
A.T.Hofkamp wrote: > On 2006-10-11, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >> Now the real question : what if the object is not an instance of any of >> the types, but still support the expected interface ? >> > > one possible answer: Use ZopeInterfaces > (and ask objects 'do you implement

Re: Newbie: trying to twist my head around twisted (and python)

2006-10-11 Thread Jan Bakuwel
Hoi Jean-Paul, > The return value of eomReceived is used to determine whether to signal to > the SMTP client whether the message has been accepted. Regardless of your > application logic, if you are taking responsibility for the message, you > should return a successful result. If all of your pr

Re: hundreds of seconds?

2006-10-11 Thread eur . van . andel
[EMAIL PROTECTED] wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > > > How can I access partial seconds on the system clock? > > What is wrong with time.time()? Absolutely nothing. > >>> import time > >>> time.time() > 1160578386.0109401 > >>> time.time() > 1160578386.87324

Re: How to write Smart Python programs?

2006-10-11 Thread Bruno Desthuilliers
Antoine De Groote wrote: > Bruno Desthuilliers wrote: >>> And what does property mean anyway? >> >> See above. A property is a computed attribute : you access it like a >> 'data' attribute, but it really uses getters/setters. The point here is >> that client code doesn't know nor need to know if i

Re: Dive Into Java?

2006-10-11 Thread Bjoern Schliessmann
Diez B. Roggisch wrote: > Yes. You can for example create a constructor for object Foo, > which then is implicitly chosen when assigning an int to a > variable of that kind. So it acts as a casting operator. I call > that wicked, and subtle. > > class Foo { > int _arg; > public: > Foo(int arg

Re: curses problem reading cursor keys

2006-10-11 Thread Thomas Dickey
Simon Morgan <[EMAIL PROTECTED]> wrote: > I'd also appreciate any pointers to good tutorials on curses, I've read > the one by awk and esr but found it rather brief and lacking in detail. esr only contributed his name - awk wrote the rest. (When I asked why, he only said it sounded like a good id

Regular expression worries

2006-10-11 Thread CSUIDL PROGRAMMEr
folks I am new to python, so excuse me if i am asking stupid questions. I have a txt file and here are some lines of it Document Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keywordhttp://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-11 Thread Kay Schluehr
Paul Boddie wrote: > I've never maintained that a monopoly on how Web programming is done > would be a good thing. All I've ever tried to understand is why people > haven't tried to improve the generic support for Web programming (and a > whole load of other things) even to the level of something

  1   2   >