[issue2802] str.format() :n integer output

2008-05-09 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: > It isn't hard (in Python): It's more complex, because the "3" is locale dependent, and is allowed to be something like "3, then 2, then 3, then 1, repeating until the start of the string". See _group

[issue2802] str.format() :n integer output

2008-05-11 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: Implemented in 2.6 as r63078. I'll port this to py3k shortly. __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2802] str.format() :n integer output

2008-05-11 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: Implemented in 3.0 as r63093. I'm closing this issue. I added the C code that does the grouping insertion as _PyString_InsertThousandsGrouping and _PyUnicode_InsertThousandsGrouping (in 3.0). This might be useful to others, although

[issue2836] str.format() documentation needs to be backported to 2.6

2008-05-12 Thread Eric Smith
New submission from Eric Smith <[EMAIL PROTECTED]>: 3.0 has documentation for str.format(), but that documentation is missing in 2.6. The 2.6 what's new document: http://docs.python.org/dev/whatsnew/2.6.html also has an XXX reference to this: "Consult the 2.6 documentation for

[issue2836] str.format() documentation needs to be backported to 2.6

2008-05-12 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: When backporting to 2.6, this needs to be documented for both str and unicode. __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4166] extra "\fi

2008-10-21 Thread Eric Firing
Changes by Eric Firing <[EMAIL PROTECTED]>: -- assignee: georg.brandl components: Documentation tools (Sphinx) nosy: efiring, georg.brandl severity: normal status: open title: extra "\fi ___ Python tracker <[EMAIL PROTECTED]> <ht

[issue4166] extra "\fi" in sphinx.sty, line 62

2008-10-21 Thread Eric Firing
New submission from Eric Firing <[EMAIL PROTECTED]>: Building the matplotlib docs using Sphinx svn 66969 results in a Latex error ending in: ) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty (/usr/share/texmf-texlive/tex

[issue4205] unexpected str.__init__() behaviour on b''

2008-10-25 Thread Eric Devolder
New submission from Eric Devolder <[EMAIL PROTECTED]>: creating a unicode string from an empty b'' does not result in '', but produces "b''" instead. >>> str(b'') "b''" Workaround: if the encoding is spe

[issue4205] unexpected str.__init__() behaviour on b''

2008-10-25 Thread Eric Devolder
Eric Devolder <[EMAIL PROTECTED]> added the comment: Thanks for the tip - and sorry about the noise. I didn't catch this when reading through PEPs & manual, however. ___ Python tracker <[EMAIL PROTECTED]> <http://b

[issue4238] BSD support for multiprocessing.cpu_count

2008-10-29 Thread Eric Gillespie
New submission from Eric Gillespie <[EMAIL PROTECTED]>: Tested on NetBSD, but should work on any; sysctl goes back to 4.4BSD. -- components: Library (Lib) files: diff messages: 75353 nosy: epg severity: normal status: open title: BSD support for multiprocessing.cpu_count ve

[issue4238] BSD support for multiprocessing.cpu_count

2008-10-30 Thread Eric Gillespie
Eric Gillespie <[EMAIL PROTECTED]> added the comment: sys.platform is 'netbsd4', and presumably 'freebsd5' and so on, so that won't work. ___ Python tracker <[EMAIL PROTECTED]&

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2008-11-18 Thread Eric Huss
Eric Huss <[EMAIL PROTECTED]> added the comment: I'm disappointed to see this closed. Exception pickling is still broken in some cases in 2.6. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pyt

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2008-11-18 Thread Eric Huss
Eric Huss <[EMAIL PROTECTED]> added the comment: In the attached test_exception_pickle.py file, class C and D cannot be unpickled (raises TypeError). class C(Exception): """Extension with values, args not set.""" def __init__(self, foo):

[issue4407] Windows Installer Error 1722 when opting for compilation at install time

2008-11-24 Thread Eric Devolder
New submission from Eric Devolder <[EMAIL PROTECTED]>: This error happens when opting in for compiling the scripts at installation. (please note also that I did not selected "register extension", but I don't think this has an impact). Here is the text from event viewer: P

[issue4407] Windows Installer Error 1722 when opting for compilation at install time

2008-11-30 Thread Eric Devolder
Eric Devolder <[EMAIL PROTECTED]> added the comment: Dear Martin, It's my pleasure. I'm just sorry if I misled you a bit, but as I told I haven't managed to have a full testing env yet ( although I'm close to it), so I could not check in time if it would have fixe

[issue4407] Windows Installer Error 1722 when opting for compilation at install time

2008-12-01 Thread Eric Devolder
Changes by Eric Devolder <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12176/unnamed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4482] 10e667.__format__('+') should return 'inf'

