[issue9206] os.stat() is broken

Alexander Belopolsky report at bugs.python.org
Thu Jul 8 22:01:48 CEST 2010


New submission from Alexander Belopolsky <belopolsky at users.sourceforge.net>:

Most likely the same underlying problem as in issue 9202, but can be seen on a non-windows platform.

>>> from os import *
>>> stat('/')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: NULL result without error in PyObject_Call

With attached patch, the error message is clearer:

>>> stat('.')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: In structseq_repr()  member 15 name is NULL

----------
assignee: belopolsky
messages: 109586
nosy: belopolsky
priority: high
severity: normal
stage: unit test needed
status: open
title: os.stat() is broken
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9206>
_______________________________________


More information about the Python-bugs-list mailing list