[issue7980] time.strptime not thread safe

2010-02-22 Thread Willard
New submission from Willard : The following script raises several "_strptime_time" AttributeErrors (on OS X 10.4 at least). If time.strptime is used before starting the threads, then no exception is raised (the issue may thus come from strptime.py not being imported in a thread s

[issue1863] NameError with genexp in class scope

2008-01-17 Thread Willard
New submission from Willard: The following code does not work like expected, it triggers a NameError. class C: a = 42 list(a for _ in 'x') >>> NameError: global name 'a' is not defined This issue was discussed on comp.lang.python in the threa