Re: setup(**config); rookie

2012-05-28 Thread Steven D'Aprano
On Mon, 28 May 2012 06:20:06 -0700, cate wrote: > setup(**config) > > What is the construct **? It expands the dict "config" into keyword arguments. A single * expands to positional arguments. A simple example: args = [1, 2, 3] kwargs = {'x': 4, 'y': 5} somefunc(*args, **kwargs) is expande

Re: setup(**config); rookie

2012-05-28 Thread Jean-Michel Pichavant
cate wrote: I going thru a 101 and came upon this (http:// learnpythonthehardway.org/book/ex46.html) try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'My Project', 'author': 'My Name', 'url': 'URL to get it at.'

Re: setup(**config); rookie

2012-05-28 Thread Roy Smith
In article , cate wrote: > I going thru a 101 and came upon this (http:// > learnpythonthehardway.org/book/ex46.html) > > try: > from setuptools import setup > except ImportError: > from distutils.core import setup > > config = { > 'description': 'My Project', > 'author': 'My

setup(**config); rookie

2012-05-28 Thread cate
I going thru a 101 and came upon this (http:// learnpythonthehardway.org/book/ex46.html) try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'My Project', 'author': 'My Name', 'url': 'URL to get it at.', 'downloa