Under Windows, CPython is shipped with a very useful py
command.
PEP-397 describes in details its behaviour, and its C implementation can be found in the CPYthon Mercurial repository.
There has already been a lenghty discussion in the "python-ideas" mailing list to write a Linux equivalent. I agree with what …
Inspired by the 2015 New Year's Resolution thread, I've been meaning to take increase my Python competency by taking on more ambitious projects....
A month ago, I wanted to automate queries to a website that is using the PHPSESSID cookie to keep track of sessions. I struggled a lot and couldn't find any documentation covering the behaviour I was observing. But yesterday I finally found a solution !
In hope it could help others …
Consider the following Python expression:
print("".join(set("ABCDE")))
What do you think it produces ?
Not necessarily "ABCDE". Right, but you would expect the result to be consistent, isn't it ?
$ for i in {1..3}; do python2.7 -c 'print("".join(set("ABCDE")))'; done
ACBED
ACBED
ACBED
Great !
...
But with …
This post is only relevant to you if you use browserify
. For a good introduction to this powerful Javascript bundling tool, check this doc.
First of all, I'd like to take my hat off to James Hallyday and Peteris Krumins who have built such amazing tools as browserify
, testling
and …
GoogleScraper - A python module to search and scrape the mighty Google search engine using proxies (socks4/5, http proxy) and with many different IP's, including asynchronous networking support (very fast). This probably infringes the Google TOS!
ipython - Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
This post aims to introduce a very useful tool to debug low-level issues in Python, how to enhance it and finally how to solve two annoying common problems.
1. Debugging Python with gdb
All the basics are there : https://wiki.python.org/moin/DebuggingWithGdb
Tl;dr :
gdb -p $(pgrep -f …
prospector - Inspects Python source files and provides information about type and location of classes, methods etc
cymem - Gate Cython calls to malloc/free behind Python ref-counted objects