Smith, Jeff jsmith at medplus.com writes:
But there is no way to enforce standard settings. When new versions are
installed or someone just makes a mistake the settings might change and
you won't know until it's too late...possibly weeks later.
Programs when updated tend to keep their
On Tue, 17 May 2005 21:18:09 -0700 (PDT)
Mahmad Sadique Hannure [EMAIL PROTECTED] wrote:
Hi Mahmad,
Hello friends,
I m currently working on sound stuff. I have installed
all stuff related to Snack. My code for playing mp3
song is like this
#!/usr/bin/python2.3
from Tkinter import *
The most common usage is to get the last member of an array as with
myarray[$#myarray]
and I realize in Python, this can be done with
myarray[-1]
My current dilemma is that I've got a program that takes one argument
and needs to be run multiple times with this argument being
Hello.
I am trying to make a loginbox for a program, and need to make a somewhat
safe passwordroutine.
Will this work?
import md5
h = md5.new()
h.update(password)
h.hexdigest()
The user enters a password first. These lines will create a string:
'12c0faae657b3d068c0f19b71f5b43bc' This string
Hey
I think that is a good built-in way to protect your passwords, but then I
don't know if a text file is the best way to store them. I think (in my
opinion) I consider using a database to store tha info.
There is a way to make the entry appears as *.
txtPass=Entry(root,width=25,show=*)
The
On 5/18/05, Smith, Jeff [EMAIL PROTECTED] wrote:
Is there a more Pythonic way to get the Perl equivalent of
$#var
other than
len(var) - 1
By Pythonic, if you mean OO, you can do this: ['foo', 2, 'baz'].__len__()
--
Premshree Pillai
http://www.livejournal.com/users/premshree/
Hello,
I'm stuck on part 8 of the Python Challenge.
To solve it, I want to feed 2 pieces of data to a Python module. I get
those pieces by reading the webpage source, and then splitting it on
', like this:
import urllib
pagesource = urllib.urlopen(site_address).read()
parts =
I'm making a program that opens a file and tries to find the word you specify.
I can't get it to find the word! I also would like to know how I can get
it to print 2 lines above and 2 lines below the line with the word specified.
One more thing, the try: IOError won't work... I type the name of
Hi Joseph,
To answer your last question first, you should use the
os.path.exsits() method to see if the path is valid:
http://www.python.org/doc/2.4.1/lib/module-os.path.html
As for finding a word in a text, I would suggest to write a basic text
parser that would work on small files.
def
Ooops, a part of my code was missing, sorry about that. Here is it
again, complete.
def parseText():
# oFile: text file to test
# myWord: word we are looking for
# Get all lines into list
aLines = oFile.readlines()
# Perform list
Øyvind wrote on Wed, 18 May 2005 14:46:43 +0200 (CEST):
The user enters a password first. These lines will create a string:
'12c0faae657b3d068c0f19b71f5b43bc' This string will be stored in the file
settings.txt
That's a very good way of preventing the user's password from being
reconstructed.
My current dilemma is that I've got a program that takes one argument
and needs to be run multiple times with this argument being validated
based on the previous one. So proper usage might be
myprog red
myprog blue
myprog green
where it would be wrong to do
myprog
onepart and anotherpart contain many hex representations of
nonprintable
characters, like '\x14'. But I can't manage to convert those to the
actual nonprintable characters. Any hints on how to do this?
'\x14' is the actual non printable charactewrs. If it were printable
you
would see its
I'm making a program that opens a file and tries to find the word
you specify.
I can't get it to find the word!
What are you trying?
You could simply read through the file line by line using the string
search methods. Store the previous 2 lines then when found print the
previous two lines,
Does anyone know of a Python debugger that will run under OSX 10.4? The Eric debugger was looked at, but it's highly unstable under Tiger. Thanks.-MH___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I'm sending the commands you asked
I'm still can't make it work and I don't know what else should I do
I'll aprecciate any help
Best Regards
Alberto
From: Danny Yoo [EMAIL PROTECTED]
To: Alberto Troiano [EMAIL PROTECTED]
CC: tutor@python.org
Subject: Re: [Tutor] Troubles with Python modules
Date:
Quoting Mike Hall [EMAIL PROTECTED]:
Does anyone know of a Python debugger that will run under OSX 10.4?
The Eric debugger was looked at, but it's highly unstable under
Tiger. Thanks.
pdb should work :-)
--
John.
___
Tutor maillist -
Inconsistent indentation styles are very
annoying in
other languages, but a fatal problem in Python.
But there is no way to enforce standard settings. When new versions are
installed or someone just makes a mistake the settings might change and
you won't know until it's too late...possibly weeks
Is there any way to change this to put in a column of buttons and it will
scroll like it does now. I've tried but when I put in the buttons the
scrollbar just grows with all the buttons and won't do anything.
from Tkinter import *
root = Tk()
scrollbar = Scrollbar(root)
scrollbar.pack(side=RIGHT,
Quoting Ron Alvarado [EMAIL PROTECTED]:
Is there any way to change this to put in a column of buttons and it
will scroll like it does now. I've tried but when I put in the buttons the
scrollbar just grows with all the buttons and won't do anything.
I'm not exactly sure what you're after here
Version 0.8.6a is now available.
This version is mostly a bug fix version.
* unicode problem corrected (bug introduced in version 0.8.5)
* linenumber information on syntax errors corrected
* removed the URL browser capability
* corrected typo and change explanation of next_to_a_beeper() in
Mike,
You may not be looking for a commercial IDE, but I am very happy with
WingIDE and using it with Tiger.
Lee C
On May 18, 2005, at 6:54 PM, Mike Hall wrote:
I should of specified that I'm looking for an IDE with full
debugging. Basically something like Xcode, but with Python support.
22 matches
Mail list logo