Unable to remove python from my computer.

2018-11-06 Thread Varshit Jain
Hi Python Support Team, I just want to remove python 3.6.6 from my computer. I am unable to do it. Please find attached video that describe my problem. Suggest me solution / Steps to remove python from my PC. Regards, Varshit Jain -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to remove python from my computer.

2018-11-06 Thread Thomas Jollans
On 2018-11-06 10:05, Varshit Jain wrote: > Hi Python Support Team, > > > I just want to remove python 3.6.6 from my computer. I am unable to do > it. Please find attached video that describe my problem. Use your words, friend! (this list is text-only) -- https://mail.python.org/mailman/listin

Re: Unable to remove python from my computer.

2018-11-06 Thread Rhodri James
On 06/11/2018 09:25, Thomas Jollans wrote: On 2018-11-06 10:05, Varshit Jain wrote: Hi Python Support Team, I just want to remove python 3.6.6 from my computer. I am unable to do it. Please find attached video that describe my problem. Use your words, friend! (this list is text-only) More

SyntaxError: can't assign to literal while using ""blkid -o export %s | grep 'TYPE' | cut -d"=" -f3" % (fs)" using subprocess module in Python

2018-11-06 Thread srinivasan
Dear Python Experts Team, As am newbie to python development, I am trying to use the below function to get verify the filesystem type of the SD card parition using bash command in python using subprocess module, I ma seeing the below Error "SyntaxError: can't assign to literal" *CODE:* ** im

Re: SyntaxError: can't assign to literal while using ""blkid -o export %s | grep 'TYPE' | cut -d"=" -f3" % (fs)" using subprocess module in Python

2018-11-06 Thread Rhodri James
On 06/11/2018 18:10, srinivasan wrote: root:~/qa/test_library# python3 sd.py File "sd.py", line 99 *cmd = "blkid -o export %s | grep 'TYPE' | cut -d"=" -f3" % (fs)* * ^* *SyntaxError: can't assign to literal* Look at the 'cut' element of the pipeline. You have used double quotes

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-11-06 Thread Lie Ryan
> I like to step through my code line by line, > it's impossible to do it with > object-oriented programming language. I suggest pudb, it's a curses based debugger, which is nicer than pdb, but doesn't require tedious IDE setup. > Also, there's no good REPL IDE. Not quite sure what you meant b

Re: Asyncio tasks getting cancelled

2018-11-06 Thread Ian Kelly
n Mon, Nov 5, 2018 at 8:43 PM wrote: > > On Mon, Nov 05, 2018 at 07:15:04PM -0700, Ian Kelly wrote: > > > For context: > > > https://github.com/ldo/dbussy/issues/13 > > > https://gist.github.com/tu500/3232fe03bd1d85b1529c558f920b8e43 > > > > > > It really feels like asyncio is loosing strong refer

Re: Asyncio tasks getting cancelled

2018-11-06 Thread Ian Kelly
On Tue, Nov 6, 2018 at 3:39 PM Ian Kelly wrote: > > n Mon, Nov 5, 2018 at 8:43 PM wrote: > > What I meant was, the error message is specific to futures in the > > 'PENDING' state. Which should be set to 'RUNNING' before any actions > > occur. So it appears the tasks weren't started at all. > > Ah

int.to_bytes() for a single byte

2018-11-06 Thread jladasky
I'm using Python 3.6. I have a need to convert several small integers into single bytes. As far as I can tell from reading through the Python docs, the correct way to accomplish this task is: b = i.to_bytes(1, "big") This seems to work, but I find it cumbersome. I have to supply the byteorde

Re: int.to_bytes() for a single byte

2018-11-06 Thread bob gailer
On 11/6/2018 9:30 PM, jlada...@itu.edu wrote: I'm using Python 3.6. I have a need to convert several small integers into single bytes. As far as I can tell from reading through the Python docs, the correct way to accomplish this task is: b = i.to_bytes(1, "big") This seems to work, but I fi

Re: int.to_bytes() for a single byte

2018-11-06 Thread Terry Reedy
On 11/6/2018 9:30 PM, jlada...@itu.edu wrote: b = i.to_bytes(1, "big") Is there another function which provides a more logical interface to this straightforward task? Yes >>> 33 .to_bytes(1, 'big') b'!' >>> bytes((33,)) b'!' See >>> bytes( # in IDLE or >>> help(bytes) -- Terry Jan Reedy

Re: int.to_bytes() for a single byte

2018-11-06 Thread jladasky
On Tuesday, November 6, 2018 at 7:19:09 PM UTC-8, Terry Reedy wrote: > On 11/6/2018 9:30 PM, j...y@it.u wrote: > > > b = i.to_bytes(1, "big") > > > >Is there another function which provides a more logical interface to this > >straightforward task? > > Yes > >>> 33 .to_bytes(1, 'big') > b'!' >