Visitar URL original
bpo-45735: Promised that lists can be used for Thread args. by rhettinger · Pull Request #29437 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20211219213535/https://github.com/python/cpython/pull/29437
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

bpo-45735: Promised that lists can be used for Thread args. #29437

Closed
wants to merge 1 commit into from

Conversation

@rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Nov 6, 2021 •

https://bugs.python.org/issue45735

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Tests are required.

@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Nov 6, 2021

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

Copy link
Member

@tim-one tim-one left a comment •

Ya, thanks! This is exactly the kind of thing I was looking for.

The issues are essentially identical in the workalike multiprocessing.Process(), which is the other place I very frequently see this come up. So please fiddle those docs too.

In other contexts, I see the docs generally don't even mention the type. For example, for the initargs= argument to multiprocessing.Pool(), they say:

initializer(*initargs)

will be called. So they're effectively promising that any object whatsover is fine just so long as *initargs "works".

Too obvious to mention, so I will 😉:

  • At least one doc example for each affected function should be changed (or added) to illustrate the use of a list.

  • Tests should be added to verify that lists work.

@rhettinger rhettinger closed this Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants