Re: [Python-Dev] cpython: Issue #20172: Convert the winsound module to Argument Clinic.

2015-05-13 Thread Zachary Ware
On Wed, May 13, 2015 at 1:50 AM, Serhiy Storchaka  wrote:
> On 13.05.15 09:32, zach.ware wrote:
>>
>> https://hg.python.org/cpython/rev/d3582826d24c
>> changeset:   96006:d3582826d24c
>> user:Zachary Ware 
>> date:Wed May 13 01:21:21 2015 -0500
>> summary:
>>Issue #20172: Convert the winsound module to Argument Clinic.
>
>
>> +/*[clinic input]
>> +winsound.PlaySound
>> +
>> +sound: Py_UNICODE(nullable=True)
>
>
> I think this is no longer correct syntax. Should be Py_UNICODE(accept={str,
> NoneType}).

Oh, whoops.  I forgot to run clinic over things again before committing.

We need to stick that into the Windows build process somewhere...

-- 
Zach
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] cpython: Issue #20172: Convert the winsound module to Argument Clinic.

2015-05-12 Thread Serhiy Storchaka

On 13.05.15 09:32, zach.ware wrote:

https://hg.python.org/cpython/rev/d3582826d24c
changeset:   96006:d3582826d24c
user:Zachary Ware 
date:Wed May 13 01:21:21 2015 -0500
summary:
   Issue #20172: Convert the winsound module to Argument Clinic.



+/*[clinic input]
+winsound.PlaySound
+
+sound: Py_UNICODE(nullable=True)


I think this is no longer correct syntax. Should be 
Py_UNICODE(accept={str, NoneType}).



___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com