[Tutor] Paython as a career

2009-03-16 Thread Hussain Ali
Dear all I want to start learning python but before going further I need answer to my questions so that my path can be clear to me. I shall be grateful for your answers: 1) Where does python stand as compared to other programming languages? 2) What is the future for python? 3) Will it survive f

Re: [Tutor] Modifying Grayson's Example 5_14

2009-03-16 Thread Wayne Watson
Title: Signature.html That worked. Why the "extra" blank window though? Martin Walsh wrote: Wayne Watson wrote: it. It works pretty well, but puts up a a few probably top level windows that are blank. How do I get around them, and is there anything

Re: [Tutor] help with ftplib and file modification date

2009-03-16 Thread Kent Johnson
On Mon, Mar 16, 2009 at 6:27 PM, Rene Bourgoin wrote: > i'm doing a simple upload to an FTP server using the ftplib module and > wanted to know how i can preserve the file modification date all the way > through the process. I lose the file mod date because i read the original > file then ftp writ

[Tutor] help with ftplib and file modification date

2009-03-16 Thread Rene Bourgoin
i'm doing a simple upload to an FTP server using the ftplib module and wanted to know how i can preserve the file modification date all the way through the process. I lose the file mod date because i read the original file then ftp writes a new file to the server which changes the mod dateto the ti

Re: [Tutor] How to connect to an email server?

2009-03-16 Thread Eduardo Vieira
Tim wrote: > > > SMTP has to be enabled specifically on the Exchange Server: > it usually uses its own built-in protocols. It looks > as though your Exchange isn't running it. Either switch it > on (or ask your admins to do so) or look at using MAPI > or CDO instead. > > TJG > _

Re: [Tutor] How to connect to an email server?

2009-03-16 Thread Emile van Sebille
Eduardo Vieira wrote: Hello, I'm fairly new to programming and Python and am trying to explore Python's email libraries. But I am having trouble making a connection with an email server, I guess. I'm running Windows XP, in a server environment. I have administrator privileges to my machine (not t

Re: [Tutor] How to connect to an email server?

2009-03-16 Thread Tim Golden
Eduardo Vieira wrote: Hello, I'm fairly new to programming and Python and am trying to explore Python's email libraries. But I am having trouble making a connection with an email server, I guess. I'm running Windows XP, in a server environment. I have administrator privileges to my machine (not t

Re: [Tutor] reading lists from a text file

2009-03-16 Thread عماد نوفل
2009/3/12 Kent Johnson > 2009/3/12 Emad Nawfal (عماد نوفل) : > > Hi Tutors, > > I've never had a situation in which this was useful for me, but I'm just > > curious. > > If there is a text file that has a list or number of lists in it, is > there > > is a way to read the lists in the file as list

[Tutor] How to connect to an email server?

2009-03-16 Thread Eduardo Vieira
Hello, I'm fairly new to programming and Python and am trying to explore Python's email libraries. But I am having trouble making a connection with an email server, I guess. I'm running Windows XP, in a server environment. I have administrator privileges to my machine (not the server machine) to in

Re: [Tutor] Modifying Grayson's Example 5_14

2009-03-16 Thread Martin Walsh
Wayne Watson wrote: ... > it. It works pretty well, but puts up a a few probably top level > windows that are blank. How do I get around them, and is there anything ... > > root = Tk() Try adding this, root.withdraw() > dialog = GetPassword(root) HTH, Marty

[Tutor] Modifying Grayson's Example 5_14

2009-03-16 Thread Wayne Watson
Title: Signature.html I thought I'd explore Tkinter a bit more before diving into widget design. Grayson has some examples on the web, which look like they could help a bit. He uses Pmw, so I thought I'd just remark out the import for it.  It works pretty well, but puts up a a few probably top

Re: [Tutor] memory error files over 100MB

2009-03-16 Thread Kent Johnson
On Mon, Mar 16, 2009 at 12:30 PM, A.T.Hofkamp wrote: > I don't know what code is executed in an assignment exactly, but > **possibly**, first the 'read()' is executed (thus loading a very big string > into memory), before assigning the value to the variable (which releases the > previous value of

Re: [Tutor] memory error files over 100MB

2009-03-16 Thread A.T.Hofkamp
Cheetah1000 wrote: I can't speak for Python 2.6, but using Jython 2.1 (Python 2.1 for Java), the code only looks at the file you are trying to extract()/read(). Near the end of the zip archive is a directory of all the files in the archive, with the start position and length of each file. Jytho

Re: [Tutor] memory error files over 100MB

2009-03-16 Thread Cheetah1000
Alan Gauld wrote: > > > "Sander Sweers" wrote > >> ... I would expect zf.read(zfilename) to only read the >> requested file in the zipfile. > > That's a dangerous assumption. You might be right but I'd want to > do some tests first to see. But if even one zipped file was big the > same wou

[Tutor] 32-bit libaries on 64-bit Windows

2009-03-16 Thread Dinesh B Vadhia
Does anyone know if 32-bit Python libraries will work with 64-bit Python under 64-bit Windows? For example, will 32-bit Numpy or Scipy work under 64-bit Python? Cheers ... Dinesh ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailma

Re: [Tutor] wxPython vs PyQt

2009-03-16 Thread Kent Johnson
2009/3/16 Elena of Valhalla : > 2009/3/16 Neven Goršić : >> I just would like to correct my incomplete PyQT pricing list from >> above and mislead none. >> >> If you intent to write commercial programs you have to pay: >> >> 400 EURO   for PyQT     AND    3000 EURO  for QT !!! > > actually, QT is m

Re: [Tutor] wxPython vs PyQt

2009-03-16 Thread Elena of Valhalla
2009/3/16 Neven Goršić : > I just would like to correct my incomplete PyQT pricing list from > above and mislead none. > > If you intent to write commercial programs you have to pay: > > 400 EURO   for PyQT     AND    3000 EURO  for QT !!! actually, QT is moving to LGPL, so in the near future you

Re: [Tutor] wxPython vs PyQt

2009-03-16 Thread Neven Goršić
I just would like to correct my incomplete PyQT pricing list from above and mislead none. If you intent to write commercial programs you have to pay: 400 EURO for PyQT AND3000 EURO for QT !!! - On Tue, Ma

Re: [Tutor] TypeError: dict objects are unhashable

2009-03-16 Thread A.T.Hofkamp
Lie Ryan wrote: Emile van Sebille wrote: Mark Tolonen wrote: [dict(n) for n in set(tuple(n.items()) for n in l1)] Anyone know if the ordered items for two different dicts where dicta == dictb is guaranteed the same? I know the ordering is unspecified but you can depend on the sequence of k

Re: [Tutor] way of dictating leading zeros

2009-03-16 Thread Alan Gauld
"Patrick" wrote Is there an easy way to dictate how many digits a number will occupy that also allows for leading zeros? Andre showed you the way to do this using "String Formatting". Search for that phrase in the docs for al lot more info. If you are considering using Python v3 then that st

Re: [Tutor] Help With Rock, Paper Scissor Game

2009-03-16 Thread Alan Gauld
"Brendy Siguenza" wrote This is the template that we are suppose to use while doing the program, I am a beginner to this programming language and really have no clue what I am doing We don;t do homework problems for you but we can try to point you in the right direction. First off, it loo