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
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
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
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
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