Re: Detecting key presses

2006-06-18 Thread Fan Zhang
On 2006-06-18 13:20:06, tylertacky write: Ok, I'm pretty new to python, so this might be a stupid question. I'm trying to write a simple text-based pong clone, and I can't figure out how to read key presses to move the paddles. I just need something that does the same thing as getch() and kbhit().

setting cookies in quixote

2006-06-18 Thread jiguorui
# I write a quixote demo like this: equest = get_request() request.response.set_cookie('usr_name', 'Jim', path='/') request.response.set_cookie('usr_id', '1', path='/') #but only usr_name can be setted successfully, and usr_id is none. Why ? Help me ! Thanks --

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-18 Thread Martin v. Löwis
Scott David Daniels wrote: I musunderstood you. I thought you were advocating that Python itself be built on gcc, obviating many compiler access issues. That wouldn't work because gcc cannot, by itself (as I understand it) get to all the nooks and crannies a windows developer may need to

Active Python versions

2006-06-18 Thread Tom Del Rosso
Why is the Windows msi install file for ActivePython-2.4.3.12 only 15MB whereas the older msi file for ActivePython-2.4.2.10 was 19MB? BTW, is that the prefered Python environment? -- Reply in group, but if emailing add another zero, and remove the last word. --

Re: Extracting values from text file

2006-06-18 Thread Mirco Wahab
Thus spoke Dennis Lee Bieber (on 2006-06-18 06:29): On Sun, 18 Jun 2006 03:12:23 +0200, Mirco Wahab [EMAIL PROTECTED] declaimed the following in comp.lang.python: - you have to explicitly instantiate a dictionary value (with 0) if/before you want in-place add to it (why is that?) Uhm...

Re: Standard Yes / No Windows Dialog box creation

2006-06-18 Thread flaus . a
SuperHik a écrit : I've never seen easier way to do it, but my solution for you if you want to create a GUI application without learning any GUI programming would be to consider Glade, wxGlade and such... Yes I wanted something easy because it's the first time that I use a Gui into Python

Re: Standard Yes / No Windows Dialog box creation

2006-06-18 Thread flaus . a
Ravi Teja a écrit : Assuming you are on MS Windows. import win32api, win32con win32api.MessageBox(0, Question, Title, win32con.MB_YESNO) Yes, that's exactly what I was looking for! Thanks!! -- http://mail.python.org/mailman/listinfo/python-list

python texts?

2006-06-18 Thread nate
Everyone that took their time to reply, thank you. I have a better idea of where to go after Learning Python. I still do not have a good idea of where this book will put me in the grand scheme of things, but oh well. I suppose that is something I will find out soon enough. Once again, thank you

Re: code is data

2006-06-18 Thread Paddy
Ravi Teja wrote: BJörn Lindqvist wrote: Personally, I would like to see macros in Python (actually Logix succeeding is good enough). But I am no language designer and the community has no interest in it. When I absolutely need macros, I will go elsewhere. One must wonder, when is

maximum integer length?

2006-06-18 Thread nate
Hey everyone, I am trying to figure out what is the largest integer I can. Lets say for 400 megabytes of memory at my disposal. I have tried a few things c = 2**100 d = 2**200 print c**d Obviously I didn't have enough memory for that, but I was able to c**3. (I think anyways, it is

Re: Extracting values from text file

2006-06-18 Thread Preben Randhol
On Sun, 18 Jun 2006 10:54:01 +0200 Mirco Wahab [EMAIL PROTECTED] wrote: For the other issue I stumbled upon: - no DWIM-ism (do what I mean) on 'value' addition a = '1' a += '1.' print a will print 11. and not 2., as in 'dynamically typed',

mapping None values to ''

2006-06-18 Thread micklee74
hi i wish to map None or None values to . eg a = None b = None c = None map( something , [i for i in [a,b,c] if i in (None,None) ]) I can't seem to find a way to put all values to . Can anyone help? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-18 Thread Roel Schroeven
Scott David Daniels schreef: I musunderstood you. I thought you were advocating that Python itself be built on gcc, obviating many compiler access issues. That wouldn't work because gcc cannot, by itself (as I understand it) get to all the nooks and crannies a windows developer may need to

Re: Cycles between package imports

2006-06-18 Thread John Roth
Martin Blais wrote: Hi I'm a tad confused over a problem involving cycles between packages. [lengthy example snipped] I don't see why the reference to module a.alice could not be available via the from syntax, even if it is still incompletely initialized at the time of import. Can

