Re: Question on SPE and pwintypes.dll

2007-08-17 Thread Ian Clark
Gerry wrote: >... but the OS wasn't migrated ... There's your problem right there. It's hard to run most software these days without an OS. Ian -- http://mail.python.org/mailman/listinfo/python-list

Re: advice about `correct' use of decorator

2007-08-17 Thread Steve Holden
Gerardo Herzig wrote: [...] > As far as i know (by the way, AFAK is the shortcut? [...] That's "AFAIK", AFAIK :-) regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden -

Re: Encryption and hashing

2007-08-17 Thread Kless
On 17 ago, 20:34, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > > For who knows any of criptography I comment that you can use > > algorithms as secure as Rijndael, Twofish, or Serpent with the CFB > > cipher mode. And for hash you can use RIPEMD, SHA-2 or WHIRLPOOL. > > As I recall, PyCrypto can also u

Re: Encryption and hashing

2007-08-17 Thread Paul Rubin
Kless <[EMAIL PROTECTED]> writes: > So it haven't Twofish, Serpent, neither Whirlpool. Neither many others. Unless you have an interoperability requirement or some other specific issue, you should stick with AES and the SHA2 family. Don't make your own cipher selections unless you know completely

Re: wxPython in C++ app using wxWidgets

2007-08-17 Thread Stephen Hansen
On 8/17/07, Marcin Kalicinski <[EMAIL PROTECTED]> wrote: > > I have an application written in C++ that uses wxWidgets for GUI. I use > embedded Python for scripting inside of this application. I want to use > wxPython to add GUI to my scripts - because my C++ App uses wxWidgets I > thought it to be

Re: Question about 'for' loop

2007-08-17 Thread Steve Holden
Robert Dailey wrote: > Hi, > > I noticed that the 'for' loop can be used inline with a list definition. > For example: > > print [i for i in mylist] > > My first question is what is the name for this? I couldn't find this > usage in the python docs; I only managed to learn about it through cod

Re: How to say $a=$b->{"A"} ||={} in Python?

2007-08-17 Thread Carl Banks
On Aug 16, 10:01 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Aug 16, 8:28 pm, Jonathan Gardner > > > > <[EMAIL PROTECTED]> wrote: > > On Aug 16, 3:35 pm, beginner <[EMAIL PROTECTED]> wrote: > > > > In perl it is just one line: $a=$b->{"A"} ||={}. > > > a = b.setdefault('A', {}) > > > This comb

How to setup pyOpenGL3.0.a6 for window xp?

2007-08-17 Thread math2life
Hi, I've already download the pyOpenGL3..0.a6 for python2.4 and installed python2.4, Is it necessary to install OpenGL? And if need, which version of OpenGL should be installed? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: What does this thread have to do with classical music,

2007-08-17 Thread ah
Art Deco wrote: > ah <[EMAIL PROTECTED]> wrote: >>Art Deco wrote: >>> ah <[EMAIL PROTECTED]> wrote: Art Deco wrote: > ah <[EMAIL PROTECTED]> wrote: >>Art Deco wrote: >>> ah <[EMAIL PROTECTED]> wrote: Art Deco wrote: > Who wrote? > > >>What d

Re: wxPython in C++ app using wxWidgets

2007-08-17 Thread Chris Mellon
On 8/17/07, Marcin Kalicinski <[EMAIL PROTECTED]> wrote: > I have an application written in C++ that uses wxWidgets for GUI. I use > embedded Python for scripting inside of this application. I want to use > wxPython to add GUI to my scripts - because my C++ App uses wxWidgets I > thought it to be e

Re: How to say $a=$b->{"A"} ||={} in Python?

2007-08-17 Thread Steve Holden
Carl Banks wrote: > On Aug 16, 10:01 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: >> On Aug 16, 8:28 pm, Jonathan Gardner >> >> >> >> <[EMAIL PROTECTED]> wrote: >>> On Aug 16, 3:35 pm, beginner <[EMAIL PROTECTED]> wrote: In perl it is just one line: $a=$b->{"A"} ||={}. >>> a = b.setdefault('A',

Re: Question about 'for' loop

2007-08-17 Thread Carsten Haese
On Fri, 2007-08-17 at 17:45 -0500, Robert Dailey wrote: > [...] > Secondly, I'm wondering how I can use this method of a for loop to > append strings to strings in a list. For example: > > mylist = [ > "Hello ", > "Hello again " > ] > > I should be able to do this: > > print [ i + "World" for i

Re: How to setup pyOpenGL3.0.a6 for window xp?

2007-08-17 Thread Carl Banks
On Aug 17, 8:07 pm, math2life <[EMAIL PROTECTED]> wrote: > Hi, > I've already download the pyOpenGL3..0.a6 for python2.4 and installed > python2.4, > > Is it necessary to install OpenGL? And if need, which version of > OpenGL should be > installed? Windows comes with OpenGL libraries. However, b

python video editing libs

2007-08-17 Thread DavidM
Hi, Does anyone know of any python or python-wrapped libs for video editing? My requirements: - open video files in any of the popular containers (avi, mov, ogg, flv etc) and all the popular codecs (mpeg3, theora, mpeg2 etc) and audio codecs (raw, wav, mp3 etc) - get an abstract video cli

Re: How to setup pyOpenGL3.0.a6 for window xp?

2007-08-17 Thread math2life
On Aug 17, 5:42 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Aug 17, 8:07 pm, math2life <[EMAIL PROTECTED]> wrote: > > > Hi, > > I've already download the pyOpenGL3..0.a6 for python2.4 and installed > > python2.4, > > > Is it necessary to install OpenGL? And if need, which version of > > OpenGL

Your message to use-revolution awaits moderator approval

2007-08-17 Thread use-revolution-bounces
Your mail to 'use-revolution' with the subject Returned mail: see transcript for details Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will

Re: clarification

2007-08-17 Thread samwyse
Scott David Daniels wrote: > lefts = set() > rights = set() > with open('sheet1', 'r') as fh: > for line in fh: > trimmed = line.strip() > if trimmed: # Skip blanks (file end often looks like that) > left, right = line.strip().split('\t') >

Re: Can python threads take advantage of use dual core ?

2007-08-17 Thread Alex Martelli
Stefan Behnel <[EMAIL PROTECTED]> wrote: ... > Which virtually all computation-intensive extensions do. Also, note the gmpy doesn't (release the GIL), even though it IS computationally intensive -- I tried, but it slows things down horribly even on an Intel Core Duo. I suspect that may partly

Re: python video editing libs

2007-08-17 Thread math2life
On Aug 17, 5:55 pm, DavidM <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know of any python or python-wrapped libs for video editing? > > My requirements: > - open video files in any of the popular containers (avi, mov, ogg, flv >etc) and all the popular codecs (mpeg3, theora, mpeg2 etc) an

Re: python socket usage

2007-08-17 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Oğuz Yarımtepe wrote: > Is it possible to send a data object like a tuple or a list in socket > programming? You'll have to define a bytestream encoding to send over the connection. I recently wrote up some Python code

Re: encrypting files + filestreams?

2007-08-17 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, per9000 wrote: > crptz = AES.new("my-secret_passwd") You're using ECB mode. Never use ECB mode. At a minimum, use CBC mode. Also, another common thing is, don't use the actual password to encrypt the entire file. Instead, randomly generate a "session key" to u

customizing a logging logger

2007-08-17 Thread garyjefferson123
Suppose I have some sort of context variable that I want to appear in log messages. E.g.: logger = logging.getLogger("somelogger") class SomeOp: def __init__(self, ctx): self.ctx = ctx def method1(self): logger.info("%s: here's a message", self.ctx) What's the idiomatic w

Re: help on object programing

2007-08-17 Thread Scott David Daniels
yadin wrote: > class big(self): > ... > how can i define my variables so that there are valid outside the > class??? Although you did not describe the issue all that well, I _think_ you are referring to the fact that the following two pieces of code behave less like each other than one might suspe

Re: Cancelling events on a COM Object

2007-08-17 Thread Oliver Nelson
James, I was getting an error everytime so I thought I had a setup problem... Sorry everybody... OLIVER James Stroud wrote: > Oliver, wait a while before you panic about your post not getting through! > > James > -- http://mail.python.org/mailman/listinfo/python-list

Re: using super() to call two parent classes __init__() method

2007-08-17 Thread Evan Klitzke
On 8/16/07, 7stud <[EMAIL PROTECTED]> wrote: > When I run the following code and call super() in the Base class's > __init__ () method, only one Parent's __init__() method is called. As the other posters have mentioned, each class needs to make a call to super. This is because the super call does

<    1   2