Kaydet (Commit) 3cc12f69 authored tarafından Tarek Ziadé's avatar Tarek Ziadé

Merged revisions 74164 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r74164 | tarek.ziade | 2009-07-22 10:57:28 +0200 (Wed, 22 Jul 2009) | 9 lines

  Merged revisions 74163 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r74163 | tarek.ziade | 2009-07-22 10:55:19 +0200 (Wed, 22 Jul 2009) | 1 line

    Issue #6545: Removed assert statements in distutils.Extension, so the behavior is similar when used with -O
  ........
................
üst ba426148
...@@ -103,10 +103,11 @@ class Extension: ...@@ -103,10 +103,11 @@ class Extension:
optional=None, optional=None,
**kw # To catch unknown keywords **kw # To catch unknown keywords
): ):
assert isinstance(name, str), "'name' must be a string" if not isinstance(name, str):
assert (isinstance(sources, list) and raise AssertionError("'name' must be a string")
all(isinstance(v, str) for v in sources)), \ if not (isinstance(sources, list) and
"'sources' must be a list of strings" all(isinstance(v, str) for v in sources)):
raise AssertionError("'sources' must be a list of strings")
self.name = name self.name = name
self.sources = sources self.sources = sources
......
...@@ -892,6 +892,9 @@ Core and Builtins ...@@ -892,6 +892,9 @@ Core and Builtins
Library Library
------- -------
- Issue #6545: Removed assert statements in distutils.Extension, so the
behavior is similar when used with -O.
- Issue #6459: distutils.command.build_ext.get_export_symbols now uses the - Issue #6459: distutils.command.build_ext.get_export_symbols now uses the
"PyInit" prefix, rather than "init". "PyInit" prefix, rather than "init".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment