Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    Actually x0, sigma = 0, 0.1 doesn't even create the tuples - that's one of the few cases where Python optimizes the code (and avoids creating the tuples). However Python "could" create the tuples and that it doesn't is an "implementation detail" if I remember correctly. Commented Aug 8, 2017 at 18:44
  • 1
    @MSeifert Yeah, I could imagine something like that would be optimized by removing the overhead of creating a new tuple only if it is going to be assigned via unpacking. Never looked too deep into that though :P Commented Aug 8, 2017 at 19:06