calculate with date

2005-02-14 Thread Detlef Jockheck
Hi, I have a date-string given in format "dd.mm.". Now I would like to add 100 days. How can this be solved in python? ciao Detlef -- are you ready - attention - go -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expression question

2005-02-14 Thread Fredrik Lundh
Bruno Desthuilliers wrote: >> match = STX + '(.*)' + ETX >> >> # Example 1 >> # This appears to work, but I'm not sure if the '+' is being used in >> the regular expression, or if it's just joining STX, '(.*)', and ETX. >> >> if re.search(STX + '(.*)' + ETX,data): >> print "Matches" >> >> # Exam

Re: gui scripting

2005-02-14 Thread Follower
> >Second phase will have this done on a Windows platform... but that is > >second priority ... --Phil. -- http://mail.python.org/mailman/listinfo/python-list

Re: gui scripting

2005-02-14 Thread Tonino
hmm - there is a problem - Android uses Xtest extensions - this is BAD ;) I Need to be able to get values from the form that is returned ... and the Xtest stuff does not allow you to access the values of a returned form in the GUI ... example : if the GUI has a form that is returned and in this

[perl-python] problem: reducing comparison

2005-02-14 Thread Xah Lee
here's a interesting real-world algoritm to have fun with. attached below is the Perl documentation that i wrote for a function called "reduce", which is really the heart of a larger software. The implementation is really simple, but the key is to understand what the function should be. I'll post

Re: image fourier transform

2005-02-14 Thread Tim Roberts
Johannes Ahl-mann <[EMAIL PROTECTED]> wrote: > >i've been looking all around the net (google is my friend ;-) for a >module to apply fourier transformations on images. the different ones in >numerical python and scientific python seem all to be operating on >sequences and therefore seem to be 1D fo

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 15)

2005-02-14 Thread Cameron Laird
QOTW: "I've forgotten what we are arguing about, but I'm sure I'm right." -- Jive Dadson "I believe the best strategy against Identity theft is bad credit." -- Tom Willis "You can't live without unit tests. And once you have unit tests, the added value of declarations is tiny, and their cost re

Re: os.rename() doesn't work w/unicode??

2005-02-14 Thread Serge Orlov
fanbanlo wrote: > C:\MP3\001.txt -> 0.txt > C:\MP3\01. ??? - (???).mp3 -> 1.mp3 > > Traceback (most recent call last): > File > "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", > line 310, in RunScript > exec codeObject in __main__.__dict__ > File "C:\MP3\!Renam

Re: wxPython OGL future

2005-02-14 Thread D H
PD wrote: I don't think I want that much out of it necessarily. I just feel really weird writing new software with deprecated libraries. By the time Im done with my project, I have to put all these disclaimers on how the new versions of wxWidgets might not work. The thing I am really concerened abo

Re: gui scripting

2005-02-14 Thread Tonino
thanks - this helps ;)) will play with android ... -- http://mail.python.org/mailman/listinfo/python-list

Re: Commerical graphing packages?

2005-02-14 Thread Robert Kern
John Hunter wrote: Although it is a free and open source package, I think that the image quality and support is on par with if not superior to what you find in many commercial solutions. Amen to that. The ChartDirector demos looked very ugly to my eye. matplotlib plots usually look quite good with

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

2005-02-14 Thread Terry Reedy
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Terry Reedy wrote: >> int(somestring) without a radix argument requires that somestring be an >> decimal integer literal and nothing more and nothing else. > > but specifying a radix won't help you, though: My stateme

Re: wxPython OGL future

2005-02-14 Thread PD
Hi Peter, I did look at the code, and did run several examples on it. It _is_ pretty well organized and easy to read through, and youre right, I think i might be able to add missing functionality if need be. I don't think I want that much out of it necessarily. I just feel really weird writing ne

Re: wxPython OGL future

2005-02-14 Thread PD
Hi D H, Thank you for the suggestions. I would be interested in Jython but I had some rough runs with it and I think I would kind of want to stick to wxWidgets since I think the GUI is kind of cleaner. Im trying to avoid reinventing the wheel so pyxel is a too little of a framework for me. I look

os.rename() doesn't work w/unicode??

2005-02-14 Thread fanbanlo
C:\MP3\001.txt -> 0.txt C:\MP3\01. ??? - (???).mp3 -> 1.mp3 Traceback (most recent call last): File "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObject in __main__.__dict__ File "C:\MP3\!RenameNum.py", line 40, in ? rena

