Re: Can my python program send me a text message?

2019-03-19 Thread Terry Reedy
On 3/19/2019 10:56 PM, Steve wrote: Thanks for all the suggestions. It is going to take a while to sift through them. I will continue to watch for more discussion and will check back in if/when I get something working or if I get stuck. Steve Footnote: Fight the hand that feeds the hate. --

RE: Can my python program send me a text message?

2019-03-19 Thread Steve
Thanks for all the suggestions. It is going to take a while to sift through them. I will continue to watch for more discussion and will check back in if/when I get something working or if I get stuck. Steve Footnote: Fight the hand that feeds the hate. -Original Message- From: Python-

Re: REPL, global, and local scoping

2019-03-19 Thread Chris Angelico
On Wed, Mar 20, 2019 at 1:31 PM wrote: > > On Tuesday, March 19, 2019 at 3:48:27 PM UTC-5, Chris Angelico wrote: > > > I can see in vartest() that it's using a LOAD_GLOBAL for that, yet > > > first() and second() don't go searching upstairs for a meow variable. > > > What is the basis behind thi

Re: REPL, global, and local scoping

2019-03-19 Thread adam . preble
On Tuesday, March 19, 2019 at 3:48:27 PM UTC-5, Chris Angelico wrote: > > I can see in vartest() that it's using a LOAD_GLOBAL for that, yet first() > > and second() don't go searching upstairs for a meow variable. What is the > > basis behind this? > > > > Both first() and second() assign to th

Re: I wrote a free book about TDD and clean architecture in Python

2019-03-19 Thread DL Neil
On 20/03/19 7:18 AM, Leonardo Giordani wrote: Ha ha ha, yes I get it! =) I'm sorry, that depends entirely on the LeanPub processing chain (I believe, I'll have a look just to be sure). I hope the book will be useful even with this little issue. Thanks for reading it! To be fair, that was one

Re: Reversible malformed UTF-8 to malformed UTF-16 encoding

2019-03-19 Thread Florian Weimer
* MRAB: > On 2019-03-19 20:32, Florian Weimer wrote: >> I've seen occasional proposals like this one coming up: >> >> | I therefore suggested 1999-11-02 on the unic...@unicode.org mailing >> | list the following approach. Instead of using U+FFFD, simply encode >> | malformed UTF-8 sequences as ma

Re: tkinter

2019-03-19 Thread MRAB
On 2019-03-19 19:46, Informatico de Neurodesarrollo wrote: Thanks for all yours recommendations, finally I was successfully finished my first project about tkinter (and I hope, not the last). Here is the finally code: #!/usr/bin/env python # #  DetectConn_2_0.py # # from tkinter import * impor

Re: Reversible malformed UTF-8 to malformed UTF-16 encoding

2019-03-19 Thread MRAB
On 2019-03-19 20:32, Florian Weimer wrote: I've seen occasional proposals like this one coming up: | I therefore suggested 1999-11-02 on the unic...@unicode.org mailing | list the following approach. Instead of using U+FFFD, simply encode | malformed UTF-8 sequences as malformed UTF-16 sequences

Re: tkinter

2019-03-19 Thread Informatico de Neurodesarrollo
Thanks for all yours recommendations, finally I was successfully finished my first project about tkinter (and I hope, not the last). Here is the finally code: #!/usr/bin/env python # #  DetectConn_2_0.py # # from tkinter import * import time, socket def isInternet():         testConn = socket

Re: I wrote a free book about TDD and clean architecture in Python

2019-03-19 Thread Leonardo Giordani
Ha ha ha, yes I get it! =) I'm sorry, that depends entirely on the LeanPub processing chain (I believe, I'll have a look just to be sure). I hope the book will be useful even with this little issue. Thanks for reading it! -- https://mail.python.org/mailman/listinfo/python-list

Re: REPL, global, and local scoping

