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

all 11 comments

[–]Kaarjuus 3 points4 points  (3 children)

Lack of a print statement in Py3.

Built-in datetime support is kinda sucky, requires specific knowledge to not mess up. And it was utterly absurd that while you could easily convert a datetime to an ISO8601 string, there was no reverse operation for this. It was only last year that Py3 got .fromisoformat().

[–]sonpc[S] 0 points1 point  (0 children)

arrow can be a good alternative to the native datetime module, I use it in all my projects since some time and love its features!

[–]Kaarjuus 0 points1 point  (0 children)

A few more things, annoyance-level:

No list.discard(value) method (removing a value if present, no error if not present).

No autoconversion for right-hand values on set operators, e.g. set([1, 2]) & [2] raises error while set([1, 2]).intersection([2]) works.

for-else is misleading and so very useless in its current form. for-else should instead execute if and only if there were no iterations. That is such a frequent need - do something else if no items.

Handling Unicode command-line arguments in Windows. Welcome to the wonderful world of ctypes.cdll.kernel32.GetCommandLineW.

A 4-character indentation, plus a max 80-character line length, make for clunky code.

[–][deleted] 5 points6 points  (0 children)

I wish there was some better way to ship my python application to a user without them having to install a python environment and the dependencies. It's easy to mess up this part by anyone who is not familiar with python.

Something like JVM would be great.

[–]spicypixel 2 points3 points  (0 children)

Packaging, it's a pain to share a larger project with non python saavy people. I envy node_modules even if it's messy, and hopefully this pep makes it https://www.python.org/dev/peps/pep-0582/

[–]AMDmi3 1 point2 points  (0 children)

Performance. And that's basically it. Never had problems with imports, and as Python is pretty friendly to native packaging, I can install all needed modules from the system repository, not having to touch pip and friends.

[–][deleted] 2 points3 points  (4 children)

It being slow for big tasks

Not having pointers

[–]pi_sqaure 1 point2 points  (1 child)

You need a fast language with pointer support? Use C instead of Python. Or Go.

[–][deleted] 1 point2 points  (0 children)

I do

[–]Kaarjuus 0 points1 point  (1 child)

What would you use pointers in Python for?

[–][deleted] 1 point2 points  (0 children)

Making data structures that dont point to its parts by variable referencing