jim stockford wrote:
> you might consider keeping your code at two
> spaces and when/if the need arises to share
> your code, write a little filter program that
> translates the two-space indents to four.
> very interesting idea to play piano notes.
> how'd you do that?
>
Why not just use
Danny Yoo wrote:
>> Hello:
>> I'm seeing some strange behavior with lstrip operating
>> on string representations of *nix-style file paths
>> Example:
> s = '/home/test/'
> s1 = s.lstrip('/home')
> s1
>> 'test/' ## '/test/' was expected! '/' was unexpectedly removed
>> Any comments or
On Dec 3, 2007 4:29 PM, Ricardo Aráoz <[EMAIL PROTECTED]> wrote:
> Danny Yoo wrote:
> >> Hello:
> >> I'm seeing some strange behavior with lstrip operating
> >> on string representations of *nix-style file paths
> >> Example:
> > s = '/home/test/'
> > s1 = s.lstrip('/home')
> > s1
> >>
Ricardo Aráoz wrote:
> Danny Yoo wrote:
>
>>> Hello:
>>> I'm seeing some strange behavior with lstrip operating
>>> on string representations of *nix-style file paths
>>> Example:
>>>
>> s = '/home/test/'
>> s1 = s.lstrip('/home')
>> s1
>>
>>> 'test/' ## '/t
I recently downloaded the newer version of python, the 2.5.1 one, and when ever
i try to make an input what ever i type into the brackets appears on the next
line and when i try to add the next line it carries on from the input,This is
what happens:
I type this down:
# Area calculation program
Dear Tutors,
I have a multithread python service on a windows server,
that brekas down sometimes.
It is a service, that runs on a server and listen on the 9100
tcp port on three IP addresses, just as three jetdirect devices.
It listens as a virtual printer, captures the content of the
print jobs
I appear to be having a weird problem with the List Server.
At first, email sent to this address did not appear at
all.
After contacting the ML maintainers only one email from
me to this address go through. When I replied to the
thread which the email started, it was not delivered.
This is a very
Martin Walsh wrote:
> Ricardo Aráoz wrote:
>> Hi, I've checked webbrowser module and so far I find no way of selecting
>> a browser other than the default one. Say I want certain places opened
>> with IE and others with Mozilla, and I don't want to mess with the
>> user's setting of the default bro
>> ##
> s = '/home/test/'
> s1 = s.lstrip('/ehmo')
> s1
>> 'test/'
>> ##
>>
>> Take a closer look at the documentation of lstrip, and you should see
>> that
>> what it takes in isn't treated as a prefix: rather, it'll be treated as a
>> se
I do not currently have wx installed, but I can see the errors...
I think some information will help you more than answers in this instance.
When you 'import clases_calling', what you are doing is creating a new
namespace. Inside that namespace is the class 'funct'. In your code, you
call the fu
Ricardo Aráoz wrote:
> Martin Walsh wrote:
> Hi Marty, thanks for your help.
> I've tried your suggestions but they don't seem to work for me. In W's
> system window I can do :
> C:/> S:\FirefoxPortable\FirefoxPortable.exe http://www.google.com
> and it will open my browser ok. But no matter what I
Ricardo Aráoz wrote:
import webbrowser
ff = webbrowser.get("S:\FirefoxPortable\FirefoxPortable.exe %s &")
ff.open('http://www.google.com')
> False
Beware of backslashes in file paths - backslash introduces a character
escape in Python strings. You can fix by any of
- use \\ instead
Andrew Critchley wrote:
> I recently downloaded the newer version of python, the 2.5.1 one, and
> when ever i try to make an input what ever i type into the brackets
> appears on the next line and when i try to add the next line it
> carries on from the input,This is what happens:
>
> I type t
Kent Johnson wrote:
> Ricardo Aráoz wrote:
> import webbrowser
> ff = webbrowser.get("S:\FirefoxPortable\FirefoxPortable.exe %s &")
> ff.open('http://www.google.com')
>> False
>
> Beware of backslashes in file paths - backslash introduces a character
> escape in Python strings. You ca
Martin Walsh wrote:
> Ricardo Aráoz wrote:
>> Martin Walsh wrote:
>> Hi Marty, thanks for your help.
>> I've tried your suggestions but they don't seem to work for me. In W's
>> system window I can do :
>> C:/> S:\FirefoxPortable\FirefoxPortable.exe http://www.google.com
>> and it will open my brow
Ricardo Aráoz ha scritto:
>> ff = webbrowser.get("S:/FirefoxPortable/FirefoxPortable.exe %s &")
> That did it, but as I told Kent :
>
> ff.open('http://www.google.com')
> Traceback (most recent call last):
> File "", line 1, in
> File "E:\Python25\lib\webbrowser.py", line 168, in open
>
16 matches
Mail list logo