Re: Pickle vs XML for file I/O

2006-08-01 Thread crystalattice
Marc 'BlackJack' Rintsch wrote: In [EMAIL PROTECTED], crystalattice wrote: On Mon, 31 Jul 2006 14:35:39 -1000, Simon Forman [EMAIL PROTECTED] wrote: What kind of trouble were you having with pickle? It's mostly a combination of things (I hope you can follow my logic). First, to

after an image is moved to a new location, how to delete the image at the old location?

2006-08-01 Thread zxo102
Hi everyone, As shown in the code below (modified based on the Image.py in wxpython demo), an image is created at location 1: (50,10) with rotated angle 1.12. Now, suppose I got another set of new data, I want to move the image to location 2: (166,400) with rotated angle 1.5. case 1:

Re: Pickle vs XML for file I/O

2006-08-01 Thread crystalattice
Simon Hibbs wrote: I've recently gone through a similar evaluation of my options for persisting data. Object serialization to pickles or XML is a very easy, quick way of persisting data but it does have drawbacks. I'm not a professional developer, so if there are errors in my analysis, I'd

list comprehension syntax..?

2006-08-01 Thread Gregory Guthrie
Sorry for a simple question- but I don't understand how to parse this use of a list comprehension. The or clauses are odd to me. It also seems like it is being overly clever (?) in using a lc expression as a for loop to drive the recursion. Thanks for any insight! Gregory

Re: Reinstalling Python Problem (Newbie)

2006-08-01 Thread Avell Diroll
beno wrote: It's been years since I've done this. I had a programmer working for me who disappeared one day, and now I'm taking over his responsibilities. I need to re-configure Apache for mod_python which means I have to rebuild python. I'm working with the latest distro. I'm heavily

Re: Best way to read, and analyze a log file?

2006-08-01 Thread flit
Not exactly Wha I am looking, this seems to be a good project, but the way to parse the file I already have done that. I am looking in desing pattern advices, how to deal with the data. Must I use dbm? Must I make all the statistics and save in a dmf file? Any insights? Gregor Horvath wrote: Hi,

Re: Best way to read, and analyze a log file?

2006-08-01 Thread bearophileHUGS
[EMAIL PROTECTED]: 1- Read the data and put all variables in a list 2- Read the data and put all the variables in dictionary? the logs is in this format xx The separation is by byte size like xxx three bytes for code x , bytes for hour, etc.. I have two main

Re: Railroad track syntax diagrams

2006-08-01 Thread Roy Smith
Paul McGuire [EMAIL PROTECTED] wrote: For those who are not familiar with railroad syntax diagrams, they show a grammar's syntax using arrows and blocks, instead of BNF I've always liked railroad diagrams. Oracle used to use them (maybe they still do?) in their SQL reference manuals. I find

Re: code to retrieve web mail?

2006-08-01 Thread Gerhard Fiedler
On 2006-08-01 13:41:47, Terry Reedy wrote: Instead of mimicking a browser to access this e-mail account through the web interface, see if there is a POP3 access to your free e-mail (I'd be surprised if there isn't). To the contrary: Yahoo, for instance, charges for POP3 access; for 'free'

Re: list comprehension syntax..?

2006-08-01 Thread Duncan Booth
Gregory Guthrie wrote: Sorry for a simple question- but I don't understand how to parse this use of a list comprehension. The or clauses are odd to me. It also seems like it is being overly clever (?) in using a lc expression as a for loop to drive the recursion. You are spot on there.

Re: Using Python for my web site

2006-08-01 Thread Cliff Wells
On Tue, 2006-08-01 at 10:41 -0300, Gerhard Fiedler wrote: On 2006-08-01 04:11:18, Cliff Wells wrote: You say that you haven't tried Django or any other Python framework. Perhaps you should. You seem to have at least the start of the right idea about web application organization, so I

Re: Windows vs. Linux

