[New-bugs-announce] [issue34361] An error should be returned when there are spaces in between function name and parameters

Sanyam Khurana report at bugs.python.org
Wed Aug 8 14:16:09 EDT 2018


New submission from Sanyam Khurana <sanyam.khurana01 at gmail.com>:

I noticed this while reviewing the code.

The print function works like:

```
print       (5)
```

This works with user-defined function too.

Ideally, this is a function call and we should return an error stating that there shouldn't be any spaces between the function name and the parameters listed.

This essentially is not good for people who're new to programming and learning to code with Python as their first language.

----------
components: Library (Lib)
messages: 323294
nosy: CuriousLearner
priority: normal
severity: normal
stage: needs patch
status: open
title: An error should be returned when there are spaces in between function name and parameters
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34361>
_______________________________________


More information about the New-bugs-announce mailing list