Joshua Levy

Results 115 issues of Joshua Levy

Often people print bytes out and it looks ugly in Python 3. Convert something like this to handle raw writing in Python 3 and with a file= argument for multiple...

feature

Something like ``` def ensure_str(bytes_or_str, encoding=None): return bytes.decode(encoding) if type(bytes_or_str) is bytes else bytes_or_str ``` It doesn't seem like there's any single expression to do this normally. https://stackoverflow.com/questions/7585435/best-way-to-convert-string-to-bytes-in-python-3

feature

http://stackoverflow.com/questions/715417/converting-from-a-string-to-boolean-in-python Probably something like this is best, as it's strict but reasonable: ``` def parse_bool(val): if val in [True, 1, "True", "true"]: return True elif val in [False, 0, "False",...

This library has been tested reasonably well on Linux and MacOS, but not at all on Windows.

help wanted

See http://stackoverflow.com/questions/1158076/implement-touch-using-python

Example: ``` # On MacOS, resize images larger than 400x400px to 400x400 or less and preserve aspect ratio: sips -Z 400 $(file *.png | awk '$5 > 400' | cut...

https://github.com/mgunyho/tere

new-command

Seems like best tool for manipulating image metadata? http://owl.phy.queensu.ca/~phil/exiftool/ Others?

discussion-wanted

As discussed in #448 it would make sense to include a couple items (or section) mentioning - different shells (csh, tcsh, ksh, zsh, fish) - alternatives to shell scripting (Rexx,...

discussion-wanted
new-major

There are a few of these. We should consider which is the best recommendation, perhaps listing all the main ones. https://github.com/clvv/fasd https://github.com/rupa/z https://github.com/joelthelion/autojump Any others?

discussion-wanted