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)

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 __hashcode__(s): return

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 platforms

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'd much

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

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 compile python

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 designed

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 straight

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

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

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 designed

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

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] Obvious:

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,

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

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.

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,other.path)).read() def

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,

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:

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

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 with

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 this

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

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

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

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 you

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 something

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. /F -- 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

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 Haven't looked at

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

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?

[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 one

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

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

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

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

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 i = i + 1

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

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],

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,

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 wrestlers on a

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 accordance

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

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 and

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 on every

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 for column

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

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

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 except: pass

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:

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) --

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

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

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 might

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, why

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

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

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 Limited

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 said,

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 already

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.

Re: For American numbers

2005-02-14 Thread Neil Benn
Scott David Daniels wrote: Kind of fun exercise (no good for British English). snip 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

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

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, actions etc.,

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

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: mxCGIPython binaries for Python 2.3.5

2005-02-14 Thread EP
Original Message From: Oleg Broytmann [EMAIL PROTECTED] http://www.egenix.com/files/python/mxCGIPython.html doesn't involve downloading unpacking a file. It is unpackable, ready-to-run python binary. PS. I am neither author nor maintainer, I only

Re: mxCGIPython binaries for Python 2.3.5

2005-02-14 Thread Oleg Broytmann
On Mon, Feb 14, 2005 at 08:06:03AM -0800, EP wrote: I'm unschooled in non-Windows binaries. Does this mean it may be possible to download this package onto a (for example) SunOS system, unpack and have Python up and running? That would be sweet... Almost. You also need *.py from the

Re: mxCGIPython binaries for Python 2.3.5

2005-02-14 Thread Fredrik Lundh
EP [EMAIL PROTECTED] wrote: http://www.egenix.com/files/python/mxCGIPython.html I'm unschooled in non-Windows binaries. Does this mean it may be possible to download this package onto a (for example) SunOS system, unpack and have Python up and running? yes. (that's the whole point, of

Python C API version mismatch for module pytspc ---Gyach voice chat problems

2005-02-14 Thread atulhi
I've been having some problems with gyach, when trying to open the PyVoice chat portion of it. Following error is received *** /usr/local/share/gyach/pyvoice/pytsp.py:2: RuntimeWarning: Python C API version mismatch for

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

2005-02-14 Thread Diez B. Roggisch
Now, it's rather common to accuse people of trolling these days. The fact that Markus Wankus said that Ilias is a troll does not mean that everybody should reply to him in that tone. This is a one .vs many battle and it sucks. Just because someone says somebody else is a troll surely is not

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Pat
Wow! I must say, I'm less than impressed with the responses so far. I know Ilias can give the impression that he is just trolling, but I can assure you he is not. At least, not in this case. ;-) So in an effort to make some headway, I'm going to try to summarize the current state of affairs.

nested lists as arrays

2005-02-14 Thread naturalborncyborg
Hi, I'm using nested lists as arrays and having some problems with that approach. In my puzzle class there is a swapelement method which doesn't work out. Any help and comments on the code will be appreciated. Thanks. # Puzzle.py # class for a sliding block puzzle # an starting state of a

Re: Tkinter option_add for menu radiobutton

2005-02-14 Thread Bob Greschke
Eric Brunel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Fredrik Lundh
Pat wrote: The bottom line is that compiling C extension modules on the Windows platform for Python 2.4 is, today, a royal pain in the ass. really? python setup.py install works for me. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: webbrowser.py

2005-02-14 Thread Timothy Babytch
Jeremy Sanders wrote: It occurs to me that webbrowser could be more intelligent on Linux/Unix systems. Both Gnome and KDE have default web browsers, so one could use their settings to choose the appropriate browser. I haven't been able to find a freedesktop common standard for web browser,

ValueError: invalid literal for int(): 1.0000000000e+00

2005-02-14 Thread Martin MOKREJ
Hi, is this a bug or feature that I have to use float() to make int() autoconvert from it? $ python Python 2.3.4 (#1, Feb 14 2005, 10:00:27) [GCC 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)] on linux2 Type help, copyright, credits or license for more information. a = 1 %5.10e % (a)

Re: nested lists as arrays

2005-02-14 Thread [EMAIL PROTECTED]
Diez B. Roggisch wrote: [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:

Re: nested lists as arrays

2005-02-14 Thread Fredrik Lundh
naturalborncyborg [EMAIL PROTECTED] wrote: Hi, I'm using nested lists as arrays and having some problems with that approach. In my puzzle class there is a swapelement method which doesn't work out. what happens, and what do you expect? Any help and comments on the code will be appreciated.

Re: Probel with socket recv function on Win2000

2005-02-14 Thread Fredrik Lundh
Guy Machlev wrote: I have a problem with the socket recv() function while using it on win-2000, the problem accrue while receiving data from socket in a constant format (e.g. 1Byte then 4Bytes and then number of bytes according to the previous 4Bytes number), this receiving action fail after

Re: nested lists as arrays

2005-02-14 Thread Michael Spencer
naturalborncyborg wrote: Hi, I'm using nested lists as arrays and having some problems with that approach. In my puzzle class there is a swapelement method which doesn't work out. What doesn't work out? On casual inspection that method seems to work: p = Puzzle(2) p.elements[0][0] = 1

[newbie] - How to remain at prompt after script execution?

2005-02-14 Thread Amit Dhingra
I am a total newbie learning the very basics I would like to excute a script and upon completion, how can I just a python prompt with the functions and variables already defined. I know you can do this in the window gui(IDLE). I was wondering if this can be done in POSIX systems as well. --

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

2005-02-14 Thread jfj
Fredrik Lundh wrote: jfj [EMAIL PROTECTED] wrote: Wait! second that. We would like to hmm. are you seconding yourself, and refering to you and yourself as we? :) we refers to all python users. no. your foo() function raises B, and is called from the exception handler in b1. exception handlers

Re: ValueError: invalid literal for int(): 1.0000000000e+00

2005-02-14 Thread Fredrik Lundh
Martin MOKREJĀ© wrote: is this a bug or feature that I have to use float() to make int() autoconvert from it? it's by design, of course. 1.00e+00 is not an integer. if you want to treat a floating point literal as an integer, you have to use an explicit conversion. /F --

  1   2   3   >