2006-08-01 Thread Gerhard Fiedler
On 2006-08-01 12:31:01, Sybren Stuvel wrote: Ehm... replace that with the latter with bonk on every OS except Microsoft Windows. Windows is the weird one in OS-land, because they are the only one that use the most widely used escape-character (the backslash) as path separator. Is that really

Re: list comprehension syntax..?

2006-08-01 Thread Gary Herron
Gregory Guthrie wrote: Sorry for a simple question- but I don't understand how to parse this use of a list comprehension. The or clauses are odd to me. It also seems like it is being overly clever (?) in using a lc expression as a for loop to drive the recursion. Thanks for any insight!

Re: Nested function scope problem

2006-08-01 Thread Antoon Pardon
On 2006-08-01, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Tue, 1 Aug 2006 11:12:31 -0300, Gerhard Fiedler [EMAIL PROTECTED] declaimed the following in comp.lang.python: There's maybe a point in comparing Python variables to C pointers. But it lacks in the respect that a C programmer is

Re: Can't get LCHARVAR's with InformixDB

2006-08-01 Thread fhurley
Carsten Haese wrote: Once again, I'll need the create table statement for the table you're selecting from in order to investigate what's happening. Here it is: CREATE TABLE DEV_LOG( LOG_ID SERIAL, LEVEL VARCHAR (10), POI_NM VARCHAR (255), MSG_TX LVARCHAR(2000), MSG2_TX LVARCHAR(5000) )

Re: Railroad track syntax diagrams

2006-08-01 Thread Grant Edwards
On 2006-08-01, Roy Smith [EMAIL PROTECTED] wrote: Paul McGuire [EMAIL PROTECTED] wrote: For those who are not familiar with railroad syntax diagrams, they show a grammar's syntax using arrows and blocks, instead of BNF I've always liked railroad diagrams. Me too. The Pascal text we used 25

Re: Using Python for my web site

2006-08-01 Thread Cliff Wells
On Tue, 2006-08-01 at 06:38 -0700, Luis M. González wrote: Well... yes, you're right. I guess that the reason for not having used a framework already is laziness... Trust me, I'm quite familiar with the laziness problem =) I have experience with Karrigell, which rocks too, but it lacks some

Re: Semantics of propagated exceptions

2006-08-01 Thread Thomas Lotze
Sorry for not answering such a long time. It's because my question originated from a discussion within our company which moved out of focus shortly after I posted, and over waiting for some response from them before replying here, I forgot about it. Steve Holden wrote: - f might catch E

Re: list comprehension syntax..?

