Re: double underscore attributes?

2005-12-10 Thread Wojciech Mula
[EMAIL PROTECTED] wrote: > Now I went to Python Library Reference and searched for "__add__" but > got zero hits. http://python.org/doc/2.4.2/ref/specialnames.html -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a better way to check an array?

2005-09-01 Thread Wojciech Mula
jdonnell wrote: > I want to check if a value is in an array. I'm currently doing it as > follows, but I just don't like this way of doing it. It seems > unpythonic. > > fieldIsRequired = true > try: > notRequiredAry.index(k) > fieldIsRequired = false > except ValueError: > pass > > #

Re: Suggestions for optimizing my code

2005-08-05 Thread Wojciech Mula
drife wrote: > [...] > for row in range(len(Y)): > for col in range(0,row): In this case you should use 'xrange' instead 'range'. w. -- http://mail.python.org/mailman/listinfo/python-list

Re: Lots of pdf files

2005-07-20 Thread Wojciech Mula
Greg Lindstrom wrote: > There does not appear to be a simple way to merge many pdf's into one. Program pdftk can merge pdf's, but I have never tried it. You may also use pdflatex --- there is a package called pdfpages provides powerful command \includepdf. w. -- http://mail.python.org/mailman/