Re: mapping None values to ''

2006-06-18 Thread Tim Chase
i wish to map None or None values to . eg a = None b = None c = None map( something , [i for i in [a,b,c] if i in (None,None) ]) I can't seem to find a way to put all values to . Can anyone help? thanks I'd consider this a VeryBadIdea(tm). However, given Python's introspective

Re: mapping None values to ''

2006-06-18 Thread imho
[EMAIL PROTECTED] ha scritto: hi i wish to map None or None values to . eg a = None b = None c = None map( something , [i for i in [a,b,c] if i in (None,None) ]) I can't seem to find a way to put all values to . Can anyone help? thanks You already filtered [a,b,c] in the

Re: maximum integer length?

2006-06-18 Thread casevh
nate wrote: So I am just wondering how long an integer can be with 400 megabytes of memory. I guess this is a question of logic? each integer takes up a byte right? If I have 400 megabytes that would mean I could have a long integer with up to 419,430,400,000 integers? Python longs are

Re: mapping None values to ''

2006-06-18 Thread Gerard Flanagan
[EMAIL PROTECTED] wrote: hi i wish to map None or None values to . eg a = None b = None c = None map( something , [i for i in [a,b,c] if i in (None,None) ]) I can't seem to find a way to put all values to . Can anyone help? thanks a = [None, 'None', None] def filtre(x): if x is

Re: Detecting key presses

2006-06-18 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: Ok, I'm pretty new to python, so this might be a stupid question. I'm trying to write a simple text-based pong clone, and I can't figure out how to read key presses to move the paddles. I just need something that does the same thing as getch() and kbhit(). I can't

debugging in eclipse+pydev

2006-06-18 Thread yaru22
Hi. I'd like to know how to debug in eclipse+pydev. In the menu, Pydev Debug, there's Start Debug Server option, but I don't know how to use it. Few questions I have about debugging are: 1) how do i set a breakpoints in pydev? 2) how do i execute the code line by line? I mean... step into,

Re: maximum integer length?

2006-06-18 Thread Grant Edwards
On 2006-06-18, Sybren Stuvel [EMAIL PROTECTED] wrote: nate enlightened us with: Obviously I didn't have enough memory for that, but I was able to c**3. (I think anyways, it is still trying to display the result) So I am just wondering how long an integer can be with 400 megabytes of

Re: Extracting values from text file

2006-06-18 Thread Mirco Wahab
Thus spoke Preben Randhol (on 2006-06-18 13:34): On Sun, 18 Jun 2006 10:54:01 +0200 Mirco Wahab [EMAIL PROTECTED] wrote: - no DWIM-ism (do what I mean) on 'value' addition But you don't add two values. you add two strings. If you want numbers you must convert the strings. Why? At least -

Re: Date Subtraction

2006-06-18 Thread Cameron Laird
In article [EMAIL PROTECTED], Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: In [EMAIL PROTECTED], rsutradhar_python wrote: How to subtract date which is stored in string variable? Example: date1=2006-01-10 date2=2005-12-15 date = date1 - date2 should give me 25 but problem is that

Re: maximum integer length?

2006-06-18 Thread [EMAIL PROTECTED]
nate wrote: Hey everyone, I am trying to figure out what is the largest integer I can. Lets say for 400 megabytes of memory at my disposal. I have tried a few things c = 2**100 d = 2**200 print c**d Obviously I didn't have enough memory for that, but I was able to c**3. (I

Tetris

2006-06-18 Thread Devon G. Parks
I've been searching google and this group for a while now for a good tutorial on making a Tetris-style game in Python. I hear Tetris is a good starting point, and although I am fairly new to programming I think I would learn best if I had some code to experiment with because without a tutorial I

Re: Date Subtraction

2006-06-18 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Cameron Laird wrote: In article [EMAIL PROTECTED], Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: In [EMAIL PROTECTED], rsutradhar_python wrote: date1=2006-01-10 date2=2005-12-15 date = date1 - date2 should give me 25 but problem is that date1 and date2 datatype is

Re: Tetris

2006-06-18 Thread Rune Strand
Devon G. Parks wrote: I've been searching google and this group for a while now for a good tutorial on making a Tetris-style game in Python. I hear Tetris is a good starting point, and although I am fairly new to programming I think I would learn best if I had some code to experiment with

Re: Extracting values from text file

