saving a text file

2005-02-14 Thread Jan Rienyer Gadil
any idea how to automatically save to a text file? here's what the program do: first, data is read from the serial port every fixed lenght of time the data will then be put to a table, now, every serial read, a table will be created for the data that will be gathered (one window for each table) to

Re: custom classes in sets

2005-02-14 Thread vegetax
Steven Bethard wrote: > vegetax wrote: >> How can i make my custom class an element of a set? >> >> class Cfile: >> def __init__(s,path): s.path = path >> >> def __eq__(s,other): >>print 'inside equals' >>return not os.popen('cmp %s %s' % (s.path,other.path)).read() >> >> def __ha

Re: ANN: pyMinGW support for Python 2.3.5 (final) is available

2005-02-14 Thread A.B., Khalid
Nick Craig-Wood wrote: > A.B., Khalid <[EMAIL PROTECTED]> wrote: > > This is to inform those interested in compiling Python in MinGW that > > an updated version of pyMinGW is now available. > > Ha anyone tried cross compiling python with mingw? At work we compile > our software for lots of platf

Re: Pythonic poker client

2005-02-14 Thread Efrat Regev
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > My PC finally went belly up last week and I'm looking forward to > playing with my new Mac. However, I play a bit of online poker, and > there is no Mac client for my poker room. > > Ideally, instead of running Virtual PC, I'

RE: connecting to Sybase/MsSQL from python

2005-02-14 Thread Tim Golden
[Ed Leafe] | Has anyone ever used this product: | http://www.object-craft.com.au/projects/mssql/ | | Any feedback, positive or negative? I have, pretty much constantly, for the last three years with no significant issues at all. I use it on Win32 boxes, although I have had it running

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Fuzzyman
Ilias Lazaridis wrote: > I'm a newcomer to python: > > [EVALUATION] - E01: The Java Failure - May Python Helps? > http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 > > - > > I've download (as suggested) the python 2.4 installer for windows. > > Now I have problems to compil

Re: AES crypto in pure Python?

2005-02-14 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > I'm looking for an implementation of AES (the Advanced Encryption > Standard) in pure Python. I'm aware of pycrypto, but that uses C code. > I'm hoping to find something that only uses Python...I'm willing to > trade speed for portability, since my application is desig

Re: For American numbers

2005-02-14 Thread Peter Maas
Dave Brueck schrieb: Multiple definitions aside, "kilo" and "mega" are far too entrenched - even if I could manage to say "kibibyte" with a straight face, I'd get nothing but blank stares in return. This kibi-mebi thing will probably fail because very few can manage to say "kibibyte" with a strai

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Michael Hoffman wrote: Ilias Lazaridis wrote: a) Why does the Python Foundation not provide additionally a binary version, compiled with MinGW or another open-source compiler? I use a binary version of Python compiled with an open-source compiler on Windows that was provided by someone else. Can y

Re: custom classes in sets

2005-02-14 Thread Nick Coghlan
vegetax wrote: How can i make my custom class an element of a set? class Cfile: def __init__(s,path): s.path = path def __eq__(s,other): print 'inside equals' return not os.popen('cmp %s %s' % (s.path,other.path)).read() def __hashcode__(s): return s.path.__hashcode__() the idea is that

Re: AES crypto in pure Python?

2005-02-14 Thread Paul Rubin
[EMAIL PROTECTED] writes: > I'm looking for an implementation of AES (the Advanced Encryption > Standard) in pure Python. I'm aware of pycrypto, but that uses C code. > I'm hoping to find something that only uses Python...I'm willing to > trade speed for portability, since my application is desig

keep a local COM Server alive

2005-02-14 Thread [EMAIL PROTECTED]
I wrote a COM server in Python where all the clients use the same global object(test_obj). So far it works, but when the last client is closed the Python COM enviornment is closed and the global object is lost. How can I prevent that? I need that new clients use the same global object and not a new

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
[please check your news-client. For some reason, the tag "[EVALUATION]" was removed] - You answer essentially something like "It's not necessary" cause "with a little hacking it works". I've found lots of documents, which describe how to "hack around" to make it work. I don't want to do "hack

Re: multi threading in multi processor (computer)

