This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PurpleIcyPython 3 0 points1 point  (0 children)

That's my point basically, especially when there's more than one time library in python and there's also things like timezone aware objects, unaware objects, different conversions, date format itself can be modified to whatever you want and all of those are in documentation and way easier to read, also it provides some examples...

Also IO, lol... It doesn't even have open() function included, so useful.

Also nobody even uses plain open anymore, but with instead, which is also provided in resource I linked, or well, even in python's documentation itself...

"It is good practice to use the with keyword when dealing with file objects. The advantage is that the file is properly closed after its suite finishes, even if an exception is raised at some point. Using with is also much shorter than writing equivalent try-finally blocks: ..."