morrowind no cd crack

2008-04-28 Thread fennelllindy8241
morrowind no cd crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

risk2 no disk patch

2008-04-28 Thread fennelllindy8241
risk2 no disk patch http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

strawberry patch

2008-04-28 Thread fennelllindy8241
strawberry patch http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

recipe for crack cocaine

2008-04-28 Thread fennelllindy8241
recipe for crack cocaine http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

norton ghost crack

2008-04-28 Thread fennelllindy8241
norton ghost crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

crack addict

2008-04-28 Thread fennelllindy8241
crack addict http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

convertxtodvd keygen

2008-04-28 Thread fennelllindy8241
convertxtodvd keygen http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

crack library

2008-04-28 Thread fennelllindy8241
crack library http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

mapsource keygen

2008-04-28 Thread fennelllindy8241
mapsource keygen http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

call od duty 4 crack download

2008-04-28 Thread fennelllindy8241
call od duty 4 crack download http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

ravenhearst crack

2008-04-28 Thread fennelllindy8241
ravenhearst crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

crack acrylic sheet repair

2008-04-28 Thread fennelllindy8241
crack acrylic sheet repair http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

py2exe do not compile from mingw

2008-04-28 Thread Alexandr N Zamaraev
OS: WinXP Home Ru + sp2 Python: 2.5.2 py2exe: latest CSV source gcc (GCC) 3.4.5 (mingw-vista special r2) GNU ld (GNU Binutils) 2.18.50.20080109 OS: WinXP Home Ru + sp2 Python: 2.5.2 py2exe: latest CSV source gcc (GCC) 3.4.5 (mingw-vista special r2) GNU ld (GNU Binutils) 2.18.50.20080109 I have p

