This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: python3.8 and namedlist1.7 is Incompatible
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.8
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: Simon.yu, eric.smith, raina, xtreak
Priority: normal Keywords:

Created on 2019-12-05 10:15 by Simon.yu, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg357842 - (view) Author: Simon.yu (Simon.yu) Date: 2019-12-05 10:15
When I use pytest based on python3.8, met a problem,it seems namedlist1.7 is incompatible!!

see blow logs:
----------------------
  File "C:\Program Files\Python38\lib\site-packages\namedlist.py", line 180, in _make_fn
    code = compile(module_node, '<string>', 'exec')
TypeError: required field "posonlyargs" missing from arguments
----------------------
msg357843 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-12-05 10:22
This issue tracker is for issues related to CPython. Please report this to the respective issue tracker at https://bitbucket.org/ericvsmith/namedlist/issues. The error message looks related to handling positional only arguments that needs to be fixed in the library during ast construction at probably  https://bitbucket.org/ericvsmith/namedlist/src/8db03a94fcc15184ccdf7a58f91c48bc5bcd3331/namedlist.py#lines-159. I think this can be closed as third party.
msg357844 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-12-05 10:38
From Python 3.8, type_ignores is also mandatory for ast.Module as discussed in issue35894 which also needs to be fixed in the module. Closing this as third party as I don't see any apparent regression here in 3.8.
msg366916 - (view) Author: (raina) Date: 2020-04-21 10:14
Traceback (most recent call last):
  File "c:\users\raina\appdata\local\programs\python\python38\lib\runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
......  
code = compile(module_node, '<string>', 'exec')
TypeError: required field "posonlyargs" missing from arguments
History
Date User Action Args
2022-04-11 14:59:24adminsetgithub: 83158
2020-04-21 10:15:00rainasetnosy: + raina
messages: + msg366916
2019-12-05 10:38:57xtreaksetstatus: open -> closed
resolution: third party
messages: + msg357844

stage: resolved
2019-12-05 10:22:56xtreaksetnosy: + xtreak, eric.smith
messages: + msg357843
2019-12-05 10:15:30Simon.yucreate