python print 3 first elements of list in reverse mode
<p>suppose i have a list like this:</p>

<pre><code>my_list = [0,1,2,3,4,5] # range(5)
</code></pre>

<p>i want to print this:</p>

<pre><code>[2,1,0]
</code></pre>

<p>my python script is:</p>

<pre><code>print(my_list[2:-1:-1])
</code></pre>

<p>but it <strong>prints an empty list!</strong></p>

<p>is this a bug in python(2 and 3!)?</p>

<p>i wont use any trick like:</p>

<pre><code>num_of_elems_i_want = 3
print(my_list[::-1][len(my_list) - num_of_elems_i_want:])
</code></pre>

<p>or third party modules..</p>