[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-05 Thread Tal Einat


Tal Einat  added the comment:

Thanks Serhiy! The compiler doesn't warn about that on Windows.

See PR GH-11444 with a fix.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-05 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10894

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-05 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +10892, 10893, 10894

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-05 Thread Tal Einat


Change by Tal Einat :


--
pull_requests:  -10893

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-05 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +10892, 10893

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-05 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +10892

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-05 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Seems PR 11328 introduced a compiler warning:

In file included from ./Include/Python.h:64:0,
 from ./Python/sysmodule.c:17:
./Python/sysmodule.c:1597:14: warning: ‘sys_clear_type_cache__doc__’ defined 
but not used [-Wunused-variable]
 PyDoc_STRVAR(sys_clear_type_cache__doc__,
  ^
./Include/pymacro.h:70:37: note: in definition of macro ‘PyDoc_VAR’
 #define PyDoc_VAR(name) static char name[]
 ^~~~
./Python/sysmodule.c:1597:1: note: in expansion of macro ‘PyDoc_STRVAR’
 PyDoc_STRVAR(sys_clear_type_cache__doc__,
 ^~~~

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-01 Thread Tal Einat


Change by Tal Einat :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-01 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332827

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2019-01-01 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332828

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat


Tal Einat  added the comment:


New changeset ede0b6fae20290bf22b6ee1b9a1e1179d750f360 by Tal Einat in branch 
'master':
bpo-20182: AC convert Python/sysmodule.c (GH-11328)
https://github.com/python/cpython/commit/ede0b6fae20290bf22b6ee1b9a1e1179d750f360


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat


Tal Einat  added the comment:


New changeset ede0b6fae20290bf22b6ee1b9a1e1179d750f360 by Tal Einat in branch 
'master':
bpo-20182: AC convert Python/sysmodule.c (GH-11328)
https://github.com/python/cpython/commit/ede0b6fae20290bf22b6ee1b9a1e1179d750f360


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat


Tal Einat  added the comment:

AFAICT, this issue can finally be closed!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat


Tal Einat  added the comment:

Note that the problematic part of the Modules/_hashopenssl.c AC conversion was 
reverted, as part of GH-11379.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat


Tal Einat  added the comment:


New changeset ede0b6fae20290bf22b6ee1b9a1e1179d750f360 by Tal Einat in branch 
'master':
bpo-20182: AC convert Python/sysmodule.c (GH-11328)
https://github.com/python/cpython/commit/ede0b6fae20290bf22b6ee1b9a1e1179d750f360


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-30 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

PR 9213 added a compiler warning:

In file included from /home/serhiy/py/cpython/Modules/_hashopenssl.c:69:0:
/home/serhiy/py/cpython/Modules/clinic/_hashopenssl.c.h:90:1: warning: 
‘EVP_tp_init’ defined but not used [-Wunused-function]
 EVP_tp_init(PyObject *self, PyObject *args, PyObject *kwargs)
 ^~~

help(_hashlib.HASH) shows now the signature of the constructor of the object. 
But a hash object can not be created using it.

class HASH(builtins.object)
 |  HASH(name, string=b'')
 |  
 |  A hash is an object used to calculate a checksum of a string of information.
...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332590
Removed message: https://bugs.python.org/msg332607
Removed message: https://bugs.python.org/msg332661

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332590
Removed message: https://bugs.python.org/msg332607

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332590

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Tal Einat  added the comment:


New changeset c6c7237272499b2c528acb5f62601421f329e92a by Tal Einat in branch 
'master':
bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)
https://github.com/python/cpython/commit/c6c7237272499b2c528acb5f62601421f329e92a


___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332590
Removed message: https://bugs.python.org/msg332594
Removed message: https://bugs.python.org/msg332608
Removed message: https://bugs.python.org/msg332609

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332608
Removed message: https://bugs.python.org/msg332609

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332594
Removed message: https://bugs.python.org/msg332608

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-28 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332609

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Tal Einat  added the comment:


New changeset c6c7237272499b2c528acb5f62601421f329e92a by Tal Einat in branch 
'master':
bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)
https://github.com/python/cpython/commit/c6c7237272499b2c528acb5f62601421f329e92a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Tal Einat  added the comment:


New changeset c6c7237272499b2c528acb5f62601421f329e92a by Tal Einat in branch 
'master':
bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)
https://github.com/python/cpython/commit/c6c7237272499b2c528acb5f62601421f329e92a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Tal Einat  added the comment:


New changeset c6c7237272499b2c528acb5f62601421f329e92a by Tal Einat in branch 
'master':
bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)
https://github.com/python/cpython/commit/c6c7237272499b2c528acb5f62601421f329e92a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Tal Einat  added the comment:

See new PR GH-11328 with updated AC conversion of Python/sysmodule.c.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +10591, 10592

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +10591, 10592, 10593

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +10591

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Tal Einat  added the comment:


New changeset c6c7237272499b2c528acb5f62601421f329e92a by Tal Einat in branch 
'master':
bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)
https://github.com/python/cpython/commit/c6c7237272499b2c528acb5f62601421f329e92a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Tal Einat  added the comment:

The conversion of Modules/_hashopenssl.c leaves just Python/sysmodule.c to be 
converted from this batch.

There's an old patch here from 3.5 years ago that will likely need to be 
heavily updated.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Change by Tal Einat :


--
Removed message: https://bugs.python.org/msg332588

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Tal Einat  added the comment:

The conversion of Modules/_hashopenssh.c leaves just Python/sysmodule.c to be 
converted from this batch.

There's an old patch here from 3.5 years ago that will likely need to be 
heavily updated.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-27 Thread Tal Einat


Tal Einat  added the comment:


New changeset c6c7237272499b2c528acb5f62601421f329e92a by Tal Einat in branch 
'master':
bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)
https://github.com/python/cpython/commit/c6c7237272499b2c528acb5f62601421f329e92a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-09-12 Thread Tal Einat


Tal Einat  added the comment:

See new updated PR9213 for completing the _hashopenssl.c conversion.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-09-12 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +8645

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-11-03 Thread Tal Einat

Tal Einat  added the comment:

See issue #31938 regarding Modules/selectmodule.c.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-11-03 Thread Tal Einat

Change by Tal Einat :


--
pull_requests: +4229

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-11-03 Thread Tal Einat

Tal Einat  added the comment:

As the author of all of the updated patches, I wouldn't mind opening new issues 
separately for each of the remaining modules. Actually I would prefer it :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-11-03 Thread STINNER Victor

STINNER Victor  added the comment:

I really hate the title of these issues "Derby #13: Convert 50 sites to 
Argument Clinic across 5 files". I would prefer to have one issue per file. 
Would it possible to close this one and open a new issue once someone has a PR 
for one file?

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-11-02 Thread Tal Einat

Tal Einat  added the comment:

See issue #31926 and PR 4230 regarding the aforementioned argument clinic bug 
and a fix for it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-11-02 Thread Tal Einat

Tal Einat  added the comment:

I have a complete, up-to-date AC conversion of Modules/selectmodule.c ready on 
a branch in my GitHub CPython fork:

https://github.com/taleinat/cpython/tree/bpo-20182_AC_selectmodule

I haven't created a PR because there's currently an issue with the generated 
selectmodule.c.h missing a few "safety" #defines, causing compilation errors 
e.g. on Windows where poll is unavailable. Any help resolving this issue would 
be welcome!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-28 Thread Tal Einat

Tal Einat  added the comment:

Regarding the select module, the existing patch moves typedefs and object type 
declarations to the top of the file with the #include clinic/selectmodule.c.h 
statement can come afterwards. Should I keep it this way, or instead move the 
method list and type definitions to the bottom of the file, as Serhiy said was 
preferable with itertoolsmodule.c?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-24 Thread Tal Einat

Tal Einat  added the comment:

I'd be happy to update the patches.

I asked for a bit of clarification on what this entails in msg304931 on issue 
#20180, once that's clear I'll do the same for these patches and create PRs.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-24 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Tal, do you mind to update your patches and create pull requests?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-24 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
Removed message: https://bugs.python.org/msg304906

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-24 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Tail, do you mind to update your patches and create pull requests?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 738ac3ad9ee4 by Serhiy Storchaka in branch 'default':
Fixed compilation error in signalmodule.c (issue #20182).
https://hg.python.org/cpython/rev/738ac3ad9ee4

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-16 Thread Tal Einat

Tal Einat added the comment:

Here's a patch just for Modules/sysmodule.c (and related files), based on 
Georg's patch, updated to apply against current default, including fixes thanks 
to Serhiy's review.

Despite Serhiy's suggestions, I've not used parameter groups, due to Larry's 
statement of his dislike of this (ab)use of the feature.

I've left an alias of the form args as args_value: since the latest clinic.py 
doesn't automatically alias args (causing a compile error).

At Serhiy's suggestion, I've also converted sys.callstats. I couldn't find any 
tests for it, so someone should definitely review this conversion!

All tests pass on my OSX 10.10.

--
Added file: http://bugs.python.org/file39387/issue20182.sysmodule.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The signature of sys.getsizeof() is not correct. sys.getsizeof(obj) is not the 
same as sys.getsizeof(obj, None). If not use optional group, then this function 
should not be converted to Argument Clinic. See also dict.get() with similar 
signature.

Opened new issue (issue24207) for the bug with the args parameter.

You can commit the patch for the signal module Tal.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5342fad7cd59 by Tal Einat in branch 'default':
Issue #20182: converted the signal module to use Argument Clinic
https://hg.python.org/cpython/rev/5342fad7cd59

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-16 Thread Tal Einat

Tal Einat added the comment:

Serhiy: Indeed, you're right about sys.getsizeof(). I'm tending towards 
changign it to use an optional group and per Serhiy's suggestion. Larry?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-16 Thread Tal Einat

Tal Einat added the comment:

Attached in a conversion patch for Modules/_hashopenssl.c.

Since it appear that zlib has already been converted, that's the last file to 
convert in this batch!

All tests pass on my OSX 10.10 (after running touch Modules/hashlib.h to get 
make to recompile things that use _hashopenssl).


Notes:

1)
In HASH.__init__, the name parameter must be a string. However, the current 
code accepts any object and checks something else before checking whether the 
given object is a string. Therefore, changing the type from object to str 
would slightly change the parameter checking behavior. For now I've left it as 
it was. Also, since HASH.__new__ mirrors this, I've left it as-is as well.

2)
I slightly changed the first line of the HASH object's doc-string, to make it 
fit in one line. It was: A hash represents the object used to calculate a 
checksum of a string of information. I've changed the beginning to A hash is 
an object used to calculate ...

3)
pbkdb_hmac accepts an optional dklen parameter which may be either a long or 
None. I left this as an object, since long(accept={int, NoneType}) gives 
long_converter: default value None for field dklen_obj is not of type int.

--
Added file: http://bugs.python.org/file39389/issue20182._hashopenssl.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Added new comments. issue20182.signalmodule.patch LGTM.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't see the v2 patch for the signal module.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-03 Thread Tal Einat

Tal Einat added the comment:

Do you mean the v2.patch file, or the one before it?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-03 Thread Tal Einat

Tal Einat added the comment:

Sorry, my mistake, got mixed up with selectmodule.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-25 Thread Tal Einat

Tal Einat added the comment:

Here's a slightly modified version of the most recent patch for 
Modules/selectmodule.c. The only difference relative to the previous version is 
that I've set the epoll method function names back to what they used to be. My 
reasoning is to stay consistent with the other epoll method function names in 
the file and to keep the code familiar for the maintainers.

--
Added file: http://bugs.python.org/file39203/issue20182.selectmodule.v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

It would be more helpful to split the patch on three independent patches for 
three modules.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Tal Einat

Tal Einat added the comment:

Here's a patch just for Modules/signalmodule.c (and related files), based on 
Georg's patch, updated to apply against current default, including fixes thanks 
to Serhiy's review.

This include one minor doc change, since I changed the name of the second 
parameter to signal.pthread_kill from signum to signalnum to be consistent 
with the rest of the signal module. This will not break existing code since 
this parameter is positional-only.

--
Added file: http://bugs.python.org/file39194/issue20182.signalmodule.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Tal Einat

Tal Einat added the comment:

Here's a patch just for Modules/selectmodule.c (and related files), based on 
Georg's patch, updated to apply against current default, including fixes thanks 
to Serhiy's review.

It took a while since I had to get a Linux VM up to run the epoll tests. And it 
was good that I did, since Georg's patch had several errors in that area.

It is important to note that epoll.poll now raises a different exception when 
called with invalid arguments after it has been closed. It used to raise 
ValueError since it first checked whether it was closed before checking the 
parameters. With this patch, the parameters are checked first so a TypeError is 
raised. This behavior wasn't documented and wasn't tested, so it seems 
relatively safe to change. At Serhiy's suggestion, I added a test for the new 
behavior. Perhaps this should be mentioned in the release notes and/or what's 
new?

--
Added file: http://bugs.python.org/file39201/issue20182.selectmodule.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

And it would be more helpful to use self-descriptive converter names instead of 
cryptic format units.

--
stage: needs patch - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Tal Einat

Tal Einat added the comment:

Serhiy, I agree on both points. I can easily replace all of the converters and 
upload it as three separate patches. If you haven't started reviewing the patch 
yet, let me know and I'll do these things ASAP.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I already have reviewed changes to select and signal.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-23 Thread Tal Einat