2008-12-01 Thread Eric Smith
Changes by Eric Smith <[EMAIL PROTECTED]>: -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue4678] Unicode: multiple chars for high code points

2008-12-16 Thread Eric Eisner
New submission from Eric Eisner : I discovered this when trying to splice a string containing unicode codepoints higher than U+ all examples on 32-bit Ubuntu Linux python 2.5.2 (for comparison): sys.maxunicode # 1114111 len(unichr(66674)) # 1 len(u'\U00010472') #

[issue4701] range objects becomes hashable after attribute access

2008-12-19 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue4701> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4701] range objects becomes hashable after attribute access

2008-12-28 Thread Eric Smith
Eric Smith added the comment: > Perhaps the path of least resistance is to change PyObject_Hash to be > yet another place where PyType_Ready will be called implicitly if it > hasn't been called already? I think that's the best thing to do. It would bring PyObjec

[issue4784] Mismatch in documentation for module "webbrowser"

2008-12-30 Thread Eric Naeseth
New submission from Eric Naeseth : In Python 2.5, a new method named "open_new_tab" was added to webbrowser and webbrowser's browser controller objects. With this addition, there are now three methods on browser controllers, but the documentation still reads: "Browser con

[issue5023] Segfault in datetime.time.strftime("%z")

2009-01-21 Thread Eric Wald
New submission from Eric Wald : Execution of "make test" for Python 2.6.1 halts with a segmentation fault on line 2198 of Python-2.6.1/Lib/test/test_datetime.py; also occurs using the attached script, narrowing it down to the %z sequence in the format argument to datetime.time.strft

[issue5023] Segfault in datetime.time.strftime("%z")

2009-01-22 Thread Eric Wald
Eric Wald added the comment: Update: Undefining HAVE_SNPRINTF does not correct the problem. ___ Python tracker <http://bugs.python.org/issue5023> ___ ___ Python-bug

[issue4285] Use a named tuple for sys.version_info

2009-02-03 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue4285> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4285] Use a named tuple for sys.version_info

2009-02-03 Thread Eric Smith
Changes by Eric Smith : -- assignee: brett.cannon -> eric.smith ___ Python tracker <http://bugs.python.org/issue4285> ___ ___ Python-bugs-list mailing list Un

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Eric Smith
Eric Smith added the comment: The doc string for sys includes: version_info -- version information as a tuple I'm not sure changing this to "... as a structseq" makes it any more useful, but it's more correct. Does anyone have a preference? I'd use the same wording