2005-02-14 Thread Leif K-Brooks
Irmen de Jong wrote: the GIL must die. I couldn't resist: http://www.razorvine.net/img/GIL.jpg Neither could I: http://ecritters.biz/diegil.png (In case it's not entirely obvious, the stick figure just slices the GIL into two pieces with his sword, causing its blood to splatter on the wall.) -- ht

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Fuzzyman
Ilias Lazaridis wrote: [snip..] > >> b) Why does the Python Foundation not ensure, that the python > >> source-code is directly compilable with MinGW? > > > > Why should they? It already runs on Windows with a freely available > > compiler. > > Obvious: Courtesy [against the userbase needs] > > O

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Michael Hoffman
Ilias Lazaridis wrote: Michael Hoffman wrote: Can you please point me (and the readers) to this resource? http://www.cygwin.com/ Why don't you solve this problem and produce a patched version of Python that does what you want. I'm not intrested in patching. I'm intrested in a stable environment, s

Re: For American numbers

2005-02-14 Thread Michael Hoffman
Peter Maas wrote: This kibi-mebi thing will probably fail because very few can manage to say "kibibyte" with a straight face :) I agree, I can't do it yet. I can write kiB and MiB though with a straight face, and find that useful. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python

Re: mxCGIPython binaries for Python 2.3.5

2005-02-14 Thread Fuzzyman
Oleg Broytmann wrote: > On Fri, Feb 11, 2005 at 10:13:21AM -0800, Titus Brown wrote: > > what does mxCGIPython do? I can't find anything at that Web site that > >http://www.egenix.com/files/python/mxCGIPython.html > > > doesn't involve downloading & unpacking a file. > >It is unpackable,

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Miki Tebeka wrote: Hello Ilias, d) Is it really neccessary that I dive into such adventures, to be able to do the most natural thing like: "developing python extensions with MinGW"? Writing a setup.py and running python setup.py build_ext --compiler=mingw32 works for me *without* any more wo

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Michael Hoffman
Ilias Lazaridis wrote: "The Python Foundation could create an official sub-project to create an automated build target based on the MinGW toolchain. I am sure that many community members would be more than happy to contribute." An "official sub-project" for something like this is not necessary. I

Re: Commerical graphing packages?

2005-02-14 Thread David Fraser
Erik Johnson wrote: I am wanting to generate dynamic graphs for our website and would rather not invest the time in developing the code to draw these starting from graphics primitives. I am looking for something that is... "fairly robust" but our needs are relatively modest: X-Y scatter plots w

Re: saving a text file

2005-02-14 Thread Fuzzyman
Hmmm.. I can't guess what format you will create the 'tables' in, or what format you want to save them in. You need the pyserial module to read data from the serial port - I assume you have already discovered that ? Writing a text file to disc is *extremely* trivial Turning a table - (li

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread David Fraser
Ilias Lazaridis wrote: I'm a newcomer to python: [EVALUATION] - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 - I've download (as suggested) the python 2.4 installer for windows. Now I have problems to compile python extension th

Re: Newbie help

2005-02-14 Thread bruno modulix
Chad Everett wrote: Hey guys, Hope you can help me again with another problem. I am trying to learn Python on my own and need some help with the following. I am writing a program that lets has the pc pick a number and the user has five guess to get the number. 1. BUG: If the number is say 35 a

Re: saving a text file