2006-06-18 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Mirco Wahab wrote: You see the picture? Pythons designer made the same mistake as the Java/Javascript designer - they use the _same_ operator (+) for number _addition_ and string _concatenation_, which is, imho, cumbersome. And ``+`` means also list/tuple concatenation

Seeking regex optimizer

2006-06-18 Thread Kay Schluehr
I have a list of strings ls = [s_1,s_2,...,s_n] and want to create a regular expression sx from it, such that sx.match(s) yields a SRE_Match object when s starts with an s_i for one i in [0,...,n]. There might be relations between those strings: s_k.startswith(s_1) - True or s_k.endswith(s_1) -

Re: code is data

2006-06-18 Thread Ravi Teja
Paddy wrote: Ravi Teja wrote: BJörn Lindqvist wrote: Personally, I would like to see macros in Python (actually Logix succeeding is good enough). But I am no language designer and the community has no interest in it. When I absolutely need macros, I will go elsewhere. One

Re: mapping None values to ''

2006-06-18 Thread Jean-Paul Calderone
On Sun, 18 Jun 2006 07:37:00 -0500, Tim Chase [EMAIL PROTECTED] wrote: i wish to map None or None values to . eg a = None b = None c = None map( something , [i for i in [a,b,c] if i in (None,None) ]) I can't seem to find a way to put all values to . Can anyone help? thanks I'd

Re: code is data

2006-06-18 Thread Fredrik Lundh
Ravi Teja wrote: Web frameworks, which seem to be the rage now in Python community could have benefited tremendously from Macro capabilities since they have a lot of boiler plate. they do? methinks you haven't done much web programming lately... /F --

Re: Extracting values from text file

2006-06-18 Thread Mirco Wahab
Thus spoke Marc 'BlackJack' Rintsch (on 2006-06-18 18:54): In [EMAIL PROTECTED], Mirco Wahab wrote: they use the _same_ operator (+) for number _addition_ and string _concatenation_, which is, imho, cumbersome. And ``+`` means also list/tuple concatenation and really anything for user

Chess module blog

2006-06-18 Thread Will McGugan
Hi folks, I have just blogged about a Python chess module of mine that I wrote a while back. I plan on using it for a commerical project, but making the module open source. So I would be interested in comments / advice reagarding programming style and also optimization.

Re: download file from intranet linux server to windows clients

2006-06-18 Thread Cameron Laird
In article [EMAIL PROTECTED], Luis P. Mendes [EMAIL PROTECTED] wrote: . . . I'm building an intranet web server in Linux for around 40 windows clients with Django. The problem is that I want to build an excel file based on

Re: maximum integer length?

2006-06-18 Thread Grant Edwards
On 2006-06-18, Grant Edwards [EMAIL PROTECTED] wrote: Que? An integer is just a whole number without fraction. What are you talking about? He's talking about decimal digits. Each decimal digit takes up 3.322 bits. A byte can hold about 2.4 digits. 400MB should be able to hold an integer

Passing data to system command

2006-06-18 Thread Chris Hieronymus
Hi, I have a bunch of x-y data contained in an array. I would like to plot the data using an external program (psxy in GMT). The plotting program takes x-y couples as standard input. How do I get the data into the system call? I used to do things in csh and awk, i.e., something like

aligning SGML to text

2006-06-18 Thread Steven Bethard
I have some plain text data and some SGML markup for that text that I need to align. (The SGML doesn't maintain the original whitespace, so I have to do some alignment; I can't just calculate the indices directly.) For example, some of my text looks like: TNF binding induces release of AIP1

Re: Extracting values from text file

2006-06-18 Thread Preben Randhol
On Sun, 18 Jun 2006 17:46:43 +0200 Mirco Wahab [EMAIL PROTECTED] wrote: Thus spoke Preben Randhol (on 2006-06-18 13:34): On Sun, 18 Jun 2006 10:54:01 +0200 Mirco Wahab [EMAIL PROTECTED] wrote: - no DWIM-ism (do what I mean) on 'value' addition But you don't add two values. you add two

Re: code is data

2006-06-18 Thread Ravi Teja
Fredrik Lundh wrote: Ravi Teja wrote: Web frameworks, which seem to be the rage now in Python community could have benefited tremendously from Macro capabilities since they have a lot of boiler plate. they do? methinks you haven't done much web programming lately... /F You blogged

Re: code is data

2006-06-18 Thread Roberto Bonvallet
Ravi Teja [EMAIL PROTECTED] said: I *like* 1..5 (ada, ruby) instead of range(5). If I had macros, I would have done it myself for *my* code. You can write your own preprocessor to handle things like that. -- Roberto Bonvallet -- http://mail.python.org/mailman/listinfo/python-list

Simple script to make .png thumbnails from .zip archive...

2006-06-18 Thread K P S
Hi. I'm looking for a small script that will take a .zip archive and pull the first .jpg from the archive and convert it to a .png. The reason for this is I want to have tuhmbnails for these archives in nautilus under gnome. I would like something similar to the following code, which will pull

Re: import hook

2006-06-18 Thread Jeremy Sanders
Thomas Heller wrote: There are also other ways. You could extend __path__ of foo, and the pkgutil module might also be useful. The __path__ trick worked nicely, thanks. Here is the code in case anyone is interested # Allow veusz to be run even if not installed into PYTHONPATH try: import

Re: debugging in eclipse+pydev

2006-06-18 Thread Fabio Zadrozny
Hi,On 18 Jun 2006 07:46:48 -0700, yaru22 [EMAIL PROTECTED] wrote: Hi.I'd like to know how to debug in eclipse+pydev.In the menu, Pydev Debug, there's Start Debug Server option, but Idon't know how to use it.Few questions I have about debugging are: 1) how do i set a breakpoints in pydev?2) how do

wxPython GUI designer

2006-06-18 Thread diffuser78
I am newbie learning wxPython. I tried using GUI designer called wxGlade. When it generated code I couldnt get the same level of flexibility as writing the code by oneself. Any view on what you think about using GUI designer tools. Every help is appreciated. --

Re: wxPython GUI designer

2006-06-18 Thread DH
[EMAIL PROTECTED] wrote: I am newbie learning wxPython. I tried using GUI designer called wxGlade. When it generated code I couldnt get the same level of flexibility as writing the code by oneself. Any view on what you think about using GUI designer tools. Every help is appreciated. In

Getting output from external programs...

2006-06-18 Thread ph0b0s
Hi, i'm making an mp3 conversion program in Python, but am kind of stuck now. The conversion routines work, using LAME, but now a i'm building a GUI with GLADE around it, and would like to be able to show LAME's output to the user in a status window in my gui.. but don't know where to

Do you know good source codes to study?

2006-06-18 Thread Rintaro Masuda
Hi guys, I am about to finish reading the book "Learning Python" which is published by O'reilly. This is a good book and I get basic knowledge of Python from it. I think it's time to read good source codes for the next step. It might be great to join some open source projects. So, do you

Re: Seeking regex optimizer

2006-06-18 Thread Paddy
Kay Schluehr wrote: I have a list of strings ls = [s_1,s_2,...,s_n] and want to create a regular expression sx from it, such that sx.match(s) yields a SRE_Match object when s starts with an s_i for one i in [0,...,n]. There might be relations between those strings: s_k.startswith(s_1) - True

Re: aligning SGML to text

2006-06-18 Thread Gerard Flanagan
Steven Bethard wrote: I have some plain text data and some SGML markup for that text that I need to align. (The SGML doesn't maintain the original whitespace, so I have to do some alignment; I can't just calculate the indices directly.) For example, some of my text looks like: TNF binding

Re: Simple script to make .png thumbnails from .zip archive...

2006-06-18 Thread hdante
Hi, I don't know zipfile by heart, but python official documentation is always good ( docs.python.org ). You need a loop in the file list like this: for file in zip: process(file) Unfortunatelly, there are too many ways to create a thumbnail from an image. I'll cite one, using the

Re: mapping None values to ''

2006-06-18 Thread Roberto Bonvallet
imho [EMAIL PROTECTED]: map(lambda x: , [i for i in [a,b,c] if i in (None,None) ]) You don't need map when using list comprehensions: [ for i in [a, b, c] if i in (None, None)] -- Roberto Bonvallet -- http://mail.python.org/mailman/listinfo/python-list

Re: USB support

2006-06-18 Thread rodmc
Thanks for this, I have managed to build PyUSB and install it in the relevant directory. However I get bus errors when I try the PlugUSB.py example. Does anyone know why this is likely to be the case? I am using Macpython 2.4, Libusb 0.1.12 and PyUSB 0.3.3 on an Intel based mac. Thanks in

any subway web dev experiences

2006-06-18 Thread a
subway is pythons ruby on rails competitor pls tell me if u hav any expereinces thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython GUI designer

2006-06-18 Thread diffuser78
Are there any good commercial project built with wx ? I am a newbie and a have to write a small application in Python. I was wondering which optin would be best for me in terms of least learning curve and getting the final product ASAP. Thanks DH wrote: In my opinion none of the wx* or gtk*

