New submission from AmjadHD :
I made this simple time decorator, it's not perfect but it does make python
more pythonic :) :
it can be used as a decorator:
```
@timef
def fun_to_time(a, b):
...
```
or as a function call
`timef(print)("Hello world!")`
just a simple decora
AmjadHD added the comment:
Yes but i dont know if this is cross platform solution, i guess this function
should be in the os.path module.
--
___
Python tracker
<https://bugs.python.org/issue33
AmjadHD added the comment:
Yes that's a way to do it but "a, b, c = my_list[1, 3, -1]" seems so pythonic
and straight forward, it's like formatting, python had already 3 methods to do
it when it introduced a 4th one (f-strings), easier is better especially in
python