[issue9969] tokenize: add support for tokenizing 'str' objects

2010-11-20 Thread Abhay Saxena
Abhay Saxena added the comment: If the goal is tokenize(...) accepting a text I/O readline, we already have the (undocumented) generate_tokens(readline). -- nosy: +ark3 ___ Python tracker <http://bugs.python.org/issue9

[issue7804] test_readline failure

2010-11-20 Thread Abhay Saxena
Abhay Saxena added the comment: Works for me with a fresh py3k on Ubuntu. -- nosy: +ark3 ___ Python tracker <http://bugs.python.org/issue7804> ___ ___ Python-bug

[issue9909] request for calendar.dayofyear() function

2010-11-20 Thread Abhay Saxena
Abhay Saxena added the comment: The test is incorrect on leap years for February 29, due to the way it constructs its list of dates. The function itself appears to give the right answer. -- nosy: +ark3 ___ Python tracker <http://bugs.python.

[issue9909] request for calendar.dayofyear() function

2010-11-20 Thread Abhay Saxena
Abhay Saxena added the comment: Quick hack alternative test. It would look nicer if the test used the datetime module, but I'm not sure that would be appropriate. def test_dayofyear