semicolon at end of python's statements
toby at tobiah.org
Tue Apr 3 12:08:20 EDT 2018
On 04/01/2018 11:31 PM, dlt.joaquin at gmail.com wrote:
> El miércoles, 28 de agosto de 2013, 21:18:26 (UTC-3), Mohsen
> Pahlevanzadeh escribió:
>> Dear all,
>> I'm C++ programmer and unfortunately put semicolon at end of my
>> statements in python.
>> Quesion: What's really defferences between putting semicolon and
>> don't put?
>> Yours, Mohsen
> Well, if you have to program in both c and python, and switch between
> them on intervals of time lowers than some hours I would suggest keep
> on with the semicolons at the end of lines... It would be very
> difficult to lose that habit, and while it is inoffensive on python,
> it may cause some troubles on c.
I don't know. It's not Pep 8, or at least pycharm complains about it.
I'd hate to inherit the semicolon riddled code.
I switch between python and PHP twenty or so times a day since we use both
at work. Once in a while I throw in a rogue semicolon, but it's not
often enough to cause a bother.
More information about the Python-list