New submission from Wouter van Heyst <[email protected]>:

The attached code works with cpython but fails with pypy b9699dee6f10.

Traceback (most recent call last):
  File "app_main.py", line 72, in run_toplevel
  File "/tmp/bug.py", line 8, in <module>
    datetime.strptime(a[0], '%Y-%m-%d')
  File "/home/larstiq/src/pypy/lib_pypy/datetime.py", line 1701, in strptime
    struct, micros = _strptime(date_string, format)
  File "/home/larstiq/src/pypy/lib-python/2.7/_strptime.py", line 322, in 
_strptime
    found = format_regex.match(data_string)
TypeError: unsupported operand type for buffer: 'string_'

----------
messages: 6054
nosy: larstiq, pypy-issue
priority: bug
status: unread
title: strptime does not like string_

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1581>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to