(Feb-23-2017, 10:52 AM)snippsat Wrote: In Python and array(like named Java/C++/C) is called a list.
bytearray() is used in more specialized cases,so books can lack info about it.
There are very good books that has info/usage about it.
Like Fluent Python and Python Cookbook, 3rd Edition and general info in doc.
Thank you for listing the two books with info on bytearray(). I checked our state library's online catalog and it has Fluent Python so I'll request it.
All the best,
Raptor88
(Feb-23-2017, 11:29 AM)zivoni Wrote: Python is considered to be "high level language with batteries included" and direct manipulations with binary data are often left to specialized libraries, thats perhaps reason why some introductory texts just mention bytes and decode/encode and go away.
In that sense bitwise operations are similar, they are usually mentioned, but rarely used.
Hi zivoni,
That is my disappointment with my initial online research when looking for the easiest programming language to learn that covers byte manipulation to graphic user interfaces. It took a LOT of digging before I learned that Python could do both easily. (And I didn't even know of Python's existence when I started my research, ha, ha.) For instance, I wanted to know how easy it could be to do a folder/file search but I had to learn of tkinter's existence and then when googling that keyword, I discovered how powerful tkinter is for graphic user interface that can do that. Just a short paragraph of what Python can cover would have been extremely helpful for me to decide to learn Python.
After deciding on Python and borrowing 7 books from the library, NONE let the user know the extremes that Python can cover. bytes() or bytearray() are not even listed in the indexes. Not asking for any detail on those methods but at least let the reader know of their existence and a sentence or two of their capability. I hope future writers of Python introductory books will let the reader know of Python's bit manipulation to GUI libraries capability in their introductory paragraphs. Also list the built-in types and methods available at the end of the book even if the book does not cover them. Give the newbie the keywords to Google online since they have no clue which keywords to search for.
Thanks for your input,
Raptor88 (end of rant )