[pypy-svn] r79153 - pypy/branch/jit-starargs/pypy/module/array
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Nov 16 17:36:01 CET 2010
Author: cfbolz
Date: Tue Nov 16 17:36:00 2010
New Revision: 79153
Modified:
pypy/branch/jit-starargs/pypy/module/array/interp_array.py
Log:
make this at least not segfault. argument parsing here should be cleaned up,
please.
Modified: pypy/branch/jit-starargs/pypy/module/array/interp_array.py
==============================================================================
--- pypy/branch/jit-starargs/pypy/module/array/interp_array.py (original)
+++ pypy/branch/jit-starargs/pypy/module/array/interp_array.py Tue Nov 16 17:36:00 2010
@@ -27,7 +27,7 @@
typecode = typecode[0]
if space.is_w(w_cls, space.gettypeobject(W_ArrayBase.typedef)):
- if len(w_args.keywords_w) > 0:
+ if w_args.keywords: # XXX this might be forbidden fishing
msg = 'array.array() does not take keyword arguments'
raise OperationError(space.w_TypeError, space.wrap(msg))
More information about the Pypy-commit
mailing list