Re: Generic dictionary

2016-11-20 Thread Anny Mous
On Sun, 20 Nov 2016 08:43 pm, Peter Otten wrote: > Thorsten Kampe wrote: > >> [Crossposted to tutor and general mailing list] >> >> Hi, >> >> I'd like to extend the dictionary class by creating a class that acts >> like a dictionary if the class is instantiated with a dictionary and >> acts

Re: How can I speed up a script that iterates over a large range (600 billion)?

2011-06-22 Thread Anny Mous
Chris Torek wrote: Now that the exercise has been solved... Instead of really short code to solve the problem, how about some really long code? :-) I was curious about implementing prime factorization as a generator, using a prime-number generator to come up with the factors, and doing

Re: An assessment of the Unicode standard

2009-08-29 Thread Anny Mous
r wrote: Of the many things that divide us such as race, color, religion, geography, blah, the most perplexing and devastating seems to be why have we not accepted a single global language for all to speak. I agree 1000% and obviously we should make Klingon that global language. Or possibly

Re: Transforming a str to an operator

2009-08-28 Thread Anny Mous
r wrote: Abviously the OP is a python baby noob and casting your irrational fear (and many others irrational fears) of eval It isn't irrational to have a healthy caution towards eval. Apart from the security issues, running code in eval takes a massive performance hit. Its about ten times

Re: Bug or feature: double strings as one

2009-08-09 Thread Anny Mous
r wrote: On Aug 8, 12:43 pm, Jan Kaliszewski z...@chopin.edu.pl wrote: (Note that multiline-'''-strings are usless in such cases). uhh? A much better way to handle such a problem is like this... prompt1 = ''' Some people like to use %s ways of doing things just so they can support