Tour
About Us
Meta
Loading…
Log in
current community
Stack Exchange
chat
Meta Stack Exchange
your communities
Sign up
or
log in
to customize your list.
more stack exchange communities
company blog
Stack Exchange
All Sites
Top Users
Digests
Stefan Pochmann
top
accounts
reputation
activity
bookmarks
subscriptions
Top Questions
144
votes
What causes [*a] to overallocate?
python
python-3.x
list
cpython
python-internals
asked Mar 5 '20 at 16:22
stackoverflow.com
90
votes
Why is copying a shuffled list much slower?
python
python-internals
asked Feb 8 '17 at 7:48
stackoverflow.com
28
votes
Why [20, …, 13, 14].min(2) => [13, 20]?
ruby
min
asked Aug 20 '15 at 15:00
stackoverflow.com
14
votes
Why is array.min so slow?
ruby
performance
min
built-in
asked Jan 9 '16 at 15:31
stackoverflow.com
14
votes
Why does unpacking this map object print “must be an iterable, not map”?
python
python-3.6
asked Jul 28 '17 at 1:08
stackoverflow.com
12
votes
pprint sorting dicts but not sets?
python
python-3.x
dictionary
set
pprint
asked Jul 10 '17 at 15:48
stackoverflow.com
12
votes
Why does `mylist[:] = reversed(mylist)` work?
python
list
reverse
assign
python-internals
asked Jun 2 '15 at 18:45
stackoverflow.com
8
votes
Why does `class X: mypow = pow` work? What about `self`?
python
methods
self
asked Jun 7 '15 at 12:38
stackoverflow.com
5
votes
8 seconds for regex_match(“”, regex(“.{40000}”));?
c++
regex
performance
asked Dec 10 '16 at 11:43
stackoverflow.com
Top Answers
112
return string with first match Regex
stackoverflow.com
65
Sort filenames in directory in ascending order
stackoverflow.com
51
Why is “1000000000000000 in range(1000000000000001)” so fast in Python 3?
stackoverflow.com
23
Python: nested 'for' loops
stackoverflow.com
19
List comprehensions in Python with mutable state between iterations
stackoverflow.com
19
How to perform ceiling-division in integer arithmetic?
stackoverflow.com
18
What causes [*a] to overallocate?
stackoverflow.com
16
Efficiently find all the Pythagorean triplets where all numbers less than 1000
codereview.stackexchange.com
16
Python Split list into sublists based on the first element in the sublists
stackoverflow.com
13
Efficiently find binary strings with low Hamming distance in large set
stackoverflow.com
13
Why does python not stop loop when variable equates to the if statement
stackoverflow.com
13
Tidying up a list comprehension in Haskell
stackoverflow.com
13
Why is the median-of-medians algorithm described as using O(1) auxiliary space?
stackoverflow.com
12
What is the relationship between the Python data model and built-in functions?
stackoverflow.com
12
Finding first and last index of some value in a list in Python
stackoverflow.com
12
list around groupby results in empty groups
stackoverflow.com
11
How is the __contains__ method of the list class in Python implemented?
stackoverflow.com
11
how find all groups of subsets of set A? Set partitions in Python
stackoverflow.com
11
Using .iteritems() to iterate over key, value in Python dictionary
stackoverflow.com
11
Automate the Boring Stuff With Python, Chapter 4 Exercise
stackoverflow.com
11
Check if array is an ordered subset
stackoverflow.com
10
On Finding the Maximum Depth of an Arbitrarily Nested List
stackoverflow.com
10
How to convert “String” to “Int” without using library functions in Python
stackoverflow.com
9
How to make odd all elements of a list in python?
stackoverflow.com
9
Ruby's digits method performance
stackoverflow.com
9
sum of dictionary values in python 3
stackoverflow.com
9
Find all combination that sum to N with multiple lists
stackoverflow.com
8
Iterate all coprime pairs using constant space?
stackoverflow.com
8
Calculating the Manhattan distance in the eight puzzle
stackoverflow.com
8
One-liner to remove duplicates, keep ordering of list
stackoverflow.com
1
2
3
4
next
Stack Exchange works best with JavaScript enabled