Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include pprint() in utility functions #419

Open
rlafuente opened this issue Jun 20, 2021 · 3 comments
Open

Include pprint() in utility functions #419

rlafuente opened this issue Jun 20, 2021 · 3 comments

Comments

@rlafuente
Copy link
Contributor

It's super handy for reading through lists and dicts, and i think it makes sense to have it close at hand.

@stuaxo
Copy link
Contributor

stuaxo commented Jun 21, 2021

Do you mean, have this inside the shoebot namespace for bots ?

I guess ? Though it most people that know of it will be used to from pprint import pprint.

@rlafuente
Copy link
Contributor Author

Yeah exactly! And yes, it's an import away, but I was looking into how Processing wraps functions like sin() and cos() this way, and at least to me that is useful :)

@stuaxo
Copy link
Contributor

stuaxo commented Jun 24, 2021

As long as the docs mention the equivalent in plain python I think it's good.

OT: We should probably think twice about changing the API of things that are used commonly in python (e.g. nodeboxes version of random() vs math.random() have different calling conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants