Skip to content Skip to sidebar Skip to footer
Showing posts with the label Iterable Unpacking

Unpacking Generalizations

PEP 448 -- Additional Unpacking Generalizations allowed: >>> LOL = [[1, 2], ['three… Read more Unpacking Generalizations

Python: Is There Syntax-level Support For Unpacking, From Tuples, The Arguments To An *anonymous* Function?

Suppose we have the following: args = (4,7,5) def foo(a,b,c): return a*b%c Python conveniently all… Read more Python: Is There Syntax-level Support For Unpacking, From Tuples, The Arguments To An *anonymous* Function?

"unpacking" In C

I am working on rewriting a script from python to C. I'm relatively new to C. I have a variable… Read more "unpacking" In C

Is It Possible To Assign A Default Value When Unpacking?

I have the following: >>> myString = 'has spaces' >>> first, second = myS… Read more Is It Possible To Assign A Default Value When Unpacking?