Re: Password authentication systems

2006-08-11 Thread Paul Rubin
AlbaClause [EMAIL PROTECTED] writes: Correct me if I'm wrong, but I believe that all Linux passwords are encrypted whether you enable shadow passwords or not. I believe that when you enable shadow passwords, the encrypted passwords are stored in a file other than 'passwd'. Is this not

RE: seaching a list...

2006-08-11 Thread Gabriel Genellina
At Thursday 10/8/2006 21:54, bruce wrote: the issue i'm having is that i'm going to have to compare multiple rows of information to the information in the db. so essentially i'd have to do a hit to the db, for each row of information i want to compare if i did it your way... (which was what i

Re: semi-Newbie question

2006-08-11 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], len wrote: mycode = TagToSQL['mySQLfieldname'] = Tagfile['Value'] exec mycode Why do you use ``exec`` here? Why not simply:: TagToSQL['mySQLfieldname'] = Tagfile['Value'] Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: sys.platform documentation?

2006-08-11 Thread Michiel Sikma
Op 10-aug-2006, om 19:18 heeft Simon Forman het volgende geschreven: It might be a good idea to write a brief script to print out sys.platform, platform.platform(), platform.uname(), etc.. and post it here for people to run and post their results. Peace, ~Simon --

kerberos under windows

2006-08-11 Thread Kamil Malinka
Hi i'd like to know, is there any package like pykpass for windows? Or how to use this under windows. I need to authenticate users with kerberos under windows environment and have no idea how. Thanks for help. Kamil Malinka -- http://mail.python.org/mailman/listinfo/python-list

Python script setup

2006-08-11 Thread 2Good4You-Veki(Cro)
Hi all, When I want setup my script: I write: from distutils.core import setup setup(name=myscript, version='1.0', scripts=[myscripts.py]) or some else example,error is Traceback (most recent call last): File pyshell#5, line 1, in -toplevel- setup(name=myscript,

RE: sys.platform documentation?

2006-08-11 Thread Tim Golden
[Michiel Sikma] | So if you run this script: | -- | import platform | platform.platform() | platform.uname() | -- | You will get all the information that is necessary. And then | you just | need to provide it with a human-determined name of the operating | system you're using. If you're

Re: running code on client side with cherrypy?

2006-08-11 Thread Bruno Desthuilliers
Mr BigSmoke wrote: Tnx Jay... as i supposed there's no easy solution... I just thought that, maybe, being on an intranet there was a possible solution... About pysvn a tortoise... i do use tortoiseSVN and t works really really fine.. we (developers) use it, but i'm writting server for normal

Re: hide python code !

2006-08-11 Thread Bruno Desthuilliers
Bayazee wrote: hi can we hide a python code ? if i want to write a commercial software can i hide my source code from users access ? we can conver it to pyc but this file can decompiled ... so ...!! It's just the same with java byte-code or machine code. FWIW, I had a cracked (and localised)

Re: hide python code !

2006-08-11 Thread Bruno Desthuilliers
Steven D'Aprano wrote: (snip) If you really want something which compiles to machine code, then Python is not the language for you. Use another language. But that won't protect your software from piracy anyway. -- http://mail.python.org/mailman/listinfo/python-list

Component framework

2006-08-11 Thread Jan Svec
Hi all, some time ago I've seen an interesting component framework for Python but I don't remember the name. I remember only one example. There were two components: Wheel and Car, Wheel were then inserted four times into Car and so on. This framework has had lazy instantiation of child components.

Reading unformatted big-endian files

2006-08-11 Thread Andrea Gavana
Hello NG, that may sound a silly question, but I didn't find anything really clear about the issue of reading unformatted big endian files with Python. What I was doing till now, was using Fortran to read those files and compile this Fortran extension using F2PY. Now that it seems that no

Re: hide python code !

2006-08-11 Thread Rob Wolfe
John Machin wrote: If you want to distribute obfuscated code, consider writing it in perl :-) LOL That's really strong protection. Machine code is too easy to reverse engineer. :) Regards, Rob -- http://mail.python.org/mailman/listinfo/python-list

