Staging
v0.5.1
https://github.com/python/cpython
Revision 01feb5ad8d55c4cdc540e02ebebcaffa5f1a4d6c authored by Matthias Klose on 12 November 2008, 07:02:24 UTC, committed by Matthias Klose on 12 November 2008, 07:02:24 UTC
  zlib.decompressobj().flush(val) when val is not positive.
1 parent 8ad5f45
Raw File
Tip revision: 01feb5ad8d55c4cdc540e02ebebcaffa5f1a4d6c authored by Matthias Klose on 12 November 2008, 07:02:24 UTC
- Issue #2586: Fix CVE-2008-1721, zlib crash from
Tip revision: 01feb5a
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