Re: [OT] How do I reply to a thread by sending a message to python-list@python.org

2009-08-27 Thread David House
2009/8/27 Terry Reedy tjre...@udel.edu: reply-all may send duplicate messages to the author. Not sure of this list. I'm fairly sure Mailman deals with that. -- -David -- http://mail.python.org/mailman/listinfo/python-list

[issue6641] strptime doesn't support %z format ?

2009-08-20 Thread David House
David House dmho...@gmail.com added the comment: Yes and no. Firstly, %z isn't listed as deprecated in the documentation of the time module's strftime -- although %Z is (note differing case). Secondly, I still think the bug is invalid, because the documentation of datetime.datetime.strptime

Re: ignored test cases in unittest

2009-08-17 Thread David House
2009/8/16 Terry terry.yin...@gmail.com: Thanks for the solutions. I think the decorator idea is what I'm look for:-) Note that the unittest module now supports the `skip' and `expectedFailure' decorators, which seem to describe some of the solutions here. See

Re: what is it, that I don't understand about python and lazy evaluation?

2009-08-13 Thread David House
2009/8/13 Erik Bernoth erik.bern...@googlemail.com: after 14 it is not nessesary to evaluate evens() any further. How does Python know this? I.e. how does it know that evens() will always yield things in ascending order? For example, I could write an iterator like this: def my_iter(): for i

[issue6641] strptime doesn't support %z format ?

2009-08-04 Thread David House
David House dmho...@gmail.com added the comment: From the documentation from time.strptime() (which acts the same as datetime.strptime()): Only the directives specified in the documentation [of time.strftime()] are supported. Because strftime() is implemented per platform it can sometimes offer

try - except - else - except?

2009-07-06 Thread David House
Hi all, I'm looking for some structure advice. I'm writing something that currently looks like the following: try: short amount of code that may raise a KeyError except KeyError: error handler else: nontrivial amount of code This is working fine. However, I now want to add a call to

Re: try - except - else - except?

2009-07-06 Thread David House
2009/7/6 Python pyt...@rgbaz.eu: as far as I know try has no 'else' It does: http://docs.python.org/reference/compound_stmts.html#the-try-statement it's 'finally' There is a `finally', too, but they are semantically different. See the above link. -- -David --