Read a file with open command

2006-08-11 Thread jean-jeanot
I can access to a file with the command: file_obj = open ( D:\My documents\Textfile.txt,'r') When I now try to read a file with the following command: file_obj = open (D:\My documents\File.ods,'r') it doesn't function. The extension ods is coming from OpenOffice.org Calc. Why ? jean-jeanot

Re: using python to edit a word file?

2006-08-11 Thread Anthra Norell
John, I have a notion about translating stuff in a mess and could help you with the translation. But it may be that the conversion from DOC to formatted test is a bigger problem. Loading the files into Word and saving them in a different format may not be a practical option if you have

Re: Python script setup

2006-08-11 Thread John Machin
2Good4You-Veki(Cro) wrote: Hi all, When I want setup my script: I write: from distutils.core import setup setup(name=myscript, version='1.0', scripts=[myscripts.py]) or some else example,error is Traceback (most recent call last): File pyshell#5, line 1, in

Re: Read a file with open command

2006-08-11 Thread Jan Svec
Hi, simply use file_obj = open (D:\My documents\File.ods,'rb') for opening file in binary access mode, which is required for binary files on MS Windows. Honza jean-jeanot wrote: I can access to a file with the command: file_obj = open ( D:\My documents\Textfile.txt,'r') When I now try to

Python checking for None/Null values

2006-08-11 Thread Fuzzydave
Okay, I have been handed a python project and working through it I have had to add a report. I am returning 10 variables the results of an SQL Query and as usual the number of results vary from 1 result to 10 results so I implemented a check to see if the array item was empty or not. The code is

Re: Reading unformatted big-endian files

2006-08-11 Thread John Machin
Andrea Gavana wrote: err=8 means that, if an error occours in reading the file, it should go to the label 8 continue and continue reading the file Silently ignoring errors when reading a file doesn't sound like a good idea to me at all, especially if different records have different formats.

Re: Python checking for None/Null values

2006-08-11 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Fuzzydave wrote: but regardless i am getting the error below and i can't seen to resolve this, what am i doing wrong? Traceback (most recent call last): File /home/phillipsd/work/medusa-new/htdocs/pricingrep.cgi, line 326, in ? if historyRep[8]==None: IndexError:

Reading unformatted big-endian files

2006-08-11 Thread Andrea Gavana
Hello John, Silently ignoring errors when reading a file doesn't sound like a good idea to me at all, especially if different records have different formats. Yeah, you're right, but the file itself is quite big and I am interested only in a small part of it. Moreover, the sequence

Re: Read a file with open command

2006-08-11 Thread John Machin
jean-jeanot wrote: I can access to a file with the command: file_obj = open ( D:\My documents\Textfile.txt,'r') With a space before the drive letter? I don't think so. When asking questions, *don't* type what you thought you used, copy/paste what you actually used. When I now try to read a

Re: Python checking for None/Null values

2006-08-11 Thread Fuzzydave
`historyRep` seems to be shorter than you think it is. Try printing it too see what it actually contains. Ciao, Marc 'BlackJack' Rintsch HistoryRep is an array value so historyRep[0] to [7] all have values in them but historyRep[8] and [9] do not as the query does not always return a

Re: easy string formating question

2006-08-11 Thread Slawomir Nowaczyk
On Thu, 10 Aug 2006 17:28:59 -0700 Simon Forman [EMAIL PROTECTED] wrote: # There is a better way to check for exhausted StringIO (Note that # input is a python built-in and should not be used for a variable # name): Right, thanks for pointing it out. # import StringIO # s =

Re: hide python code !

2006-08-11 Thread Slawomir Nowaczyk
On Thu, 10 Aug 2006 17:35:27 -0700 enigmadude [EMAIL PROTECTED] wrote: # 2. I've never done this, but you might be able to encrypt or otherwise # turn you modules into binary form, and then use a clever import # hook. Please observe that whatever the clever import hook is, it actually needs to

Re: converting a nested try/except statement into try/except/else

2006-08-11 Thread Slawomir Nowaczyk
On Thu, 10 Aug 2006 16:42:47 -0700 Simon Forman [EMAIL PROTECTED] wrote: # 6.) There's a single return statement. # # I forget now where I picked this up, but it's served me well for # many years: Procedures, functions, methods, etc... should have one # exit point. Something about having fewer

Re: Nested function scope problem

2006-08-11 Thread Slawomir Nowaczyk
On Wed, 09 Aug 2006 15:11:16 -0300 Gerhard Fiedler [EMAIL PROTECTED] wrote: # On 2006-08-09 07:54:21, Slawomir Nowaczyk wrote: # # Nope. Equivalence table can look like this: # # Python C # variable:a variable: a #

Re: Python checking for None/Null values

2006-08-11 Thread Fuzzydave
Check with if history8 is not None. Won't help your problem, but it is a bit more pythonic code ;-) Sybren Actually i tried that as well when i was fooling around, atm i am less concenred with pythonic code and making it work in the first place. The entire program to be fair is a bit messy

Rendering Vector Graphics

2006-08-11 Thread Bytter
Hi ppl, I've already posted this message through the mailing-list, but it seems it never arrived here. Strange... Anyway: I need to render high-quality vector graphics with Python. I was thinking of something like 'cairo', though I need to run under win32 and can't find a pycairo package for it.

Re: Rendering Vector Graphics

2006-08-11 Thread h112211
I need to render high-quality vector graphics with Python. I was thinking of something like 'cairo', though I need to run under win32 and can't find a pycairo package for it. Suggestions? I've had good experiences doing simple 3d vector stuff with Pygame. It's wraps SDL so it has pretty nice

Re: Reading unformatted big-endian files

2006-08-11 Thread John Machin
On 11/08/2006 8:35 PM, Andrea Gavana wrote: I hope performances will not change so much: fortran is very fast in reading files (but I use it only in this case, I love to use Python)... well, let's see :-D ot Well FORTRAN would have to have *something* going for it :-) I vaguely recall in a

Re: Python checking for None/Null values

2006-08-11 Thread bearophileHUGS
Fuzzydave: I am trying to check all of the historyRep items to check if they are empty/null/None (whatever the term is in python) An item can't be empty in Python,and null doesn't exist, it can be the object None. But probly that's not your case. I did print historyRep[8] out and it falls

Re: Python checking for None/Null values

2006-08-11 Thread Fuzzydave
Note: sometimes having a clean and readable program is better than having a running program that you can't read, because you can fix the the first one, and it can teach you something. Bye, bearophile Thanks for your help and suggestions i'll give them a shot. Unfortunatly when working with

Re: Python checking for None/Null values

2006-08-11 Thread John Machin
Fuzzydave wrote: HistoryRep is an array value so historyRep[0] to [7] all have values in them but historyRep[8] and [9] do not as the query does not always return a full 10 values. I am trying to check all of the historyRep items to check if they are empty/null/None (whatever the term is in

Re: Python checking for None/Null values

2006-08-11 Thread Peter Otten
Fuzzydave wrote: Okay, I have been handed a python project and working through it I have had to add a report. I am returning 10 variables the results of an SQL Query and as usual the number of results vary from 1 result to 10 results so I implemented a check to see if the array item was empty

Re: Rendering Vector Graphics

2006-08-11 Thread Bytter
Hi! [EMAIL PROTECTED] wrote: I need to render high-quality vector graphics with Python. I was thinking of something like 'cairo', though I need to run under win32 and can't find a pycairo package for it. Suggestions? I've had good experiences doing simple 3d vector stuff with Pygame.

Re: Component framework

2006-08-11 Thread Michael
Jan Svec wrote: Hi all, some time ago I've seen an interesting component framework for Python but I don't remember the name. I remember only one example. There were two components: Wheel and Car, Wheel were then inserted four times into Car and so on. This framework has had lazy

Make $1000's Monthly!

2006-08-11 Thread dataentry . nilam . 1
Make $1000's Monthly! Over 600 work at home firms are in need of survey takers, product assemblers, home mailers, mystery shopping Data entry and more! Report contains complete contact details for over 650 companies now hiring! For this complete report of over 600 firms please visit

Re: Rendering Vector Graphics

2006-08-11 Thread jay graves
Bytter wrote: Hi ppl, I've already posted this message through the mailing-list, but it seems it never arrived here. Strange... Anyway: I need to render high-quality vector graphics with Python. I was thinking of something like 'cairo', though I need to run under win32 and can't find a

Re: Rendering Vector Graphics

2006-08-11 Thread Yannick
Bytter wrote: Hi ppl, I've already posted this message through the mailing-list, but it seems it never arrived here. Strange... Anyway: I need to render high-quality vector graphics with Python. I was thinking of something like 'cairo', though I need to run under win32 and can't find a

Re: timeout calling local sendmail

2006-08-11 Thread [EMAIL PROTECTED]
That seems applicable to writing an SMTP server/daemon, but is it necessary for a script client calling a local SendMail daemon? Tim Williams wrote: RFC 1123 http://www.freesoft.org/CIE/RFC/1123/109.htm I find that a timeout of 120 seconds is the bare minimum. If the timeout is too

Reading unformatted big-endian files

2006-08-11 Thread Andrea Gavana
Hello John, (1) Upgrade to 2.5 as soon as it goes final -- struct's performance has been improved. I would love to, but I have some dependencies (like wxPython, Numeric, py2exe and so on) for which a 2.5 stable release either doesn't exist or is not fully tested or will break my app in some

Re: Generator-based microthreads and games

2006-08-11 Thread Michael
[EMAIL PROTECTED] wrote: I've seen various generator-based microthread implementations online, but I've been wondering: has anyone used microthreads in this manner in a game environment? Note, I am emphatically *not* referring to Stackless, which I know has been used in a production game

Adding private tags to a tiff file.

2006-08-11 Thread O Evans
Hi there, I'm manipualating tiff images captured by a program that insists on using annoying private tags. I want to be able to import an image that I have created into the program but I cannot get PIL to save the private tag. Here is a simplified version of the code I am using: import Image

schedule at specific hours

2006-08-11 Thread Yves Glodt
Hi there, I have a daemon running 24/7, and I want that it executes a certain function several times a day, as specified in an configfile (e.g. actiontimes=10:00,12:00,19:00) Do I have to fiddle with sched.scheduler and calc. time differences to schedule my events, or is there another

Re: hide python code !

2006-08-11 Thread Paul Boddie
Cameron Laird wrote: Steven D'Aprano wrote: Hiding source code is incompatible with Open Source software. You can hide code, or be Open Source, but not both. [...] I also disagree with your characterization of Open Source. I don't know which part of the open source movement would tolerate

Re: hide python code !

2006-08-11 Thread Fuzzyman
Bayazee wrote: hi can we hide a python code ? if i want to write a commercial software can i hide my source code from users access ? we can conver it to pyc but this file can decompiled ... so ...!! do you have any idea about this ...? --- First

Re: hide python code !

2006-08-11 Thread Fuzzyman
Paul Boddie wrote: [snip..] I've previously mentioned a very interesting paper which not only described the reverse engineering of the Skype protocol and software but also described how to make interoperating Skype clients. Given that the well-financed developers spent a lot of time

Re: hide python code !

2006-08-11 Thread Paul Boddie
Fuzzyman wrote: Bayazee wrote: can we hide a python code ? if i want to write a commercial software can i hide my source code from users access ? we can conver it to pyc but this file can decompiled ... so ...!! [...] You can distribute the compiled byte-code files (*.pyc) which are

Re: hide python code !

2006-08-11 Thread Tim Chase
can we hide a python code ? if i want to write a commercial software can i hide my source code from users access ? we can conver it to pyc but this file can decompiled ... so ...!! All of these make it hard enough to deter most people who will ever want to abuse your source code. Until you

Re: hide python code !

2006-08-11 Thread Fuzzyman
Paul Boddie wrote: Fuzzyman wrote: Bayazee wrote: can we hide a python code ? if i want to write a commercial software can i hide my source code from users access ? we can conver it to pyc but this file can decompiled ... so ...!! [...] You can distribute the compiled

datetime to timestamp

2006-08-11 Thread Simen Haugen
Hi. How can I convert a python datetime to a timestamp? It's easy to convert a timestamp to datetime (datetime.datetime.fromtimestamp(), but the other way around...?) -Simen -- http://mail.python.org/mailman/listinfo/python-list

Re: hide python code !

2006-08-11 Thread Fuzzyman
Tim Chase wrote: can we hide a python code ? if i want to write a commercial software can i hide my source code from users access ? we can conver it to pyc but this file can decompiled ... so ...!! All of these make it hard enough to deter most people who will ever want to abuse

Re: hide python code !

2006-08-11 Thread Paul Boddie
Fuzzyman wrote: Paul Boddie wrote: [Skype paper] I'd recommend an upgrade to any business plan which relies on obfuscation to prevent unauthorised use or modification. Indeed, I'd recommend that any such entrepreneur think twice about starting a traditional proprietary software

Re: Python checking for None/Null values

2006-08-11 Thread Fuzzydave
[EMAIL PROTECTED] wrote: A way to solve your problem is to see how many elements the list contains with len(sequence) cheers after your post went of to try it and it worked first time thanks for being helpful and plesant :) Fuzzy -- http://mail.python.org/mailman/listinfo/python-list

Re: hide python code !

2006-08-11 Thread Fuzzyman
Tim Chase wrote: [snip] However, it's better to have a good relationship with your customers and know that they will adhere to licensing conditions, rather than to try and strong-arm them into behaving a particular way. Don't forget that distributing your source code is more of a gift

Unit Testing Python

2006-08-11 Thread davidodowd
I am looking for a GUI to put on top of my unit testing framework. I have found http://homepage.hispeed.ch/py430/python/unittestgui.py through google, I have been unable to get the copy results function to run I have downloaded the editor scite that it calls and still nothing has anyone been able

Re: hide python code !

2006-08-11 Thread Paul Boddie
Fuzzyman wrote: Paul Boddie wrote: Fuzzyman wrote: I never understand the knee-jerk reaction on this mailing list to answer people who ask this question by telling them they don't really want to do it... Note your choice of words: don't really want to do it. [...] If you

Re: datetime to timestamp

2006-08-11 Thread John Machin
On 11/08/2006 11:10 PM, Simen Haugen wrote: Hi. How can I convert a python datetime to a timestamp? It's easy to convert a timestamp to datetime (datetime.datetime.fromtimestamp(), but the other way around...?) -Simen Is the timetuple() method what you want? # import datetime # n =

Re: datetime to timestamp

2006-08-11 Thread John Machin
On 11/08/2006 11:35 PM, John Machin wrote: On 11/08/2006 11:10 PM, Simen Haugen wrote: Hi. How can I convert a python datetime to a timestamp? It's easy to convert a timestamp to datetime (datetime.datetime.fromtimestamp(), but the other way around...?) -Simen Is the timetuple() method

Re: excel in unix?

2006-08-11 Thread Harry George
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: hi is it possible to create excel files using python in Unix env? if so, what module should i use? thanks Depending on the complexity of your data you might find the csv module useful. It allows you to write comma

Re: Tkinter module not found

2006-08-11 Thread Shuaib
Well, I finally solved my problem. I just had to reinstall python with the USE flags of tcl and tk. #USE=tcl tk emerge python And now I can use Tkinter Thanks guys! -- http://mail.python.org/mailman/listinfo/python-list

Re: Rendering Vector Graphics

2006-08-11 Thread K.S.Sreeram
jay graves wrote: Bytter wrote: Hi ppl, I've already posted this message through the mailing-list, but it seems it never arrived here. Strange... Anyway: I need to render high-quality vector graphics with Python. I was thinking of something like 'cairo', though I need to run under win32 and

Re: Nested function scope problem

2006-08-11 Thread Gerhard Fiedler
On 2006-08-11 07:48:33, Slawomir Nowaczyk wrote: But let me try again, please (just one more time, if this doesn't work either I am willing to admit I do not see a simple analogy between Python and C variables :-) Python C variable: a

some n00b question

2006-08-11 Thread Omar
I'm learning how to program python. a few questions a) I'm mostly interested in creating exe's that have to do with music -- things to help me keep track of chord progressions, transpositions, etc. can anyone point me in the direction of resources on this? b) I'm also interested in created

Re: Native Win32 text entry dialog?

2006-08-11 Thread utabintarbo
Well, to answer my own question http://www.averdevelopment.com/python/EasyDialogs.html Thanks to all who responded! ;-P -- http://mail.python.org/mailman/listinfo/python-list

Re: hide python code !

2006-08-11 Thread Helmut Jarausch
John Machin wrote: Bayazee wrote: hi can we hide a python code ? if i want to write a commercial software can i hide my source code from [1] users access ? we can conver it to pyc but this file can decompiled ... so ...!! do you have any

Re: using python to edit a word file?

2006-08-11 Thread John Salerno
Anthra Norell wrote: John, I have a notion about translating stuff in a mess and could help you with the translation. But it may be that the conversion from DOC to formatted test is a bigger problem. Loading the files into Word and saving them in a different format may not be a

Re: schedule at specific hours

2006-08-11 Thread utabintarbo
Take a look at http://sourceforge.net/projects/pycron/ . It may give you some ideas. Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: converting a nested try/except statement into try/except/else

2006-08-11 Thread John Salerno
Boris Borcic wrote: Boris Borcic wrote: John Salerno wrote: In this case the method must return False, because it's a wxPython method that needs a True or False value. If it doesn't, the program will continue even after the error message. Just as it should do if the method returns True

Re: some n00b question

2006-08-11 Thread John Salerno
Omar wrote: b) I'm also interested in created GUI's sooner rather than later. Can anyone point me to a fast track to doing GUI's on python? I recommend reading wxPython in Action. It's a great starter and reference to the wxPython GUI toolkit. Tkinter is usually considered easier and

Re: hide python code !

2006-08-11 Thread Ben Sizer
Paul Boddie wrote: Fuzzyman wrote: I never understand the knee-jerk reaction on this mailing list to answer people who ask this question by telling them they don't really want to do it... Well, given the pace of technological development and the disregard in some environments for

Re: converting a nested try/except statement into try/except/else

2006-08-11 Thread John Salerno
Simon Forman wrote: I'm sorry to hear that. I thought it was cleaner and more understandable than that. May I indulge in explaining it a bit? I can, perhaps, make it clearer. Thanks for the explanation. I find that with a little concentration, it's not that it's hard to follow the code,

Re: datetime to timestamp

2006-08-11 Thread Sion Arrowsmith
John Machin [EMAIL PROTECTED] wrote: On 11/08/2006 11:35 PM, John Machin wrote: On 11/08/2006 11:10 PM, Simen Haugen wrote: How can I convert a python datetime to a timestamp? It's easy to convert a timestamp to datetime (datetime.datetime.fromtimestamp(), but the other way around...?) Is

Re: datetime to timestamp

2006-08-11 Thread Tim Peters
[Simen Haugen] How can I convert a python datetime to a timestamp? It's easy to convert a timestamp to datetime (datetime.datetime.fromtimestamp(), but the other way around...?) [John Machin] Is the timetuple() method what you want? # import datetime # n = datetime.datetime.now() # n

Boost Install

2006-08-11 Thread Hoop
Hi All, I am wondering if any have done an install of Boost for Python embedding? I have downoaded boost_1_33_1.exe, ran that and now have a boost_1_33_1 directory with plenty of items ine it. I have attempted to follow some online install directions which do not seem to work. I am using VS2005. I

Re: hide python code !

2006-08-11 Thread Duncan Booth
Fuzzyman wrote: Tim Chase wrote: [snip] However, it's better to have a good relationship with your customers and know that they will adhere to licensing conditions, rather than to try and strong-arm them into behaving a particular way. Don't forget that distributing your source

Inconsistency producing constant for float infinity

2006-08-11 Thread Peter Hansen
I'm investigating a puzzling problem involving an attempt to generate a constant containing an (IEEE 754) infinity value. (I understand that special float values are a platform-dependent accident etc...) The issue appears possibly to point to a bug in the Python compiler, with it producing

Tab delimited file

2006-08-11 Thread Colin Wildsmith
Hello, I am making a gui for the purpose that I can change the values in a list of different criteria which is found in a text file, such as: Name(tab)rating(tab)breast size(tab)occurrences However as far as I know Python does not allow you to easily change a specific line in

Re: using an already running COM object with Dispatch

2006-08-11 Thread jiccab
Roger Upole wrote: jiccab [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings. with the following code, olApp = Dispatch(Outlook.Application) I am capable of getting a new instance of Outlook running. I would like to be able to use the instance that is already

Re: some n00b question

2006-08-11 Thread Omar
John Salerno wrote: Omar wrote: b) I'm also interested in created GUI's sooner rather than later. Can anyone point me to a fast track to doing GUI's on python? I recommend reading wxPython in Action. It's a great starter and reference to the wxPython GUI toolkit. Tkinter is usually

Re: hide python code !

2006-08-11 Thread Paul Boddie
Ben Sizer wrote: It's worth remembering that there is a massive amount of software that has nothing to do with 'infrastructure', that won't need to be maintained, or upgraded. Examples include most retail software for the home or small office, and most entertainment software. Developers of

Re: Tab delimited file

2006-08-11 Thread Tim Chase
However as far as I know Python does not allow you to easily change a specific line in a text file. You have to place the whole file to memory, change what you need to and then write the file back after deleting the previous information. Assuming this is true, how do i find where the tabs

Re: Inconsistency producing constant for float infinity

2006-08-11 Thread Peter Hansen
Sybren Stuvel wrote: Peter Hansen enlightened us with: I'm investigating a puzzling problem involving an attempt to generate a constant containing an (IEEE 754) infinity value. (I understand that special float values are a platform-dependent accident etc...) Why aren't you simply using the

Re: Boost Install

2006-08-11 Thread missdeer
You should set PYTHON_ROOT PYTHON_VERSION environment variable first, then set the VC toolset path, compile bjam.exe yourself and run bjam with -sTOOLS parameter. It seems Boost has not been totally tested under VS2005, but works fine with VS2003. Good luck! missdeer

Re: some n00b question

2006-08-11 Thread Larry Bates
Omar wrote: I'm learning how to program python. a few questions a) I'm mostly interested in creating exe's that have to do with music -- things to help me keep track of chord progressions, transpositions, etc. can anyone point me in the direction of resources on this? b) I'm also

Re: some n00b question

2006-08-11 Thread Gerard Flanagan
Omar wrote: I'm learning how to program python. a few questions a) I'm mostly interested in creating exe's that have to do with music -- things to help me keep track of chord progressions, transpositions, etc. can anyone point me in the direction of resources on this? b) I'm also

Re: some n00b question

2006-08-11 Thread Omar
Gerard Flanagan wrote: Omar wrote: I'm learning how to program python. a few questions a) I'm mostly interested in creating exe's that have to do with music -- things to help me keep track of chord progressions, transpositions, etc. can anyone point me in the direction of resources

Re: hide python code !

