Re: setup(**config); rookie
- From: Roy Smith <roy@xxxxxxxxx>
- Date: Mon, 28 May 2012 09:25:24 -0400
In article
<d1d3d22a-83f7-48f6-a458-0df36449c8cc@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
cate <catebekensail@xxxxxxxxx> 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.',
'download_url': 'Where to download it.',
'author_email': 'My email.',
'version': '0.1',
'install_requires': ['nose'],
'packages': ['NAME'],
'scripts': [],
'name': 'projectname'
}
setup(**config)
What is the construct **?
Thank you
It calls setup with all the elements of config as if they had been
passed as discrete arguments.
def x(foo, bar):
print foo
print bar
args = {'foo': 1,
'bar': 2,
}
x(**args)
.
Relevant Pages
- Re: [kde] KAddressbook Spawning Tags
... Heh, I'm on gentoo, using the same user and generally same setup I setup ... And a good portion of that config ... including most or all of the kde user config, all mail, etc, was copied ... was the only thing using it that I used regularly, with kde4, I ... (KDE) - RE: Mail setup for new user in Debian
... It turns out that the mail host required FQD email logins for it to work ... only that but plenty of old information in the fetchmailrc config file. ... fetchmail is a program which downloads mail via POP or IMAP from a ... This depends on how the mail system is setup. ... (Debian-User) - Re: how to inquire about Linksys WAP54G wired to desktop?
... So it appears that changing from 15 on my router ... a setup screen for my AP I like your suggestion but I have no clue ... I didn't know my PC had an IP config ... I'm doing is done thru a wired connection -- I haven't yet used anything ... (alt.internet.wireless) - Re: how to inquire about Linksys WAP54G wired to desktop?
... I really need to get to my AP setup anyway but it sure seemed like ... I didn't know my PC had an IP config ... I'm doing is done thru a wired connection -- I haven't yet used anything ... John Navas FAQ for Wi-Fi: ... (alt.internet.wireless) - Re: how to inquire about Linksys WAP54G wired to desktop?
... going to bother you with it anymore. ... I really need to get to my AP setup anyway but it sure seemed like ... I didn't know my PC had an IP config ... I'm doing is done thru a wired connection -- I haven't yet used anything ... (alt.internet.wireless) |
|