Skip to content

Instantly share code, notes, and snippets.

View Spindel's full-sized avatar
👷‍♂️
For hire

Spindel Ljungmark Spindel

👷‍♂️
For hire
  • https://www.modio.se/ @ModioAB
  • Sweden
  • 07:20 (UTC +02:00)
View GitHub Profile
@Spindel
Spindel / gist:7896135
Created December 10, 2013 19:01
PyPy does strange things
def min_max_native(indata):
def _minmax(data):
_value = itemgetter(2)
low = min(data, key=_value)
high = max(data, key=_value)
return (_value(low), _value(high))
copy = indata[:]
minmax = _minmax(copy)