setuptools setup.py commands are unintuitive and undiscoverable (--help-commands should replace --help)

2018-04-27 Thread jimbo1qaz
Frequently I have encountered projects packaged using setuptools, with a setup.py. To find out how to install it, I usually turned to Stack Overflow (https://stackoverflow.com/a/1472014) which doesn't explain what options exist or do. Surprisingly, neither "setup.py" nor "setup.py --help" doesn't

Re: List Problem

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 2:31:48 PM UTC-7, jimbo1qaz wrote: > I have a nested list. Whenever I make a copy of the list, changes in one > affect the other, even when I use list(orig) or even copy the sublists one by > one. I have to manually copy each cell over for it to work. >

Re: List Problem

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 2:31:48 PM UTC-7, jimbo1qaz wrote: > I have a nested list. Whenever I make a copy of the list, changes in one > affect the other, even when I use list(orig) or even copy the sublists one by > one. I have to manually copy each cell over for it to work. >

List Problem

2012-09-23 Thread jimbo1qaz
I have a nested list. Whenever I make a copy of the list, changes in one affect the other, even when I use list(orig) or even copy the sublists one by one. I have to manually copy each cell over for it to work. Link to broken code: http://jimbopy.pastebay.net/1090401 -- http://mail.python.org/ma

Re: 'str' object does not support item assignment

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 11:48:11 AM UTC-7, MRAB wrote: > On 2012-09-23 19:31, jimbo1qaz wrote: > > > spots[y][x]=mark fails with a "'str' object does not support item > > assignment" error,even though: > > >>>> a=[["a"]] &

Re: 'str' object does not support item assignment

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 11:31:41 AM UTC-7, jimbo1qaz wrote: > spots[y][x]=mark fails with a "'str' object does not support item assignment" > error,even though: > > >>> a=[["a"]] > > >>> a[0][0]="b" > >

'str' object does not support item assignment

2012-09-23 Thread jimbo1qaz
spots[y][x]=mark fails with a "'str' object does not support item assignment" error,even though: >>> a=[["a"]] >>> a[0][0]="b" and: >>> a=[["a"]] >>> a[0][0]=100 both work. Spots is a nested list created as a copy of another list. -- http://mail.python.org/mailman/listinfo/python-list

Re: For Counter Variable

2012-09-23 Thread jimbo1qaz
On Sunday, September 23, 2012 9:36:19 AM UTC-7, jimbo1qaz wrote: > Am I missing something obvious, or do I have to manually put in a counter in > the for loops? That's a very basic request, but I couldn't find anything in > the documentation. Ya, they should really give a

For Counter Variable

2012-09-23 Thread jimbo1qaz
Am I missing something obvious, or do I have to manually put in a counter in the for loops? That's a very basic request, but I couldn't find anything in the documentation. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bitshifts and "And" vs Floor-division and Modular

2012-09-06 Thread jimbo1qaz
On Thursday, September 6, 2012 5:01:12 PM UTC-7, jimbo1qaz wrote: > Is it faster to use bitshifts or floor division? And which is better, & or %? > > All divisors and mods are power of 2, so are binary operations faster? And > are they considered bad style? OK, I decided t

Re: Bitshifts and "And" vs Floor-division and Modular

2012-09-06 Thread jimbo1qaz
On Thursday, September 6, 2012 5:30:05 PM UTC-7, Mark Lawrence wrote: > On 07/09/2012 01:01, jimbo1qaz wrote: > > > Is it faster to use bitshifts or floor division? And which is better, & or > > %? > > > All divisors and mods are power of 2, so are binary opera

Bitshifts and "And" vs Floor-division and Modular

2012-09-06 Thread jimbo1qaz
Is it faster to use bitshifts or floor division? And which is better, & or %? All divisors and mods are power of 2, so are binary operations faster? And are they considered bad style? -- http://mail.python.org/mailman/listinfo/python-list

Zooming and Editing TkInter Images

2012-09-04 Thread jimbo1qaz
How do I zoom in on a tkinter image? And how do I change the selected pixel to a changeable color when the user clicks or drags? -- http://mail.python.org/mailman/listinfo/python-list