[ python-Bugs-976608 ] Unhelpful error message when getmtime.c fails

SourceForge.net noreply at sourceforge.net
Mon Jun 21 05:26:56 EDT 2004


Bugs item #976608, was opened at 2004-06-21 09:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=976608&group_id=5470

Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Maxwell (pm67nz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unhelpful error message when getmtime.c fails

Initial Comment:
This fragment of import.c:

  mtime = PyOS_GetLastModificationTime(pathname, fp);
  if (mtime == (time_t)(-1))
     return NULL;

is missing a PyErr_SetString(), so in at least one circumstance (an 
__init__.py file with an apparent mtime of 1 Jan 1970 created by a 
bug in darcs on debian linux) it produces "SystemError: NULL 
result without error in PyObject_Call".

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=976608&group_id=5470



More information about the Python-bugs-list mailing list