Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Jamoyjamie It's like a Meeseeks - you tell it to do a (relatively) simple task, it does the task, and then disappears!
...unless you want it to help you get a stroke off your golf game. In that case it could multiply itself multiple times over, find you, and kill you. -
I know you probably have seen it, but just in case, you know you can take a dictionary and just json.dumps() it, right? It's in the standard library.
https://docs.python.org/3/library/... -
@Jamoyjamie Yay!
Sometimes it's fun to reinvent something to learn about it, sometimes you just want to get stuff done. Wasn't sure which route you were taking.
Good luck and have fun! -
@theElectron I am doing, I tend to only commit when I've tested though to avoid committing syntax errors etc 😐
-
coderme6497y@Jamoyjamie Agreed. I've read to treat every commit as code which may end up in production.
Related Rants
Just wrote a Python script to generate me a JSON file.
I forgot the 0th command line argument is the file you're running...
On first test it overwrote itself.
undefined
luck i had the file open in editor really...
python
json
fail
why????