This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: repr(os.stat(..)) is broken by the structseq change
Type: behavior Stage: test needed
Components: Interpreter Core Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: benjamin.peterson Nosy List: belopolsky, benjamin.peterson, brian.curtin, eric.smith
Priority: high Keywords: patch

Created on 2010-07-08 20:01 by belopolsky, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue9206.diff belopolsky, 2010-07-08 20:02
issue9206a.diff belopolsky, 2010-07-08 21:06 The fix.
Messages (3)
msg109586 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010-07-08 20:01
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
msg109603 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010-07-08 21:06
Attached patch, issue9206a.diff seems to fix the os.stat() issue.


Brian, can you check if it fixes issue 9202 as well?

I planned to finish some other stuff tonight, so I am reassigning this to Benjamin.
msg109630 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-07-08 22:33
r82663
History
Date User Action Args
2022-04-11 14:57:03adminsetgithub: 53452
2010-07-08 22:33:17benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg109630
2010-07-08 21:06:57belopolskysetfiles: + issue9206a.diff
title: os.stat() is broken -> repr(os.stat(..)) is broken by the structseq change
nosy: belopolsky, eric.smith, benjamin.peterson, brian.curtin
messages: + msg109603

assignee: belopolsky -> benjamin.peterson
components: + Interpreter Core
2010-07-08 20:03:47belopolskysetfiles: - issue9206.diff
2010-07-08 20:03:34belopolskysetfiles: + issue9206.diff
nosy: + eric.smith, benjamin.peterson, brian.curtin
2010-07-08 20:02:34belopolskysetfiles: + issue9206.diff
keywords: + patch
2010-07-08 20:01:46belopolskycreate