Re: encode and decode builtins

2014-11-16 Thread dieter
Garrett Berg writes: > ... > However, there are times that I do not care what data I am working with, > and I find myself writing something like: > > if isinstance(data, bytes): data = data.decode() Apparently, below this code, you do care that "data" contains "str" (not "bytes") -- otherwise, yo

Re: import graphics library; causes error

2014-11-16 Thread Ian Kelly
On Sun, Nov 16, 2014 at 1:39 PM, ryguy7272 wrote: > Anyway, I open the cmd window, and typed this: 'easy_install python > graphics'. So, it starts up and runs/downloads the appropriate library from > the web. I get confirmation (in the cmd window) that it finishes, then I try > to run this sc

Re: Array of Functions

2014-11-16 Thread Richard Riehle
On Friday, November 14, 2014 4:13:28 PM UTC-8, Dennis Lee Bieber wrote: > On Fri, 14 Nov 2014 14:17:23 -0800 (PST), Richard Riehle > declaimed the following: > > >In C, C++, Ada, and functional languages, I can create an array of > >functions, albeit with the nastiness of pointers in the C famil

<    1   2