Re:Show HN: Making Python one-liner-fit with the new pwk (Py...
by OJFord on Sunday November 22, 2020 @02:12PM
(#25180111)
What? It's a python script, 'it' there is the source. It's executable via the python interpreter given in its shebang line.
Re:Show HN: Making Python one-liner-fit with the new pwk (Py...
by neycmrtn on Sunday November 22, 2020 @02:28PM
(#25180254)
"pwk" is both code and "executable" -- you can open it with any text editor. I didn't want to name it "pwk.py" to save on typing on the command line.
--m
Re:Show HN: Making Python one-liner-fit with the new pwk (Py...
by alsko on Sunday November 22, 2020 @03:19PM
(#25180676)
Wow, I feel _really_ dumb now - I just saw the filename without ".py" and assumed it was an executable
Sorry, I take it back!
Re:Show HN: Making Python one-liner-fit with the new pwk (Py...
by OJFord on Sunday November 22, 2020 @03:35PM
(#25180815)
It's sort of just pedantry because I know what you mean, but FYI it is an executable when you mark it (chmod +x) as such; what you mean to say is that you assumed it was a binary, the output of a compiler, with the input (source) not provided.
No source? No thanks.
Edit: Discard this comment! I thought pwk in the repo was an executable because it did not have a ".py" ending and did not care to check. Sorry!