Re: [Tutor] I have a question plz help

2009-02-20 Thread Alan Gauld
"rev pacce" wrote My mom and I have been trying to hack into the administrator account on our laptop my mom got from her job We don't deal with that kind of hacking on this list. But consider what might happen if you succeed. Suppose Mom's PC develops a fault and her IT people try to go

[Tutor] Standardizing on Unicode and utf8

2009-02-20 Thread Dinesh B Vadhia
We want to standardize on unicode and utf8 and would like to clarify and verify their use to minimize encode()/decode()'ing: 1. Python source files Use the header: # -*- coding: utf8 -*- 2. Reading files In most cases, we don't know the source encoding of the files being read. Do we have to

Re: [Tutor] wxPython dialog problem

2009-02-20 Thread Kent Johnson
On Thu, Feb 19, 2009 at 11:04 PM, Garry Willgoose wrote: > I'm just porting an old code from a GUI in Tkinter to one in wxPython and am > having a problem with one of the dialog widgets. This is on OSX. The code > below gives the result > > result= 5104 5103 5104 > > as expected but if I substitut

Re: [Tutor] Standardizing on Unicode and utf8

2009-02-20 Thread Kent Johnson
On Fri, Feb 20, 2009 at 5:52 AM, Dinesh B Vadhia wrote: > We want to standardize on unicode and utf8 and would like to clarify and > verify their use to minimize encode()/decode()'ing: > > 1. Python source files > Use the header: # -*- coding: utf8 -*- > > 2. Reading files > In most cases, we do

Re: [Tutor] Standardizing on Unicode and utf8

2009-02-20 Thread spir
Le Fri, 20 Feb 2009 02:52:27 -0800, "Dinesh B Vadhia" s'exprima ainsi: > We want to standardize on unicode and utf8 and would like to clarify and > verify their use to minimize encode()/decode()'ing: > > 1. Python source files > Use the header: # -*- coding: utf8 -*- You don't even need fancy

[Tutor] Please remove me from the mailing list

2009-02-20 Thread Jennifer Miller
Hello, Could you please remove my address from the mailing list? Thank you, Jennifer ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-20 Thread Wayne Watson
Title: Signature.html Marc, I'm reaching back here, since something seems to have gone awry. I'm looking at the code for Global_Config1.py. When I execute it from IDLE, I get again: ...   File "C:\Sandia_Meteors\New_Sentinel_Development\Sentuser_Utilities_Related\sentuser\configobj.py", line 16

Re: [Tutor] verify the email

2009-02-20 Thread Emile van Sebille
jitendra gupta wrote: is there any way so that i can identify wrong email during the run time (when i am sending the email) As I understand things, no. You can validate the domain part, and there is the SMTPRecipientsRefused exception, but you won't get that if you're relaying. Further, ma

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-20 Thread Paul McGuire
Has anyone already mentioned the article in Python Magazine, May, 2008? -- Paul ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Please remove me from the mailing list

2009-02-20 Thread Kent Johnson
On Fri, Feb 20, 2009 at 12:38 PM, Jennifer Miller wrote: > Hello, > > Could you please remove my address from the mailing list? OK ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] File locking: cross platform?

2009-02-20 Thread Bernard Rankin
Hello, What is the correct way to implement cross-platform "flock like" file locking? Specifically, how would i acquire "exclusive read-write" and "shared read-only" locks for a CGI script that I expect to run on both Windows and Linux servers. Thank you, :)

Re: [Tutor] File locking: cross platform?

2009-02-20 Thread bob gailer
Bernard Rankin wrote: Hello, What is the correct way to implement cross-platform "flock like" file locking? Specifically, how would i acquire "exclusive read-write" and "shared read-only" locks for a CGI script that I expect to run on both Windows and Linux servers. Some other tutor may have

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-20 Thread Marc Tompkins
On Fri, Feb 20, 2009 at 9:45 AM, Wayne Watson wrote: > Marc, I'm reaching back here, since something seems to have gone awry. I'm > looking at the code for Global_Config1.py. When I execute it from IDLE, I > get again: > > ... > File > "C:\Sandia_Meteors\New_Sentinel_Development\Sentuser_Utilit

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-20 Thread Marc Tompkins
On Fri, Feb 20, 2009 at 10:45 AM, Paul McGuire wrote: > Has anyone already mentioned the article in Python Magazine, May, 2008? > No, I for one haven't seen it. Is it available online, or only for subscribers? -- www.fsrtechnologies.com ___ Tutor m

Re: [Tutor] File locking: cross platform?

2009-02-20 Thread Chris Fuller
There's a recipe in the Python Cookbook that addresses this: http://code.activestate.com/recipes/65203/ There are probably others floating around, too. Cheers ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-20 Thread Wayne Watson
Title: Signature.html Good. Thanks. It works fine for me now.  I deleted the file. I just ran the program again straight from the py file, and it put my the black window with my raw_input prompt.  It seems odd that it wouldn't have left text debris when it crashed. I've attached a copy of an I

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-20 Thread Alan Gauld
"Wayne Watson" wrote I just ran the program again straight from the py file, and it put my the black window with my raw_input prompt. Thats why, when debugging, its often better to open the command window first and run the program from the OS prompt. That way you don't lose any text mes

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-20 Thread Wayne Watson
Title: Signature.html Not because of this particular problem, but, out of curiosity, I tried today to give the MS command line facility a shot. I think that's what we are discussing here. I immediately ran into something of a problem. My assumption was is was fully a DOS window.  Trying to work

Re: [Tutor] Looking for ConfigObj Documentation

2009-02-20 Thread Marc Tompkins
On Fri, Feb 20, 2009 at 5:05 PM, Wayne Watson wrote: > Not because of this particular problem, but, out of curiosity, I tried > today to give the MS command line facility a shot. I think that's what we > are discussing here. I immediately ran into something of a problem. My > assumption was is wa