Re: cut strings and parse for images

From: Andreas Volz (usenet-spam-trap_at_brachttal.net)
Date: 12/06/04


Date: Mon, 6 Dec 2004 23:41:41 +0100

Am Mon, 06 Dec 2004 20:36:36 GMT schrieb Paul McGuire:

> Check out the urlparse module (in std distribution). For images, you
> can provide a default addressing scheme, so you can expand
> "images/marine.jpg" relative to the current location.

Ok, this looks good. But I'm a really newbie to python and not able to
create a minimum example. Could you please give me a very small example
how to use urlparse? Or point me to an example in the web?

regards
Andreas



Relevant Pages

  • Re: Newsgroup mood [was] why python is slower than java?
    ... > 2) How to find information about Python ... there is an FAQ and yet people still ask why Python gets division ... > perhaps not so common to be written up in an FAQ, ... > from the newbie mindset. ...
    (comp.lang.python)
  • Re: Is everything a refrence or isnt it?
    ... "Python is 'call by reference'", ... Mr. Newbie? ... Not tuple or string because they are ...
    (comp.lang.python)
  • Re: Newbie question - probably FAQ (but not exactly answered by regular FAQ)
    ... and I consider myself still very very newbie. ... If you are writing for 2.3 you are writing for 2.4 and 2.5 also. ... There are some nice things in Python but nothing you really need neither - ... Jython seems to be based off python 2.2 ...
    (comp.lang.python)
  • Re: [Python-ideas] accurate errors for "magic" methods
    ... also able to solve the problem without any help from python. ... lookup as "subscripting" in Python. ... The classic error message tells the newbie exactly what the error ...
    (comp.lang.python)
  • Re: builtin regular expressions?
    ... I'm not a newbie. ... So the idea behind my original post was that the Perl/Ruby way takes even less to type (for the regex topic of this discussion, I'm not generalizing), and that I like a lot. ... To me the Perl/Ruby way is more "beautiful" (Python culture: Beautiful is better than ugly) than the Python way and therefore I couldn't see the reasons. ... Some of you say that this regex stuff is used rarely enough so that being verbose is in these few cases the better choice. ...
    (comp.lang.python)