[pywin32-bugs] [ pywin32-Bugs-982700 ] unicode default arguments raises an error
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-06-30 12:19:54
|
Bugs item #982700, was opened at 2004-06-30 14:19 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=982700&group_id=78018 Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Fedor Baart (siggyf) Assigned to: Nobody/Anonymous (nobody) Summary: unicode default arguments raises an error Initial Comment: A function with a default unicode argument raises an error if pywin shows the argument-popup. Reproduction: Enter the folowing in the interactive window: def test(a=u'a'): pass Enter "test(" and an error will be raised: TypeError: array initializer must be list or string The cause is that array's are created with the text of the default arguments. This is done with typecode 'c'. This isn't unicode compatible. (PythonWin 2.3.4 (#53, May 25 2004, 21:17:02) build 201, Windows XP) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=982700&group_id=78018 |