Re: [ANN] pythenv

2015-09-29 Thread Facundo Batista
On Tue, Sep 29, 2015 at 10:14 AM, wrote: > Pythenv runs a Python script creating a virtualenv on the fly. Requirements > may be passed as a requirements file or embedded in the Python script in a > dedicated comment: > > # requirements: foo==1.2.3, bar > > This project is on Github: > >

Python camping in Argentina

2008-02-23 Thread Facundo Batista
Hi! This post is to tell you about a Python event we had the last weekend. It was a Python camping, in Los Cocos, Córdoba, Argentina. More than 20 Python developers, some experienced, some new ones, joined together in a center where we made a lot of activities during four whole days: - We had a

Call for Project Participation in Development Sprints at PyCon 2008

2007-12-14 Thread Facundo Batista
an find more details here: http://us.pycon.org/2008/sprints/. Thank you very much, and happy coding! Facundo Batista, PyCon 2008 Sprint Coordinator David Goodger, PyCon 2008 Chair -- http://mail.python.org/mailman/listinfo/python-list

Python tickets summary - renewed

2007-12-07 Thread Facundo Batista
People: Well, after my hosting allowing CGI, I now improved *a lot* the interface of this page. Now you have more columns: - Id - Summary - Priority - Severity - Components - Versions - Keywords - Opened by (when) - Temporal location - Last update by (when) And, the biggest enhancement, you can

Re: Python tickets summary

2007-10-23 Thread Facundo Batista
2007/9/13, Facundo Batista <[EMAIL PROTECTED]>: > All the listings are accesible from the same pages, start here: > > http://www.taniquetil.com.ar/facundo/py_tickets.html > > (remember to refresh) > > Any idea to improve these pages is welcomed. Following an idea of

Re: Python tickets summary

2007-09-19 Thread Facundo Batista
2007/9/10, Facundo Batista <[EMAIL PROTECTED]>: > I modified my tool, whichs makes a summary of all the Python tickets > (I moved the source where the info is taken from SF to our Roundup). Based on an idea from Dennis Benzinger, now the temporal bars show the moments where each comm

Re: Python tickets summary

2007-09-13 Thread Facundo Batista
2007/9/10, Facundo Batista <[EMAIL PROTECTED]>: > I modified my tool, whichs makes a summary of all the Python tickets > (I moved the source where the info is taken from SF to our Roundup). > > In result, the summary is now, again, updated daily: Taking an idea from Jeff

Python tickets summary

2007-09-10 Thread Facundo Batista
People: I modified my tool, whichs makes a summary of all the Python tickets (I moved the source where the info is taken from SF to our Roundup). In result, the summary is now, again, updated daily: http://www.taniquetil.com.ar/facundo/py_tickets.html Enjoy it. Regards, -- .Facundo B

Re: Rappresenting infinite

2007-06-29 Thread Facundo Batista
[EMAIL PROTECTED] wrote: >> No. You can make one that fits your requirements, though. > > I am struggling to oversee the implications of design choices for inf > behaviour - especially if it comes to comparison with float type inf. > The type in my application contains a gmpy.mpq and a float that

Re: Convert String to Int and Arithmetic

2007-06-14 Thread Facundo Batista
tereglow wrote: > cpuSpeed = 'Speed: 10' > > What I would like to do is extract the '10' from the string, > and divide that by 1000 twice to get the speed of a processor in MHz. >>> cpuSpeed = 'Speed: 10' >>> p = cpuSpeed.split(":") >>> p ['Speed', ' 10'] >>> p[1]

Re: Multiline lamba implementation in python.

2007-06-12 Thread Facundo Batista
Josh Gilbert wrote: > I don't expect multiline lambdas to be added to Python. I'm not so sure that > that's a bad thing. Regardless, isn't it possible to write your own Yes, it is a bad thing. Why? Because it would another way to do something you can do in other way. The *only* big value of lam

Santa Fe Python Day report

2007-06-11 Thread Facundo Batista
It was very succesful, around +300 people assisted, and there were a lot of interesting talks (two introductory talks, Turbogears, PyWeek, Zope 3, security, creating 3D games, Plone, automatic security testings, concurrency, and programming the OLPC). I want to thanks the PSF for the received s