2005-02-14 Thread bruno modulix
Jan Rienyer Gadil wrote: any idea how to automatically save to a text file? What does 'automatically' mean ?-) AFAIK, the best way to write something to a file is to * open the file in write mode * write your data to the file * close the file Hopefully this is quite simple. f = File('myfile.txt', '

Re: custom classes in sets

2005-02-14 Thread Carl Banks
vegetax wrote: > Steven Bethard wrote: > > > vegetax wrote: > >> How can i make my custom class an element of a set? > >> > >> class Cfile: > >> def __init__(s,path): s.path = path > >> > >> def __eq__(s,other): > >>print 'inside equals' > >>return not os.popen('cmp %s %s' % (s.path,oth

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Diez B. Roggisch
Ilias Lazaridis wrote: > [please check your news-client. For some reason, the tag "[EVALUATION]" > was removed] > > I want to develope large scale applications, and for this I need an > stable official version of the python language, either binary or > produced directly out of official sources, c

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Fuzzyman wrote: Ilias Lazaridis wrote: [snip..] b) Why does the Python Foundation not ensure, that the python source-code is directly compilable with MinGW? Why should they? It already runs on Windows with a freely available compiler. Obvious: Courtesy [against the userbase needs] Obvious: Consiste

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Diez B. Roggisch wrote: Ilias Lazaridis wrote: I want to develope large scale applications, and for this I need an stable official version of the python language, either binary or produced directly out of official sources, completely with an open-source tool-chain. Where does that requirement co

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
David Fraser wrote: Ilias Lazaridis wrote: [...] Just to add to all the other answers: Don't just complain, submit patches and work at keeping them maintained. If this is done for a while it may be more of an argument for having them included I do not "just complain". I've spend already hours wit

Re: For American numbers

2005-02-14 Thread Nick Coghlan
Michael Hoffman wrote: Peter Maas wrote: This kibi-mebi thing will probably fail because very few can manage to say "kibibyte" with a straight face :) I agree, I can't do it yet. I can write kiB and MiB though with a straight face, and find that useful. And written communication is where avoiding

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Michael Hoffman wrote: Ilias Lazaridis wrote: "The Python Foundation could create an official sub-project to create an automated build target based on the MinGW toolchain. I am sure that many community members would be more than happy to contribute." An "official sub-project" for something like t

Re: Concurrent Python

2005-02-14 Thread Dominic Fox
> For an alternative approach (based on using generators forming a dataflow > component system) you might find our project interesting - the core > concurrency stuff is packaged up separately with API docs (and trivial > example) here: http://kamaelia.sourceforge.net/Docs/Axon.html Would it be cor

Re: changing __call__ on demand

2005-02-14 Thread Michael Hoffman
Stefan Behnel wrote: Thanks for the quick answer. I didn't know they were class-level methods. Too bad. Guess I'll stick with indirection then. Here is one way of doing that indirection I just thought of--have the class __call__ attribute call on the instance __call__ attribute: >>> class MyClass(

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Robert Kern
Ilias Lazaridis wrote: David Fraser wrote: Ilias Lazaridis wrote: [...] Just to add to all the other answers: Don't just complain, submit patches and work at keeping them maintained. If this is done for a while it may be more of an argument for having them included I do not "just complain". I've

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Michael Hoffman wrote: Ilias Lazaridis wrote: Michael Hoffman wrote: Can you please point me (and the readers) to this resource? http://www.cygwin.com/ thank you. as far as I know, the created executables are bounded to the GPL. Thus this is not intresting to me. Why don't you solve this problem an

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Michael Hoffman
Ilias Lazaridis wrote: [REQUOTE] Oh, I can play that game too: >> [REQUOTE] >> Identify what needs to be done and create a patch, and it will be >> accepted if it is a good patch. MinGW patches have been accepted before. Start submitting yours. As you point out, there is stuff on the web that means

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Robert Kern wrote: Ilias Lazaridis wrote: David Fraser wrote: Ilias Lazaridis wrote: [...] I do not "just complain". I've spend already hours with writing down the questionaire [which you have successfully ignored]. Why don't you spend hours writing code and submitting working patches, instead? T

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Diez B. Roggisch
>> Where does that requirement come from? If you want to create large >> scale apps, the price for a msvc++ compiler shouldn't matter. And: >> Windows is a non-free platform at first. If you have to or want to >> develop on top of it, be prepared to pay. Its as simple as that. If >> you want someth

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Fredrik Lundh
Ilias Lazaridis wrote > The idea that the Python Foundation cares about user needs would affect that. please let the users speak for themselves. -- http://mail.python.org/mailman/listinfo/python-list

[PATCH] allow partial replace in string.Template

2005-02-14 Thread Stefan Behnel
Hi! Here's a trivial patch against Lib/string.py that adds two new methods. The first replaces the template by a partially resolved substitution and the second creates a new, partially substituted template. I find those two useful enough for integration in the stdlib, especially the replacing on

Re: check if object is number

2005-02-14 Thread Mark English
Not sure if anyone's mentioned this yet, but just in case they haven't: Start bit o' Python >>> import operator >>> operator.isNumberType(1) True >>> operator.isNumberType(1.01) True >>> operator.isNumberType('a') False >>> operator.isNumberType('1') False End bit o' Python Have

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread jfj
Michael Hoffman wrote: Ilias Lazaridis wrote: b) Why does the Python Foundation not ensure, that the python source-code is directly compilable with MinGW? Why should they? It already runs on Windows with a freely available compiler. The point is that the freely available compiler wouldn't be fre

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Robert Kern
Ilias Lazaridis wrote: Robert Kern wrote: [snip] The answer to most of your questions is, "Because no one has yet volunteered their time and effort to get the job done." this answer do not fit in most questions. > please review them again. Against my better judgement, I have. It certainly fits a,

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Michael Hoffman wrote: Ilias Lazaridis wrote: [REQUOTE] Oh, I can play that game too: [REQUOTE] Identify what needs to be done and create a patch, and it will be accepted if it is a good patch. " c) Why are the following efforts not _directly_ included in the python source code base? http://jove.

Re: Tkinter option_add for menu radiobutton

2005-02-14 Thread Eric Brunel
On Sun, 13 Feb 2005 15:31:18 -0700, Bob Greschke <[EMAIL PROTECTED]> wrote: [snip] Root.option_add("*Radiobutton*selectColor", "black") also works fine for regular radiobuttons. What I can't do is get the selectColor of the radiobutton's in the menu to be black...the x.add_radiobutton() ones. Root

Re: FS: O'Reilly Python Pocket Reference

2005-02-14 Thread beliavsky
I think a better place than this newsgroup to offer used Python books for sale is Amazon or Ebay or Alibris. -- http://mail.python.org/mailman/listinfo/python-list

[newbie] Confused with raise w/o args

2005-02-14 Thread jfj
Hello. I am a bit confused with 'raise' without any arguments. Suppose the testcase below (i hope it's correct!): ## import sys class A: pass class B: pass def foo(): try: raise B except: pass def b1 (): try: raise A except: foo ()

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Brian Beck
Ilias Lazaridis wrote: > this answer do not fit in most questions. > > please review them again. Actually, it does. Please review them again. My questions: > a) Why does the Python Foundation not provide additionally a binary version, compiled with MinGW or another open-source compiler? Because no

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Fredrik Lundh wrote: Ilias Lazaridis wrote The idea that the Python Foundation cares about user needs would affect that. please let the users speak for themselves. I have. I've review several threads,publications, actions etc., that show that the users have this need. please review the initial th

gui scripting

2005-02-14 Thread Tonino
HI, I have a 2 phase question: Phase 1 is I am needing to automate a report generation from a proprietary product. Currently a person sits and input's the data into a GUI frontend and clicks's the appropriate buttons to start the report generation. What I am wanting todo is automate this, but s

keeping a COM server alive

2005-02-14 Thread [EMAIL PROTECTED]
I have implemented a local COM Server with win32com framework where all clients use the same global object (test_obj). So far it works, but when the last client is closed the gobal object is deleted because the pythonw.exe is closed. When I create a new client a new pythonw process is started. I ne

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Hello, there is a thread in comp.lang.python, and a poster suggested that I ask you directly. possibly you can answer the question c), at least from your side. Did you ever try to submit the patches to the main-source-code base of python? Thank you for your pyMinGW work and your time. - Ilias Laz

