[issue37626] Documentation:conflict between docs
New submission from 徐靖 <shiyuchongf@gmail.com>: In https://docs.python.org/3/whatsnew/3.4.html#api-and-feature-removals,It is said "inspect.Signature: positional-only parameters are now required to have a valid name." But in https://docs.python.org/3/library/inspect.html?highlight=3.4#inspect.Signatu..., the actual change happened in inspect.Parameter, " Changed in version 3.4: In Python 3.3 Parameter objects were allowed to have name set to None if their kind was set to POSITIONAL_ONLY. This is no longer permitted." So I wonder is it a mistake? ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37626> _______________________________________
Change by SilentGhost <ghost.adh@runbox.com>: ---------- nosy: +yselivanov _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37626> _______________________________________
Inada Naoki <songofacandy@gmail.com> added the comment: https://docs.python.org/3/library/inspect.html#inspect.Parameter.replace """ Changed in version 3.4: In Python 3.3 Parameter objects were allowed to have name set to None if their kind was set to POSITIONAL_ONLY. This is no longer permitted. """ ---------- nosy: +inada.naoki _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37626> _______________________________________
Inada Naoki <songofacandy@gmail.com> added the comment: I don't think they are conflict. "now required to have a valid name." "were allowed to have name set to None [snip] This is no longer permitted." "None" is not "valid name". ---------- resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37626> _______________________________________
participants (3)
-
Inada Naoki -
SilentGhost -
徐靖