[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Issues with PyMemberDef flags, Outdated *_RESTRICTED flags in structmember.h ___ Python tracker ___ __

[issue2897] include structmember.h in Python.h

2016-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And please don't miss to fix the documentation in 2.7 and 3.5-3.6. -- ___ Python tracker ___ ___ Py

[issue2897] include structmember.h in Python.h

2016-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PY_T_PY_SSIZE_T is not much readable than PY_T_PYSSIZET. I think it can be just PY_T_SSIZE. -- ___ Python tracker ___

[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As explained in #24065, READ_RESTRICTED, PY_WRITE_RESTRICTED and RESTRICTED flags were used for "restricted mode" in Python 2. I don't think we would want to preserve these as we move the rest to object.h. --

[issue2897] include structmember.h in Python.h

2016-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please don't forget to use "hg copy" for creating object.h from structmember.h. This preserves the history. structmember.h should be implemented using object.h. Include object.h and add aliases. Only READONLY flag is used in 3.x (issue28349). Other flags ca

[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would also like this opportunity to rename T_PYSSIZET to something more readable: maybe PY_T_PY_SSIZE_T or PY_T_SSIZE_T. -- ___ Python tracker _

[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch that implements steps 1 and 2 of Martin's plan. There are over 50 files that include structmember.h. I am not sure it is worth the trouble to update all those files before structmember.h is actually removed. If we agree that this

[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +skip.montanaro versions: +Python 3.7 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-lis

[issue2897] include structmember.h in Python.h

2012-12-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue2897] include structmember.h in Python.h

2012-11-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2897] include structmember.h in Python.h

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2897] include structmember.h in Python.h

2009-10-16 Thread Patrick Näf
Changes by Patrick Näf : -- nosy: +herzbube ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue2897] include structmember.h in Python.h

2009-02-02 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: loewis -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue2897] include structmember.h in Python.h

2009-01-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: I agree with Alexander; the header shouldn't be included into Python.h as-is. I would propose to eliminate it eventually, with the following steps: 1. move PyMemberDef and the function declarations into object.h 2. (simultaneously) introduce properly-prefixed

[issue2897] include structmember.h in Python.h

2009-01-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Martin, do you want to make the call on this one? -- assignee: -> loewis nosy: +loewis, rhettinger ___ Python tracker ___ __

[issue2897] include structmember.h in Python.h

2009-01-05 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue2897] include structmember.h in Python.h

2009-01-05 Thread Guido van Rossum
Changes by Guido van Rossum : -- assignee: gvanrossum -> versions: +Python 3.1 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list

[issue2897] include structmember.h in Python.h

2008-05-19 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: Note that structmember.h pollutes global namespace with macros that do not have conventional Py_ or PY_ prefix. READONLY and RESTRICTED macros seem to be most likely to conflict with other code. I would be -0 on including tructmemb

[issue2897] include structmember.h in Python.h

2008-05-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: We could include it in Py3k. -- assignee: -> gvanrossum nosy: +georg.brandl, gvanrossum versions: +Python 3.0 -Python 2.6 __ Tracker <[EMAIL PROTECTED]> __

[issue2897] include structmember.h in Python.h

2008-05-16 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- components: +Interpreter Core versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ ___ P

[issue2897] include structmember.h in Python.h

2008-05-16 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: As the comment in descrobject.c says: /* Why is this not included in Python.h? */ -- messages: 66972 nosy: benjamin.peterson severity: normal status: open title: include structmember.h in Python.h type: feature request