Problem with nested lists as arrays

2005-02-14 Thread benjamin . cordes
Hello, For a class modeling the block puzzle I use nested lists as arrays. Within this class there is a method for swaping elements. I have lots of trouble with that method but can't figure it out. It has probably to do with my unuseful approach to nested lists, but I don't want to write the code

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Diez B. Roggisch wrote: Where does that requirement come from? If you want to create large scale apps, the price for a msvc++ compiler shouldn't matter. And: Windows is a non-free platform at first. If you have to or want to develop on top of it, be prepared to pay. Its as simple as that. If you wa

Re: Problem with nested lists as arrays

2005-02-14 Thread Diez B. Roggisch
Some general remarks: > def getEmptySlot(self): > i = 0 > j = 0 > while i <= self.dim-1: > while j <= self.dim-1: > if self.elements[j][i] == -1: > return [j, i] > j = j+1 > j = 0 >

Re: keeping a COM server alive

2005-02-14 Thread Do Re Mi chel La Si Do
Hi ! I had also make a Python-COM-server. But, when I launch several clients, I obtain several instances of my COM-server. Finally, there are advantages and disadvantages in this established fact. But I can't use this way for to exchange data between several clients. For that, I use a TCP local s

Re: Alternative to raw_input ?

2005-02-14 Thread Simon Brunning
On Fri, 11 Feb 2005 17:37:19 +0100, BOOGIEMAN <[EMAIL PROTECTED]> wrote: > It looks to ugly this way. I want to press > any key without ENTER to continue You'll only got your users complaining that they haven't got an 'any' key... -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Brian Beck wrote: Ilias Lazaridis wrote: this answer do not fit in most questions. please review them again. Actually, it does. Please review them again. My questions: a) Why does the Python Foundation not provide additionally a binary version, compiled with MinGW or another open-source compiler?

