Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
igrek51
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Show HN: Todo Tree – To-do tasks in a nested tree structure
(github.com)
1 points
by
igrek51
2y ago
|
0 comments
2.
▲
by
igrek51
2y ago
Right, that would be a wrong pipe direction. Fun fact: It's already possible to do "wat | foo" or "wat << foo" (if you're more familiar with C++ iostream), it has the same effect as "wat / foo&q
3.
▲
by
igrek51
2y ago
Thank you all, I learned from you that it's possible to have a callable module. Although `sys.modules[__name__] = wat` looks like a black magic and I'm a bit afraid of locking out to other importable things in this package, I thin
4.
▲
by
igrek51
2y ago
"import wat" would be great, but Python has some restrictions about modules not being callable. That's why I ended up with longer `from wat import wat`. Not sure but maybe this would be more convenient `import wat; wat.wat &#
5.
▲
by
igrek51
2y ago
You're completely right. `dir()` does the same in terms of functionality. In fact, my tool makes use of `dir` under the hood. I just wanted to make it more readable, and to combine `dir`, `type`, `repr`, `len`, `inspect`, etc. into one
6.
▲
by
igrek51
2y ago
Yes, that has the same effect as installing the package. So if you feel uncomfortable, you can either install the pip package (and of course review the installed code) or review the decoded string before executing it. It's not that obf
7.
▲
by
igrek51
2y ago
It's the parentheses that drove me crazy. As people already noted, it's for faster typing, at the cost of the division magic as you noted. If it's more familiar to you, it works with `wat(object)` syntax as well.
8.
▲
Show HN: Wat – Deep inspection of Python objects
(github.com)
393 points
by
igrek51
2y ago
|
92 comments
9.
▲
fpick – Interactive File Picker
(github.com)
2 points
by
igrek51
3y ago
|
1 comments
10.
▲
by
igrek51
3y ago
Interactive file picker to traverse through directories tree in a terminal
11.
▲
Regex-rename – Bulk rename tool
(igrek51.github.io)
2 points
by
igrek51
3y ago
|
1 comments
12.
▲
by
igrek51
3y ago
Bulk rename tool based on regular expressions to rename multiple files at once.