What does “None” mode mean in Image.fromarray?

I am converting from a numpy array to an image using the


The docstring shows that the default mode is "None". What does that mean? Is it one of the modes such as "L", or is it another mode?


If you don't specify a mode or specify None, it will decide which mode to use from the type.

(The authors of the Image class appear not to know how to write a Python docstring; the doc comments are all there in the source, but as comments rather than a docstring.)

Need Your Help

User input string into string array

java arrays string java.util.scanner

I'm trying to get the user's input, then store the input into an array. I'm going to get a string input and with this code, I thought it would work, but it's not working. Any help would be apprecia...

ODR violation when name-lookup finds a different declaration

c++ odr

I've been thinking of the following. Consider two files:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.