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
random.shuffle should restrict the type of its argument #40872
Comments
Consider the following In [1]: foo = numstr.array(['a', 'c'], shape=(2,1)) The documentation says that shuffle takes a list as
|
Logged In: YES While in your case it worked out badly, python's duck typing It is unfornate that the 2D arrays look like lists (having So, this is not a bug but I'm leaving it open for a bit in |
Logged In: YES The max recursion limit problem in the re module is well-known. http://www.python.org/dev/doc/devel/lib/module-re.html |
Logged In: YES
Yes, but in this case, it does not do the right thing.
Yes, that is what I did.
|
Logged In: YES I don't see a way to detect your issue without breaking |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: