File: assign_to_function_call_2.py

package info (click to toggle)
python-friendly-traceback 0.7.62%2Bgit20240811.d7dbff6-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,264 kB
  • sloc: python: 21,500; makefile: 4
file content (6 lines) | stat: -rw-r--r-- 207 bytes parent folder | download
1
2
3
4
5
6
"""Should raise SyntaxError: can't assign to function call

Python 3.8: SyntaxError: cannot assign to function call
"""
# Test to confirm that '=' inside function args is not misidentified.
func(a, b=3) = 4