1,185 karma · joined October 3, 2011
http://www.linkedin.com/pub/bruno-cauet/2b/963/415
https://github.com/brunal
>pip install click
Well... no you cannot. See the page: https://pypi.python.org/pypi/click
The package hasn't been uploaded yet. However one can install it straight from the git repo:
> pip install git+ssh://git@github.com:mitsuhiko/click.git
>Sorry, we couldn't find that page. Here are some others for you to explore.
Here's the version from Google cache: http://webcache.googleusercontent.com/search?q=cache%3Awww.l...
- parallel and concurrent are 2 different things
- the 'symbolic languages' definition seems off. Wikipedia puts it right:
> symbolic programming is computer programming in which the program can manipulate formulas and program components as data
So it's not "using graphs & such to program"
> As noted above, ``%s`` is being included solely to help ease migration from, and/or have a single code base with, Python 2.
> if you'd like Mercury language detection on GitHub then with the current implementation of Linguist you need to pick a different (unique as Objective-C already defines this) primary_extension and add .m to the extensions array which will force Linguist into using the other detection methods mentioned above.
I've personally noticed that most devs don't have an opinion either way since they don't use subtrees nor submodules.
I don't know what subtrees offer but using submodules has been very pleasant once you know how they work. For example if you version control your .vim I think that adding submodules for extensions is way better than cloning them inside your .vim.
I look forward to having the opportunity to use subtrees.
This is IMHO the strongest argument against Bitcoin and the reason why a long-term economy could not depend on it. The problem with cryptocurrencies is the impossibility to control the monetary mass.
Definitely. The PEP8 was actually revised 6 months ago[0]. Nothing crazy, but a bit more pragmatic.
>For code maintained exclusively or primarily by a team that can reach agreement on this issue, it is okay to increase the nominal line length from 80 to 100 characters (effectively increasing the maximum length to 99 characters)
0: text: http://legacy.python.org/dev/peps/pep-0008/#maximum-line-len...
* if a method does not use the object's state (no `self` usage) make it a `class-` or `staticmethod`.
* Some magic methods are presented. There's more to them[0].
* one should not write `class MyClass:` but `class MyClass(object):` (new style class[1])
* the last one (`return None`) make me very dubious
* Cascading methods: that's a big no. The idiom is that if a method may change the state of the object then it should return None (eg `set.add`)
0: well-written and comprehensive guide: http://www.rafekettler.com/magicmethods.html
With `git add`, sure it allows you to stage part of a file. That not all, when you're in edit mode (pressed "e" upon the prompt) you just edit a patch. So you can actually put in your patch lines that are not in the source file. This can be very convenient e.g. if the 2 sets of change you want to commit separately are entangled. For example I used it yesterday to correct the level of indentation.
With `git stash show`, instead of having a short description of files changed in the stash, you get the patch itself.
etc.
Git man pages are well-written, and I always enjoy reading it. Most of the time I have one question but end up wiser (at least git-wise).
Do you have experience with the `six` library[0]? I've read a few times about it recently and it seems a convenient way to write portable code. I still wait for an opportunity to use it!
edit: direct link to the pdf: https://wiki.python.org/moin/2.x-vs-3.x-survey?action=Attach...
Making that value settable could be nice (as well as opening the source).
Having kids and retiring usually do not happen at the same time.
>a few of my friends, who were settling in France for personal reasons
So they're not French. Your first comment is definitely wrong then.
I believe they were referencing the circulaire Guéant[0], which comes from the previous government, wronged many skilled workers & French companies as well -- it sets a 'national preference' for hiring.
xenophoby? Oh USA, building a wall to keep your neighbours out of your lawn, please tell me more!
Our economy? Of course American governement-sponsored 'liberalism' is a beacon for the free world, and dissidents are morons. Please have a look at this recent article by Paul Krugman: The Plot Against France[0].
Your high-skilled French friends? I have the luck to be put in that population. What I see around me is that we travel and work world-wide, until we start a family most of the time.
0: http://www.nytimes.com/2013/11/11/opinion/krugman-the-plot-a...
Is there a difference here? I mean, can they still skip the step? The article does not say much. Anyway the design was made such that it was hard to know you could skip the step.
In the case of Python 3, a neat thing library developers can do is write code that is both valid for Python 2 and Python 3. The six[0] library is a wrapper for making code compatible with both versions. There are tools like 2to3[1] and 3to2[2] that convert code from one version to another. They're not perfect but do catch the most common differences. Such things help with making the change.
However it is the availability (or more exactly lack of) of famous and widely used libraries that hinder or speed up the adoption. For example, Django recently started offering a Python 3 version[0]. Numpy and Scipy support it since around 2011 only.
0: http://pythonhosted.org/six
1: http://docs.python.org/2/library/2to3.html
2: https://wiki.python.org/moin/3to2
3: "Porting to Python 3" htthttp://pythonhosted.org/sixps://docs.djangoproject.com/en/de...
>Django 1.5 is the first version of Django to support Python 3. The same code runs both on Python 2 (≥ 2.6.5) and Python 3 (≥ 3.2), thanks to the six compatibility layer.
"Django's future, and Python 3" https://www.djangoproject.com/weblog/2012/mar/13/py3k/
See Mark Shuttleworth AMA: http://www.reddit.com/r/IAmA/comments/1j166z/hi_im_mark_shut...
$ curl http://shortfin.io/install.sh | sh
I definitely agree with the HTTPS. For example this is what meteor proposes: $ curl https://install.meteor.com | sh