2019-03-19 Thread Chris Angelico
On Wed, Mar 20, 2019 at 7:23 AM wrote: > > I got hit on the head and decided to try to write something of a Python > interpreter for embedding. I'm starting to get into the ugly stuff like > scoping. This has been a good way to learn the real deep details of the > language. Here's a situation:

Reversible malformed UTF-8 to malformed UTF-16 encoding

2019-03-19 Thread Florian Weimer
I've seen occasional proposals like this one coming up: | I therefore suggested 1999-11-02 on the unic...@unicode.org mailing | list the following approach. Instead of using U+FFFD, simply encode | malformed UTF-8 sequences as malformed UTF-16 sequences. Malformed | UTF-8 sequences consist excludi

REPL, global, and local scoping

2019-03-19 Thread adam . preble
I got hit on the head and decided to try to write something of a Python interpreter for embedding. I'm starting to get into the ugly stuff like scoping. This has been a good way to learn the real deep details of the language. Here's a situation: >>> meow = 10 >>> def vartest(): ... x = 1 ..

Re: Block Ctrl+S while running Python script at Windows console?

2019-03-19 Thread Peter J. Holzer
On 2019-03-19 14:22:10 -, Grant Edwards wrote: > On 2019-03-18, Malcolm Greene wrote: > > Wondering if there's a way to have my Python scripts ignore these > > Ctrl+S signals or if this behavior is outside of my Python script's > > control. > > This has nothing to do with Python does it? > >

Re: Can my python program send me a text message?

2019-03-19 Thread Dan Sommers
On 3/19/19 2:35 PM, Chris Angelico wrote: On Wed, Mar 20, 2019 at 6:31 AM Steve wrote: I have a program that triggers a reminder timer. When that timer is done, I would like to receive a text message on my phone to tell me that it is time to reset the experiment. Can this be done using Pyt

Re: Can my python program send me a text message?

2019-03-19 Thread Larry Martell
On Tue, Mar 19, 2019 at 3:30 PM Steve wrote: > > I have a program that triggers a reminder timer. When that timer is done, I > would like to receive a text message on my phone to tell me that it is time > to reset the experiment. > > Can this be done using Python? You can send a text with emai

Re: Can my python program send me a text message?

2019-03-19 Thread Chris Angelico
On Wed, Mar 20, 2019 at 6:31 AM Steve wrote: > > I have a program that triggers a reminder timer. When that timer is done, I > would like to receive a text message on my phone to tell me that it is time > to reset the experiment. > > Can this be done using Python? > Yes! There are APIs that wi

Re: Can my python program send me a text message?

2019-03-19 Thread Abdur-Rahmaan Janhangeer
- 1) use pi with gsm module. or - 2) find some free sms api for python then use Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Can my python program send me a text message?

2019-03-19 Thread Steve
I have a program that triggers a reminder timer. When that timer is done, I would like to receive a text message on my phone to tell me that it is time to reset the experiment. Can this be done using Python? Steve -- https://mail.python.org/mailman/listinfo/python-list

Re: Why can't access the property setter using the super?

2019-03-19 Thread Chris Angelico
On Wed, Mar 20, 2019 at 6:17 AM Arup Rakshit wrote: > > Hello Ian, > > That seems like too much code involved. Is this how we do write inheritance > in Python. Coming from Ruby and JS world I find Python inheritance mechanism > confusing so far. :/ > > Ian gave the longhand form, but you can om

Re: Why can't access the property setter using the super?

2019-03-19 Thread Arup Rakshit
Hello Ian, That seems like too much code involved. Is this how we do write inheritance in Python. Coming from Ruby and JS world I find Python inheritance mechanism confusing so far. :/ Thanks, Arup Rakshit a...@zeit.io > On 19-Mar-2019, at 9:32 PM, Ian Kelly wrote: > > Here's the thing:

CheetahTemplate 3.2.1

2019-03-19 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.2.1, the first bugfix release of branch 3.2 of CheetahTemplate3. What's new in CheetahTemplate3 == Contributor for this release is Nicola Soranzo. Minor features: - Changed LoadTemplate.loadTemplate{Module,Class}: the