Tal Einat added the comment:

I'm working on a new version of Georg's patch which applies to the current 
default branch.

I'm having trouble with AC output going into a separate file, since this 
requires a lot of things to be declared before the #include of the .c.h file. 
Should I move all of those definitions to the top of the file, even if they are 
currently spread all over it? Should I just add forward declarations? And if 
the latter, how do I forward-declare a struct typedef?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-23 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

You only need include generated file before defining PyMethodDef arrays and 
PyTypeObject instances. There shouldn't be problems if only one class is 
defined in a file, otherwise you can move these static initializations together 
to the end of the file.

--
nosy: +serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-23 Thread Tal Einat

Tal Einat added the comment:

Here's a new version of Georg's patch which applies to the current default 
branch. On my OSX 10.8, CPython compiles fine and all tests pass, though 
test_devpoll and test_epoll were skipped.

I haven't made additional changes, so there is still AC-related work to be done 
here. For example, there are legacy converters used throughout the code, which 
should be replaced.

Changes I had to make to get this working:

1)
Updated the class declarations in selectmodule.c with the additional parameters.

2)
The doc-string for signal.sigwaitinfo was changed since Georg made his patch, 
and its first line was now too long. I shortened the first line from:

Wait synchronously for a signal until one of the signals in *sigset* is 
delivered.

to:

Wait synchronously until one of the signals in *sigset* is delivered.

3)
Converted the new sys.is_finalizing function.

4)
Reverted the signal.set_wakeup_fd function, since it has since been changed, 
and now depending on #ifdef MS_WINDOWS it interprets the argument as either 'O' 
or 'i'. I'm not sure what to do with this one, so I reverted it back to not use 
AC for now.

5)
I haven't converted the new signal.default_int_handler function, since it seems 
to accept any number of arguments, and ignores them. Is there a way to do this 
with AC?

6)
Moved the definitions of object structs and PyTypeObject types to the top of 
selectmodule.c, so that they are defined when Modules/clinic/selectmodule.c.h 
is imported.

--
Added file: http://bugs.python.org/file39188/modules_issue20182_v3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-23 Thread Tal Einat

Tal Einat added the comment:

Note: Despite not appearing in any of these patches, the zlib module seems to 
have already been converted.

--
nosy: +taleinat

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-02-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
components: +Argument Clinic

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-07-27 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The patch does not apply anymore. Can you please update it, and rerun AC on it?

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-16 Thread Georg Brandl

Georg Brandl added the comment:

New patch addressing comments.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-16 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Added file: http://bugs.python.org/file33491/modules_issue20182_v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Here's the signalmodule.

--
keywords: +patch
nosy: +georg.brandl
Added file: http://bugs.python.org/file33427/signal_clinic.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Now without crap.

--
Added file: http://bugs.python.org/file33428/signal_clinic.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Removed file: http://bugs.python.org/file33427/signal_clinic.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Here's sys.

For it to generate the correct code you need to add args to c_keywords in 
clinic.py.

--
Added file: http://bugs.python.org/file33429/sys_clinic.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Removed file: http://bugs.python.org/file33429/sys_clinic.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Removed file: http://bugs.python.org/file33428/signal_clinic.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

New patch.

In selectmodule.c I haven't touched devpoll and kqueue, which I can't compile 
here.

_hashopenssl does weird things with macros, I'm waiting with that.

--
Added file: http://bugs.python.org/file33441/modules_issue20182.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-08 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


--
nosy: +nadeem.vawda

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-07 Thread Larry Hastings

New submission from Larry Hastings:

This issue is part of the Great Argument Clinic Conversion Derby,
where we're trying to convert as much of Python 3.4 to use
Argument Clinic as we can before Release Candidate 1 on January 19.

This issue asks you to change the following bundle of files:
Modules/signalmodule.c: 12 sites
Modules/selectmodule.c: 12 sites
Modules/zlibmodule.c: 11 sites
Python/sysmodule.c: 10 sites
Modules/_hashopenssl.c: 5 sites

Talk to me (larry) if you only want to attack part of a bundle.

For instructions on how to convert a function to work with Argument
Clinic, read the howto:
http://docs.python.org/dev/howto/clinic.html

--
components: Extension Modules
messages: 207639
nosy: larry
priority: normal
severity: normal
stage: needs patch
status: open
title: Derby #13: Convert 50 sites to Argument Clinic across 5 files
type: enhancement
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com