2006-08-01 Thread Gregory Guthrie
Very helpful, thanks!! So I see that it parses as: m='1' a=asdf b=1234 print [((m in a) or b) for m in '%d'%1234 ] I get it. Thanks, Greg Duncan Booth [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gregory Guthrie wrote: Sorry for a simple question- but I don't

Re: Jumping over in the class hierarchy

2006-08-01 Thread [EMAIL PROTECTED]
Pupeno wrote: Hello, I want to jump over a method in the class hierarchy, that is: If I have class A(object), clas B(A), class C(B) and in C, I want a method to do exactly what A does but not what B does in its reimplementation, would it be correct to do: super(A, super(B, self)).method() in

Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread simonharrison
Hi all. I've been try to learn ruby for a few months but I'm about ready to give up. The available books either assume a programming background, or are out of date. Anyway, I think python may suit me more due to its 'theres one way to do it' philosophy (hope the quote is right)! Another quote that

Re: Railroad track syntax diagrams

2006-08-01 Thread Paddy
Paul McGuire wrote: Back in the mid-90's, Kees Blom generated a set of railroad syntax diagrams for Python (http://python.project.cwi.nl/search/hypermail/python-1994q3/0286.html). This pre-dates any Python awareness on my part, but I'm sure this would have been version 1.3 or something.

Re: Finding the name of a class

2006-08-01 Thread Larry Bates
Dennis Lee Bieber wrote: On Tue, 01 Aug 2006 10:56:52 -0500, Kirk Strauser [EMAIL PROTECTED] declaimed the following in comp.lang.python: Larry Bates wrote: print print b.__class__.__name__ gives what you want That doesn't seem to do it, though. Here's the result of importing a module

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread Ravi Teja
'Clever is not considered a compliment in Python.' (don't know where I read that...) On a similar note. Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread BartlebyScrivener
[EMAIL PROTECTED] wrote: 'Clever is not considered a compliment in Python.' (don't know where I read that...) To describe something as clever is NOT considered a compliment in the Python culture.--Alex Martelli, Python Cookbook 2nd Ed. pg. 230 (a great book for learning by doing, after you

Re: Railroad track syntax diagrams

2006-08-01 Thread Paddy
Paddy wrote: Paul McGuire wrote: Back in the mid-90's, Kees Blom generated a set of railroad syntax diagrams for Python (http://python.project.cwi.nl/search/hypermail/python-1994q3/0286.html). This pre-dates any Python awareness on my part, but I'm sure this would have been version 1.3

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread crystalattice
[EMAIL PROTECTED] wrote: Hi all. I've been try to learn ruby for a few months but I'm about ready to give up. The available books either assume a programming background, or are out of date. Anyway, I think python may suit me more due to its 'theres one way to do it' philosophy (hope the quote

Re: list comprehension syntax..?

2006-08-01 Thread Claudio Grondi
Gary Herron wrote: Gregory Guthrie wrote: Sorry for a simple question- but I don't understand how to parse this use of a list comprehension. The or clauses are odd to me. It also seems like it is being overly clever (?) in using a lc expression as a for loop to drive the recursion. Thanks

Re: FTP (ftplib) output capture

2006-08-01 Thread ChaosKCW
Hi Thanks for the reply. I will send it in when I am done :-) Simon Forman wrote: ChaosKCW wrote: Hi Has anyone caputerd the output from the std ftp lib? It seems a bit annoying that everything is printed to stdout. It means incorporating this into any real program is a problem. It

RE: Static Variables in Python?

2006-08-01 Thread Cliff Wells
On Tue, 2006-08-01 at 07:37 -0400, Michael Yanowitz wrote: # * class BitsClass * class BitsClass (object): def __init__(self, num_bits): self.bits=[] for i in range(num_bits): self.bits.append(0) def

[ANNOUNCE] functional 0.7.0 released

2006-08-01 Thread Collin Winter
Hello all, I have released version 0.7.0 of my functional module, a collection of higher-order and functional programming tools for Python. Currently offered are tools for function composition, partial function application, plus filter, flip, foldl, foldr, map, scanl and scanr functions. Two

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread John Salerno
crystalattice wrote: Of course there's the O'Reilly set: Learning Python, Programming Python, Python in a Nutshell, etc. Yep, Learning Python is the best to start. I haven't tried Programming Python yet (new edition soon), and once you understand Python, Python in a Nutshell is an

Re: Finding the name of a class

2006-08-01 Thread bruno desthuilliers
Tim Chase a écrit : class Foo(object): ... pass ... b = Foo b.__name__ 'Foo' While this is surely true, would somebody explain why I had such trouble finding this? Mmm... Documentation needs update ? help(dir) Help on built-in function dir in module __builtin__:

Re: Html character entity conversion

2006-08-01 Thread Anthra Norell
- Original Message - From: Claudio Grondi [EMAIL PROTECTED] Newsgroups: comp.lang.python To: python-list@python.org Sent: Tuesday, August 01, 2006 2:42 PM Subject: Re: Html character entity conversion Anthra Norell wrote: import SE# Available at the Cheese Shop I mean, that

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread Edmond Dantes
Ravi Teja wrote: 'Clever is not considered a compliment in Python.' (don't know where I read that...) On a similar note. Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough

cleaner way to write this try/except statement?

2006-08-01 Thread John Salerno
The code to look at is the try statement in the NumbersValidator class, just a few lines down. Is this a clean way to write it? i.e. is it okay to have all those return statements? Is this a good use of try? Etc. Thanks. import wx class

Re: Jumping over in the class hierarchy

2006-08-01 Thread Jan Niklas Fingerle
Pupeno [EMAIL PROTECTED] wrote: be correct to do: super(A, super(B, self)).method() in C ? Why do you want to use super? Is there any diamond shaped inheritance in sight? Anyway, have you actually tried, what you suggested? Well, ... --8

Network Game in Python

2006-08-01 Thread diffuser78
I have to create a small and simple GUI app in Python which is similar to a netwrok game. Let me expalain you. I need some suggestions. I might use wxPython for GUI because that is the only GUI oolkit I know. There are 6 players in the game. They are all connected though a LAN (possible an

Re: cleaner way to write this try/except statement?

2006-08-01 Thread John Salerno
John Salerno wrote: The code to look at is the try statement in the NumbersValidator class, just a few lines down. Is this a clean way to write it? i.e. is it okay to have all those return statements? Is this a good use of try? Etc. I cleaned it up a little and did this, but of course this

wxPython Linux Compatibility question

2006-08-01 Thread Kiran
Hello All, My question is regarding MDI Windows Support for Linux in wxPython. I am currently writing an application which uses MDI. I have seen that in linux, it basically makes all MDI windows tabs (without close, minimize, or maximize buttons and other tools such as cascade and stuff), which

Re: 2 timers, doesnt work?

2006-08-01 Thread Kiran
Makes sense Frank, and that seemed to work also, so thanks a lot! Frank Millman wrote: Kiran wrote: I am creating 2 timers inside a GUI, but it seems that only the one declared last (the second timer), gets triggered, but the first one doesnt. You really should check the archives

Re: Best way to read, and analyze a log file?

2006-08-01 Thread flit
Thanks for all input.. I think I should put all data on a mysql base.. The company will need this for reports and statistics for a year. [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]: 1- Read the data and put all variables in a list 2- Read the data and put all the variables in dictionary?

Hierarchical unit tests

2006-08-01 Thread Pupeno
Hello, Having A(unittest.TestCase) and B(A), the unittests framework seems not to run A's test when testing B, right ? If so, is there any way to 'fix' it ? that is, make all tests in A, also run for B ? Thanks. -- Pupeno [EMAIL PROTECTED] (http://pupeno.com) --

Re: Using Python for my web site

2006-08-01 Thread Cameron Laird
In article [EMAIL PROTECTED], northband [EMAIL PROTECTED] wrote: Just spoke with my department and looks like we still want to go with a server scripting method. Although MVC may be better fit, for the sake of the learning curve, we want to use a PSP style method. .

Re: cleaner way to write this try/except statement?

2006-08-01 Thread Simon Forman
John Salerno wrote: John Salerno wrote: The code to look at is the try statement in the NumbersValidator class, just a few lines down. Is this a clean way to write it? i.e. is it okay to have all those return statements? Is this a good use of try? Etc. I cleaned it up a little and did

Re: Can't get LCHARVAR's with InformixDB

2006-08-01 Thread Carsten Haese
On Tue, 2006-08-01 at 14:05, [EMAIL PROTECTED] wrote: Carsten Haese wrote: Once again, I'll need the create table statement for the table you're selecting from in order to investigate what's happening. Here it is: CREATE TABLE DEV_LOG( LOG_ID SERIAL, LEVEL VARCHAR (10), POI_NM

Re: cleaner way to write this try/except statement?

2006-08-01 Thread Simon Forman
Simon Forman wrote: John Salerno wrote: John Salerno wrote: The code to look at is the try statement in the NumbersValidator class, just a few lines down. Is this a clean way to write it? i.e. is it okay to have all those return statements? Is this a good use of try? Etc. I cleaned

Re: cleaner way to write this try/except statement?

2006-08-01 Thread infidel
Here's how I would do it: def Validate(self, parent): try: text_ctrl = self.GetWindow() text = text_ctrl.GetValue() if not text: raise ValueError if int(text) = 0: raise ValueError return True except ValueError,

xml.sax problem, help needed.

2006-08-01 Thread Hari Sekhon
I've written an xml parser using xml.sax which works most of the time but often traces back when trying to read a file. The output of the traceback is below: Traceback (most recent call last): File /usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py, line 271, in run main() File

Coloring tkinter dialogs

2006-08-01 Thread 31337one
If I use the dialog template for tkinter, how do I go about customizing its color? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Get age of a file/dir

2006-08-01 Thread Carl J. Van Arsdall
I've been looking around the OS module and I haven't found anything useful yet. Does anyone know how to get the age of a file or directory in days? I'm using unix and don't seem to find anything that will help me. The only function that comes close so far is os.path.getctime(path) However

Re: BCD List to HEX List

2006-08-01 Thread John Machin
[EMAIL PROTECTED] wrote: My version assumes three subroutines: extracting nibbles, shifting, and adding, Those are pretty simple, so I asked if he needed them rather than presenting them. Assuming we have them, the algorithm is three lines long. Perhaps you could enlighten us by publishing

RE: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread Delaney, Timothy (Tim)
Edmond Dantes wrote: Of course, it's all what you really mean by clever. To me, being clever partly means writing code without bugs in the first place, so there is nothing that needs debugging Clever in this context generally means using a trick/hack that is non-obvious (often even

Re: cleaner way to write this try/except statement?

2006-08-01 Thread Boris Borcic
John Salerno wrote: The code to look at is the try statement in the NumbersValidator class, just a few lines down. Is this a clean way to write it? i.e. is it okay to have all those return statements? Is this a good use of try? Etc. Thanks. import wx

Re: Windows vs. Linux

2006-08-01 Thread Gerhard Fiedler
On 2006-08-01 16:29:54, Sybren Stuvel wrote: - Mac OS: ':' It's a slash too, at least on non-obsolete Mac OS versions. I wrote Mac OS. That's not Mac OSX. Ask Apple... :) And Mac OSX is quite arguably a Unix-type system. Maybe someone else can fill in some of the missing OSes. It doesn't

Re: Get age of a file/dir

2006-08-01 Thread Jim
Carl J. Van Arsdall wrote: I've been looking around the OS module and I haven't found anything useful yet. Does anyone know how to get the age of a file or directory in days? I'm using unix and don't seem to find anything that will help me. The only function that comes close so far is

Re: Reinstalling Python Problem (Newbie)

2006-08-01 Thread John Machin
Avell Diroll wrote: beno wrote: I have to rebuild python. [snip] Platform is FreeBSD 5.? I have the following questions: What is meant by pointing to this folder thus: ./configure --prefix=/usr/python When I run make test I get these errors: *** errors *** I've googled

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread gene tani
[EMAIL PROTECTED] wrote: Hi all. I've been try to learn ruby for a few months but I'm about ready to give up. The available books either assume a programming background, or are out of date. Anyway, http://www.awaretek.com/book.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python for my web site

2006-08-01 Thread Conrad
On Mon, 31 Jul 2006 19:14:03 +0200, Bruno Desthuilliers wrote: northband wrote: Hi, I am interested in re-writing my website in Python vs PHP but have a few questions. Here are my specs, please advise as to which configuration would be best: 1.Dell Poweredge Server, w/IIS, currently

Re: XML parsing and writing

2006-08-01 Thread Jim
c00i90wn wrote: On first write of the xml everything goes as it should but on subsequent writes it starts to add more and more unneeded newlines to it making it hard to read and ugly. Pretty make it pretty by putting in newlines (and spaces) that are not in the original data. That is, if you

Re: Using Python for my web site

2006-08-01 Thread Conrad
On Mon, 31 Jul 2006 17:12:56 -0300, Gerhard Fiedler wrote: On 2006-07-31 15:00:15, Bruno Desthuilliers wrote: In fact, the real question IMHO is: what would MySQL advantage over PostgreSQL be ?-) A few years ago I did some research, and the result was that while PostgreSQL was claimed to

Re: cleaner way to write this try/except statement?

2006-08-01 Thread Simon Forman
John Salerno wrote: John Salerno wrote: The code to look at is the try statement in the NumbersValidator class, just a few lines down. Is this a clean way to write it? i.e. is it okay to have all those return statements? Is this a good use of try? Etc. I cleaned it up a little and did

Re: cleaner way to write this try/except statement?

2006-08-01 Thread Simon Forman
Boris Borcic wrote: John Salerno wrote: The code to look at is the try statement in the NumbersValidator class, just a few lines down. Is this a clean way to write it? i.e. is it okay to have all those return statements? Is this a good use of try? Etc. Thanks.

Re: Get age of a file/dir

2006-08-01 Thread url81-1
Actually this has nothing to do with datetime.datetime -- he's asking how to find the created time of the directory. Python has a builtin module called stat (afer sys/stat.h) which includes ST_ATIME, ST_MTIME, ST_CTIME members which are times accessed, modified, and created, respectively. Best,

Re: python under earthlink hosting?

2006-08-01 Thread wes weston
No, but before I signed up with them I asked if it was available and they said yes. wes mbstevens wrote: I keep chatting with the tech support people at Earthlink, asking where the location of the Python interpreter is. They don't seem to know where it is. They don't know if Python is

Re: Get age of a file/dir

2006-08-01 Thread Simon Forman
url81-1 wrote: Actually this has nothing to do with datetime.datetime -- he's asking how to find the created time of the directory. Python has a builtin module called stat (afer sys/stat.h) which includes ST_ATIME, ST_MTIME, ST_CTIME members which are times accessed, modified, and created,

Convert string to mathematical function

2006-08-01 Thread jeremito
I am extending python with C++ and need some help. I would like to convert a string to a mathematical function and then make this a C++ function. My C++ code would then refer to this function to calculate what it needs. For example I want to tell my function to calculate x^2 + 3x +2, but later

Re: Convert string to mathematical function

2006-08-01 Thread Felipe Almeida Lessa
Em Ter, 2006-08-01 às 18:45 -0700, jeremito escreveu: I am extending python with C++ and need some help. I would like to convert a string to a mathematical function and then make this a C++ function. I may be wrong, but I don't think you can create new C++ functions on-the-fly. At least I

Zipping files/zipfile module

2006-08-01 Thread OriginalBrownster
This will probably sound like a very dumb question. I am trying to zip some files within a directory. I want to zip all the files within a directory called temp and have the zip archive saved in a directory with temp called ziptemp I was trying to read up on how to use the zipfile module python

Re: Using Python for my web site

2006-08-01 Thread Gerhard Fiedler
On 2006-08-01 21:04:07, Conrad wrote: A few years ago I did some research, and the result was that while PostgreSQL was claimed to have more features and a better design, the reports of database corruption seemed to have been more frequent than with MySQL. I can't claim to have done your

Re: BCD List to HEX List

2006-08-01 Thread bryanjugglercryptographer
John Machin wrote: [EMAIL PROTECTED] wrote: My version assumes three subroutines: extracting nibbles, shifting, and adding, Those are pretty simple, so I asked if he needed them rather than presenting them. Assuming we have them, the algorithm is three lines long. Perhaps you could

Re: Convert string to mathematical function

2006-08-01 Thread John Machin
jeremito wrote: I am extending python with C++ and need some help. I would like to convert a string to a mathematical function and then make this a C++ function. My C++ code would then refer to this function to calculate what it needs. For example I want to tell my function to calculate

special charater in file causing trouble

2006-08-01 Thread Thomas Thomas
Hi All, I need to process a file to create a hash.. the file contain a section similar to string MetaDataPrompt = "Discovery No"; string MetaDataFieldName = "Discovery No"; string MetaDataType = "string"; string MetaDataValue = "£500"; everything was working fine until recently I got an

Re: Jumping over in the class hierarchy

2006-08-01 Thread Raymond Hettinger
Pupeno wrote: I want to jump over a method in the class hierarchy, that is: If I have class A(object), clas B(A), class C(B) and in C, I want a method to do exactly what A does but not what B does in its reimplementation, would it be correct to do: super(A, super(B, self)).method() in C ?

Zipping files/zipfile module

2006-08-01 Thread Thomas Thomas
Hi Stephen, some code that I have been using for a similar purpose. def addFolderToZip(myZipFile,folder): folder = folder.encode('ascii') #convert path to ascii for ZipFile Method for file in glob.glob(folder+"/*"): if os.path.isfile(file): print file myZipFile.write(file,

Re: Windows vs. Linux

2006-08-01 Thread Dan
Edmond Dantes wrote: Dan wrote: But taken out of that context, I'll challenge it. I was first exposed to Python about five or six years ago--my boss asked me to consider it. What I found was that the current version of Python was V2.2, but newest version (that I could find) that ran on VMS

Get age of a file/dir

2006-08-01 Thread Thomas Thomas
what abt os.path.getmtime or may be os.stat(filename)[ST_MTIME]; cheers -Thomas Thomas[EMAIL PROTECTED]Phone. +64 7 855 8478Fax. +64 7 855 8871 -- http://mail.python.org/mailman/listinfo/python-list

wxPython - Event processing order arbitrary across platforms?

2006-08-01 Thread Conrad
Greetings, For user actions on a wxWidget that trigger multiple events for that wxWidget, is the order those events are processed in undefined, and therefore arbitrary from one platform (ie Windows) to the next (ie Linux)? Specifically, I have a convience aggregate class that combines a

Re: Multiple Telnet sessions through one script

2006-08-01 Thread Cameron Laird
In article [EMAIL PROTECTED], Carl J. Van Arsdall [EMAIL PROTECTED] wrote: Well, although you spawn seperate telnet processes there is still only one thread of control in your pythons script. If you need to do two things simultaneously you'll need to setup a parallel control mechanism. For

Dr. Dobb's Python-URL! - weekly Python news and links (Aug 2)

2006-08-01 Thread Cameron Laird
QOTW: [U]sing Python is not programming, it IS a fun! - Tolga The reason for making complex a builtin is _not_ to ease a single program, but to create a convention allowing different modules which operate on complex numbers to communicate. -Scott David Daniels Komodo 4.0 debuted at last

Re: Convert string to mathematical function

2006-08-01 Thread Nick Vatamaniuc
Jeremy, Which method of extension are you using? For example you can pass the function to C++/C directly using weave, without the need to convert to Python first. Python has a different syntax than C++. Also I assume you want exponentiation in you example x^2... and not 'xor', well, in Python

Re: Zipping files/zipfile module

2006-08-01 Thread Brian Beck
OriginalBrownster wrote: I want to zip all the files within a directory called temp and have the zip archive saved in a directory with temp called ziptemp I was trying to read up on how to use the zipfile module python provides, but I cannot seem to find adequate documentation on function

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread Nick Vatamaniuc
For a tutorial try the Python Tutorial @ http://docs.python.org/tut/ For a book try Learning Python from O'Reilly Press For reference try the Python library reference @ http://docs.python.org/lib/lib.html For another good book try Dive Into Python @ http://diveintopython.org/ It is a book

Re: BCD List to HEX List

2006-08-01 Thread John Machin
[EMAIL PROTECTED] wrote: John Machin wrote: [EMAIL PROTECTED] wrote: My version assumes three subroutines: extracting nibbles, shifting, and adding, Those are pretty simple, so I asked if he needed them rather than presenting them. Assuming we have them, the algorithm is three

Re: Using Python for my web site

2006-08-01 Thread Conrad
On Tue, 01 Aug 2006 23:26:14 -0300, Gerhard Fiedler wrote: On 2006-08-01 21:04:07, Conrad wrote: A few years ago I did some research, and the result was that while PostgreSQL was claimed to have more features and a better design, the reports of database corruption seemed to have been more

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread Luis M. González
Delaney, Timothy (Tim) wrote: Edmond Dantes wrote: Of course, it's all what you really mean by clever. To me, being clever partly means writing code without bugs in the first place, so there is nothing that needs debugging Clever in this context generally means using a

Re: Pickle vs XML for file I/O

2006-08-01 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], crystalattice wrote: What are the problems you fear when using `shelve` by the way? The ideas I got about shelve are mostly due to this thread: http://tinyurl.com/lueok. There weren't any other threads contradicting the information so I figured it has merit. Main

Weekly Python Patch/Bug Summary

2006-08-01 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 396 open ( -5) / 3354 closed (+12) / 3750 total ( +7) Bugs: 864 open (-32) / 6087 closed (+52) / 6951 total (+20) RFE : 226 open ( +2) / 234 closed ( +1) / 460 total ( +3) New / Reopened Patches __ Move

[ python-Bugs-215126 ] Over restricted type checking on eval() function

2006-08-01 Thread SourceForge.net
Bugs item #215126, was opened at 2000-09-22 19:36 Message generated for change (Comment added) made by aaiyer You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=215126group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-1506951 ] pydoc fails on package in ZIP archive

2006-08-01 Thread SourceForge.net
Bugs item #1506951, was opened at 2006-06-15 22:07 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1506951group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-215126 ] Over restricted type checking on eval() function

2006-08-01 Thread SourceForge.net
Bugs item #215126, was opened at 2000-09-22 19:36 Message generated for change (Comment added) made by arigo You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=215126group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-1532483 ] the csv module writes files that Excel sees as SYLK files

2006-08-01 Thread SourceForge.net
Bugs item #1532483, was opened at 2006-08-01 14:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1532483group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1530448 ] ctypes build fails on Solaris 10

2006-08-01 Thread SourceForge.net
Bugs item #1530448, was opened at 2006-07-28 10:04 Message generated for change (Comment added) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1530448group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1532483 ] the csv module writes files that Excel sees as SYLK files

2006-08-01 Thread SourceForge.net
Bugs item #1532483, was opened at 2006-08-01 09:52 Message generated for change (Comment added) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1532483group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1532483 ] the csv module writes files that Excel sees as SYLK files

2006-08-01 Thread SourceForge.net
Bugs item #1532483, was opened at 2006-08-01 14:52 Message generated for change (Comment added) made by madewokherd You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1532483group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1525343 ] Webserver TypeError: expected read buffer, NoneType found

2006-08-01 Thread SourceForge.net
Bugs item #1525343, was opened at 2006-07-19 10:53 Message generated for change (Comment added) made by whit537 You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1525343group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1530448 ] ctypes build fails on Solaris 10

2006-08-01 Thread SourceForge.net
Bugs item #1530448, was opened at 2006-07-28 17:04 Message generated for change (Comment added) made by theller You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1530448group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1527397 ] PythonLauncher uses incorrect working directory

2006-08-01 Thread SourceForge.net
Bugs item #1527397, was opened at 2006-07-23 19:29 Message generated for change (Comment added) made by ronaldoussoren You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1527397group_id=5470 Please note that this message will contain a full copy of the

[ python-Bugs-835790 ] MacPython builds with DESTROOT need fixup

2006-08-01 Thread SourceForge.net
Bugs item #835790, was opened at 2003-11-04 16:43 Message generated for change (Comment added) made by ronaldoussoren You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=835790group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-764975 ] Installing 2.3b2 on to non-system disk fails

2006-08-01 Thread SourceForge.net
Bugs item #764975, was opened at 2003-07-03 00:45 Message generated for change (Comment added) made by ronaldoussoren You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=764975group_id=5470 Please note that this message will contain a full copy of the comment

<    1   2   3   >