Re: I wrote a free book about TDD and clean architecture in Python

2019-03-19 Thread Philippe Dixon
I actually came across this book last week looking for resources on best practices for structuring a python app. I plan on leaning on the material heavily as I've been tasked with converting some Jupyter Notebooks to a stand-alone application at work. Thanks for sharing this Leonardo. On Mon, Ma

Re: I wrote a free book about TDD and clean architecture in Python

2019-03-19 Thread DL Neil
On 17/03/19 12:29 AM, giordani.leona...@gmail.com wrote: I published on Leanpub a free book, "Clean Architectures in Python". It's a humble attempt to organise and expand some posts I published on my blog in the last years. You can find it here: https://leanpub.com/clean-architectures-in-python

Re: Block Ctrl+S while running Python script at Windows console?

2019-03-19 Thread eryk sun
On 3/19/19, Grant Edwards wrote: > > This has nothing to do with Python does it? > > Isn't Python is just writing to stdout and those write calls are > blocking due because the terminal emulator has stopped reading It turns out the original poster had quick-edit mode enabled and the pause was due

Re: Why can't access the property setter using the super?

2019-03-19 Thread Ian Kelly
Here's the thing: the result of calling super() is not an instance of the base class. It's just a proxy object with a __getattribute__ implementation that looks up class attributes in the base class, and knows how to pass self to methods to simulate calling base class methods on an instance. This w

Why can't access the property setter using the super?

2019-03-19 Thread Arup Rakshit
I have 3 classes which are connected to them through inheritance as you see in the below code: import iso6346 class ShippingContainer: """docstring for ShippingContainer""" HEIGHT_FT = 8.5 WIDTH_FT = 8.0 next_serial = 1337 @classmethod def _get_next_serial(cls):

Re: Block Ctrl+S while running Python script at Windows console?

2019-03-19 Thread Malcolm Greene
> This has nothing to do with Python does it? Isn't Python is just writing to > stdout and those write calls are blocking due because the terminal emulator > has stopped reading the other end of the > pipe/pty/queue/buffer/whatever-it's-called-in-windows? You're right. But I wasn't sure. I know

Re: Block Ctrl+S while running Python script at Windows console?

2019-03-19 Thread Grant Edwards
On 2019-03-18, Malcolm Greene wrote: > Wondering if there's a way to have my Python scripts ignore these > Ctrl+S signals or if this behavior is outside of my Python script's > control. This has nothing to do with Python does it? Isn't Python is just writing to stdout and those write calls are

Re: Reasoning of calling a method on class object instead of class instance object

2019-03-19 Thread Peter Otten
Arup Rakshit wrote: > In this piece of code: > > class RefrigeratedShippingContainer(ShippingContainer): > @staticmethod > def _c_to_f(celsius): > return celsius * 9/5 + 32 > @property > def fahrenheit(self): > return RefrigeratedShippingContainer._c_to_f(self.ce

Re: running "python -i" in subprocess shows no prompt

2019-03-19 Thread finnkochinski
Thanks for letting me know that the list takes no attachments. Please find my modified code at the end of this email. I found one problem. I was reading streams with "proc.stderr.readline()", which never returned, because only ">>> " was sent to stderr repeatedly, "\n" only going to stdout. Now

Re: tkinter

2019-03-19 Thread Peter Otten
Terry Reedy wrote: > On 3/18/2019 12:00 PM, Informatico de Neurodesarrollo wrote: >> Hello friends: >> >> I am a beginner on programming in python. >> >> I want make a simple program that test continuously (every 5 seg) the >> connection to internet and change the background color when are not

Re: Block Ctrl+S while running Python script at Windows console?

2019-03-19 Thread eryk sun
On 3/18/19, Dennis Lee Bieber wrote: > On Mon, 18 Mar 2019 14:38:40 -0400, "Malcolm Greene" > declaimed the following: > >> >>Wondering if there's a way to have my Python scripts ignore these Ctrl+S >> signals or if this behavior is outside of my Python script's control. If >> there's a way to di