Re: [PATCH] allow partial replace in string.Template

2005-02-14 Thread Nick Coghlan
a) Patches are more likely to be looked at if placed on the SF patch tracker. b) I don't quite see the point, given how easy these are to spell using the basic safe_substitute. You're replacing one liners with one-liners. Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Aust

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Robert Kern wrote: Ilias Lazaridis wrote: Robert Kern wrote: [snip] The answer to most of your questions is, "Because no one has yet volunteered their time and effort to get the job done." this answer do not fit in most questions. please review them again. Against my better judgement, I have. It c

Re: custom classes in sets

2005-02-14 Thread John Machin
vegetax wrote: > How can i make my custom class an element of a set? > > the idea is that it accepts file paths and construct a set of unique > files (the command "cmp" compares files byte by byte.),the files can > have different paths but the same content > Q: How do I transport ten sumo wrestle

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Duncan Booth
Ilias Lazaridis wrote: >> There is a OS-tool-chain supported on windows, cygwin. > > this depends on cygwin.dll, which is GPL licensed > > [or am I wrong?] It is GPL licensed with an amendment which prevents the GPL spreading to other open source software with which it is linked. "In accorda

nested lists as arrays

2005-02-14 Thread [EMAIL PROTECTED]
Hi, why can't I do this: dummy = self.elements[toy][tox] self.elements[toy][tox] = self.elements[fromy][fromx] self.elements[fromy][fromx] = dummy after initialising my nested list like this: self.elements = [[0 for column in range(dim)] for row in range(dim) ]

Re: [newbie] Confused with raise w/o args

2005-02-14 Thread jfj
jfj wrote: IMHO, a more clean operation of raise would be either: 1) raise w/o args allowed *only* inside an except clause to re-raise the exception being handled by the clause. Wait! second that. We would like to ### def bar(): raise def b5(): try: raise A e

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Simon Brunning
On Mon, 14 Feb 2005 14:23:08 +0200, Ilias Lazaridis <[EMAIL PROTECTED]> wrote: (snip) > But if those answers above were of official nature, I must seriously > rethink if I can rely on _any_ system which is based on python, as the > foundation and the community do not care about essential needs an

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Diez B. Roggisch
> One of the most funny things within open-source is that switching: > > first: > "we have powerfull solutions which beat this and that" > > then: > "hey, this is just volunteer work" > I don't see the contradiction here. It beats a great deal of commercial solutions in a lot of ways. But not o

Re: nested lists as arrays

2005-02-14 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi, > > why can't I do this: > > dummy = self.elements[toy][tox] > > self.elements[toy][tox] = self.elements[fromy][fromx] > self.elements[fromy][fromx] = dummy > > after initialising my nested list like this: > >self.elements = [[0 f

Re: nested lists as arrays

2005-02-14 Thread bruno modulix
[EMAIL PROTECTED] wrote: Hi, why can't I do this: dummy = self.elements[toy][tox] self.elements[toy][tox] = self.elements[fromy][fromx] self.elements[fromy][fromx] = dummy after initialising my nested list like this: self.elements = [[0 for column in range(dim)] for r

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread bruno modulix
Simon Brunning wrote: On Mon, 14 Feb 2005 14:23:08 +0200, Ilias Lazaridis <[EMAIL PROTECTED]> wrote: (snip) But if those answers above were of official nature, I must seriously rethink if I can rely on _any_ system which is based on python, as the foundation and the community do not care about ess

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread bruno modulix
Ilias Lazaridis wrote: I'm a newcomer to python: [EVALUATION] - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 My trollometer's beeping... -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')])

