Songbird,
[post ok'd by them]
=this time I've remembered to hit ReplyAll. Duh!
There are plenty of Python books 'about'. Beyond the 'basics' they tend to
become more topical, eg Scientific, Financial, Data Analysis... so what
suits you might not me.
i'm pretty well read so i can adapt
Again, _please_ use just one list: tutor or python-list. I've have
directed replies to the tutor list. - Cameron
On 04Dec2018 04:05, srinivasan wrote:
Thanks a lot for your quick responses, Could you please let me know
when the device is not enabled I get the error " I get the below error
sayi
Dear Mr. Cameron
Thanks a lot for your quick responses, Could you please let me know
when the device is not enabled I get the error " I get the below error
saying "IndexError: list index out of range""
Code snippet:
cmd = "sudo hcitool scan"
res = self._helper.execute_cmd_output_string(cmd)
print
Note: post returned to the tutor list.
Please DO NOT cross post to multiple lists (i.e. tutor and python-list,
as you have). This makes things difficult for people who are not on both
lists. Pick a _single_ list, and use that.
On 04Dec2018 02:46, srinivasan wrote:
Could you please help me,
Dear Python Experts,
Could you please help me, as am still learning python syntax, how can
I add conditional check for empty string after running "hcitool scan"
(ie., when there is no Bluetooth devices discovered) ie., after the
word "Scanning..." , when there are no Bluetooth discover-able
devic
On 2018-12-03, Jon Ribbens wrote:
> On 2018-12-03, Grant Edwards wrote:
>> How does one reset a TCP connection on Linux? Note that I want to
>> reset the connection, not close it.
>
> Something like the following should work I believe, although I have
> not tested it:
>
> sock.setsockopt(
>
On 2018-12-03, Grant Edwards wrote:
> How does one reset a TCP connection on Linux? Note that I want to
> reset the connection, not close it.
Something like the following should work I believe, although I have
not tested it:
sock.setsockopt(
socket.SOL_SOCKET,
socket.SO_LING
Hi!
I have an environment created with conda (anaconda3).
There is a package that is unavailable in conda.
Installing it with pip3, with conda env activated, the installation goes
to .local/bin and .local/lib in my home dir (BTW I'm running linux
kubuntu 18.04).
This also has a bad side effect! It
How does one reset a TCP connection on Linux? Note that I want to
reset the connection, not close it.
I need to emulate the rude behavior of a particular app (that's
sending the RST packet) in order to try to find a bug another app (the
one that's receiving the RST).
--
Grant Edwards
Morten,
I did not mean that programming languages don’t already have lots of infinities
on board. There are plenty of infinite loops that have no terminating
conditions and the process continues until it is actively killed. There are
recursive function calls that may miss the call to stop be
A person wrote via e-mail:
> songbird wrote:
>> Dennis Lee Bieber wrote:
...
[post ok'd by them]
> >my goal in learning python was to use it as a way of
> > picking up OOP concepts in a more concrete way (theory
> > alone doesn't give me enough hands on the bits i need so
> > i tend to just
boB Stepp wrote:
...
> You might want to look at "Python 3 -- Object Oriented Programming" by
> Dusty Phillips. It is copyright 2010, so it won't have the latest,
> greatest Python 3 features, but the book's entire focus is teaching
> OOP in a Python 3 context.
thanks, i'll put it on the list t
On 01/12/2018 10:10, Marko Rauhamaa wrote:
In my case, I need an explicit terminator marker to know when a JSON
value is complete. For example, if I should read from a socket:
123
[snip]
You're having to invent a transport protocol to encapsulate your data
protocol because you don't othe
huey.y.ji...@gmail.com wrote:
> Hi Folks,
>
> I need to run an infinite loop on a Menu button, like this:
>
> from Tkinter import *
>
> def run_job():
> i = 0
> while 1:
> i = i + 1
> if i > 100:
> break
> ...
>
> root = Tk()
> menu = Menu(root)
> r
On 03/12/2018 08:58, huey.y.ji...@gmail.com wrote:
> Hi Folks,
>
> I need to run an infinite loop on a Menu button, like this:
>
> from Tkinter import *
>
> def run_job():
> i = 0
> while 1:
> i = i + 1
> if i > 100:
> break
> ...
>
> root = Tk()
> m
duncan smith wrote:
> On 02/12/2018 18:36, Peter Otten wrote:
>> class CommonMethods:
>> __add__ = add
> Ah, I could just bind them within the class,
>
> mean = mean
> max = max etc.
>
> but I'd somehow convinced myself that didn't work. As the names are the
> same I'd probably sti
Hi Folks,
I need to run an infinite loop on a Menu button, like this:
from Tkinter import *
def run_job():
i = 0
while 1:
i = i + 1
if i > 100:
break
...
root = Tk()
menu = Menu(root)
root.config(menu=menu)
filemenu = Menu(menu)
menu.add_cascade(labe
17 matches
Mail list logo