Re: image fourier transform

2005-02-14 Thread Robert Kern
Johannes Ahl-mann wrote: hi, i've been looking all around the net (google is my friend ;-) for a module to apply fourier transformations on images. the different ones in numerical python and scientific python seem all to be operating on sequences and therefore seem to be 1D fourier transform. Huh?

image fourier transform

2005-02-14 Thread Johannes Ahl-mann
hi, i've been looking all around the net (google is my friend ;-) for a module to apply fourier transformations on images. the different ones in numerical python and scientific python seem all to be operating on sequences and therefore seem to be 1D fourier transform. anyone know a library/module

Re: newbie question convert C to python

2005-02-14 Thread Paul Rubin
[EMAIL PROTECTED] writes: > How do i handle this piece of code in python: > > # define vZero 15 > # define vOne 20 > > unsigned int vTable[Zero][One] > > if(vGroup[vZero][vOne] == 0) > { > vGroup[vZero][vOne]-- > . > . > } Simplest might be with a dic

Re: Iterator / Iteratable confusion

2005-02-14 Thread Terry Reedy
"Michael Spencer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Terry Reedy wrote: >> iter(iterator) is iterator is part of the iterater protocol > But, notwithstanding the docs, it is not essential that > iter(iterator) is iterator If a program depends on that invariant, then i

newbie question convert C to python

2005-02-14 Thread doodle4
How do i handle this piece of code in python: # define vZero 15 # define vOne 20 unsigned int vTable[Zero][One] if(vGroup[vZero][vOne] == 0) { vGroup[vZero][vOne]-- . . } Thanks, -d4 -- http://mail.python.org/mailman/listinfo/python-list

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

