Good talk to recommend to those who are new to Python, thank you. Never heard of that trick to put logic in a generator function to separate it from the loop.
thank you DB! This talk inspired me to write my first generator to track down the "next" links in the FaceBook API response. Way better than what I had before- yahoo!
Really good talk to introduce looping in python to beginners, except he didn't mention "for/else" and "while/else" constructions. For "Pro" talk I expect something about functools, itertools, enum modules or any other nice python looping feature you don't read about on firtst page of any "python for beginners" book.
Thank You !!.. I live the way, you differentiate the C Syntax and Python.. One more point, I can take away from this talk is dealing with nested loops using generators. especially, return statement which might help me lot.
They rejected several proposals for solving this situation: www.python.org/dev/peps/pep-3136/#keyword In my opinion, so far the best (but really ugly) solution, is using raise and except: try: for i in range(100): for j in range(1000): for k in range(10000): if i + j + k == 777: raise Found except Found: print i, j, k
breakall would probably be a problem with main loops and gui frameworks based on a main loop. saying the number of breaks would be nice too: break break 2 berak 3...
Certain languages, like FORTRAN and Java, have ‘named loops’ which solve this problem www.tutorialdost.com/Java-Programming-Tutorial/11-Java-Labeled-Loop.aspx
Start from 16:37 if you know the basics.
Yes, a very clear explanation of the basics till then
Thank you
I was five minutes in, thinking "who goes to PyCon and doesn't know this stuff"
15:20 - best explanation of `zip` function I have seen in a while 🙌🏼
Good talk to recommend to those who are new to Python, thank you. Never heard of that trick to put logic in a generator function to separate it from the loop.
Volume is a bit low :(
thank you DB! This talk inspired me to write my first generator to track down the "next" links in the FaceBook API response. Way better than what I had before- yahoo!
Really good talk to introduce looping in python to beginners, except he didn't mention "for/else" and "while/else" constructions. For "Pro" talk I expect something about functools, itertools, enum modules or any other nice python looping feature you don't read about on firtst page of any "python for beginners" book.
not missed - I was going to write "more" instead of "something". idk what is wrong with me =) Thank you for pointing on this mistake.
Volume of almost all talks of the conference is very low. :(
Thank You !!..
I live the way, you differentiate the C Syntax and Python..
One more point, I can take away from this talk is dealing with nested loops using generators. especially, return statement which might help me lot.
Thanks so much. This is really helpful.
First half was really basic, you can skip it if you know what [while, for, break, continue, zip, range, reversed and sort] are.
Loved it great talk!
according to rudy giuliani "truth != truth" so....
Clear
didn't know that they teach abcd... in PYCON too !!
At 19:55 it's 100,000x faster not 10,000
Why not invent a new keyword called 'breakall'?
They rejected several proposals for solving this situation: www.python.org/dev/peps/pep-3136/#keyword
In my opinion, so far the best (but really ugly) solution, is using raise and except:
try:
for i in range(100):
for j in range(1000):
for k in range(10000):
if i + j + k == 777:
raise Found
except Found:
print i, j, k
breakall would probably be a problem with main loops and gui frameworks based on a main loop.
saying the number of breaks would be nice too:
break
break 2
berak 3...
Certain languages, like FORTRAN and Java, have ‘named loops’ which solve this problem
www.tutorialdost.com/Java-Programming-Tutorial/11-Java-Labeled-Loop.aspx
Seriosly ? I expected some cool comprehension techniques.
C loop is much better. Python rely on lot of internal functions, like __iter__, __next__,zip,enumerate....