Re: List of methods affected by 'Special method lookup'

2019-01-28 Thread Terry Reedy
On 1/28/2019 11:14 AM, Roberto Martínez wrote: Hi, the documentation about Special method lookup claims: "For custom classes, implicit invocations of special methods are only guaranteed to work correctly if defined on an

Re: time.strftime question on 0 as argument

2019-01-28 Thread eryk sun
On 1/28/19, David Raymond wrote: > > In the docs there is > "0 is a legal argument for any position in the time tuple; if it is normally > illegal the value is forced to a correct one." The POSIX specification for strftime only states that "[i]f any of the specified values are outside the normal

meta protocol protocol

2019-01-28 Thread Avi Gross
I brought up a topic earlier and am now taking a different slant. I am thinking of the wisdom of having a protocol on announcing what protocols you implement. Python has many protocols that are now part of the language and I suspect many more will arise. Python already has a series of varia

Re: How do I get a python program to work on my phone?

2019-01-28 Thread Michael Torrie
On 2019-01-28 8:29 a.m., Steve wrote: > I now want to run it on my MotoG phone. The program accepts keyed in data > and will access two text files to keep data and I would like to have the > program chime my phone to remind me to take the next reading. > > First step is to get it running in my ph

List of methods affected by 'Special method lookup'

2019-01-28 Thread Roberto Martínez
Hi, the documentation about Special method lookup claims: "For custom classes, implicit invocations of special methods are only guaranteed to work correctly if defined on an object’s type, not in the object’s instance dicti

How do I get a python program to work on my phone?

2019-01-28 Thread Steve
This is my first message to this forum, I am not sure how to submit it so please correct me if I am not doing this properly. === Being new to python as of a year ago December and have extensive programming experience: C++, VBasic, HTML etc... I installed P

time.strftime question on 0 as argument

2019-01-28 Thread David Raymond
https://docs.python.org/3.7/library/time.html#time.strftime In the docs there is "0 is a legal argument for any position in the time tuple; if it is normally illegal the value is forced to a correct one." and yet if given 0 for the year/first item in the tuple it raises a ValueError. Is that a

Re: preferences file

2019-01-28 Thread DL Neil
On 29/01/19 7:11 AM, songbird wrote: DL Neil wrote: On 29/01/19 1:29 AM, Karsten Hilbert wrote: On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: What about running a multi-tenant application (for multiple users who are not also system-users) - cf them logging-on to run their own. It

Re: preferences file

2019-01-28 Thread songbird
DL Neil wrote: > On 29/01/19 1:29 AM, Karsten Hilbert wrote: >> On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: >> What about running a multi-tenant application (for multiple users who are not also system-users) - cf them logging-on to run their own. It is appropriate, pos

Re: preferences file

2019-01-28 Thread songbird
Karsten Hilbert wrote: > On Mon, Jan 28, 2019 at 10:23:31AM -0500, songbird wrote: >> Karsten Hilbert wrote: >> > On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: >> > >> >> > What about running a multi-tenant application (for multiple users who >> >> > are not also system-users) - cf the

Re: preferences file

2019-01-28 Thread DL Neil
On 29/01/19 1:29 AM, Karsten Hilbert wrote: On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: What about running a multi-tenant application (for multiple users who are not also system-users) - cf them logging-on to run their own. It is appropriate, possibly even "required" to keep Fred'

Re: preferences file

2019-01-28 Thread Karsten Hilbert
On Mon, Jan 28, 2019 at 10:23:31AM -0500, songbird wrote: > Karsten Hilbert wrote: > > On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: > > > >> > What about running a multi-tenant application (for multiple users who > >> > are not also system-users) - cf them logging-on to run their own

Re: preferences file

2019-01-28 Thread songbird
Karsten Hilbert wrote: > On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: > >> > What about running a multi-tenant application (for multiple users who >> > are not also system-users) - cf them logging-on to run their own. It is >> > appropriate, possibly even "required" to keep Fred's co

Re: preferences file

2019-01-28 Thread Karsten Hilbert
On Mon, Jan 28, 2019 at 07:02:47AM -0500, songbird wrote: > > What about running a multi-tenant application (for multiple users who > > are not also system-users) - cf them logging-on to run their own. It is > > appropriate, possibly even "required" to keep Fred's config file, > > reports, grap

Re: preferences file

2019-01-28 Thread songbird
DL Neil wrote: > On 25/01/19 4:22 PM, Bill Campbell wrote: >> On Thu, Jan 24, 2019, Dave wrote: >>> I'm doing a small application and want to add user preferences. Did some >>> googling to see if there are standard Python ways/tools, but it seems not so >>> much. My specific questions are: >>> >>

Re: Exercize to understand from three numbers which is more high

2019-01-28 Thread Frank Millman
"^Bart" wrote in message news:q2mghh$ah6$1...@gioia.aioe.org... > 1. The last two lines appear to be indented under the 'if number3 < ' > line. I think you want them to be unindented so that they run every > time. I'm sorry but I didn't completely understand what you wrote about the last t

Re: Exercize to understand from three numbers which is more high

2019-01-28 Thread ^Bart
Excellent! Glad I could help. Thank you! :) I'm studying Python everyday and I try to do the best! :) 1. The last two lines appear to be indented under the 'if number3 < ' line. I think you want them to be unindented so that they run every time. I'm sorry but I didn't completely understand w