2005-02-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Peters <[EMAIL PROTECTED]> wrote: >[Ilias Lazaridis] >... . . . >That leaves volunteers, or a company that wants what you want enough >to pay for it on their own (which has happened, but not

Re: wxPython OGL future

2005-02-14 Thread Peter Hansen
PD wrote: I am sort of a new developer to python and working in an academic environment. I climbed the learning curve on wxPython far enough to get the functionality I want out of it so far... Now Im in need of a diagramming library (something visio-like) to use for my software and the only option

Re: Inheritance error in python 2.3.4???

2005-02-14 Thread [EMAIL PROTECTED]
Thanks guys for all your input! I really appreciate the prompt replies! As you can tell I'm having a bit of trouble throwing out old habits... I'm not new to loosely typed languages (I'm a big PHP fan) but learning a new object model has been a little tough... I'm trying to make my old ideas fit

Re: wxPython OGL future

2005-02-14 Thread D H
PD wrote: Hi Everyone, I am sort of a new developer to python and working in an academic environment. I climbed the learning curve on wxPython far enough to get the functionality I want out of it so far... Now Im in need of a diagramming library (something visio-like) to use for my software and the

Re: wxPython OGL future

2005-02-14 Thread PD
Hi Tom, OGL is a library that is part of wxPython (wx.lib.ogl). I am trying to put together some kind of schematic editor. It would be a block diagram of modules and sometimes a statemachine type of figure. Similar to something Visio does, but about a gazillion times simpler. Thanks Pouya -- ht

SONO A PRIX DISCOUNT

2005-02-14 Thread YANOF
Gagnez 5% du montant des commandes, devenez affilié... Double DERBY 69 € Activ 212 229 € PR-80 85 € Arm Laser 109 € PA-2400 189 € Faites comme moi, affiliez vous et gagner de l'arge

Re: Newbie help

2005-02-14 Thread Kent Johnson
Kent Johnson wrote: You might be interested in the Python tutor mailing list which is specifically intended for beginners. http://mail.python.org/mailman/listinfo/tutor Ah, I don't mean to imply that this list is unfriendly to beginners, or that you are not welcome here! Just pointing out another

Re: Newbie help

2005-02-14 Thread Kent Johnson
Chad Everett wrote: Nope, I am trying to learn it on my own. I am using the book by Michael Dawson. You might be interested in the Python tutor mailing list which is specifically intended for beginners. http://mail.python.org/mailman/listinfo/tutor Kent -- http://mail.python.org/mailman/listinf

Re: regular expression question

2005-02-14 Thread snacktime
> You may want something like: > if re.search('%s(.*)%s' % (STX, ETX), data): > Ah I didn't even think about that... Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Write Unicode str as utf-8

2005-02-14 Thread Erik Max Francis
kent sin wrote: Python support unicode, but some library don't. Write is one of them. When writing a csv file, The rows contains numbers and unicode str. It is a little pain to first convert all unicode str to utf-8 before writing the row. Why? S = U.encode('utf-8') Are there anyway I can

Re: regular expression question

2005-02-14 Thread Bruno Desthuilliers
snacktime a écrit : The primary question is how do I perform a match when the regular expression contains string variables? For example, in the following code I want to match a line that starts with STX, then has any number of characters, then ends with STX. Example 2 I'm pretty sure works as I ex

Re: wxPython OGL future

2005-02-14 Thread Tom Willis
What are you looking to do exactly? I don't know what OGL is. On Mon, 14 Feb 2005 16:50:51 -0800 (PST), PD <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I am sort of a new developer to python and working in an academic > environment. I climbed the learning curve on wxPython far enough to get >

Re: Iterator / Iteratable confusion

2005-02-14 Thread Terry Reedy
"Francis Girard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] (Note for oldtimer nitpickers: except where relevant, I intentionally ignore the old and now mostly obsolete pseudo-__getitem__-based iteration protocol here and in other posts.) Le dimanche 13 Février 2005 23:58, Te

Re: DHTML control from Python?

2005-02-14 Thread Bruno Desthuilliers
Kenneth McDonald a écrit : In article <[EMAIL PROTECTED]>, aurora <[EMAIL PROTECTED]> wrote: What are the win 32 modules? Searching "OS X win 32" on Google gave me a bit too much... I guess Aurora did not took time to read your whole post. Win32 modules are for Windows, of course... -- http://mail

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

2005-02-14 Thread Jeff Shannon
Pat wrote: I think the same applies to developers. Not every programmer is willing to go through a lot of pain and effort just to get something simple to work. True... but given I.L.'s insistence on a rather stringent set of requirements (fully open-source toolchain to produce closed-source so

Re: [long] nested lists as arrays

2005-02-14 Thread bruno modulix
[EMAIL PROTECTED] a écrit : Thanks for the code. What I want to do is this: I want to solve the block puzzle problem. The problem is as follows: You have a nxn Array of Numbers and one empty space. Now you there are up to four possible moves: up, right, down and left, so that each neighbour of the

Re: is there a safe marshaler?

2005-02-14 Thread Paul Rubin
Irmen de Jong <[EMAIL PROTECTED]> writes: > I know a bit about this stuff, but not nearly enough to come > up with a water tight design by myself, so it's much easier > and safer to rely on trusted work by others. Yeah, at this point I think it's safest to just use SSL. If I use Pyro for anything

Write Unicode str as utf-8

2005-02-14 Thread kent sin
Python support unicode, but some library don't. Write is one of them. When writing a csv file, The rows contains numbers and unicode str. It is a little pain to first convert all unicode str to utf-8 before writing the row. Are there anyway I can patch python such that It will convert the unicod

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

2005-02-14 Thread Tim Peters
[Ilias Lazaridis] ... > Let's see: > > The process would be: > > a) A Python Foundation official states: "of course we accept diversity > and of course we are intrested that our source-code-base compiles > directly with MinGW (and other compilers)". Well, I'm a Director of the Python Software Foun

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
Paul Rubin wrote: Hmm, you also want a random blob in each packet (including the session start) included in the authentication of the next packet, so the attacker can't cut and paste messages from old sessions into the current ones. You know, by the time you're through designing this you may be be

regular expression question

2005-02-14 Thread snacktime
The primary question is how do I perform a match when the regular expression contains string variables? For example, in the following code I want to match a line that starts with STX, then has any number of characters, then ends with STX. Example 2 I'm pretty sure works as I expect, but I'm not su

Re: Kill GIL

2005-02-14 Thread Aahz
In article <[EMAIL PROTECTED]>, Donn Cave <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz) >wrote: >> >> Yes. I just get a bit irritated with some of the standard lines that >> people use. > >Hey, stop me if you've heard this one: "I used threads to solve >my

wxPython OGL future

2005-02-14 Thread PD
Hi Everyone, I am sort of a new developer to python and working in an academic environment. I climbed the learning curve on wxPython far enough to get the functionality I want out of it so far... Now Im in need of a diagramming library (something visio-like) to use for my software and the only opt

Re: is there a safe marshaler?

2005-02-14 Thread Paul Rubin
Irmen de Jong <[EMAIL PROTECTED]> writes: > > Note you should also put sequence numbers in the messages, to stop > > the attacker from fooling you by selectively deleting or replaying > > messages. > > Thanks for the tip. I'll think about this. Hmm, you also want a random blob in each packet (inc

Ann: PyPy Sprint before PYCON 2005 in Washington

2005-02-14 Thread Christian Tismer
PyPy Sprint before PYCON 2005 in Washington --- In the four days from 19th March till 22th March (inclusive) the PyPy team will host a sprint on their new Python-in-Python implementation. The PyPy project was granted funding by the European Union as part of

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
Fredrik Lundh wrote: the bug had nothing to do with the XML-RPC protocol itself; True, sorry for the confusion. I should have written it more precisely. it was a weakness in the SimpleXMLRPCServer framework which used reflection to automatically publish instance methods (if you use getattr repeated

Re: How can I tell if my host supports Python?

2005-02-14 Thread Jeff Epler
If you have a shell, it's as simple as typing "python" and seeing if the interactive interpreter appears: $ python Python 2.3.3 (#1, May 7 2004, 10:31:40) [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

Re: [Errno 18] Invalid cross-device link using os.rename

2005-02-14 Thread Jeff Epler
mv is a surprisingly complex program, while os.rename is a wrapper around rename(2) which is probably documented on your system to return EXDEV under these circumstanes. os.xxx is generally a fairly thin wrapper around what your OS provides, and inherits all the "gotchas". For some activities, os

Re: 64 bit Python

2005-02-14 Thread Jeff Epler
There's not enough information to guess the "real problem", but it could be this: "variable size" objects (declared with PyObject_VAR_HEAD) are limited to INT_MAX items since the ob_size field is declared as 'int'. This means that a Python string, tuple, or list (among other types) may be limited

How can I tell if my host supports Python?

2005-02-14 Thread Charles Stricklin
I'd like to use Planet (http://planetplanet.org/) to aggregate my members blogs into one big blog, and my host (http://www.bodhost.com) says they support Python, but I see nothing anywhere on their web site including my control panel that leads me to believe they do. Is there any way to determine

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

2005-02-14 Thread Robert Kern
Ilias Lazaridis wrote: 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 bette

Re: Inheritance error in python 2.3.4???

2005-02-14 Thread Jack Diederich
On Tue, Feb 15, 2005 at 10:56:23AM +1100, Delaney, Timothy C (Timothy) wrote: > [EMAIL PROTECTED] wrote: > > > I guess I could just use one underscore but that means it is > > easier for other people to get at my implementation details (which, > > coming from a C++ background really bothers me

Re: Kill GIL

2005-02-14 Thread Donn Cave
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz) wrote: > Yes. I just get a bit irritated with some of the standard lines that > people use. Hey, stop me if you've heard this one: "I used threads to solve my problem - and now I have two problems!" Donn Cave, [EMAIL PROTECTED] -- h

Re: is there a safe marshaler?

2005-02-14 Thread Fredrik Lundh
Irmen de Jong wrote: >> I haven't looked at that bug carefully yet but yes, anything exposed >> to the internet has to be done very carefully, and XML-RPC missed >> something. > > What I know of it is that you had the possibility to arbitrarily follow > attribute paths, including attributes that s

Re: parsing IMAP responses?

2005-02-14 Thread Grant Edwards
On 2005-02-14, Tony Meyer <[EMAIL PROTECTED]> wrote: >> Is there a library somewhere that impliments the IMAP protocol >> syntax? > > Twisted has pretty good IMAP support (particularly client), and it's much > higher level than imaplib. It probably does what you're after. I'll take a look. > Of

Re: DHTML control from Python?

2005-02-14 Thread Kenneth McDonald
In article <[EMAIL PROTECTED]>, aurora <[EMAIL PROTECTED]> wrote: What are the win 32 modules? Searching "OS X win 32" on Google gave me a bit too much... Thanks, Ken > IE should be able to do that. Install the win32 modules. Then you should > simply embed Python using

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
Paul Rubin wrote: Yes, that's what I meant, using hmac to authenticate using a shared secret, sending the rest in the clear. Note you should also put sequence numbers in the messages, to stop the attacker from fooling you by selectively deleting or replaying messages. Thanks for the tip. I'll thin

Re: graphing

2005-02-14 Thread Fernando Perez
Jan Rienyer Gadil wrote: > i'm currently using python 2.3(enthought edition) on win 2000/xp. > i'm using boa constructor on the GUI part and matplotlib 0.71 on > plotting the graph. You should post this on the matplotlib list directly, where your chances of a reply are much better. I use matplot

RE: Inheritance error in python 2.3.4???

2005-02-14 Thread Delaney, Timothy C (Timothy)
[EMAIL PROTECTED] wrote: > I guess I could just use one underscore but that means it is > easier for other people to get at my implementation details (which, > coming from a C++ background really bothers me). This is the correct solution, and getting over being bothered about it is the correc

Re: Inheritance error in python 2.3.4???

2005-02-14 Thread Paul Rubin
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > The problem is that I actually do need them to be private to the > outside world... but not to subclasses. I guess what I actually need > is something like "protected" in C++ but I don't think I'm going to > get that luxury. The only way to ma

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Robert Kern
Ilias Lazaridis wrote: Duncan Booth wrote: 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 wh

Re: Inheritance error in python 2.3.4???

2005-02-14 Thread [EMAIL PROTECTED]
The problem is that I actually do need them to be private to the outside world... but not to subclasses. I guess what I actually need is something like "protected" in C++ but I don't think I'm going to get that luxury. I think what's happening in my example is that the name mangling is lookin

Re: nested lists as arrays

2005-02-14 Thread Michael Spencer
Terry Reedy wrote: <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] def setRandomState(self): # container for the elements to pick from container = [1,2,3,4,5,6,7,8,-1] # create elements of puzzle randomly i = 0 j = 0 while i <= self.dim-1: whil

Re: is there a safe marshaler?

2005-02-14 Thread Paul Rubin
Irmen de Jong <[EMAIL PROTECTED]> writes: > > Well, ok, if you trust then other end then I think it's enough to just > > authenticate all the pickles (say using hmac.py) without needing > > something as heavyweight as SSL. > > An interesting idea that hadn't crossed my mind yet. Pyro *does* > alr

Re: Inheritance error in python 2.3.4???

2005-02-14 Thread Steven Bethard
[EMAIL PROTECTED] wrote: class baseClass(object): __Something = "Dumb!" def getSomething( self ): return self.__Something class subClass(baseClass): def setSomething( self , aSomething ): self.__Something = aSomething anObject = subClass() anO

Re: Multidimensional arrays - howto?

2005-02-14 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > I am trying to convert some C code into python. Since i am new to > python, i would like to know how to deal with multidimensional arrays? http://www.python.org/doc/faq/programming.html#how-do-i-create-a-multidimensional-list might be helpful. -- http://mail.p

Re: Multidimensional arrays - howto?

2005-02-14 Thread Daniel Yoo
[EMAIL PROTECTED] wrote: : Hello all, : I am trying to convert some C code into python. Since i am new to : python, i would like to know how to deal with multidimensional arrays? Here you go: http://python.org/doc/faq/programming.html#how-do-i-create-a-multidimensional-list Also, if your tab

Re: multi threading in multi processor (computer)

2005-02-14 Thread Irmen de Jong
Leif K-Brooks wrote: 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 splatt

Re: Inheritance error in python 2.3.4???

2005-02-14 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > In trying to construct a good object model in a recent project of mine, > I ran across the following peculiarity in python 2.3.4 (haven't tried > any newer versions): > > Say you have a base class that has an attribute and an accessor > function for that attribute (just

Re: Python UPS / FedEx Shipping Module

2005-02-14 Thread Brad Clements
_ "Gabriel Cooper" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > >Are the modules just accessing the published apis for their webservices? > Yes, they use the free API's that have always been freely available. > They're just *Impossible* to find on either of UPS's OR FedEx's > we

Re: [NewBie] Tut0r Thing

2005-02-14 Thread Daniel Yoo
: if you're talking about the "tutor at python.org" mailing list, it's a mailing list : that you send mail to and get mails from, as explained on the tutor mailing : list page: :http://mail.python.org/mailman/listinfo/tutor Hello, Also, from the odd spelling of the subject line, I suspect

Multidimensional arrays - howto?

2005-02-14 Thread doodle4
Hello all, I am trying to convert some C code into python. Since i am new to python, i would like to know how to deal with multidimensional arrays? Thanks, -Joe Here's a snippet of what i am trying to convert: # define table0 15 # define table1 20 unsigned int Table[table0][table1] if(Table[t

RE: parsing IMAP responses?

2005-02-14 Thread Tony Meyer
> Is there a library somewhere that impliments the IMAP protocol > syntax? Twisted has pretty good IMAP support (particularly client), and it's much higher level than imaplib. It probably does what you're after. Of course, the catch is that you have to use twisted <0.5 wink>. =Tony.Meyer --

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

2005-02-14 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Steve Horsley <[EMAIL PROTECTED]> writes Stephen Kellett wrote: Who's "Guido"? LOL Falling off my chair!! I think the expression you are looking for is ROFL! :-) Yes, but with that I could've been standing up before ending up on the floor. I wrote it as I fel

Inheritance error in python 2.3.4???

2005-02-14 Thread [EMAIL PROTECTED]
In trying to construct a good object model in a recent project of mine, I ran across the following peculiarity in python 2.3.4 (haven't tried any newer versions): Say you have a base class that has an attribute and an accessor function for that attribute (just a simple get). Then you inherit that

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
Well, ok, if you trust then other end then I think it's enough to just authenticate all the pickles (say using hmac.py) without needing something as heavyweight as SSL. An interesting idea that hadn't crossed my mind yet. Pyro *does* already have connection authentication that uses md5 (and hmac s

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

2005-02-14 Thread Ilias Lazaridis
[Sorry, I'm to tired to read more posts today. I'll try to answer to each message adressed to me tomorrow. Thank you for your time.] - I find this thread facinating. I don't know wich of the posters in this thread belong to the python team. Nearly no one community member gives simply some answers

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Ilias Lazaridis
Duncan Booth wrote: 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 ac

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

2005-02-14 Thread Ilias Lazaridis
Stephen Kellett wrote: In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes I like to synchronize any efforts with the existing ones. I assume the reason for doing that would be to avoid duplicating effort? [...] - (off-topic suggestions processing model) Your suggestions w

Re: parsing IMAP responses?

2005-02-14 Thread Grant Edwards
On 2005-02-14, Damien Wyart <[EMAIL PROTECTED]> wrote: > * Grant Edwards <[EMAIL PROTECTED]> in comp.lang.python: >> Is there a library somewhere that impliments the IMAP protocol syntax? > > Maybe the "core" part of getmail could be reused, it seems > cleanly written. > http://www.qcc.ca/~charlesc

Re: nested lists as arrays

2005-02-14 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >def setRandomState(self): > # container for the elements to pick from > container = [1,2,3,4,5,6,7,8,-1] > > # create elements of puzzle randomly > i = 0 > j = 0 > while i <= self.dim-1: >

Re: array of bits?

2005-02-14 Thread MM
Thanks people. List it is. matthew. -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a safe marshaler?

2005-02-14 Thread Paul Rubin
Irmen de Jong <[EMAIL PROTECTED]> writes: > > What do you do about the security issue if you're using pickle? Do > > you have to trust the other end to not send you malicious pickles? > > I do nothing about it. > Yes, you have to trust the other end. > So you have to use your own -or Pyro's- auth

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

2005-02-14 Thread Delaney, Timothy C (Timothy)
Stephen Kellett wrote: > 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!! See, the problem is t

Re: parsing IMAP responses?

2005-02-14 Thread Damien Wyart
* Grant Edwards <[EMAIL PROTECTED]> in comp.lang.python: > Is there a library somewhere that impliments the IMAP protocol syntax? Maybe the "core" part of getmail could be reused, it seems cleanly written. http://www.qcc.ca/~charlesc/software/getmail-4/ -- DW -- http://mail.python.org/mailman/l

Re: Kill GIL (was Re: multi threading in multi processor (computer))

2005-02-14 Thread Paul Rubin
[EMAIL PROTECTED] (Aahz) writes: > >[phr] The day is coming when even cheap computers have multiple cpu's. > >See hyperthreading and the coming multi-core P4's, and the finally > >announced Cell processor. > > > >Conclusion: the GIL must die. > > It's not clear to what extent these processors will

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
Paul Rubin wrote: Yes, however, you can at least set the protocol level. Marshal doesn't give you that option. That's right. So good for Pyro then :) It works most of the time, even across different Python versions, unless using mobile code. What do you do about the security issue if you're using

Re: Kill GIL

2005-02-14 Thread Aahz
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Aahz) writes: >> >> (Have you >> actually written any threaded applications in Python?) > >Yes. Have you ever asked a polite question? Yes. I just get a bit irritated with some of the standard lines that pe

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

2005-02-14 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > If it is a programming language, the requirement "using an open-source > toolchain" is a rational and valid one. It is. However, mingW has nothing to do with "using an open-sourcer toolchain". Python runs in an environment with a full, open-source too

Re: parsing IMAP responses?

2005-02-14 Thread Fredrik Lundh
Grant Edwards wrote: >>> Is there a library somewhere that impliments the IMAP protocol >>> syntax? >> >> It's very messy. > > It sure is. You'd think something intended to be machine-readable > would be easier to parse. nobody knows what the IMAP protocol designers intended... (it's not quite

Re: tk resource file for geometry?

2005-02-14 Thread Fredrik Lundh
Gabriel B. wrote: > i'm using almost every widget property from my pyTk programs in the > form of resources, like: > self.tk.option_add ( "*InputClass*background", "White" ) > > In the widget creation i have only the Class and the Command > attribute, but i'm having to add some tk options to the

Re: parsing IMAP responses?

2005-02-14 Thread Grant Edwards
On 2005-02-14, Paul Rubin wrote: >> Is there a library somewhere that impliments the IMAP protocol >> syntax? > > It's very messy. It sure is. You'd think something intended to be machine-readable would be easier to parse. > I don't know of one that's in distribution. That's what I thought ba

Re: Kill GIL

2005-02-14 Thread Mike Meyer
[EMAIL PROTECTED] (Aahz) writes: > (Have you > actually written any threaded applications in Python?) Yes. Have you ever asked a polite question? http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.py

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

2005-02-14 Thread Steve Horsley
Stephen Kellett wrote: 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!! I think the expression you are looking for

Re: Python 2.4 unable to find module.

2005-02-14 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > Python built and installed fine. PyXML built and installed with no > complaining but, when I give the commands below it cannot find the > module. > > Obviously Iam missing somehting. Do you have any suggestions where to > look for "pathing", Security or permissions p

Re: [NewBie] Tut0r Thing

2005-02-14 Thread Fredrik Lundh
"administrata" wrote: >I logged in. > > But, don't know how to use it. > > and What the hell is digest thing? > > Is Tutor Thing like i send questions to someone by e-mailing > > and get answers? without any further details, your post makes very little sense. if you're talking about the "tutor a

Re: Iterator / Iteratable confusion

2005-02-14 Thread Scott David Daniels
Francis Girard wrote: Le dimanche 13 FÃvrier 2005 23:58, Terry Reedy a Ãcrit : Iterators are a subgroup of iterables. Being able to say iter(it) without having to worry about whether 'it' is just an iterable or already an iterator is one of the nice features of the new iteration design. I have dif

Python 2.4 unable to find module.

2005-02-14 Thread mfjacobs
Hello, I was hoping someone here can help me with a problem I am having with the PyXML extension ( ver 0.8.4) and Python 2.4 Thsi is a brand new build of Python. Build with default .configre options. Python built and installed fine. PyXML built and installed with no complaining but, when I give

Re: array of bits?

2005-02-14 Thread Fredrik Lundh
"MM" wrote: > What is the best structure/way to create an array of bits (actually > true/false flags) of an > arbitrary length ranging from about 20 upto about 500. Speed of access more > of an issue than > compactness. > > eg: > [0] 0 > [1] 0 > [2] 1 > [3] 0 > [4] 1 > ... > [n] 0 > etc. if y

Re: array of bits?

2005-02-14 Thread Paul Rubin
MM <[EMAIL PROTECTED]> writes: > What is the best structure/way to create an array of bits (actually > true/false flags) of an arbitrary length ranging from about 20 upto > about 500. Speed of access more of an issue than compactness. Use a normal list: [False, False, True, False, True, ... ] . --

  1   2   3   4   >