Re: [newbie] Confused with raise w/o args

2005-02-14 Thread Fredrik Lundh
"jfj" <[EMAIL PROTECTED]> wrote: > Wait! second that. We would like to hmm. are you seconding yourself, and refering to you and yourself as we? > here is another confusing case: > > ### > import sys > > class A: > pass > > class B: > pass > > def foo (): > try: > raise B >

Re: custom classes in sets

2005-02-14 Thread Fredrik Lundh
John Machin wrote: > Then before you rush and implement something, google around and look in > the Tools and Scripts directories in the Python distribution; I'm quite > sure I've seen something like a "duplicate file detector" written in > Python somewhere. first google hit: http://sebsauvag

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Simon Brunning
On Mon, 14 Feb 2005 14:12:57 +0100, bruno modulix <[EMAIL PROTECTED]> wrote: > > Why do you hate Perl and Ruby community that much ? Oh, I don't. But fair's fair - we've carried our share of the burden, surely? But-don't-get-me-started-on-those-Groovy-bastards-ly Y'rs, Simon B, [EMAIL PROTECTED]

Re: Kill GIL

2005-02-14 Thread Dave Brueck
Donn Cave wrote: Quoth Dave Brueck <[EMAIL PROTECTED]>: ... | Another related benefit is that a lot of application state is implicitly and | automatically managed by your local variables when the task is running in a | separate thread, whereas other approaches often end up forcing you to think in

Re: goto, cls, wait commands

2005-02-14 Thread Michael Hoffman
Erik Bethke wrote: At least I thought this was funny and cool! -Erik Thanks. ;) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with embedding fully qualified script name

2005-02-14 Thread Kamilche
To avoid pathname headaches, I've taken to including the following 3 lines at the top of every script that will be double-clicked: import os, sys pathname, scriptname = os.path.split(sys.argv[0]) pathname = os.path.abspath(pathname) os.chdir(pathname) -- http://mail.python.org/mailman/listinfo/p

Re: For American numbers

2005-02-14 Thread Peter Hansen
Michael Hoffman wrote: Peter Maas wrote: This kibi-mebi thing will probably fail because very few can manage to say "kibibyte" with a straight face :) I agree, I can't do it yet. I can write kiB and MiB though with a straight face, and find that useful. And here I thought MiB meant "Men In Black"..

Re: Alternative to raw_input ?

2005-02-14 Thread Peter Hansen
Simon Brunning wrote: On Fri, 11 Feb 2005 17:37:19 +0100, BOOGIEMAN <[EMAIL PROTECTED]> wrote: It looks to ugly this way. I want to press any key without ENTER to continue You'll only got your users complaining that they haven't got an 'any' key... That, of course, calls for this bit of abetting c

safest way to open files on all platforms

