You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(\.(?!\d)[\w*]+|\[-?[0-9]+\])* # .etc.etc or [0], we only support literal integers.
)
(\?\??)$ # ? or ??
""",
re.VERBOSE,
)
I'd be interested to know if the PEP proposals would break that use case or if you'd be able to work around it. My initial thought would be that as long as no line break isn't inserted in a bad spot, it should continue to work if ? is only detected directly at the start and end of a line.
Edit: While for ?. and ?[ ] it will depend if the line break is placed between the characters, ?? might be more difficult. As a conditional operator similar to and and or, it will be at the beginning or end in multiline expressions (depending on the specific formatting).
Activity