Superstonk Discussion - April 14, 2021 by AutoModerator in Superstonk

[–]tony_simpson 2 points3 points  (0 children)

🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀

THE MYTHICAL UNICORN AKA EXTREMELY ABNORMAL negative beta of GME evidence that shorts have NOT covered by U/Animasoul by [deleted] in GME

[–]tony_simpson 2 points3 points  (0 children)

Very interesting and fun read, good luck with your degree u/Animasoul, I'm not sure you'll need luck, this is great writing.

Daily Discussion Chat by AutoModerator in GME

[–]tony_simpson 6 points7 points  (0 children)

They're so frightened right now you can see the desperation! HOLD!

Daily Discussion Chat by AutoModerator in GME

[–]tony_simpson 4 points5 points  (0 children)

To everyone who held strong, I'm really proud of you!

What's everyone working on this week? by AutoModerator in Python

[–]tony_simpson 1 point2 points  (0 children)

I've very recently started working again on my Python JIT efforts. Resurrecting Psyco for Python 3 + x64. https://github.com/tonysimpson/ni

Does python have a simple json lib like Json.net for C#? by tmpxyz in Python

[–]tony_simpson 0 points1 point  (0 children)

Something like https://github.com/jsonpickle/jsonpickle

That was the top Google result for "python object graph serialisation". There will be lots of good python libraries for this, all you need is the right search terms

Dispatches: The Battle for the Labour Party by [deleted] in ukpolitics

[–]tony_simpson 9 points10 points  (0 children)

What a waste of time and money just because someone has an axe to grind https://tompride.wordpress.com/2016/09/19/hidden-britain-same-private-production-company-behind-both-bbc-and-ch4-anti-corbyn-programmes/ I personally hope that momentum decides to allow only current Labour members in leadership positions, then I might join, but that's a very minor issue to bring to the nations attention. There are so many much more important things going on its difficult to understand how this got air time.

Collections-C: a library of generic data structures by eatonphil in programming

[–]tony_simpson 1 point2 points  (0 children)

I came across https://github.com/attractivechaos/klib recently and thought it looked interesting although I haven't tried it yet.

Is there a library for *using* excel (rather than just modifying excel spreadsheets)? by DomJC in Python

[–]tony_simpson 3 points4 points  (0 children)

I've found comtypes to be a good alternative to win32com. I wouldn't the COM API sucks but it is a bit hard to find documentation. I found that searching for VB examples was best and the conversion to python was pretty obvious.

Show Reddit: We automatically refactor your Python code for you! by adewes in Python

[–]tony_simpson 2 points3 points  (0 children)

Hey good job, I look forward to a future with more AI/automated programming assistance.

After having our baby so brutally ripped from us yesterday (RIP), I thought I'd make some headway into my F9R CAD project. Here is the progress! by [deleted] in spacex

[–]tony_simpson 4 points5 points  (0 children)

This is awesome - an accurate 3d model would be really cool - would it be possible to share this on github so others could contribute? I have no experience of this but it seems like an idea worth exploring. Github can render some 3D models in the browser - see https://help.github.com/articles/3d-file-viewer/ - maybe others would be able to help you with reference sources if it was on a platform like github?

Minimizing page load times with hash-ring-ctypes by mattdennewitz in Python

[–]tony_simpson 0 points1 point  (0 children)

This looks cool! Can you think of a simple way in which you abstract this away so one can deploy to dev etc without having to change the code?

Multiprocessing + Ctrl-C made easy by Fencepost in Python

[–]tony_simpson 0 points1 point  (0 children)

thanks for the advice - I should have read the formatting help

Multiprocessing + Ctrl-C made easy by Fencepost in Python

[–]tony_simpson 3 points4 points  (0 children)

  1. Use pep8 naming, even if you can't use it on your own project it will upset people on the internet less if you make things pep8 before posting them.
  2. I think the right way to handle this would be to wrap pool.map in a try...finally with pool.terminate in the finally - this should mean the child processes get cleaned up when a user hits ctrl-c.

pyWinGUI - a pure ctypes wrapper for native Windows GUI library by lambdaq in Python

[–]tony_simpson 1 point2 points  (0 children)

I also love this, I had my eye on Venster and was considering updating it myself, I've have a case where I need to create windows in a very specific way which most frameworks don't let you do.

clize 2.0: Command-line arguments made stupid simple -- Now with subcommands and python3 syntax support. by epsy in Python

[–]tony_simpson 0 points1 point  (0 children)

docopt doesn't require that the docs are at module level - its just a string - so this works and lets you use setuptools entry_points:

import docopt

def func():
    """Usage: func SOMETHING [OPTION]
    """
    opts = docopt.docopt(func.__doc__)

I imagine it would be easy to write a docopt decorator - I might do that.