Re: Witch editor to use!

2007-11-30 Thread barberomarcelo
On 30 nov, 06:10, SMALLp <[EMAIL PROTECTED]> wrote: > Hello! > > I'm new in wxPython and before i start doing anything I have one qustion. > > Shoul I use some of editors like boa, spe or shoud i use my favorite > text editor! > > i used IDLE on windows and it seamd nice. Now i have linux installed

Re: Can I do this with list comprehension?

2006-08-23 Thread barberomarcelo
Thanks a lot to everybody. Marcelo -- http://mail.python.org/mailman/listinfo/python-list

Can I do this with list comprehension?

2006-08-22 Thread barberomarcelo
Let's say I have two lists: a = [0, 1, 0, 1, 1, 0] b = [2, 4, 6, 8, 10, 12] I want a list comprehension that has the elements in b where a[element] == 1. That's to say, in the example above, the result must be: [4, 8, 10] Any hints? Marcelo -- http://mail.python.org/mailman/listinfo/python-l

Re: When writing text. . .

2006-07-14 Thread barberomarcelo
Or: win.write(r'run=C:\windows\aawin.bat') The r before the string makes it a "raw" string, where \ are not interpreted as escape characters. Marcelo Daniel Nogradi ha escrito: > > Hey I'm pretty new to python and I have a question. I'm trying to write: > > "[BOOT] > > run=C:\windows\aawin.ba

Add a method to the int class

2006-07-09 Thread barberomarcelo
How can I add a method to the int class? -- http://mail.python.org/mailman/listinfo/python-list

Re: List behaviour

2006-05-17 Thread barberomarcelo
Thank you very much. It was clear. -- http://mail.python.org/mailman/listinfo/python-list

List behaviour

2006-05-17 Thread barberomarcelo
Maybe I'm missing something but the latter is not the behaviour I'm expecting: >>> a = [[1,2,3,4], [5,6,7,8]] >>> b = a[:] >>> b [[1, 2, 3, 4], [5, 6, 7, 8]] >>> a == b True >>> a is b False >>> for i in range(len(b)): ... for x in range(4): ... b[i][x] = b[i][x] + 10 ... >>> b [[11, 1