():
print 'got a new name'
# alias
old_function = renamed_function
Is this a good approach or are there better suggestions out there in the Python
community for such a purpose?
Thanks in advance for your hint,
Timmie
___
Tutor maillist
gle.com/p/pacparser/wiki/PacFilesInPythonWebclients
It seems that the script can even test if connection is available.
I was looking for this earlier.
KInd regards,
Timmie
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
proxy settings?
Thanks in advance and kind regards,
Timmie
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Kriti Satija yahoo.co.in> writes:
>
> Remove my mail id from that i have subsribed in
> Python Tutor List.
Please do this by yourself going at the site mentioned in the mail footer:
> ___
> Tutor maillist - Tutor python.org
> http://mail.python.or
> start, as I want to be able to input any Unit to Convert (will keep it simple
for now, feet, inches etc. and add
Maybe you want to get inspired by a Gnome deskbar handler:
http://www.kryogenix.org/days/2006/09/06/converter-deskbar
___
Tutor maillist -
as missing parent directories."
Which command do you recommend if the destination already exists?
I'd like to overwrite or sychronise a local with a remote directory and
therefore the destinations files already exist.
Regards,
Timmie
___
Tutor ma
in
shutil.copytree(source, dest)
File "C:\python\lib\shutil.py", line 110, in copytree
os.makedirs(dst)
File "C:\python\lib\os.py", line 172, in makedirs
mkdir(name, mode)
WindowsError: [Error 183] Eine Datei kann nicht erstellt werden, wenn si
0]
>
> The last two can be easily combined as:
>
> > myfile_name_without_suffix = os.path.splitext(basename)[0]
>
> But otherwise you are using the "correct" mechanism if
> you want a reliable result.
Thanks for this confirmation.
I am happ
_path)
filename = os.path.splitext(basename)
myfile_name_without_suffix = filename[0]
Can this be done with less code?
Thanks and kind regards,
Timmie
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ions.
I hope my needs are now a litte understandable.
For the real debugging I will follow the hints the other posters pointed out
anserwing my question. Thanks for your help on that.
> You can ask specific questions here, if there is a bit of code you are
> strugglin
ago.
OT: Flow chart -
http://news.gmane.org/find-root.php?message_id=%3c1103452504.92b04ebcjerimed%40myrealbox.com%3e
Is there any solution that can be used without leaning UML?
Kind regards,
Timmie
___
Tutor maillist - Tutor@python.org
http
is that I don't get a encoding error?
* how do I code it that the code runs on linux and windows
from file and in IPython
Thanks again for your support. I don't want any misunderstandings. You were a
good tutor to me and are helping
patiently many user stepping into python.
Kind regards,
n. For me this
totally neglects the statement that python code is easily portable or executable
on other platforms.
For instance, I am also unsing some IDL code. There I open the IDLE and code
right away without worring about the encoding.
Kind regards,
Timmie
___
> Just be aware that this affects portability of your scripts; they will
> require this same change to run on other systems. For this reason you
> might want to change the code instead.
> If you give a specific example of what is failing I will try to help.
>From the previous posts I learned tha
> I'm sure there'll be lots of other suggestions, but the SciTE
> editor (whose name I'm never sure how to prononunce without
> blushing) understands the same encoding directive as Python.
> It's quite lightweight, and also allows you to run Python scripts
> directly, although there are limitations
OK, I found out.
> Since it didn't work in IPython as well I assume that I need to change the
> encoding of the IPython shell to UTF-8, too. Still need to find out where.
Put a file called 'sitecustomize.py' into any directory on your PYTHONPATH.
write the folowing two lines in that file:
import
ox(message="Enter something.", title="",
argDefaultText=raw)
print entertext
degrees = lines[0]
print "degrees: ", str(degrees)
Thanks for your support, so far.
Timmie
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I tried your advice yesterday evening.
> And see if you get a ç.
I see this character.
from easygui import easygui
raw = unicode("121ø 55' 5.55''", 'utf-8')
=> gets a encoding error
raw = unicode("121ø 55' 5.55''", 'cp1250')
=> this works while coding on windows.
How do I make it work really cro
18 matches
Mail list logo