Article 6FYX0 numpy.reshape takes a sequence of integers or a tuple?

numpy.reshape takes a sequence of integers or a tuple?

by
centguy
from LinuxQuestions.org on (#6FYX0)
print( y.reshape( 3,4 ) == y.reshape( (3,4)) )

shows that a 3x4 matrix of True.

Why does python treat y.reshape( 3,4 ) as legitimate?

I thought the argument must be a tuple.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments