Re: What do you want in a new web framework?

2006-08-20 Thread 3KWA
[EMAIL PROTECTED] wrote: > Hello Everyone, > > Now, I'm working on a new web framework. I tried many test on the other > programming languages. Then i decided to use python on my web framework > project. > > Now i want to listen all of you. What do you want in that web > framework(Easy use of Data

Re: sending mailing list with smtplib

2006-08-16 Thread 3KWA
3KWA wrote: > Just for education purposes (mine I guess :P) what was the idea behind > that design decision? >From the doc (self education :P) The following methods implement a mapping-like interface for accessing the message's RFC 2822 headers. Note that there are some semant

Re: sending mailing list with smtplib

2006-08-15 Thread 3KWA
Filip Salomonsson wrote: > > You can reuse your message object, but you need to delete the old > header before setting a new one: > > Thanks! I am only an occasional Python programmer (love it though). I guess it is the first time I

Re: sending mailing list with smtplib

2006-08-15 Thread 3KWA
Steve Holden wrote: > OK, now the problem is that you clearly aren't running the code you > posted, you are running *somethinglike* the code you posted, but that > has (an) error(s) the code you posted didn't. All I did was changed the comments to make them more relevant to my problem but here it

Re: sending mailing list with smtplib

2006-08-15 Thread 3KWA
Gabriel Genellina wrote: > > Specify "didn't work" at least... see > http://www.catb.org/~esr/faqs/smart-questions.html Ooops, didn't work explained (the worst is I bought and read ESR's book :() list.txt= email1 email2 email3 ... emailn email1 received from:xsbar.com to:email1 subject: [xsbar]

sending mailing list with smtplib

2006-08-14 Thread 3KWA
Hi all, I tried to send a small mailing list using python today (2036 emails). For that purpose I looked in the doc for some code examples (I had never done it before). And I ended up writing and running this little script: # list.txt is a text file container an email per line fp=open('list.txt',

Re: Windows vs. Linux

2006-07-31 Thread 3KWA
I am not a programming expert but I use python everyday on Windows XP: * python standard distribution (CPython) * iPython * cygwin for the command line interaction, add a unix/linux flavour to the blend EuGeNe -- http://mail.python.org/mailman/listinfo/python-list

Re: doctest with variable return value

2006-07-25 Thread 3KWA
Peter Otten wrote: > You cannot test for an unknown value, but you can do some sanity checks: > > >>> rate = get_rate('AUDEUR') > >>> rate > 0 > True > >>> isinstance(rate, float) > True > > This will at least make sure that get_rate() does not throw an exception. Thanks a lo

doctest with variable return value

2006-07-25 Thread 3KWA
Hi all, I am wondering what is the standard doctest (test) practice for functions who's returned value change all the time e.g. forex rate: import urllib def get_rate(symbol): """get_rate(symbol) connects to yahoo finance to return the rate of symbol. >>>get_rate('AUDEUR') """

Re: Web Browser Pygame Plug-in?

2006-07-06 Thread 3KWA
Gregory PiƱero wrote: > I was just idley curious on what it would take to make a web plug-in > for Pygame. I'm picturing it working the way my browser currently > shows flash games. Is such an idea even possible? Has anyone > attempted this? Not a plugin but at Europython the PyPy crew presente

Re: Python Programming Books?

2006-05-26 Thread 3KWA
http://www.greenteapress.com/thinkpython/ How to think like a computer scientist is a great first read I think. -- http://mail.python.org/mailman/listinfo/python-list

Re: New-style Python icons

2006-03-21 Thread 3KWA
Thanks a lot! (Still think 2.5 could have spunky new icons:) EuGeNe -- http://mail.python.org/mailman/listinfo/python-list

Re: New-style Python icons

2006-03-21 Thread 3KWA
Superb! How about getting them in the 2.5 release? Part of the reason why I am asking is that I am not sure what I have to do to get Win XP to use these instead of the one coming with 2.4.2. Cheers, EuGeNe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE: great headache....

2006-03-13 Thread 3KWA
Vim + iPython does most of it doesn't it? That's where I am after I became a bit frustrated with Idle (which I still use on odd occasions). EuGeNe -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert the contents of a string into name of variable

2005-03-24 Thread 3KWA
Erwan VITIERE wrote: > Because i don't want to use this syntax because it is too long, I want a > direct access : > > Not : > DicoUser['TOTO'].DicoTable.['MY_TABLE'].DicoLabel.['MY_LABEL'] = "for > exemple" > > Finally, i want to use : > TOTO.MY_TABLE.MY_LABEL = "for exemple" setattr might be wh