Re: Seeking regex optimizer

2006-06-18 Thread Kay Schluehr
Paddy wrote: Kay Schluehr wrote: I have a list of strings ls = [s_1,s_2,...,s_n] and want to create a regular expression sx from it, such that sx.match(s) yields a SRE_Match object when s starts with an s_i for one i in [0,...,n]. There might be relations between those strings:

Re: code is data

2006-06-18 Thread BJörn Lindqvist
community has no interest in it. When I absolutely need macros, I will go elsewhere. I *like* 1..5 (ada, ruby) instead of range(5). If I had macros, I would have done it myself for *my* code. I think this example more is a symptom of a childish need to get things your way than of a

Re: Passing data to system command

2006-06-18 Thread hdante
Should be like this: from subprocess import Popen, PIPE my_output = file('output1.ps', 'w') p1 = Popen([psxy], stdin = PIPE, stdout=my_output) p1.stdin.write(my_format(array)) p1.communicate() my_output.close() I've never used that, though, please tell us if it worked. Chris Hieronymus

Re: Passing data to system command

2006-06-18 Thread faulkner
import os, subprocess xys = [[1,2],[3,4]] msg = '\n'.join([str(x) + ',' + str(y) for x, y in xys]) os.popen('command', 'w').write(msg) os.popen2('command')[0].write(msg) p = subprocess.Popen('command', stdin=subprocess.PIPE) p.stdin.write(msg) help(subprocess) help(os.popen) help(os.popen3)

Re: Seeking regex optimizer

2006-06-18 Thread John Machin
On 19/06/2006 6:30 AM, Paddy wrote: Kay Schluehr wrote: I have a list of strings ls = [s_1,s_2,...,s_n] and want to create a regular expression sx from it, such that sx.match(s) yields a SRE_Match object when s starts with an s_i for one i in [0,...,n]. There might be relations between those

Re: Passing data to system command

2006-06-18 Thread Cameron Laird
In article [EMAIL PROTECTED], Chris Hieronymus [EMAIL PROTECTED] wrote: . . . input. How do I get the data into the system call? I used to do things in csh and awk, i.e., something like awk '{some manipulations here;

Re: Seeking regex optimizer

2006-06-18 Thread Mirco Wahab
Thus spoke Kay Schluehr (on 2006-06-18 19:07): I have a list of strings ls = [s_1,s_2,...,s_n] and want to create a regular expression sx from it, such that sx.match(s) yields a SRE_Match object when s starts with an s_i for one i in [0,...,n]. There might be relations between those strings:

Re: Extracting values from text file

2006-06-18 Thread Mirco Wahab
Thus spoke Dennis Lee Bieber (on 2006-06-18 22:37): The only cure for that is complete and painful bone marrow transplant G As a start, after six months of no PERL go back and try reading some of your code. Uhhh, this is like giving the mounted knight a longbow and push him onto the

Re: any subway web dev experiences

2006-06-18 Thread George Sakkis
a wrote: subway is pythons ruby on rails competitor pls tell me if u hav any expereinces thanks u wanna know reils n subway ur so kewl omg! no expereinces watsoevah, sori dud PS: If you want to be taken seriously, put at least some effort to make a readable english sentence. This is

Re: Seeking regex optimizer

2006-06-18 Thread Paddy
Kay Schluehr wrote: SNIP with reverse sorting as in your proposal.The naive solution is easy to generate but I'm sceptical about its cost effectiveness. On the other hand I do not want to investigate this matter if somebody else already did it thoroughly. Regards, Kay Hi Kay, The only way

Re: mapping None values to ''

2006-06-18 Thread Max Erickson
Roberto Bonvallet [EMAIL PROTECTED] wrote: You don't need map when using list comprehensions: [ for i in [a, b, c] if i in (None, None)] That loses list elements that aren't in the tests: a=7 b=None c=None [ for i in [a,b,c] if i in (None,None)] ['', ''] max --

Re: mapping None values to ''

2006-06-18 Thread Scott David Daniels
Roberto Bonvallet wrote: imho [EMAIL PROTECTED]: map(lambda x: , [i for i in [a,b,c] if i in (None,None) ]) You don't need map when using list comprehensions: [ for i in [a, b, c] if i in (None, None)] More like: [(i, )[i in (None, None)] for i in [a,b,c]] -- --Scott David Daniels

