On Thu, Feb 27, 2014 at 10:33 AM, Chris Angelico wrote:
> On Fri, Feb 28, 2014 at 3:27 AM, Eric Jacoboni
> wrote:
> > But, imho, it's far from being a intuitive result, to say the least.
>
> It's unintuitive, but it's a consequence of the way += is defined. If
> you don't want assignment, don't
On Tue, Feb 25, 2014 at 2:32 PM, mauro wrote:
>
> So I wonder why operations such us intersection, union, difference,
> symmetric difference that are available for sets and are not available
> for dictionaries without going via key dictviews.
How would the set operations apply to the dictionary v
Roy Smith wrote:
> In article ,
> Nick Timkovich wrote:
>
> > Ah, I think I was equating `yield` too closely with `return` in my head.
> > Whereas `return` results in the destruction of the function's locals,
> > `yield` I should have known keeps them around, a la
Ah, I think I was equating `yield` too closely with `return` in my head.
Whereas `return` results in the destruction of the function's locals,
`yield` I should have known keeps them around, a la C's `static` functions.
Many thanks!
--
https://mail.python.org/mailman/listinfo/python-list
I have a Python 3.x program that processes several large text files that
contain sizeable arrays of data that can occasionally brush up against the
memory limit of my puny workstation. From some basic memory profiling, it
seems like when using the generator, the memory usage of my script balloons
On Mar 21, 9:19 pm, Jean-Paul Calderone wrote:
> On Sat, 21 Mar 2009 13:52:21 -0700 (PDT), Nick Timkovich
> wrote:
> >I've been working on a program that will talk to an embedded device
> >over the serial port, using some basic binary communications with
> >messages
I've been working on a program that will talk to an embedded device
over the serial port, using some basic binary communications with
messages 4-10 bytes long or so. Most of the nuts and bolts problems
I've been able to solve, and have learned a little about the threading
library to avoid blocking