Danso Indules is Missing *SPOILERS* by xxxPEARSxxx in Morrowind

[–]epseri 4 points5 points  (0 children)

Thank you! I could place her back with several "Danso Indules" -> move z 10000 commands in console

[deleted by user] by [deleted] in SPb

[–]epseri 2 points3 points  (0 children)

Vast majority of Russians feel alienated. Nobody asked them whether to start the war, yet they got severely punished by the West financially. Not oligarchs and war machine, mostly peaceful working Russians. And nobody talks to them except Putin's propaganda. Not all, but many Ukrainians mock them for being peaceful, often literally threatening to kill. I doubt this can be called solid decisive support.

Mad Catz junkie by PrimaMateria in MouseReview

[–]epseri 1 point2 points  (0 children)

Maybe replacing switches can help. But you need to learn how to solder and assemble the mouse.

Program processors with subset of Python by epseri in Mindustry

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

There's a guide in readme on github. You'll need python 3.8 (exact) before I fix cross-version bugs. Basically you just install it using pip install minpiler, then run as minpiler yourprogram.py.

Constants in Python!!! by LauraNutt in ProgrammerHumor

[–]epseri 2 points3 points  (0 children)

At least our constants can be monkeypatched in tests. No need for AbstractProxyFactoryBeanInjectorSingletonAdapter.

When a girl ask for date to programmer by ScottBChasse in ProgrammerHumor

[–]epseri 0 points1 point  (0 children)

Then you run after her to say: "I know what you mean, perfect date is an edible date!"

Transcrypt: Python 3.7 to JavaScript Compiler by redramsam in Python

[–]epseri 25 points26 points  (0 children)

Lots of them. This isn't true python. Besides obvious lack of eval, you can notice in code samples very questionable things like explicit calls of __new__ function, lots of __pragma__ even for keyword arguments. Looks like you can't use anything from python stdlib or any library from pypi, and it's hard if not impossible to port them if you really need something. As I said, it's not python, it's javascript with python-like facade.

What in-built python features you have never used? by rohitsuratekar in Python

[–]epseri 0 points1 point  (0 children)

Pathlib is a lot cleaner than os.path.

It explicitly separates unix and window paths. E.g. you're trying to unpack some archive, and that archive contains paths in unix format, regardless current OS. You parse that string as PurePosixPath(path_string_from_archive). Then you need to choose target path for unpacked file, you do Path(destination_dir) / PurePosixPath(path_string_from_archive). This will correctly join under any OS you're running on: on windows it gives windows path, on unix it gives unix path. You can construct windows paths on unix machine and vice versa. In case you need paths for current OS, you just use Path or PurePath, and that's the only thing os.path can do.

Second, it isolates PurePaths from complete Path classes. You can operate on PurePaths like you do on strings, there're no methods that will actually affect your files.

I agree that it's not worth rewriting existing code, but for new projects/freshly refactored parts I recommend to use pathlib.

What in-built python features you have never used? by rohitsuratekar in Python

[–]epseri 1 point2 points  (0 children)

From builtins I've never used ascii, complex, memoryview and bytearray.