Benjamin-Loison / cpython

The Python programming language
https://www.python.org/
Other
0 stars 0 forks source link

Precise if wanted the argument name to make clearer but actually not necessary #38

Open Benjamin-Loison opened 4 months ago

Benjamin-Loison commented 4 months ago

Proposal:

./main.py --input 16_non-flat-field_noise-free_704x469_photos
  File "/home/benjamin/prnu_extraction/./main.py", line 64
    colorChannel = mainGetNotRawImage(f, requiresCropping = RUNNING_ON_IPOL, isActuallyLoadingImage = True, arePhotosNoiseFree, fileName)
                                                                                                                                        ^
SyntaxError: positional argument follows keyword argument

See PRNU_extraction/compare/61547beea4308261659cb4eee582a7c8d1474795..6324d049a05eb84cea1aa8ec6217d0f717a17e4a.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Benjamin-Loison commented 4 months ago
  File "/home/benjamin/prnu_extraction/./main.py", line 160
    return np.random.normal(loc = 0, scale, size)
                                                ^
SyntaxError: positional argument follows keyword argument