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
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.'
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
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