Re: [Edu-sig] reviewing the context manager construct

2014-03-28 Thread kirby urner
On Fri, Mar 28, 2014 at 6:04 AM, Vernon D. Cole wrote: > You are working too hard in creating your string literal. > > The *Python Language Reference Manual* says: > >> 2.4.2. String literal concatenation Multiple adjacent string literals >> (delimited by whitespace), possibly using different quo

Re: [Edu-sig] reviewing the context manager construct

2014-03-28 Thread Vernon D. Cole
You are working too hard in creating your string literal. The *Python Language Reference Manual* says: > 2.4.2. String literal concatenation Multiple adjacent string literals > (delimited by whitespace), possibly using different quoting conventions, > are allowed, and their meaning is the same a

Re: [Edu-sig] reviewing the context manager construct

2014-03-27 Thread kirby urner
""" Just for the Fun of It. [~tm] More in a similar vein These exercises may seem pretty pointless, but I remember coming from FoxPro to Python how excited I was by such long ints, then still a separate type from ints proper. The Decimal object had yet to join us back then. I feel programs

[Edu-sig] reviewing the context manager construct

2014-03-04 Thread Kirby Urner
""" Just for Fun A quick sketch of a Context Manager construct. A context manager is a type instance with an __enter__ and __exit__ protocol, and designed to work with a suite indented under a "with statement" (cc) Kirby Urner, MIT License O'Reilly School of Technology Sebastopol, CA With thank