[CentralOH] 2016-05-13 道場 Scribbles 落書/惡文? caniuse dd cielo yield from uyuni gen limit websockets no assignment sicp uncle bob meld diff np hard bronowski ascent of man connections james burke first computer use notepad++ swift atom pycandy optimization pycharm
joe at joeshaw.org
Sat May 14 18:38:23 EDT 2016
Could you do this instead?
list(foo() for i in range(10))
On Sat, May 14, 2016 at 5:01 PM <jep200404 at columbus.rr.com> wrote:
> more dd stuff
> Playing with 'yield from'.
> from itertools import count
> def foo():
> yield from range(3)
> yield from ('hello', 'world')
> yield from count()
> list(x for x in zip(foo(), range(10)))
> # See PEP 380 https://www.python.org/dev/peps/pep-0380/
> By the way, that last line's way of limiting a generator to n values
> looks ugly. What's a Pythonic way of doing that?
> WebSockets from the Wire Up
> no assignment statements in first 259 pages of SICP
> then apologized for
> unclebob at cleancoder.com
> Privacy and the New Math
> What's the difference?
> meld is beautiful
> What kind of person rhymes with Haskell?
> Make More Responsive Web Applications with SocketIO and gevent
> @Luke Sneeringer
> Node Schmode!
> "Pythonic Realtime Web"
> Dylan Jay
> dylan at pretaweb.com
> "Node and scaling in the Small vs Scaling in the Largs" - Alex Payne
> wp:Thomas Paine
> wp: prefix means Wikipedia
> To get good answers, consider following the advice in the links below.
> list(zip(someiterable, range(n)))
> what's a better way of limiting someiterable to n items?
> There are NP hard problems, then there are just plain hard problems.
> refactor using classes
> Ascent of Man
> James Burke
> how old were you when you first used a computer?
> wp:Napoleon III
> swift ios
> atom (saves in .py)
> lean team
> python eye candy
> Premature optimization is the root of all evil.
> For the love of money is the root of all evil:
> which while some coveted after,
> they have erred from the faith,
> and pierced themselves through with many sorrows.
> Dragon Bridge (Da Nang)
> CentralOH mailing list
> CentralOH at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CentralOH