Mercurial > cpython-lru_cache-weakref
diff Modules/collectionsmodule.c @ 35449:1fdfd0130e28 legacy-trunk
Disallow keyword arguments for type constructors that don't use them.
(fixes bug #1119418)
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 26 Aug 2005 06:42:30 +0000 |
| parents | 2ee575b9b60e |
| children | e22334b1da67 |
line wrap: on
line diff
--- a/Modules/collectionsmodule.c Thu Aug 25 22:40:16 2005 +0000 +++ b/Modules/collectionsmodule.c Fri Aug 26 06:42:30 2005 +0000 @@ -95,6 +95,9 @@ dequeobject *deque; block *b; + if (!_PyArg_NoKeywords("deque()", kwds)) + return NULL; + /* create dequeobject structure */ deque = (dequeobject *)type->tp_alloc(type, 0); if (deque == NULL)
