[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-10-09 01:34:20
|
Bugs item #982700, was opened at 2004-06-30 22:19 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=982700&group_id=78018 Category: pythonwin Group: None >Status: Closed >Resolution: Fixed 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) ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2004-10-09 11:34 Message: Logged In: YES user_id=14198 Fixed - thanks Checking in control.py; new revision: 1.14; previous revision: 1.13 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=982700&group_id=78018 |