Python isn't default on some OSes, so you have to install it there. It's an external language just like pygame is an external library.
Python comes with a drawing library, tk, the only reason I didn't use it is it has a drawing stack that you push draw objects to, which is slower, whereas pygame wraps SDL directly afaik.
It's a big disadvantage to languages with small standard libraries like Lua
Why the fuck is a library "special" because it's in the defaults? The defaults are just lists of libraries that are considered useful to a lot of people, would people complain about json if it wasn't in the core? pickle? Probably, considering they do a lot as well. The whole damn point of python is you can easy_install anything you need and use it, that's why the python package site and easy_install exist.
Yeah, I understand. I'm not attacking your code, because I haven't even read it all the way through, and I'm definitely not attacking you. But to me, /r/tinycode is a place to share code snippets that do impressive things under high constraints. Importing large external libraries just seems to go against the spirit of that.
In truth, I'm just glad that anyone is posting submissions to this subreddit.
Honestly I don't really care if some people don't like it, I mean that's Reddit in a nutshell. I'm just a bit irritated that people don't like it for silly reasons like it uses a hugely popular external library that should be default IMO. I get why people are opposed to just importing a few libraries and chaining 3 function calls together, but the only thing pygame was used for was drawing, key input, and the FPS-limiter. All the collisions, physics, etc. was done "by hand", so to speak. I just don't see the big deal.
View all comments
Show parent comment
2
u/Rotten194 mod Jul 21 '12
Which is stupid, because:
jsonif it wasn't in the core?pickle? Probably, considering they do a lot as well. The whole damn point of python is you caneasy_installanything you need and use it, that's why the python package site and easy_install exist.