whoareu@lemmy.ca to Programming@programming.devEnglish · 5 months agowhich python trick or hack you know that you would want to share?message-squaremessage-square38fedilinkarrow-up196arrow-down12
arrow-up194arrow-down1message-squarewhich python trick or hack you know that you would want to share?whoareu@lemmy.ca to Programming@programming.devEnglish · 5 months agomessage-square38fedilink
minus-squaretaaz@biglemmowski.winlinkfedilinkEnglisharrow-up0·5 months agoNot necessarily a trick that’s always useful but I always forget this. You can get async REPL by calling python -m asyncio. Also, old trick - in need of simple http server serving static files? python -m http.server
minus-squareamenji@programming.devlinkfedilinkarrow-up0arrow-down1·5 months agoUsing http.server is my go-to sanity check method if my configured my network firewall correctly or not.
Not necessarily a trick that’s always useful but I always forget this.
You can get async REPL by calling
python -m asyncio
.Also, old trick - in need of simple http server serving static files?
python -m http.server
Using
http.server
is my go-to sanity check method if my configured my network firewall correctly or not.