2006-08-11 Thread Ben Sizer
Paul Boddie wrote: Ben Sizer wrote: It's worth remembering that there is a massive amount of software that has nothing to do with 'infrastructure', that won't need to be maintained, or upgraded. Examples include most retail software for the home or small office, and most entertainment

Re: How to write a Installer for a Python App in Linux

2006-08-11 Thread diffuser78
I saw some examples and understood for most part how to write a setpu.py. Since I want to bundle python and wxPython along with my application...how can I do that. Any code gurus can throw some pointers. Every help is appreciated. Bruno Desthuilliers wrote: Look for distutil and EasyInstall

Automate logging into page

2006-08-11 Thread david brochu jr
I am trying to automate logging a website and have been unsuccessful. The code below is supposed to log me into the site, but changing the username/password to an incorrect combination does not cause an error or crash to be seen. My goal is to log into this page and save the cookie from the page

Re: Read a file with open command

2006-08-11 Thread jean-jeanot
Sorry, but the access mode is not binary with XP Windows. Finally for reading the file it is necessary to use a slash or a double backslash. If the file is a simple textfile, using a backslash is perhaps not recommended but it is functionning. Anyway many thanks.Here is the program: file_obj=

Re: using python to edit a word file?

2006-08-11 Thread Anthra Norell
No one could do it any better. Good for you! - Frederic - Original Message - From: John Salerno [EMAIL PROTECTED] Newsgroups: comp.lang.python To: python-list@python.org Sent: Friday, August 11, 2006 4:08 PM Subject: Re: using python to edit a word file? Anthra Norell wrote: John,

having issues Installing Python 2.5b3 on Windows XP

2006-08-11 Thread Bucco
I installed python 2.5b3 on my windows XP sp2 box without any issues. I can double click the python program, and idle comes up in the command line window. However when I run python from the command line program cmd.exe, I get a pop-up window with the following error: 16 bit Windows Subsystem

Re: Read a file with open command

2006-08-11 Thread Tim Williams
On 11 Aug 2006 09:39:23 -0700, jean-jeanot [EMAIL PROTECTED] wrote: Anyway many thanks.Here is the program: file_obj= open (D:/Mes documents/ADB Anna.ods,'r') s = file_obj s.readlines() Please remember not to top-post :) Try this s = open (D:/Mes documents/ADB Anna.ods,'r')

Re: Tkinter module not found

2006-08-11 Thread Philippe Martin
Shuaib wrote: Hey, Even though I freshly installed Tcl and Tk, python still seem to have problems accessing Tkinter module. Here is what says when I do import Tkinter == Traceback (most recent call last): File stdin, line 1, in ? ImportError: No module named Tkinter == Any ideas

Re: PIL Image transform

2006-08-11 Thread Ben C
On 2006-08-09, Dean Card [EMAIL PROTECTED] wrote: Okay, so here is the situation. I have need to do some on-the-fly image creation. I have everything working great except for the last part of it, applying a perspective type transform to the image. The transform will take a rectangular 2D

Re: Read a file with open command

2006-08-11 Thread jean-jeanot
Dear Sybrel, I am delighted to know that you have been enlighted through my question. I am aware of my stupidity and I would say of my ignorance.If all Python users were not ignorant I suppose the Python group would be superfluous. I would suggest that if if you think that a question is supid

Re: How to write a Installer for a Python App in Linux

2006-08-11 Thread diffuser78
Hi, How can we freeze the python program and how will it ensure that all the python files are packages with the programs (including python and wxPython). Can anybody give me some pointers on this. Every help is appreciated. Thanks. You could freeze the Python program. That'll ensure all the

Including python and wxPython in distutils

2006-08-11 Thread diffuser78
I wrote a small app in python and used wxPython in it. Now, I am trying to create an .rpm file for linux RedHat Distro. I want the ability in my installer to install python2.4 and wxPython too along with the .py files which are in the project. I am trying to use distutils. Can anybody give some

  1   2   >