Re: error: (10035, 'The socket operation...

2008-04-28 Thread Gabriel Genellina
En Sun, 27 Apr 2008 21:41:57 -0300, Benjamin Kaplan <[EMAIL PROTECTED]> escribió: >> On Sun, Apr 27, 2008 at 7:01 PM, Don Hanlen <[EMAIL PROTECTED]> wrote: >> > IDLE internal error in runcode() >> > Traceback (most recent call last): >> > File "C:\PYTHON25\lib\idlelib\rpc.py", line 235, in

4502 cams patch

2008-04-28 Thread fennelllindy8241
4502 cams patch http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

imtoo crack

2008-04-28 Thread fennelllindy8241
imtoo crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

crack van

2008-04-28 Thread fennelllindy8241
crack van http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

class or class-instance ?

2008-04-28 Thread Stef Mientki
hello, I've a procedure (or in fact a class method) that should be callable with either a class (in which case the procedure should create an instance) or with an instance of that class as the parameter. def somefunction ( self, parameter ) : if parameter is a class, create an instan

Re: class or class-instance ?

2008-04-28 Thread Diez B. Roggisch
Stef Mientki schrieb: hello, I've a procedure (or in fact a class method) that should be callable with either a class (in which case the procedure should create an instance) or with an instance of that class as the parameter. def somefunction ( self, parameter ) : if parameter is a

Re: error: (10035, 'The socket operation...

2008-04-28 Thread bockman
On 28 Apr, 01:01, Don Hanlen <[EMAIL PROTECTED]> wrote: > IDLE internal error in runcode() > Traceback (most recent call last): >   File "C:\PYTHON25\lib\idlelib\rpc.py", line 235, in asyncqueue >     self.putmessage((seq, request)) >   File "C:\PYTHON25\lib\idlelib\rpc.py", line 332, in putmessage

the pink patch

2008-04-28 Thread landerdebraznpc
the pink patch http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

keygen nfs pro street

2008-04-28 Thread landerdebraznpc
keygen nfs pro street http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

vista ultimate crack

2008-04-28 Thread landerdebraznpc
vista ultimate crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

norton internet security 2007 keygen

2008-04-28 Thread landerdebraznpc
norton internet security 2007 keygen http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

crack and digichat

2008-04-28 Thread landerdebraznpc
crack and digichat http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

crack gmail

2008-04-28 Thread landerdebraznpc
crack gmail http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Related to Shelve Module

2008-04-28 Thread Gabriel Genellina
En Mon, 28 Apr 2008 02:08:31 -0300, tarun <[EMAIL PROTECTED]> escribió: > Hi All, > I want to store the class instance object variables persistenlty in one file > so that other file can also access for some filtering. I tired doing this > using the shelve module. > > *Code:* > class A: > pass

crack zone

2008-04-28 Thread landerdebraznpc
crack zone http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

system mechanic 7 keygen

2008-04-28 Thread landerdebraznpc
system mechanic 7 keygen http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

paltalk crack

2008-04-28 Thread landerdebraznpc
paltalk crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

dvd cloner crack

2008-04-28 Thread landerdebraznpc
dvd cloner crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

Abuse in comp.lang.python

2008-04-28 Thread Torsten Bronger
Path: uni-berlin.de!fu-berlin.de!postnews.google.com!f63g2000hsf.googlegroups.com!not-for-mail Message-ID: <[EMAIL PROTECTED]> From: [EMAIL PROTECTED] Newsgroups: comp.lang.python Subject: the pink patch Date: Mon, 28 Apr 2008 00:52:20 -0700 (PDT) Lines: 10 Organization: http://groups.google.com N

Re: Question regarding Queue object

2008-04-28 Thread Nick Craig-Wood
David <[EMAIL PROTECTED]> wrote: > Another idea would be to have multiple queues, one per thread or per > message type "group". The producer thread pushes into the appropriate > queues (through an intelligent PutMsg function), and the consumer > threads pull from the queues they're interested i

Re:apache module: python and web programming, easy way...?

2008-04-28 Thread bvidinli
is there any apache module, you know, that i can just install with apt-get, then put my .py file, and run it ? 2008/4/27 David <[EMAIL PROTECTED]>: > > > > www.webpy.org is supereasy to get going with. dont know which is > > better for advanced stuff. > > > > I don't think that webpy suppor

Re: Receive data from socket stream

2008-04-28 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I wanted to ask for standard ways to receive data from a socket stream > (with socket.socket.recv()). It's simple when you know the amount of > data that you're going to receive, or when you'll receive data until > the remote peer closes the connec

Retrieving int from hex in a file.

2008-04-28 Thread Filipe Teixeira
Hi. I have to open a binary file from an old computer and recover the information stored (or at least try to). I use: f=open('file.bin','rb') a=f.read() f.close() a in now a string full of hex representations in the form: a[6]='\x14' a[7]='\x20' I would like to convert these hex representation

Re: Receive data from socket stream

2008-04-28 Thread Hrvoje Niksic
Nick Craig-Wood <[EMAIL PROTECTED]> writes: > What you are missing is that if the recv ever returns no bytes at all > then the other end has closed the connection. So something like this > is the correct thing to write :- > > data = "" > while True: > new = client.recv(256) > if n

Re: Receive data from socket stream

2008-04-28 Thread Nick Craig-Wood
Mark Tolonen <[EMAIL PROTECTED]> wrote: > > So every time I use I want to send some thing, I must use > > > > totalsent = 0 > > while sent < len(data): > >sent = sock.send(data[totalsent:]) > >totalsent += sent > > > > instead of a simple sock.send(data)? That's kind of nasty. Also, is it >

Re: Retrieving int from hex in a file.

2008-04-28 Thread Gabriel Genellina
En Mon, 28 Apr 2008 07:14:51 -0300, Filipe Teixeira <[EMAIL PROTECTED]> escribió: > a in now a string full of hex representations in the form: > > a[6]='\x14' > a[7]='\x20' > > I would like to convert these hex representations to int, but this > (the most obvious way) doesn't seem to be working >

Re: Regular Expression - Matching Multiples of 3 Characters exactly.

2008-04-28 Thread Nick Craig-Wood
blaine <[EMAIL PROTECTED]> wrote: > I'm trying to write a string matching algorithm for genomic > sequences. I'm pulling out Genes from a large genomic pattern, with > certain start and stop codons on either side. This is simple > enough... for example: > > start = AUG stop=AGG > BBAUG

Re: multiple pattern regular expression

2008-04-28 Thread micron_make
each of the suggested methods fit in. I have started trying them. -Rohit -- View this message in context: http://www.nabble.com/multiple-pattern-regular-expression-tp16895148p16936657.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailma

Re: Retrieving int from hex in a file.

2008-04-28 Thread Peter Otten
Filipe Teixeira wrote: > I have to open a binary file from an old computer and recover the > information stored (or at least try to). I use: > I would like to convert these hex representations to int, but this If you want to do it efficiently have a look at the array module: >>> import os, arra

Need help on left padding

2008-04-28 Thread rajesh kataraki
Hello, My requirement is I am using one variable ex. var = 5 which is integer. And this variable, I m using in some string. But I want this var to be used as 005 again integer in this string. The snippet of string is as follows: container_name = "%s-%d-dso-%s.so" % (platform_a

Re: Need help on left padding

2008-04-28 Thread Marc 'BlackJack' Rintsch
On Mon, 28 Apr 2008 04:37:02 -0700, rajesh kataraki wrote: > My requirement is I am using one variable ex. var = 5 which is > integer. > And this variable, I m using in some string. But I want this var > to be used as 005 again integer in this string. In [22]: '%03d' % 5 Out[22]: '005'

Re: apache module: python and web programming, easy way...?

2008-04-28 Thread Graham Dumpleton
On Apr 28, 7:42 pm, bvidinli <[EMAIL PROTECTED]> wrote: > is there any apache module, you know, that i can just install with apt-get, > then put my .py file, and run it ? http://www.modwsgi.org http://www.modpython.org The mod_wsgi module supports WSGI (http://www.wsgi.org) specification which is

Re: Retrieving int from hex in a file.

2008-04-28 Thread bgeddy
Filipe Teixeira wrote: Hi. I have to open a binary file from an old computer and recover the information stored (or at least try to). I use: f=open('file.bin','rb') a=f.read() f.close() a in now a string full of hex representations in the form: a[6]='\x14' a[7]='\x20' I would like to convert

Re: Retrieving int from hex in a file.

2008-04-28 Thread Filipe Teixeira
> > Use ord(q) > > py> help(ord) > Help on built-in function ord in module __builtin__: > > ord(...) > ord(c) -> integer > > Return the integer ordinal of a one-character string. > > py> > > -- > Gabriel Genellina Thank you Gabriel. It fit's my purpose. -- http://mail.python.org/mailman

Re: Need help on left padding

2008-04-28 Thread Albert Leibbrandt
Marc 'BlackJack' Rintsch wrote: On Mon, 28 Apr 2008 04:37:02 -0700, rajesh kataraki wrote: My requirement is I am using one variable ex. var = 5 which is integer. And this variable, I m using in some string. But I want this var to be used as 005 again integer in this string.

Re: Regular Expression - Matching Multiples of 3 Characters exactly.

2008-04-28 Thread Jeff
Regular expressions for that sort of thing can get *really* big. The most efficient way would be to programmatically compose the regular expression to be as exact as possible. import re def permutation(lst): From http://labix.org/snippets/permutations/. Computes permutations

Checking for existance of feature / tools / solutions -- Something like Java webstart

2008-04-28 Thread Banibrata Dutta
Hi, I've tried searching this list & googling around a bit -- trying to see if there is a Java-Webstart like alternative for Python, the closest approximate I've found is something suggested in this post: http://mail.python.org/pipermail/python-list/2004-September/282837.html Is this still prett

Re: function that accepts any amount of arguments?

2008-04-28 Thread Bruno Desthuilliers
Lie a écrit : On Apr 25, 2:12 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: (...) FWIW, I'd personnaly write avg as taking a sequence - ie, not using varargs - in which case calling it without arguments would a TypeError (so BTW please s/Value/Type/ in my previous post). The problem wi

Re: Receive data from socket stream

2008-04-28 Thread Nick Craig-Wood
Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > Nick Craig-Wood <[EMAIL PROTECTED]> writes: > > > What you are missing is that if the recv ever returns no bytes at all > > then the other end has closed the connection. So something like this > > is the correct thing to write :- > > > > data = "" > >

is there a threadsafe cookie library?

2008-04-28 Thread fritz
I'm working with a script written in python2.4 that has to handle multiple http connections but I'm having concurrency issues with cookielib. Does anyone know of a threadsafe library that handles cookies? -- http://mail.python.org/mailman/listinfo/python-list

Cookie Confusion - How to Set a Cookie

2008-04-28 Thread cbhoem
Hi - I am trying my hand at python cookies. I'm confused about a few things though. Do the python cookies get written to a cookies text file? I have simple code below -- I see the cookie in my HTTP header but do not get anything in the cookie text file. I'm working on linux. print "Content-ty

Re: Receive data from socket stream

2008-04-28 Thread Jean-Paul Calderone
On Mon, 28 Apr 2008 08:30:03 -0500, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: Hrvoje Niksic <[EMAIL PROTECTED]> wrote: Nick Craig-Wood <[EMAIL PROTECTED]> writes: > What you are missing is that if the recv ever returns no bytes at all > then the other end has closed the connection. So someth

Re: ANN: pyspread 0.0.4

2008-04-28 Thread Martin Manns
On Sun, 27 Apr 2008 05:21:56 +0200 Martin Manns <[EMAIL PROTECTED]> wrote: > The newest version pyspread 0.0.4 now runs on > + GTK > + Windows > + Mac (not tested myself but got positive reports) > > New features in 0.0.4: > + Column, line and table insertion and deletion > + Themeable toolbar

Chapter on real-time signal processing using numerical Python

2008-04-28 Thread Johannes Nix
Hi, this might be of interest for people who are look for practical information on doing real-time signal processing, possibly using multiple CPUs, and wonder whether it's possible to use Python for audio-type worst case latencies (around 25 ms). I've done that in my PhD work, both with real-time

Re: Receive data from socket stream

2008-04-28 Thread s0suk3
On Apr 28, 4:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I wanted to ask for standard ways to receive data from a socket stream > > (with socket.socket.recv()). It's simple when you know the amount of > > data that you're going to receive,

Re: API's and hardware communication. Newbie

2008-04-28 Thread Grant Edwards
On 2008-04-26, Grayham <[EMAIL PROTECTED]> wrote: > Hi all > > I am new to this group so 'Hello All' > > I have a PC which is running linux and in it have installed a digital > satellite card. I would like to write some software to access the card, > tune it and bring back video. Basically a home b

Re: Receive data from socket stream

2008-04-28 Thread Hrvoje Niksic
Nick Craig-Wood <[EMAIL PROTECTED]> writes: >> Note that appending to a string is almost never a good idea, since it >> can result in quadratic allocation. > > My aim was clear exposition rather than the ultimate performance! That would normally be fine. My post wasn't supposed to pick perform

Re: Retrieving int from hex in a file.

2008-04-28 Thread Grant Edwards
On 2008-04-28, Filipe Teixeira <[EMAIL PROTECTED]> wrote: > Hi. > > I have to open a binary file from an old computer and recover the > information stored (or at least try to). I use: > > f=open('file.bin','rb') > a=f.read() > f.close() > > a in now a string full of hex representations in the form:

Re: Question regarding Queue object

2008-04-28 Thread [EMAIL PROTECTED]
I've never used it myself but you may find candygram interesting; http://candygram.sourceforge.net, which AFAIK implements Erlang-style message queues in Python. -- http://mail.python.org/mailman/listinfo/python-list

Wing IDE 3.0.5 released

2008-04-28 Thread Wingware
Hi, We're happy to announce version 3.0.5 of Wing IDE, an integrated development environment for the Python programming language. It is available from: http://wingware.com/downloads Version 3.0.5 is a bug fix release that adds many vi mode improvements, improves stability, and fixes other usabi

Wing IDE 3.1beta3 released

2008-04-28 Thread Wingware
Hi, Wingware has released version 3.1 beta3 of Wing IDE, an integrated development environment for the Python programming language. It is available from: http://wingware.com/wingide/beta This release includes the following changes: * How-To and improvements for using Wing IDE with Google App E

Re: Regular Expression - Matching Multiples of 3 Characters exactly.

2008-04-28 Thread Helmut Jarausch
blaine wrote: Hey everyone, For the regular expression gurus... I'm trying to write a string matching algorithm for genomic sequences. I'm pulling out Genes from a large genomic pattern, with certain start and stop codons on either side. This is simple enough... for example: start = AUG sto

Re: Receive data from socket stream

2008-04-28 Thread Jean-Paul Calderone
On Mon, 28 Apr 2008 07:26:13 -0700 (PDT), [EMAIL PROTECTED] wrote: [snip] BTW, has anybody used sockets as file-like objects (client.makefile())? Is it more secure? More efficient? It's not more (or less) secure. In certain cases, it's significantly less efficient. It's for simplicity of pr

Re: class or class-instance ?

2008-04-28 Thread Stef Mientki
There is a isclass in the module inspect. Diez thanks Diez, that's exactly what I was looking for. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Given a string - execute a function by the same name

2008-04-28 Thread python
I'm parsing a simple file and given a line's keyword, would like to call the equivalently named function. There are 3 ways I can think to do this (other than a long if/elif construct): 1. eval() 2. Convert my functions to methods and use getattr( myClass, "method" ) 3. Place all my functions i

Re: Given a string - execute a function by the same name

2008-04-28 Thread Robert Bossy
[EMAIL PROTECTED] wrote: I'm parsing a simple file and given a line's keyword, would like to call the equivalently named function. There are 3 ways I can think to do this (other than a long if/elif construct): 1. eval() 2. Convert my functions to methods and use getattr( myClass, "method" )

Re: Tremendous slowdown due to garbage collection

2008-04-28 Thread Dieter Maurer
"Martin v. Löwis" wrote at 2008-4-27 19:33 +0200: >> Martin said it but nevertheless it might not be true. >> >> We observed similar very bad behaviour -- in a Web application server. >> Apparently, the standard behaviour is far from optimal when the >> system contains a large number of objects an

Re: Given a string - execute a function by the same name

2008-04-28 Thread marek . rocki
One solution may be to use globals(): >>> globals()['foo']() Regards, Marek -- http://mail.python.org/mailman/listinfo/python-list

Re: Given a string - execute a function by the same name

2008-04-28 Thread Matimus
On Apr 28, 9:33 am, [EMAIL PROTECTED] wrote: > I'm parsing a simple file and given a line's keyword, would like to call > the equivalently named function. > > There are 3 ways I can think to do this (other than a long if/elif > construct): > > 1. eval() > > 2. Convert my functions to methods and us

bisect intersection

2008-04-28 Thread Robert Bossy
Hi, I stumbled into a sorted list intersection algorithm by Baeza-Yates which I found quite elegant. For the lucky enough to have a springerlink access, here's the citation: http://dblp.uni-trier.de/rec/bibtex/conf/cpm/Baeza-Yates04 I implemented this algorithm in python and I thought I could

Re: Given a string - execute a function by the same name

2008-04-28 Thread Gary Herron
[EMAIL PROTECTED] wrote: I'm parsing a simple file and given a line's keyword, would like to call the equivalently named function. There are 3 ways I can think to do this (other than a long if/elif construct): 1. eval() 2. Convert my functions to methods and use getattr( myClass, "method" )

Re: Given a string - execute a function by the same name

2008-04-28 Thread Arnaud Delobelle
[EMAIL PROTECTED] writes: > I'm parsing a simple file and given a line's keyword, would like to call > the equivalently named function. > > There are 3 ways I can think to do this (other than a long if/elif > construct): > > 1. eval() > > 2. Convert my functions to methods and use getattr( myClas

Re: Remove multiple inheritance in Python 3000

2008-04-28 Thread Dieter Maurer
Nick Stinemates <[EMAIL PROTECTED]> writes on Thu, 24 Apr 2008 08:26:57 -0700: > On Tue, Apr 22, 2008 at 04:07:01AM -0700, GD wrote: > > Please remove ability to multiple inheritance in Python 3000. I hope your request will not be followed. > > Multiple inheritance is bad for design, rarely used

Re: Regular Expression - Matching Multiples of 3 Characters exactly.

2008-04-28 Thread blaine
On Apr 28, 6:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > blaine <[EMAIL PROTECTED]> wrote: > > I'm trying to write a string matching algorithm for genomic > > sequences. I'm pulling out Genes from a large genomic pattern, with > > certain start and stop codons on either side. This is s

descriptor & docstring

2008-04-28 Thread cyril giraudon
Hello, I try to use python descriptors to define attributes with default value (the code is reported below). But apparently, it breaks the docstring mechanism. help(Basis) shows the right help but help(Rectangle) shows only two lines : " Help on class Rectangle in module basis2: Rectangle = " I

Automating IE 6.0

2008-04-28 Thread Michael Harris
I tried to use the sample code to print a webpage via ie and I get the following error: Traceback (most recent call last): File "C:\Python25\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py" , line 310, in RunScript exec codeObject in __main__.__dict__ File "C:\ie.py", line

xcode able to run script?

2008-04-28 Thread Alex Pavluck
Does anyone know if it is possible to test your scripts from within the xcode editor? I am currently using Uilipad on windows and there is a sub window that lets you view your output when you launch the script from within the ide. hopefully this makes sense. thanks, Alex -- http://mail.python.or

How to unget a line when reading from a file/stream iterator/generator?

2008-04-28 Thread python
Is there an elegant way to unget a line when reading from a file/stream iterator/generator? By "unget" I mean a way to push back a line into the source stream and backtrack the iterator/generator one step? The only alternative I can see is to put my line reading in a while-True loop (vs. a for-lo

list.reverse()

2008-04-28 Thread Mark Bryan Yu
This set of codes works: >>> x = range(5) >>> x.reverse() >>> x [4, 3, 2, 1, 0] But this doesn't: >>> x = range(5).reverse() >>> print x None Please explain this behavior. range(5) returns a list from 0 to 4 and reverse just reverses the items on the list that is returned by range(5). Why is x

cytpes **int

2008-04-28 Thread VernM
I am using ctypes to wrap a set of functions in a DLL. It has been going very well, and I am very impressed with ctypes. I want to call a c function with a signature of: void func(int **cube), where the array if ints in cube is modified by func. I want to setup cube with int values, and access them

Python 2.6, building SDL for Pygame

2008-04-28 Thread L. Lindstrom
I build the Pygame releases for Windows. Pygame wraps the Simple Directmedia Layer (SDL) C library. I am doing preliminary research into porting Pygame to Python 2.6. For Pythons 2.4 and 2.5 the Pygame extension modules are built with MinGW. They link cleanly against msvcr71.dll. A custom SDL,

Re: Tremendous slowdown due to garbage collection

2008-04-28 Thread John Nagle
Dieter Maurer wrote: Christian Heimes <[EMAIL PROTECTED]> writes on Sat, 12 Apr 2008 18:47:32 +0200: [EMAIL PROTECTED] schrieb: which made me suggest to use these as defaults, but then We observed similar very bad behaviour -- in a Web application server. Apparently, the standard behaviour i

Re: list.reverse()

2008-04-28 Thread Gary Herron
Mark Bryan Yu wrote: This set of codes works: x = range(5) x.reverse() x [4, 3, 2, 1, 0] But this doesn't: x = range(5).reverse() print x None Please explain this behavior. range(5) returns a list from 0 to 4 and reverse just reverses the items on the list that is

Re: Cookie Confusion - How to Set a Cookie

2008-04-28 Thread Aaron Watters
On Apr 28, 9:42 am, [EMAIL PROTECTED] wrote: > I see the cookie in my HTTP header > but do not get anything in the cookie text file. I'm working on > linux. > > print "Content-type: text/html" > cookie = Cookie.SimpleCookie() > cookie['Test'] = 'abc' > print cookie > print > > Are there rules

Re: How to unget a line when reading from a file/stream iterator/generator?

2008-04-28 Thread Arnaud Delobelle
[EMAIL PROTECTED] writes: > Is there an elegant way to unget a line when reading from a file/stream > iterator/generator? > > By "unget" I mean a way to push back a line into the source stream and > backtrack the iterator/generator one step? > > The only alternative I can see is to put my line rea

Re: list.reverse()

2008-04-28 Thread Arnaud Delobelle
Mark Bryan Yu <[EMAIL PROTECTED]> writes: > This set of codes works: > x = range(5) x.reverse() x > [4, 3, 2, 1, 0] > > But this doesn't: > x = range(5).reverse() print x > None > > Please explain this behavior. range(5) returns a list from 0 to 4 and > reverse just revers

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-28 Thread Fred Pacquier
John Henry <[EMAIL PROTECTED]> said : > The performance of Qooxdoo is quite amazing - for a Javascript based > web application. Don't know about cell-phones though. You can try > their showcase web site I cited earlier. Just for the record, Nokia Internet tablets (770, N800, N810) are the only

Newbie Help - Alarms

2008-04-28 Thread Paul Jefferson
Hi, I'm new to this having previously done some programming in Game Maker. In Game Maker there was a function (Alarm) that lets you run a block of code run every x seconds without freezing up the whole program waiting for it. Is there an equavalant for this built in Python beacuse I can't find it?

Simple unicode-safe version of str(exception)?

2008-04-28 Thread Russell E. Owen
I have code like this: except Exception, e: self.setState(self.Failed, str(e)) which fails if the exception contains a unicode argument. I did, of course, try unicode(e) but that fails. The following works, but seems rather messy: except Exception, e: errStr = ",".join([unicode(s) for s i

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-28 Thread John Henry
On Apr 27, 12:23 pm, Fred Pacquier <[EMAIL PROTECTED]> wrote: > > Do keep us posted ! > > TIA, > fp Check it out now. Only one to be added is the Multicolumn List (table), and then menus. The other widgets (Togglebutton, BitmapCanvas, Gauge, Notebook, CodeEditor) will not be implemented initially

Re: Installed python 2.5 over 2.4 and lost installed packages

2008-04-28 Thread james
On Apr 27, 8:42 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Apr 27, 8:15 am, [EMAIL PROTECTED] wrote: > > I recently updated os x from python 2.4 to 2.5 (from python.org) and > > in doing so I lost my old python path entries. > > So what is the right thing to do in this situation? > > Is cp

Re: Simple unicode-safe version of str(exception)?

2008-04-28 Thread Bjoern Schliessmann
Russell E. Owen wrote: > I have code like this: > except Exception, e: >self.setState(self.Failed, str(e)) > which fails if the exception contains a unicode argument. Fails how? > I did, of course, try unicode(e) but that fails. Converting unicode to unicode doesn't help. Instead of just e

Python-URL! - weekly Python news and links (Apr 28)

2008-04-28 Thread Gabriel Genellina
QOTW: "Posting to comp.lang.python is pair programming with the entire internet ;-)" - Nick Craig-Wood http://groups.google.com/group/comp.lang.python/msg/6f13cfca8a92c1a2 "When it got to the point where managers were asking, 'Why didn't you use the config check tool?', it was a done deal." -

Re: How to unget a line when reading from a file/stream iterator/generator?

2008-04-28 Thread George Sakkis
On Apr 28, 2:07 pm, [EMAIL PROTECTED] wrote: > Is there an elegant way to unget a line when reading from a file/stream > iterator/generator? > > By "unget" I mean a way to push back a line into the source stream and > backtrack the iterator/generator one step? > > The only alternative I can see is

Re: Little novice program written in Python

2008-04-28 Thread Rogério Brito
On 04/25/2008 01:09 AM, Dennis Lee Bieber wrote: On Thu, 24 Apr 2008 21:31:15 -0300, Rogério Brito <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: a = [i for i in range(0,n+1)] Uhm... At least in 2.4 and earlier, range() returns a list... No need for the list-comp in t

Re: Little novice program written in Python

2008-04-28 Thread Rogério Brito
On 04/25/2008 01:30 AM, Steve Holden wrote: Rogério Brito wrote: I'm just getting my feet wet on Python and, just for starters, I'm coding some elementary number theory algorithms (yes, I know that most of them are already implemented as modules, but this is an exercise in learning the languag

Re: descriptor & docstring

2008-04-28 Thread cyril giraudon
A precision, I use python 2.5.2 under linux mandiva 2007.0 Cyril. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >