plac is based on argparser and it is intended to be much easier to use. See
http://plac.googlecode.com/hg/doc/plac.html
Here is an example of usage.
$ cat vcs.py
class VCS(object):
"A fictitious version control tool"
commands = ['checkout', 'commit']
def checkout(self, url):
r
On Mon, Sep 26, 2011 at 2:11 PM, Tim Chase
wrote:
> On 09/26/11 13:57, Prasad, Ramit wrote:
>>>
>>> It seems it's time to start reading about argparse
>>
>> FYI, it only appears on Python 2.7+
>
> However I believe it can be uneventfully copied and run under several
> versions earlier (likely back
On 09/26/11 13:57, Prasad, Ramit wrote:
It seems it's time to start reading about argparse
FYI, it only appears on Python 2.7+
However I believe it can be uneventfully copied and run under
several versions earlier (likely back to 2.5, perhaps to 2.4 -- I
no longer have 2.4 at my fingertips t
"Prasad, Ramit" writes:
> This email is confidential...
Probably a bad idea to post it to a world readable mailing list then :)
--
http://mail.python.org/mailman/listinfo/python-list
> It seems it's time to start reading about argparse
FYI, it only appears on Python 2.7+
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
This email is confidential and subject to important disclaimers
On 09/26/2011 11:10 AM, Chris Rebert wrote:
> On Mon, Sep 26, 2011 at 1:55 AM, Gelonida N wrote:
>> Hi,
>>
>> So far I used optparse.OptionParser for parsing command line arguments
>> for my python scripts. So far I was happy, with a one level approach,
>> where I get only one help text
>>
>> Now
On Mon, Sep 26, 2011 at 1:55 AM, Gelonida N wrote:
> Hi,
>
> So far I used optparse.OptionParser for parsing command line arguments
> for my python scripts. So far I was happy, with a one level approach,
> where I get only one help text
>
> Now I'd like to create a slightly different python script
Hi,
So far I used optparse.OptionParser for parsing command line arguments
for my python scripts. So far I was happy, with a one level approach,
where I get only one help text
Now I'd like to create a slightly different python script and wondered
which approach / module might be best for implemen
SAKTHEESH wrote:
> I am using Beautiful Soup to parse a html to find all text that is Not
> contained inside any anchor elements
>
> I came up with this code which finds all links within href
_anchors_ _with_ `href' _attribute_ (commonly: links.)
> but not the other way around.
What would tha
I am using Beautiful Soup to parse a html to find all text that is Not
contained inside any anchor elements
I came up with this code which finds all links within href but not the
other way around.
How can I modify this code to get only plain text using Beautiful
Soup, so that I can do some find a
En Tue, 10 Jul 2007 11:32:48 -0300, Robert Rawlins - Think Blue
<[EMAIL PROTECTED]> escribió:
> I'm looking for some help building a function which can parse some XML
> for
> me using ElementTree. The document is of a very consistent format and
> I've
> copied an example of the document belo
Hello Guys,
I'm looking for some help building a function which can parse some XML for
me using ElementTree. The document is of a very consistent format and I've
copied an example of the document below.
Hello Chaps,
I'm looking for some help with XML parsing, I've been playing around with
this over the past few days and the only solution I can come up with seems
to be a little slow and also leaves what I think is a memory leak in my
application, which causes all kinds of problems.
I have
13 matches
Mail list logo