Re: ftplib error- Large file

2007-06-08 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > Ok. I guess that makes sense. But what about the other > questions...mainly: Why would it throw an exception even though the > file was properly transferred? Je, well, I answered the one I knew about, :) Regarding the error... es hard to say. What happens if you tr

Re: ftplib error- Large file

2007-06-07 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > Why would storbinary throw an exception even when the file transfer > was successful? Why would the exception not be thrown until after the > file was sent? Shouldn't ftplib return something like (104, > "Connection reset by peer") instead of throwing an error? Is my

Re: magic names in python

2007-06-04 Thread Facundo Batista
Josiah Carlson wrote: > I don't believe that there is a full list of all __magic__ methods. The > operator module has a fairly extensive listing of functions that call > such methods, but I know that some have been left out. There IS a full documentation of this special methods:: http://doc

Re: ImageMagick Issue

2007-06-01 Thread Facundo Batista
Sick Monkey escribió: > I ran into another slight problem. And I attempted to fix it, but have > not been able to do so yet. If a filename does not contain a space, > then this method works like a charm. But if there is a space then the > code throws a nasty error. Ok, the issue is that sub

Re: ImageMagick Issue

2007-05-31 Thread Facundo Batista
Sick Monkey wrote: > When I run the following command: > [EMAIL PROTECTED] david.huggins]# identify -format %w > '/someDIR/images/david.huggins/100_0264.JPG' >From Python interpreter: >>> cmd = "identify -format %w test.jpg" >>> p = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, >>> stde

Re: Malformed big5 reading bug

2007-05-30 Thread Facundo Batista
tsuraan wrote: > Python enters some sort of infinite loop when attempting to read data from a > malformed file that is big5 encoded (using the codecs library). This > behaviour can be observed under Linux and FreeBSD, using Python 2.4 and 2.5. > A really simple example illustrating the bug follow

Re: A best approach to a creating specified http post body