[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Eric Smith
Eric Smith added the comment: "... as a named tuple" works for me. I'll go with that. Thanks! ___ Python tracker <http://bugs.python.org/issue4285> ___ ___

[issue4285] Use a named tuple for sys.version_info

2009-02-05 Thread Eric Smith
Eric Smith added the comment: Committed in r69331 (trunk) and r69346 (py3k). -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue5122> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Eric Smith
Eric Smith added the comment: Yes, I have these installed: tcl-8.4.13-3.fc6 tcl-devel-8.4.13-3.fc6 tk-8.4.13-3.fc6 tk-devel-8.4.13-3.fc6 When I run "./python Lib/test/regrtest.py test_tcl test_ttk_guionly", it hangs. ___ Python trac

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Eric Smith
Eric Smith added the comment: The patch does solve the problem for me. It no longer hangs when running either: ./python Lib/test/regrtest.py test_tcl test_ttk_guionly or: ./python Lib/test/regrtest.py - ... test_traceback test_transformer test_ttk_guionly test_ttk_guionly skipped

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Eric Smith
Eric Smith added the comment: The second patch (checking_for_failed_tk_load.diff) also works for me. ___ Python tracker <http://bugs.python.org/issue5122> ___ ___ Pytho

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Eric Smith
Eric Smith added the comment: With the second patch installed, your code snippet does indeed hang for me. With the third patch installed, I get: [trunk]$ ./python Python 2.7a0 (trunk:69369M, Feb 6 2009, 14:59:32) [GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2 Type "help",

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-07 Thread Eric Smith
Eric Smith added the comment: protect_tk_loading.diff works for me. ___ Python tracker <http://bugs.python.org/issue5122> ___ ___ Python-bugs-list mailing list Unsub

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-09 Thread Eric Smith
Eric Smith added the comment: The current patch (protect_tk_loading.diff) looks reasonable to me, and it solves my problem with the tests hanging. So I'd suggest you commit the patch, insofar it improves on the current situation. I'm not an expert in tk, however. So if you'

[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-02-12 Thread Eric Swenson
New submission from Eric Swenson : Building python extensions using distutils in python 2.6 with only VC++ 2005 installed no longer works. distutils appears to require VC++ 2008. The documentation on building extensions for Python 2.6 seems to suggest that VC++ 2008, while preferred, is

[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-02-12 Thread Eric Swenson
Eric Swenson added the comment: Hi Tarek, I have been debugging this and found the following: If you set the DISTUTILS_USE_SDK environment variable to any value (I used DISTUTILS_USE_SDK=1) and the MSSdk environment variable to anything (I used MSSdk=1), and you manually run the "vcvarsal

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-12 Thread Eric Smith
Eric Smith added the comment: It's easy enough to implement. Although the 'all-or-nothing' aspect is a little tough, I'll have to give it some thought. Maybe the best way to do this is to first create a string.Formatter subclass that implements it. I'll play with it an

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-12 Thread Eric Smith
Eric Smith added the comment: How is: '{d}{s}{f}'.format(3, 'foo', 3.14) more unclear than: '%d%s%f' % (3, 'foo', 3.14) ? But the more I think about it, the more I think it would have to be: '{:d}{:s}{:f}'.format(3, 'foo', 3.14) Sin

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread Eric Smith
Eric Smith added the comment: The attached file is a mostly working version that inherits from string.Formatter. It has the following shortcomings, which would all be addressed if we go forward: - Doesn't handle escaping '{' or '}' - Doesn't handle conversion sp

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread Eric Smith
Eric Smith added the comment: Right. The colon would be required if there's a format specifier. Or an exclamation if there's just a conversion specifier: "{!r}{:f}{!s:^10}".format('foo', 3, 10) would give: "'foo'3.0010" I've

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread Eric Smith
Eric Smith added the comment: Terry J. Reedy wrote: > Terry J. Reedy added the comment: > > All I am requesting is that > '{} {} {}'.format(3, 'pi', 3.14) work as > >>>> '%s %s %s' % (3, 'pi', 3.14) > '3 pi 3.14'

[issue5247] Unhelpful error message with str.format()

2009-02-13 Thread Eric Smith
Eric Smith added the comment: I agree. I'm not sure on backporting this. I'll work on a patch. ___ Python tracker <http://bugs.python.org/issue5247> ___ ___

[issue5247] Unhelpful error message with str.format()

2009-02-13 Thread Eric Smith
Changes by Eric Smith : -- assignee: -> eric.smith ___ Python tracker <http://bugs.python.org/issue5247> ___ ___ Python-bugs-list mailing list Unsubscri

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread Eric Smith
Changes by Eric Smith : -- assignee: -> eric.smith ___ Python tracker <http://bugs.python.org/issue5237> ___ ___ Python-bugs-list mailing list Unsubscri

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-14 Thread Eric Smith
Eric Smith added the comment: auto_number_formatter_2.py lets you experiment with this with a syntax more similar to what ''.format() looks like: $ ./python Python 2.7a0 (trunk:69608, Feb 14 2009, 04:51:18) [GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2 Type "help", &

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-14 Thread Eric Smith
Eric Smith added the comment: Okay, one last version. This one lets you use object access within the replacement string: >>> from auto_number_formatter_3 import formatter as _ >>> _('{} {} {}').format(3, 'pi', 3.14) '3 pi 3.14' >>> _(&#x

[issue5247] Unhelpful error message with str.format()

2009-02-15 Thread Eric Smith
Eric Smith added the comment: I've gone back and read PEP 3101. To use its terminology, I think the error message should be something like: Unknown presentation type %c for type %s. I'm not sure where I got the original wording "conversion type". It's true that it&

[issue5247] Unhelpful error message with str.format()

2009-02-15 Thread Eric Smith
Eric Smith added the comment: The attached patch (against trunk) changes the message. However, it has at least one unintended consequence. If you have an object with no __format__, it gets converted to a string, which is then formatted. So you get: >>> '{0:^10}'

[issue5247] Unhelpful error message with str.format()

2009-02-15 Thread Eric Smith
Eric Smith added the comment: With this patch, I changed it to "format code", and made it more in line with Antoine's original suggested message. I'm okay with "format code" or "formatting code", but if we do use either of those wordings, we should cha

[issue46964] The global config should not be stored on each interpreter

2022-03-08 Thread Eric Snow
New submission from Eric Snow : tl;dr let's move PyInterpreterState.config to _PyRuntimeState.config. Historically the runtime has been initialized using Py_Initialize(). PEP 587 added Py_InitializeFromConfig(), which takes a PyConfig and allows all sorts of customization of the ru

[issue46964] The global config should not be stored on each interpreter

2022-03-08 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +29879 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31771 ___ Python tracker <https://bugs.python.org/issu

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-14 Thread Eric Vergnaud
Eric Vergnaud added the comment: This is not a feature request, it's a bug fix request, so should be fixed asap. Why is it a bug ? XML spec says that "the default namespace does not apply to attribute names" (see section 6.3), therefore having a simple attribute name when u

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-14 Thread Eric Vergnaud
Eric Vergnaud added the comment: lxml tostring does not support the default_namespace value so not an option -- ___ Python tracker <https://bugs.python.org/issue45

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-14 Thread Eric Vergnaud
Eric Vergnaud added the comment: Actually there are 2 distinct issues here: - ValueError: cannot use non-qualified names with default_namespace option - lack of 'standalone' option when writing XML PI -- ___ Python track

[issue46712] Share global string identifiers in deepfreeze

2022-03-22 Thread Eric Snow
Eric Snow added the comment: > After a new `&_Py_ID(__orig_class__)` is added to > Objects/genericaliasobject.c, running `make regen-global-objects` starts > > gcc -pthread -c [snipped] -DPy_BUILD_CORE -o Objects/genericaliasobject.o > Objects/genericaliasobject.c >

[issue46712] Share global string identifiers in deepfreeze

2022-03-22 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +30151 pull_request: https://github.com/python/cpython/pull/32061 ___ Python tracker <https://bugs.python.org/issue46

[issue46964] The global config should not be stored on each interpreter

2022-03-22 Thread Eric Snow
Eric Snow added the comment: Here are reasons why PyConfig relates to the runtime and not each interpreter: * PyConfig was introduced so embedders could dictate how the *runtime* should be initialized * after initialization, it represents how the runtime was initialized * in the public API

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-03-22 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +30154 pull_request: https://github.com/python/cpython/pull/32063 ___ Python tracker <https://bugs.python.org/issue46

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-03-23 Thread Eric Snow
Eric Snow added the comment: New changeset 21412d037b07c08266e96dfd0c0e44a1b7693bc1 by Eric Snow in branch 'main': bpo-46541: Add a Comment About When to Use _Py_DECLARE_STR(). (gh-32063) https://github.com/python/cpython/commit/21412d037b07c08266e96dfd0c0e44

[issue46712] Share global string identifiers in deepfreeze

2022-03-23 Thread Eric Snow
Eric Snow added the comment: New changeset febf54bcf3fdc45ad84b4073e24bbaaee0ac8b2a by Eric Snow in branch 'main': bpo-46712: Do not Regen Deep-Frozen Modules before Generating Global Objects (gh-32061) https://github.com/python/cpython/commit/febf54bcf3fdc45ad84b4073e24bba

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
New submission from Eric Snow : The "Check if generated files are up to date" GitHub check for PRs has been failing recently. It may also impact local usage of "make regen-all". Example: https://github.com/python/cpython/runs/5719012664 This may be related to gh-32061.

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
Eric Snow added the comment: There's probably something racy with make. See: https://github.com/python/cpython/runs/5712538599?check_suite_focus=true#step:10:1147 -- ___ Python tracker <https://bugs.python.org/is

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +30240 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32162 ___ Python tracker <https://bugs.python.org/issu

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
Eric Snow added the comment: New changeset 4c116f716bd1c174d6530b9a7a5ed3863927a109 by Eric Snow in branch 'main': bpo-47146: Eliminate a race between make regen-deepfreeze and make regen-global-objects. (gh-32162) https://github.com/python/cpyt

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
Eric Snow added the comment: Looks like that fixed it, per https://github.com/python/cpython/pull/32134. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-30 Thread Eric Snow
Eric Snow added the comment: Looks like this is still an intermittent problem: * https://github.com/python/cpython/pull/32195 + failed: https://github.com/python/cpython/runs/5756616733 + failed: https://github.com/python/cpython/runs/5753267869 + failed: https://github.com/python

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-30 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +30281 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32206 ___ Python tracker <https://bugs.python.org/issu

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-30 Thread Eric Snow
Eric Snow added the comment: New changeset db4dada5108dd49ebca23e4559a53630a2df8447 by Eric Snow in branch 'main': bpo-47146: Avoid Using make Recursively (gh-32206) https://github.com/python/cpython/commit/db4dada5108dd49ebca23e4559a536

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-31 Thread Eric Snow
Eric Snow added the comment: I re-ran jobs that had failed before I merged that gh-32206. Several passed, but the following are still failing: * https://github.com/python/cpython/pull/32188 + https://github.com/python/cpython/runs/5773938424 * https://github.com/python/cpython/pull/32132

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-31 Thread Eric Snow
Eric Snow added the comment: Brandt pointed out this is consistently reproducible locally: make clean regen-all -j I'll get this sorted out today. -- ___ Python tracker <https://bugs.python.org/is

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-31 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +30294 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32218 ___ Python tracker <https://bugs.python.org/issu

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-31 Thread Eric Snow
Eric Snow added the comment: New changeset e7bb7c2f047b4f97e4426c42ae209c969808069d by Eric Snow in branch 'main': bpo-47146: Stop Depending On regen-deepfreeze For regen-global-objects (gh-32218) https://github.com/python/cpython/commit/e7bb7c2f047b4f97e4426c42ae209c

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-31 Thread Eric Snow
Eric Snow added the comment: I'll keep an eye on PRs for the next day or so. -- resolution: -> fixed stage: patch review -> resolved status: open -> pending ___ Python tracker <https://bugs.pyth

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-31 Thread Eric Snow
Eric Snow added the comment: Specifically: https://github.com/python/cpython/actions/workflows/build.yml. -- status: pending -> open ___ Python tracker <https://bugs.python.org/issu

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-04-01 Thread Eric Snow
Eric Snow added the comment: Looks like gh-32218 worked. -- status: open -> closed ___ Python tracker <https://bugs.python.org/issue47146> ___ ___ Python-

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-01 Thread Eric Snow
Change by Eric Snow : -- nosy: +Mark.Shannon ___ Python tracker <https://bugs.python.org/issue47185> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19820] docs are missing info about module attributes

2019-08-14 Thread Eric Snow
Eric Snow added the comment: The relevant module attributes are described in the importlib docs: https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module -- versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.3, Python 3.4

[issue36876] Global C variables are a problem.

2019-09-09 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +15413 pull_request: https://github.com/python/cpython/pull/15760 ___ Python tracker <https://bugs.python.org/issue36

[issue36876] Global C variables are a problem.

2019-09-10 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +15518 pull_request: https://github.com/python/cpython/pull/15877 ___ Python tracker <https://bugs.python.org/issue36

[issue38091] Import deadlock detection causes deadlock

2019-09-11 Thread Eric Snow
Change by Eric Snow : -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue38091> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12128] Allow an abc.abstractproperty to be overridden by an instance data attribute

2019-09-11 Thread Eric Snow
Eric Snow added the comment: I'm guessing it should have been https://mail.python.org/pipermail/python-list/2011-May/604497.html. -- ___ Python tracker <https://bugs.python.org/is

[issue37888] Sub-interpreters : Confusing docs about state after calling Py_NewInterpreter()

2019-09-11 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker <https://bugs.python.org/issue37888> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37872] Move _Py_IDENTIFIER statics in Python/import.c to top of the file

2019-09-11 Thread Eric Snow
Eric Snow added the comment: Yeah, I'm fine with dropping this. In the file we have some global and some local, so my suggestion was to consolidate a little. However, it mostly doesn't matter. :) -- resolution: -> rejected stage: needs patch -> resolved status

[issue38091] Import deadlock detection causes deadlock

2019-09-11 Thread Eric Snow
Change by Eric Snow : -- nosy: +brett.cannon, eric.snow ___ Python tracker <https://bugs.python.org/issue38091> ___ ___ Python-bugs-list mailing list Unsub

[issue35381] posixmodule: convert statically allocated types (DirEntryType & ScandirIteratorType) to heap-allocated types

2019-09-11 Thread Eric Snow
Eric Snow added the comment: @Jeroen, see Dino's expalantion in https://bugs.python.org/issue38075#msg351627 (relative to the "random" module). -- ___ Python tracker <https://bugs.pyt

[issue38113] Remove statics from ast.c

2019-09-11 Thread Eric Snow
Eric Snow added the comment: New changeset ac46eb4ad6662cf6d771b20d8963658b2186c48c by Eric Snow (Dino Viehland) in branch 'master': bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957) https://github.com/python/cpython/commit/ac46eb4ad6662cf6d771b20d896365

[issue38113] Remove statics from ast.c

2019-09-11 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36876] Global C variables are a problem.

2019-09-11 Thread Eric Snow
Eric Snow added the comment: New changeset ee536b2020b1f0baad1286dbd4345e13870324af by Eric Snow in branch 'master': bpo-36876: Add a tool that identifies unsupported global C variables. (#15877) https://github.com/python/cpython/commit/ee536b2020b1f0baad1286dbd4345e

[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow
Eric Snow added the comment: @db3l, I'll take a look right away. -- ___ Python tracker <https://bugs.python.org/issue36876> ___ ___ Python-bugs-list m

[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +15640 pull_request: https://github.com/python/cpython/pull/16017 ___ Python tracker <https://bugs.python.org/issue36

[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow
Eric Snow added the comment: New changeset 64535fc6c0712caef0bc46be30e661f7ccf8280e by Eric Snow in branch 'master': bpo-36876: Skip test_check_c_globals for now. (gh-16017) https://github.com/python/cpython/commit/64535fc6c0712caef0bc46be30e661

[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +15681 pull_request: https://github.com/python/cpython/pull/16058 ___ Python tracker <https://bugs.python.org/issue36

[issue38141] Use less statics in Argument Clinic.

2019-09-12 Thread Eric Snow
New submission from Eric Snow : (This is a sub-task of bpo-36876, "Global C variables are a problem.".) Currently Argument Clinic generates "_PyArg_Parser _parser" as a static variable. Dropping "static" solves the problem of thread safety (e.g. for subin

[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow
Eric Snow added the comment: New changeset 088b63ea7a8331a3e34bc93c3b873c60354b4fad by Eric Snow in branch 'master': bpo-36876: Fix the globals checker tool. (gh-16058) https://github.com/python/cpython/commit/088b63ea7a8331a3e34bc93c3b873c

[issue38141] Use fewer statics in Argument Clinic.

2019-09-13 Thread Eric Snow
Eric Snow added the comment: That might work. :) There are two key problems under subinterpreters that do not share the GIL: * races on refcount operations * cache thrashing due to refcount operations (under multi-core threads) A lock would certainly mitigate the first problem. I'

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-13 Thread Eric Snow
New submission from Eric Snow : A "PyInterpreterState *interp" field on PyTypeObject would allow us to quickly access the originating interpreter from any object. This will help us avoid more costly lookups. The additional pointer used for this should not have a significant imp

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-16 Thread Eric Snow
Eric Snow added the comment: Yeah, dropping str support is fine. It wouldn't be hard to add it back in if later we find it's useful. :) -- ___ Python tracker <https://bugs.python.o

[issue29258] __init__.py required for pkgutil.walk_packages in python3

2019-09-18 Thread Eric Wieser
Change by Eric Wieser : -- nosy: +Eric Wieser ___ Python tracker <https://bugs.python.org/issue29258> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-20 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +15890 pull_request: https://github.com/python/cpython/pull/16304 ___ Python tracker <https://bugs.python.org/issue38

<    3   4   5   6   7   8   9   10   11   12   >