2005-02-14 Thread rbt
I believe that this is the safest way to open files on Windows, Linux, Mac and Unix, but I wanted to ask here just to be sure: fp = file('filename', 'rb') The 'b' on the end being the most important ingredient (especially on Windows as a simple 'r' on a binary file might cause some sort of corr

Re: safest way to open files on all platforms

2005-02-14 Thread Fredrik Lundh
"rbt" wrote: >I believe that this is the safest way to open files on Windows, Linux, Mac and >Unix, but I wanted >to ask here just to be sure: > > fp = file('filename', 'rb') > > The 'b' on the end being the most important ingredient (especially on Windows > as a simple 'r' on a > binary file

Re: Problem using win32com

2005-02-14 Thread oleaw
I am having a similar problem with a com+ API created in delphi. is this a win32com problem? -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem using win32com

2005-02-14 Thread oleaw
I am having a similar problem with a com+ API created in delphi. is this a win32com problem? -- http://mail.python.org/mailman/listinfo/python-list

Re: safest way to open files on all platforms

2005-02-14 Thread rbt
Fredrik Lundh wrote: "rbt" wrote: I believe that this is the safest way to open files on Windows, Linux, Mac and Unix, but I wanted to ask here just to be sure: fp = file('filename', 'rb') The 'b' on the end being the most important ingredient (especially on Windows as a simple 'r' on a binary

Re: safest way to open files on all platforms

2005-02-14 Thread Fredrik Lundh
"rbt" wrote: > I'm using 'rb' in a situation where all files on the drive are opened. I'm > not checking how the > file is encoded before opening it (text, unicode, jpeg, etc.) That's why I > though 'rb' would be > safest. if "safest way to open files" meant "safest way to open binary files",

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes The answer to most of your questions is, "Because no one has yet volunteered their time and effort to get the job done." this answer do not fit in most questions. please review them again. There you go. Failed the test. He

Re: Python UPS / FedEx Shipping Module

2005-02-14 Thread Gabriel Cooper
Tom Willis wrote: Are the modules just accessing the published apis for their webservices? I'm just wondering because I used to work for a logistics mgmt company that paid money to be a strategic partner with FedEx/UPS/Airborn etc so that they could information on how to return rates/print labels

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
Hi Robert, Note that this reaction is pretty specific to you and not to other newcomers. I couldn't agree more. This guy is amazing, I think he is an AI or nowhere near as bright as he thinks he is. Seems to get the same reaction regardless of newsgroup or language. His reaction to the Ruby cro

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes And yet there is not one company that has someone devoted full-time to developing Python. Not even Guido. Who's "Guido"? LOL Falling off my chair!! -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes the community do not care about essential needs and requirements. Wrong. They do. They just don't care about *your* essential needs and requirements which *you* want *others* to fulfill at *their* cost. As others have sai

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Simon Brunning <[EMAIL PROTECTED]> writes >On Mon, 14 Feb 2005 14:12:57 +0100, bruno modulix <[EMAIL PROTECTED]> wrote: >> >> Why do you hate Perl and Ruby community that much ? > >Oh, I don't. But fair's fair - we've carried our share of the burden, surely? He is a

Re: [PATCH] allow partial replace in string.Template

2005-02-14 Thread Stefan Behnel
Nick Coghlan wrote a) Patches are more likely to be looked at if placed on the SF patch tracker. see your own b), I wanted to discuss them first. b) I don't quite see the point, given how easy these are to spell using the basic safe_substitute. You're replacing one liners with one-liners. Still,

Re: For American numbers

2005-02-14 Thread Neil Benn
Scott David Daniels wrote: Kind of fun exercise (no good for British English). what's American about it? If anything, it's more French than American ;-) N -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154

Re: Python UPS / FedEx Shipping Module

2005-02-14 Thread Tom Willis
Good to know. i've always thought that python would make an excellent solution for transportation and logistics software. I used to maintain a nasty vb6 solution, and a lot of the brick walls could have been overcome by utilizing the dynamic nature of python. But, there is not enough hours in t

PIG/IP Meeting (Python Interest Group In Princeton) Wed. Feb. 16.

2005-02-14 Thread [EMAIL PROTECTED]
The Python Interest Group In Princeton is a Central New Jersey discussion and educational group for the Python computer language. Next Meeting What: PIG/IP meeting When: Wed, February 16th, 2005, at 7pm Event Description: PIG/IP will hold its second meeting on Feb. 16, 2005

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Grant Edwards
On 2005-02-14, Ilias Lazaridis <[EMAIL PROTECTED]> wrote: > Fredrik Lundh wrote: >> Ilias Lazaridis wrote >> >>>The idea that the Python Foundation cares about user needs would affect that. >> >> please let the users speak for themselves. > > I have. > > I've review several threads,publications,

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Stephen Kellett <[EMAIL PROTECTED]> writes Hi Robert, Weird, you hit "reply" and the newsreader does a "post". C'est la vie. -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.co.uk RSI Information:http://www.objmedia.demon.co.uk/rsi.html -

newbie question - identifying name of method

2005-02-14 Thread mirandacascade
Does Python provide some sort of mechanism for answering the question: what method am I in? Example: assume the file example1.py contains the following code: def driver(): print 'hello world' print __name__ print 'the name of this method is %s' % str(???) The output I'd like to see i

Re: newbie question - identifying name of method

2005-02-14 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Does Python provide some sort of mechanism for answering the question: > what method am I in? > > Example: assume the file example1.py contains the following code: > > def driver(): >print 'hello world' >print __name__ >print 'the name of this method is %s' %

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread jfj
bruno modulix wrote: Ilias Lazaridis wrote: I'm a newcomer to python: [EVALUATION] - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 My trollometer's beeping... When person 'A' calls person 'B' a troll, these are the possibilities:

  1   2   3   4   >