Re: Simple script to make .png thumbnails from .zip archive...

2006-06-18 Thread Scott David Daniels
hdante wrote: there are too many ways to create a thumbnail from an image. I'll cite one, using the python image external module, that I've found to be very easy: import Image def process(file): try: image = Image.open(file) image.thumbnail ((128,128), Image.ANTIALIAS)

Re: Getting output from external programs...

2006-06-18 Thread Ten
On Sunday 18 June 2006 21:28, ph0b0s wrote: Hi, i'm making an mp3 conversion program in Python, but am kind of stuck now. The conversion routines work, using LAME, but now a i'm building a GUI  with GLADE around it, and would like to be able to show LAME's output  to the user in a

Re: Popen3 on Windows

2006-06-18 Thread reed
Jeffrey Barish wrote: I have an application that has been working fine on Linux, but now I need to port it to Windows XP. The program uses Popen3 to run another program. I use Popen3 so that I can access the pid attribute, which I use to kill the auxiliary program when necessary. Popen3

Python with Eclipse

2006-06-18 Thread Stan Cook
I've been trying to use Eclipse with Python on Linux for a while and have noticed something odd. After running the code or debugging a few times, its responsiveness gets really bad. Upon checking the equivalent of the task manager, I find several instances of Python running. When I kill

Re: Chess module blog

2006-06-18 Thread faulkner
make psyco entirely optional by putting it in a try/except block. change INITIAL_BOARD to be a triple-quoted string. you seem to mostly follow pep8, which is all most folks ask, but i really like this style for docstrings: def test(): ''' hello, this text and the quotes line up

Re: aligning SGML to text

2006-06-18 Thread Steven Bethard
Gerard Flanagan wrote: Steven Bethard wrote: I have some plain text data and some SGML markup for that text that I need to align. (The SGML doesn't maintain the original whitespace, so I have to do some alignment; I can't just calculate the indices directly.) For example, some of my text

Re: Getting output from external programs...

2006-06-18 Thread Cameron Laird
In article [EMAIL PROTECTED], Ten [EMAIL PROTECTED] wrote: . . . You can do this in various ways, ranging from the very simple and not very good from commands import getoutput x=getoutput(command) - to your more common

Re: mapping None values to ''

2006-06-18 Thread Steven Bethard
Scott David Daniels wrote: Roberto Bonvallet wrote: imho [EMAIL PROTECTED]: map(lambda x: , [i for i in [a,b,c] if i in (None,None) ]) You don't need map when using list comprehensions: [ for i in [a, b, c] if i in (None, None)] More like: [(i, )[i in (None, None)] for i in

Change value of element in list

2006-06-18 Thread O Plameras
Hi, I'm doing python tutorial, http://docs.python.org/tut/node5.html and I have these, lists = ['spam', 'eggs', 100, 1234] lists[2] = lists[2] + 23 I expected this, lists = ['spam', 'eggs', 123, 1234] but got this, lists = ['spam', 'eggs', 100, 1234] What's my problem here ? I have Fedora

Re: Change value of element in list

2006-06-18 Thread O Plameras
O Plameras wrote: Hi, I'm doing python tutorial, http://docs.python.org/tut/node5.html and I have these, lists = ['spam', 'eggs', 100, 1234] lists[2] = lists[2] + 23 I expected this, lists = ['spam', 'eggs', 123, 1234] but got this, lists = ['spam', 'eggs', 100, 1234] What's

Re: aligning SGML to text

2006-06-18 Thread Steven Bethard
Steven Bethard wrote: I have some plain text data and some SGML markup for that text that I need to align. (The SGML doesn't maintain the original whitespace, so I have to do some alignment; I can't just calculate the indices directly.) [snip] Note that the SGML inserts spaces not only

ANN: pyfcp

2006-06-18 Thread aum
Hi all, pyfcp is a suite of tools, including a package, modules and applications, for accessing the Freenet network. What is freenet? Freenet - www.freenetproject.org - is a 'darknet' which supports anonymous publication and retrieval of websites and other media, in a way that makes it

[ python-Bugs-1508253 ] logging fileConfig swallows handler exception

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

[ python-Bugs-1437051 ] continue in .pdbrc has no effect

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

[ python-Bugs-1508253 ] logging fileConfig swallows handler exception

2006-06-18 Thread SourceForge.net
Bugs item #1508253, was opened at 2006-06-18 12:33 Message generated for change (Settings changed) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1508253group_id=5470 Please note that this message will contain a full copy of the comment