Expose Py_TabcheckFlag as other PyAPI_DATA flag.

Hi When looking at the pydebug.h header file, I see that some symbols are not declared as exported. For instance, I would like to be able to change the value of the Py_TabcheckFlag when running specific codelines. Any chance this patch could be added ? Thanks for your feedback, Eloi Index: Include/pydebug.h =================================================================== --- Include/pydebug.h (revision 118072) +++ Include/pydebug.h (working copy) @@ -16,6 +16,7 @@ PyAPI_DATA(int) Py_NoSiteFlag; PyAPI_DATA(int) Py_BytesWarningFlag; PyAPI_DATA(int) Py_FrozenFlag; +PyAPI_DATA(int) Py_TabcheckFlag; PyAPI_DATA(int) Py_IgnoreEnvironmentFlag; PyAPI_DATA(int) Py_DontWriteBytecodeFlag; PyAPI_DATA(int) Py_NoUserSiteDirectory; <https://www.fft.be/>

Please submit this to bugs.python.org. On Fri, Oct 18, 2019 at 3:02 AM GAUDRY Eloi <eloi.gaudry@fft.be> wrote:
-- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...>

ok, I will. thanks Eloi Gaudry Senior Product Development Engineer, HPC & IT manager Free Field Technologies, part of Hexagon's Manufacturing Intelligence division T: +32 10 495 147 E: eloi.gaudry@fft.be<mailto:eloi.gaudry@fft.be> [FFT Logo]<http://www.fft.be/> Free Field Technologies Rue Emile Francqui, 9 Mont-Saint-Guibert, Belgium1435 www.fft.be<http://www.fft.be/> | LinkedIn<http://www.linkedin.com/company/52044/> | Facebook<http://www.facebook.com/pages/MSCSoftware/91251157889> | Twitter<https://twitter.com/MSCSoftware> <https://www.fft.be/> ________________________________ From: Guido van Rossum <guido@python.org> Sent: Friday, October 18, 2019 20:27 To: GAUDRY Eloi <Eloi.Gaudry@hexagon.com> Cc: python-ideas@python.org <python-ideas@python.org> Subject: Re: [Python-ideas] Expose Py_TabcheckFlag as other PyAPI_DATA flag. This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. Please submit this to bugs.python.org<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbugs.python.org&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569517250&sdata=OZI2t1B8GOf1Jm8laDrxl9%2FNB3EewUg%2F8USFEPEk92U%3D&reserved=0>. On Fri, Oct 18, 2019 at 3:02 AM GAUDRY Eloi <eloi.gaudry@fft.be<mailto:eloi.gaudry@fft.be>> wrote: Hi When looking at the pydebug.h header file, I see that some symbols are not declared as exported. For instance, I would like to be able to change the value of the Py_TabcheckFlag when running specific codelines. Any chance this patch could be added ? Thanks for your feedback, Eloi Index: Include/pydebug.h =================================================================== --- Include/pydebug.h (revision 118072) +++ Include/pydebug.h (working copy) @@ -16,6 +16,7 @@ PyAPI_DATA(int) Py_NoSiteFlag; PyAPI_DATA(int) Py_BytesWarningFlag; PyAPI_DATA(int) Py_FrozenFlag; +PyAPI_DATA(int) Py_TabcheckFlag; PyAPI_DATA(int) Py_IgnoreEnvironmentFlag; PyAPI_DATA(int) Py_DontWriteBytecodeFlag; PyAPI_DATA(int) Py_NoUserSiteDirectory; <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fft.be%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569517250&sdata=aQSLUQkldKpw9GJ86yc%2FD%2FzxSyCXl66cDCV4S%2B%2FzDj8%3D&reserved=0> _______________________________________________ Python-ideas mailing list -- python-ideas@python.org<mailto:python-ideas@python.org> To unsubscribe send an email to python-ideas-leave@python.org<mailto:python-ideas-leave@python.org> https://mail.python.org/mailman3/lists/python-ideas.python.org/<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman3%2Flists%2Fpython-ideas.python.org%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569527247&sdata=Hk5h35OcmXV7Xj%2FfnToNj4oCyvrf3ggvqAHMOE%2BelB4%3D&reserved=0> Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/PQ7PAEZLKADERJUXWPV7DMI5P2FUKWQ6/<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Farchives%2Flist%2Fpython-ideas%40python.org%2Fmessage%2FPQ7PAEZLKADERJUXWPV7DMI5P2FUKWQ6%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569527247&sdata=qupurnsaetnDNanZihy0ONV7asnYWqKziREqHg0ENbc%3D&reserved=0> Code of Conduct: http://python.org/psf/codeofconduct/<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569537239&sdata=B7TuSZiFKwuuo17roIrKIlPtTt2z1%2FSIIynBMIzTz50%3D&reserved=0> -- --Guido van Rossum (python.org/~guido<https://eur02.safelinks.protection.outlook.com/?url=http:%2F%2Fpython.org%2F~guido&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569537239&sdata=e5J2H1GDEZsDTUNvEpL5g1Qz4gH4FtLz4Yc8GvtntG0%3D&reserved=0>) Pronouns: he/him (why is my pronoun here?)<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Ffeministing.com%2F2015%2F02%2F03%2Fhow-using-they-as-a-singular-pronoun-can-change-the-world%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569547234&sdata=heGy2cWtR5Bfuir0xcZE0VdYIAYyjghfVTfIM5UF%2BU0%3D&reserved=0>

Eloi opened https://bugs.python.org/issue38543 This issue is specific to Python 2.7. Python 3 no longer has Py_TabcheckFlag. Eloi: hey, you should upgrade to Python 3 and have a look at my PEP 587 "Python Initialization Configuration" ;-) Victor

Hi Victor, yes, you're right. I've already upgraded and I mixed up some patches I used to apply on the old 2.7 branch. Thanks for your feedback. Eloi ________________________________ From: Victor Stinner <vstinner@python.org> Sent: Monday, October 21, 2019 13:15 To: GAUDRY Eloi <Eloi.Gaudry@hexagon.com> Cc: guido@python.org <guido@python.org>; python-ideas@python.org <python-ideas@python.org> Subject: Re: [Python-ideas] Re: Expose Py_TabcheckFlag as other PyAPI_DATA flag. This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. Eloi opened https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.pytho... This issue is specific to Python 2.7. Python 3 no longer has Py_TabcheckFlag. Eloi: hey, you should upgrade to Python 3 and have a look at my PEP 587 "Python Initialization Configuration" ;-) Victor

Please submit this to bugs.python.org. On Fri, Oct 18, 2019 at 3:02 AM GAUDRY Eloi <eloi.gaudry@fft.be> wrote:
-- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...>

ok, I will. thanks Eloi Gaudry Senior Product Development Engineer, HPC & IT manager Free Field Technologies, part of Hexagon's Manufacturing Intelligence division T: +32 10 495 147 E: eloi.gaudry@fft.be<mailto:eloi.gaudry@fft.be> [FFT Logo]<http://www.fft.be/> Free Field Technologies Rue Emile Francqui, 9 Mont-Saint-Guibert, Belgium1435 www.fft.be<http://www.fft.be/> | LinkedIn<http://www.linkedin.com/company/52044/> | Facebook<http://www.facebook.com/pages/MSCSoftware/91251157889> | Twitter<https://twitter.com/MSCSoftware> <https://www.fft.be/> ________________________________ From: Guido van Rossum <guido@python.org> Sent: Friday, October 18, 2019 20:27 To: GAUDRY Eloi <Eloi.Gaudry@hexagon.com> Cc: python-ideas@python.org <python-ideas@python.org> Subject: Re: [Python-ideas] Expose Py_TabcheckFlag as other PyAPI_DATA flag. This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. Please submit this to bugs.python.org<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbugs.python.org&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569517250&sdata=OZI2t1B8GOf1Jm8laDrxl9%2FNB3EewUg%2F8USFEPEk92U%3D&reserved=0>. On Fri, Oct 18, 2019 at 3:02 AM GAUDRY Eloi <eloi.gaudry@fft.be<mailto:eloi.gaudry@fft.be>> wrote: Hi When looking at the pydebug.h header file, I see that some symbols are not declared as exported. For instance, I would like to be able to change the value of the Py_TabcheckFlag when running specific codelines. Any chance this patch could be added ? Thanks for your feedback, Eloi Index: Include/pydebug.h =================================================================== --- Include/pydebug.h (revision 118072) +++ Include/pydebug.h (working copy) @@ -16,6 +16,7 @@ PyAPI_DATA(int) Py_NoSiteFlag; PyAPI_DATA(int) Py_BytesWarningFlag; PyAPI_DATA(int) Py_FrozenFlag; +PyAPI_DATA(int) Py_TabcheckFlag; PyAPI_DATA(int) Py_IgnoreEnvironmentFlag; PyAPI_DATA(int) Py_DontWriteBytecodeFlag; PyAPI_DATA(int) Py_NoUserSiteDirectory; <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fft.be%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569517250&sdata=aQSLUQkldKpw9GJ86yc%2FD%2FzxSyCXl66cDCV4S%2B%2FzDj8%3D&reserved=0> _______________________________________________ Python-ideas mailing list -- python-ideas@python.org<mailto:python-ideas@python.org> To unsubscribe send an email to python-ideas-leave@python.org<mailto:python-ideas-leave@python.org> https://mail.python.org/mailman3/lists/python-ideas.python.org/<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman3%2Flists%2Fpython-ideas.python.org%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569527247&sdata=Hk5h35OcmXV7Xj%2FfnToNj4oCyvrf3ggvqAHMOE%2BelB4%3D&reserved=0> Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/PQ7PAEZLKADERJUXWPV7DMI5P2FUKWQ6/<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Farchives%2Flist%2Fpython-ideas%40python.org%2Fmessage%2FPQ7PAEZLKADERJUXWPV7DMI5P2FUKWQ6%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569527247&sdata=qupurnsaetnDNanZihy0ONV7asnYWqKziREqHg0ENbc%3D&reserved=0> Code of Conduct: http://python.org/psf/codeofconduct/<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569537239&sdata=B7TuSZiFKwuuo17roIrKIlPtTt2z1%2FSIIynBMIzTz50%3D&reserved=0> -- --Guido van Rossum (python.org/~guido<https://eur02.safelinks.protection.outlook.com/?url=http:%2F%2Fpython.org%2F~guido&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569537239&sdata=e5J2H1GDEZsDTUNvEpL5g1Qz4gH4FtLz4Yc8GvtntG0%3D&reserved=0>) Pronouns: he/him (why is my pronoun here?)<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Ffeministing.com%2F2015%2F02%2F03%2Fhow-using-they-as-a-singular-pronoun-can-change-the-world%2F&data=02%7C01%7C%7C5373a331452b47b4ca9d08d753f8d949%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C637070200569547234&sdata=heGy2cWtR5Bfuir0xcZE0VdYIAYyjghfVTfIM5UF%2BU0%3D&reserved=0>

Eloi opened https://bugs.python.org/issue38543 This issue is specific to Python 2.7. Python 3 no longer has Py_TabcheckFlag. Eloi: hey, you should upgrade to Python 3 and have a look at my PEP 587 "Python Initialization Configuration" ;-) Victor

Hi Victor, yes, you're right. I've already upgraded and I mixed up some patches I used to apply on the old 2.7 branch. Thanks for your feedback. Eloi ________________________________ From: Victor Stinner <vstinner@python.org> Sent: Monday, October 21, 2019 13:15 To: GAUDRY Eloi <Eloi.Gaudry@hexagon.com> Cc: guido@python.org <guido@python.org>; python-ideas@python.org <python-ideas@python.org> Subject: Re: [Python-ideas] Re: Expose Py_TabcheckFlag as other PyAPI_DATA flag. This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. Eloi opened https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.pytho... This issue is specific to Python 2.7. Python 3 no longer has Py_TabcheckFlag. Eloi: hey, you should upgrade to Python 3 and have a look at my PEP 587 "Python Initialization Configuration" ;-) Victor
participants (4)
-
Batuhan Taskaya
-
GAUDRY Eloi
-
Guido van Rossum
-
Victor Stinner