2007-05-18 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > Hmm, I guess I meant something different by using "body"- I meant > request data part and not the thing sent in ulr string. You should specify better what you need yes. See, to send POST information in an http request, you can do the following... >>> urllib2.urlopen(m

Re: A bug in cPickle?

2007-05-17 Thread Facundo Batista
Victor Kryukov wrote: > The following behavior is completely unexpected. Is it a bug or a by- > design feature? > > ... > > from pickle import dumps > from cPickle import dumps as cdumps > > print dumps('1001799')==dumps(str(1001799)) > print cdumps('1001799')==cdumps(str(1001799)) It's a featur

Re: multi threaded SimpleXMLRPCServer

2007-05-14 Thread Facundo Batista
Vyacheslav Maslov wrote: > I need multi threaded version of SimpleXMLRPCServer. Does python library > already have implementation of this one? Or i need to implement multi > threading by myself? Don't know, but maybe this helps. Here's a framework I implemented, where you have a job with multi

Re: File writing success

2007-05-11 Thread Facundo Batista
HMS Surprise wrote: > If file writing has no return value (http://docs.python.org/lib/bltin- > file-objects.html), how do you know if the write was successful? If not, you'll get an error raised. Regards, -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/

Re: [python 2.4] unable to construct tuple with one item

2007-05-06 Thread Facundo Batista
Vyacheslav Maslov wrote: > So, the main question is why using syntax like [X] python constuct list with > one item, but when i try to construct tuple with one item using similar > syntax (X) python do nothing? Because what determines that you actually have a tuple is the comma, not the parenthesi

Re: More urllib timeout issues.

2007-05-02 Thread Facundo Batista
Steve Holden wrote: > 1) There is work afoot to build timeout arguments into network libraries > for 2.6, and I know Facundo Batista has been involved, you might want to > Google or email Facundo about that. Right now (in svn trunk) httplib, ftplib, telnetlib, etc, has a timeout argu

Re: More urllib timeout issues.

2007-05-02 Thread Facundo Batista
John Nagle wrote: > I took a look at Facundo Batista's work in the tracker, and he > currently seems to be trying to work out a good way to test the > existing SSL module. It has to connect to something to be tested, Right now, test_socket_ssl.py has, besides the previous tests, the capabil

Re: File not read to end

2007-04-26 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > I've attached the whole script. Thanks again for your help. > > --Andrew Andrew, tip: If you attach the whole script, what you get is that a lot of people goes away from the thread. Me for example. I won't read 100 lines of code to see where is the problem, and then tr

Re: File not read to end

2007-04-25 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > My log is around 200,000 lines but it is stopping at line 26,428. I > checked that line and there aren't any special characters. Are you in Windows? Just in case, put "rb" as the mode of the open. Regards, -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyA

Re: [python-advocacy] Would You Write Python Articles or Screencasts for Money?

2007-04-25 Thread Facundo Batista
2007/4/25, Hendrik van Rooyen <[EMAIL PROTECTED]>: > Most bugs fixed in the month for the developers? > (Watch them scrabbling for the easy ones - ) > > Most Patches reviewed and incorporated? These numbers are easy to acquire. Note, though, that the name of the developer in a top ten of these

Re: [python-advocacy] Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread Facundo Batista
2007/4/24, Steve Holden <[EMAIL PROTECTED]>: > and I was more looking for a way to reward authors of excellence, as > judged by some subset of the Python community - this might have to be > the PSF membership given the impracticality of running a meaningful poll > with a larger set of voters. Why

Re: Inconsistent result from urllib.urlopen

2007-04-12 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > import urllib > f = urllib.urlopen('http://en.wikipedia.org/wiki/Cain') > data = f.read(999) > f.close() > f1 = open('junk.txt', 'w') > f1.write(data) > f1.close() Did you see the file "junk.txt"? It's an error page from Wikipedia, not the actual content page... Re

Re: pop() clarification

2007-04-11 Thread Facundo Batista
Scott wrote: > Now I know list is a bad name, but for the sake of arguement lets assume its > not a built in sequence> It's easier to use another name, than writing all that parragraph, ;) > I understand all that. What I don't understand is why all the documentation > I see says, "When remov

Re: string templates

2007-04-04 Thread Facundo Batista
David Bear wrote: > I was justing wondering how safe python string templates are to use with > unicode. I was just scanning pep 292 and it seems to say that they are -- > or can by with inheritance... but I don't quite understand. What do you mean with "safe"? I use string.Template a lot, don't w

Re: What is the timeout value of HTTP

2007-03-29 Thread Facundo Batista
ken wrote: > i.e. how long python will wait for a response in the below code? > >h = httplib.HTTP(self.url, 8080) > h.putrequest('GET', '/sample/?url=' + self.url) > h.endheaders() For ever. In Py<=2.5, httplib.HTTP doesn't have a timeout, so you have to do something like:

Re: very strange syntax errors

2007-03-28 Thread Facundo Batista
hg wrote: > I'v been facing some very strange errors lately: > > one example: You'll need to paste here the exact code and the traceback. Regards, -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ -- http://mail.python.org/mailman/listinfo/python-lis

Re: socket read timeout

2007-03-27 Thread Facundo Batista
hg wrote: > Do you mean use select ? No, socket's timeout: >>> import socket >>> s = socket.socket() >>> s.settimeout(5) >>> ... Regards, -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ -- http://mail.python.org/mailman/listinfo/python-list

Re: shutil.copy Problem

2007-03-27 Thread Facundo Batista
David Nicolson wrote: > Thanks, but it's definitely not the print. In original the code the > print statements are replaced by a call to a log method. > > Besides, the exception would be different if it was thrown outside of > the try block. The best you can do is take the piece of code that

Re: Python object overhead?

2007-03-23 Thread Facundo Batista
Bjoern Schliessmann wrote: >> while True: >> line = file.readline() >> if len(line) == 0: break # EOF > > "one blank line" == "EOF"? That's strange. Intended? > > The most common form for this would be "if not line: (do > something)". "not line" and "len(line) == 0" is the same as long a

Re: Dyanmic import of a class

2007-03-22 Thread Facundo Batista
rh0dium wrote: > foo.py > > class foo: >def __init__(self): > print "Hi I am %s" % self.__class__.__name__ I wrote this in a file here... > Now I have a bunch of these files. I want to be able to dynamically > import each one and run it. I am having a problem actually doing the > wo

Re: What is the best way to upgrade python?

2007-03-22 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > i am using red hat enterprise 4. It has python 2.3 installed. What is > the best way to upgrade to python 2.4? > > I think one way is to compile python 2.4 from the source, but I can't > remove the old one since when i do 'rpm -e python', i get error like > 'failed depe

Patchs and bugs resume

2007-03-20 Thread Facundo Batista
People: At the beginning of March, there was a thread in python-dev about patchs and bugs that teorically weren't checked out. The thread discussed how to involve more people in checking patchs and bugs, and to create other dinamic around them. >From that discussion, I asked myself: "How can I

Re: if __name__ == 'main':

2007-03-20 Thread Facundo Batista
gtb wrote: > I often see the following 'if' construct in python code. What does > this idiom accomplish? What happens if this is not main? How did I get > here if it is not main? > ... > if __name__ == 'main': >myQuest('myQuest').Run() This idiom is for executing the code if you're running t

Re: Problem with sockets and python 2.5

2007-03-20 Thread Facundo Batista
Jose Alberto Reguero wrote: > 2: > server.py at x86_64 python 2.5 > client.py at i386 python 2.4 > Don't work What do you mean with "don't work"? They crash? Your machine hungs? Your house explodes? You'd be more specific in the error you get, and what behaviour you expect. Regards

Python & Oracle

2007-03-14 Thread Facundo Batista
Hi! I need to connect to Oracle. I found this binding, http://www.zope.org/Members/matt/dco2 that is the recommended in the Python page. But that page seems a bit confuse to me. In the upper right corner says that the last release is PreRelease 1, from 2001-11-15. At the bottom, however, it

Re: i can`t get python working on the command line (linux)

2007-03-14 Thread Facundo Batista
Mark wrote: > and i`ve put it in tel.py (just the same as in the sample) than chmod > it to 777 (just to make sure it isn`t a permission issue) and than i > run it with: ./tel.py > now this is the error that i get: > > Traceback (most recent call last): > File "./tel.py", line 12, in > for

Re: Generator expression parenthesis mixed with function call ones

2007-03-07 Thread Facundo Batista
Laurent Pointal wrote: f(4,i for i in range(10)) > File "", line 1 > SyntaxError: invalid syntax > > > Why does Python allow generator expression parenthesis to be mixed with > function call parenthesis when there is only one parameter ? For simplicity and elegant coding, so you can do so

Re: threading a thread

2007-03-05 Thread Facundo Batista
tubby wrote: > I have a program written in Python that checks a class B network (65536 > hosts) for web servers. It does a simple TCP socket connect to port 80 > and times out after a certain periods of time. The program is threaded > and can do all of the hosts in about 15 minutes or so. I'd l

Re: timeout in urllib.open()

2007-03-05 Thread Facundo Batista
Stefan Palme wrote: > is there a way to modify the time a call of > > urllib.open(...) > > waits for an answer from the other side? Have a tool I'm working on adding a socket_timeout parametero to urllib2.urlopen. Regards, -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http:

Re: writing a file:newbie question

2007-03-05 Thread Facundo Batista
kavitha thankaian wrote: > say for example,,i have a file test.txt and the file has the list > > a,b,c,d, > > i would like to delete the trailing comma at the end,,, >>> "a,b,c,d,".rstrip(",") 'a,b,c,d' Regards, -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http

Re: Why does SocketServer default allow_reuse_address = false?

2007-03-05 Thread Facundo Batista
Joshua J. Kugler wrote: > Considering that UNIX Network Programming, Vol 1 (by W. Richard Stevens) > recommends "_All_ TCP servers should specify [SO_REUSEADDR] to allow the > server to be restarted [if there are clients connected]," and that > self.allow_reuse_address = False makes restarting a s

Re: finding out the precision of floats

2007-02-27 Thread Facundo Batista
Arnaud Delobelle wrote: > (and I don't want the standard Decimal class :) Why? -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Bypassing __setattr__ for changing special attributes

2007-02-27 Thread Facundo Batista
Ziga Seilnacht wrote: object.__setattr__(f, '__class__', Bar) f.__class__ is Bar > True Interesting, but... why I must do this? And, I must *always* do this? With Foo and Bar like the OP coded (just two new style classes, f is instance of Foo), see this: >>> f <__main__.Foo object at

Re: Odd import behavior

2007-02-27 Thread Facundo Batista
Gregory Piñero wrote: > I didn't realize Python behaved like this. Is there an FAQ I can read on > this? I'll explain step by step: > FILE module1.py: > VAR1='HI' > > FILE MAIN.py: > from module1 import * > import module1 Here you have, in your module scope, a name 'VAR1' that points to "HI"

Re: Are there sprintf in Python???

2007-01-26 Thread Facundo Batista
questions? wrote: > Are there similar function to sprintf in C? Meaning to print in a buffer? It's not necessary... Remember that all the ways that prints on files, actually does not need to print into *actual* files, but they can print into file-like objects (see StringIO, or mmap, for example

Re: Right-Justifying Numeric Output

2007-01-26 Thread Facundo Batista
Rich Shepard wrote: > print '%2d $%11.2f $%10.2f $%9.2f $%9.2f' %(nper, pv, diff, ten, bonus) > > and I would like to have the output right justified in the specified field. >>> "%7.2f..%5d" % (2.3, 78) ' 2.30.. 78' >>> "%-7.2f..%-5d" % (2.3, 78) '2.30 ..78 ' Regards, -- . Fa

Re: Email attachments

2007-01-25 Thread Facundo Batista
Steve Holden wrote: > I'm having some trouble getting attachments right for all recipients, > and it seems like Apple's mail.app is the pickiest client at the moment. > It doesn't handle attachments that both Thunderbird and Outlook find > perfectly acceptable. The following code works ok with

Re: newbie question: ftp.storbinary()

2007-01-24 Thread Facundo Batista
Scott Ballard wrote: > Sorry for the lame question, I'm still trying to pick up Python and new to > the list here. Welcome! > I'm assuming that I should use storbinary( command, file[, blocksize]) to > transfer the files. the documentation says "command should be an appropriate > "STOR" com

Re: how to write unicode to a txt file?

2007-01-17 Thread Facundo Batista
Frank Potter wrote: > But it seems that python can't directly write unicode to a file, You need to use the method open from module codecs: >>> import codecs >>> a = codecs.open("pru_uni.txt", "w", "utf-8") >>> txt = unicode("campeón\n", "utf-8") >>> a.write(txt) >>> a.close() >>> So, then, fro

Re: urrlib2 multithreading error

2007-01-17 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > I'm using urllib2 to retrieve some data usign http in a multithreaded > application. > Here's a piece of code: > req = urllib2.Request(url, txdata, txheaders) > opener = urllib2.build_opener() > opener.addheaders = [('User-agent

Re: Rational Numbers

2007-01-12 Thread Facundo Batista
Noud Aldenhoven wrote: > There are a (small) couple of other issues where rational numbers could be > handy. That's because rational numbers are exact, irrational numbers (in > python) aren't. But these issues are probably too mathematical to be used in For the sake of me being less ignorant, cou

Re: ValueError from dict - some detail would be helpful

2007-01-12 Thread Facundo Batista
metaperl wrote: > File "/sw/lib/python2.5/csv.py", line 120, in _dict_to_list > raise ValueError, "dict contains fields not in fieldnames" > > > --- it would be nice if it said what field it was Yeap, nice and useful... but, for example, what'd happen if the fields that are not in fieldname

Re: Rational Numbers

2007-01-11 Thread Facundo Batista
Noud Aldenhoven wrote: > When I was programming in a mathematical project I began to wonder if python > supports rational numbers[1]. In a language like magma[2] it's not such a > problem. Does python supports something simular? Python does not have rational numbers. There's a (rejected) PEP ab

Money module

2005-07-01 Thread Facundo Batista
People: The Money two-days sprint in EuroPython 2005 has finished. We advanced a lot. The pre-PEP is almost done, and the corresponding test cases are all written. We need to finish the structure procesing for currency general information, and bring general functions to the module, but most of t

Re: decimal and trunkating

2005-06-04 Thread Facundo Batista
On 2 Jun 2005 23:34:52 -0700, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > >> i want to trunkate 199.999 to 199.99 > >> getcontext.prec = 2 isn't what i'm after either, all that does > >> is E's the value. do i really have to use floats to do this? > > The precision is the total number of digi

Re: decimal and trunkating

2005-06-02 Thread Facundo Batista
On 6/2/05, Peter Hansen <[EMAIL PROTECTED]> wrote: > >>> d = decimal.Decimal('199.999') > >>> decimal.getcontext().rounding = decimal.ROUND_FLOOR > >>> d.quantize(decimal.Decimal('1.00')) > Decimal("199.99") > > -Peter > > (I hope this inspires someone who actually knows what he's doing with

Re: Precision?

2005-05-15 Thread Facundo Batista
On 5/15/05, Ron Adam <[EMAIL PROTECTED]> wrote: > >>> x > 321.61 > > Here the error has been kept to a minimum. In most cases, it isn't a > problem, but it is something to be aware of. It does matter in banking > and I beleive there are standard ways of dealing with it. Yes, use

Re: Does anybody know the status of PyCon recordings?

2005-05-15 Thread Facundo Batista
On 9 May 2005 11:02:27 -0700, Sébastien Boisgérault <[EMAIL PROTECTED]> wrote: > http://www.pycon.org/talks/ ¿?: """ Site Error An error was encountered while publishing this resource. Debugging Notice Zope has encountered a problem publishing your object. The object at http://www.pycon.org/t

Re: Unique Elements in a List

2005-05-15 Thread Facundo Batista
On 5/9/05, James Stroud <[EMAIL PROTECTED]> wrote: > > Is there an easy way to grab the Unique elements from a list? >>> from sets import Set as set >>> data = [0.1,0.5,0.6,0.4,0.1,0.5,0.6,0.9] >>> for x in set(data): ... print x ... 0.5 0.9 0.6 0.4 0.1 .Facundo Blog: http://www.taniqu

Re: Array of Chars to String

2005-04-19 Thread Facundo Batista
On 4/19/05, James Stroud <[EMAIL PROTECTED]> wrote: > astr = "Bob Carol Ted Alice" > letters = "adB" > > import sets > alist = [lttr for lttr in astr if lttr in Set(letters)] > newstr = "" > for lttr in alist: > newstr += lttr >>> astr = "Bob Carol Ted Alice" >>> letters = "adB" >>> s1 = set(a

Re: Combining digit in a list to make an integer

2005-04-01 Thread Facundo Batista
On 1 Apr 2005 03:21:12 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote: > num1 = ['1', '4', '5'] > > How can I combine the elements in num1 to produce an integer 145? >>> num1 = ['1', '4', '5'] >>> int(''.join(num1)) 145 .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.pyt

Re: Python 2.4 | 7.3 The for statement

2005-03-25 Thread Facundo Batista
On 24 Mar 2005 19:49:38 -0800, brainsucker <[EMAIL PROTECTED]> wrote: > foo = 0 > for item1 in range(10) until foo == 2: > for item2 in range(10) until foo == 2: > foo = item1 + item2 > if foo == 2: print "Let's see" > print foo In this case, I'll use the following: try: for item1

Re: cross platform use of set locale

2005-03-24 Thread Facundo Batista
On Wed, 23 Mar 2005 20:52:06 +1000, Timothy Smith <[EMAIL PROTECTED]> wrote: > Serge Orlov wrote: > > >Are you trying to format money? Then you need a special class so that > >you can say: > > thats exactly what i'm trying to do, only having to do that for all my If you're dealing with money, tw

Re: Python 2.4 | 7.3 The for statement

2005-03-22 Thread Facundo Batista
On 22 Mar 2005 06:32:38 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The for definition could be like this: > > for_stmt ::= "for" target_list "in" expression_list > [ "until" expression ] ":" > suite ["else" ":" suite] > > or some other word that clarifies the work of t