Staging
v0.5.1
https://github.com/python/cpython
Revision a1ade3e925836a89e1ebacb74eb8e81d85190cd8 authored by Andrew M. Kuchling on 05 October 2006, 17:24:08 UTC, committed by Andrew M. Kuchling on 05 October 2006, 17:24:08 UTC
If _stat_float_times is false, we will try to INCREF ival which could be NULL.
Return early in that case.  The caller checks for PyErr_Occurred so this
should be ok.

Klocwork #297
1 parent 165e797
Raw File
Tip revision: a1ade3e925836a89e1ebacb74eb8e81d85190cd8 authored by Andrew M. Kuchling on 05 October 2006, 17:24:08 UTC
[Backport r51223 | neal.norwitz]
Tip revision: a1ade3e
new.py
"""Create new objects of various types.  Deprecated.

This module is no longer required except for backward compatibility.
Objects of most types can now be created by calling the type object.
"""

from types import ClassType as classobj
from types import FunctionType as function
from types import InstanceType as instance
from types import MethodType as instancemethod
from types import ModuleType as module

# CodeType is not accessible in restricted execution mode
try:
    from types import CodeType as code
except ImportError:
    pass
back to top