Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Souvik Dutta
This app might also give real time updates. On Tue, Mar 17, 2020, 10:19 AM Souvik Dutta wrote: > I think you might get a man build the app in a manner that allows the > people at the supermarket to update the foot falls of the customers in a > given time period. Like one might count the number o

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Souvik Dutta
I think you might get a man build the app in a manner that allows the people at the supermarket to update the foot falls of the customers in a given time period. Like one might count the number on 10 am for a period of fifteen minutes and say that this will be the number of persons in the mall for

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread DL Neil via Python-list
On 17/03/20 10:49 AM, Grant Edwards wrote: On 2020-03-16, Irv Kalb wrote: I like both suggestions, and will probably go with the non-breaking space (Option space on my Mac). I tested that and it works well. Until somebody tries to cut/paste the snippets you post into a .py file and run them

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread mm0fmf
On 16/03/2020 21:55, Barry Scott wrote: Am I right in thinking that you are wondering how to help people visit the super market in a quite time to help with the social distancing for COVID-19 reasons? In which case all the app needs to do is tell people that the supermarket A has great stocks

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread MRAB
On 2020-03-16 21:55, Barry Scott wrote: On 16 Mar 2020, at 17:38, Orges Leka wrote: Dear Python developers, I am a data scientist and use Python regularly. I have a question: How difficult is it to write a Python web-app, with the following basic functionality: Am I right in thinking that

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Orges Leka
Barry Scott schrieb am Mo., 16. März 2020, 22:55: > > > On 16 Mar 2020, at 17:38, Orges Leka wrote: > > Dear Python developers, > > I am a data scientist and use Python regularly. I have a question: > How difficult is it to write a Python web-app, with the following basic > functionality: > > >

Re: Can you help me solve this?

2020-03-16 Thread Pieter van Oostrum
Pieter van Oostrum writes: > Joseph Nail writes: > >> Hello, >> I have one problem. Somehow in my function when I wrote y=x, they are the >> same variable and then it also changes age or height (which were x) in the >> main program. See more in attached file. >> Maybe it is bug or maybe it shoul

Re: Can you help me solve this?

2020-03-16 Thread Pieter van Oostrum
Joseph Nail writes: > Hello, > I have one problem. Somehow in my function when I wrote y=x, they are the > same variable and then it also changes age or height (which were x) in the > main program. See more in attached file. > Maybe it is bug or maybe it should run that way. If you write y = x,

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread Grant Edwards
On 2020-03-16, Irv Kalb wrote: > I like both suggestions, and will probably go with the non-breaking > space (Option space on my Mac). I tested that and it works well. Until somebody tries to cut/paste the snippets you post into a .py file and run them. At that point the "distance learning" se

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Barry Scott
> On 16 Mar 2020, at 17:38, Orges Leka wrote: > > Dear Python developers, > > I am a data scientist and use Python regularly. I have a question: > How difficult is it to write a Python web-app, with the following basic > functionality: Am I right in thinking that you are wondering how to help

Re: Can you help me solve this?

2020-03-16 Thread Igor Korot
Hi, On Mon, Mar 16, 2020 at 4:26 PM Joseph Nail wrote: > > Hello, > I have one problem. Somehow in my function when I wrote y=x, they are the > same variable and then it also changes age or height (which were x) in the > main program. See more in attached file. > Maybe it is bug or maybe it shoul

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Chris Angelico
On Tue, Mar 17, 2020 at 7:54 AM Orges Leka wrote: > > Am Mo., 16. März 2020 um 21:33 Uhr schrieb Chris Angelico >: > > > On Tue, Mar 17, 2020 at 7:21 AM Orges Leka wrote: > > > For the getting enough people to use it, I think word-of-mouth should > > work, > > > as it would help those who use it

Can you help me solve this?

2020-03-16 Thread Joseph Nail
Hello, I have one problem. Somehow in my function when I wrote y=x, they are the same variable and then it also changes age or height (which were x) in the main program. See more in attached file. Maybe it is bug or maybe it should run that way. -- https://mail.python.org/mailman/listinfo/python-l

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Ethan Furman
On 03/16/2020 01:16 PM, Barry Scott wrote: If you search google for a shop the right hand panel has a popular times sections that tells you how busy the store typically is and the current busyness estimate. Is that what you are after? I suspect that's the general idea, only in real-time. -- ~

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Ethan Furman
On 03/16/2020 01:52 PM, Orges Leka wrote: Following your reasoning, then radar detection apps / wikipedia / facebook, which crucially depend on user generated content should not work Those are global apps, and one user's content can be useful in another user's country. Who's shopping at

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread Irv Kalb
> On Mar 16, 2020, at 11:31 AM, Irv Kalb wrote: > > This is for anyone who teaches Python and uses the Canvas Learning Management > System (maybe a small group). > > I teach Python at two colleges in Silicon Valley in California. At both > schools we use Canvas. Overall, it works very well.

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Barry Scott
> On 16 Mar 2020, at 17:38, Orges Leka wrote: > > Dear Python developers, > > I am a data scientist and use Python regularly. I have a question: > How difficult is it to write a Python web-app, with the following basic > functionality: > > The user writes anonymously without registration wher

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Orges Leka
Am Mo., 16. März 2020 um 21:33 Uhr schrieb Chris Angelico : > On Tue, Mar 17, 2020 at 7:21 AM Orges Leka wrote: > > For the getting enough people to use it, I think word-of-mouth should > work, > > as it would help those who use it, plus it reduces the chance of physical > > contact, so there is

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Chris Angelico
On Tue, Mar 17, 2020 at 7:21 AM Orges Leka wrote: > For the getting enough people to use it, I think word-of-mouth should work, > as it would help those who use it, plus it reduces the chance of physical > contact, so there is a win-win situation in using the app. > > Maybe if someone from the med

Fwd: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Orges Leka
-- Forwarded message - Von: Orges Leka Date: Mo., 16. März 2020 um 21:13 Uhr Subject: Re: Reduce waiting queue at supermarket from Corona with Python-Webapp To: Chris Angelico Thanks for your insight. The date / time could be from a predefined list, for example: 10:00-11:00 11:

Re: Profiler showing path dependency?

2020-03-16 Thread Barry Scott
> On 15 Mar 2020, at 21:05, Marco Sulla wrote: > > https://docs.python.org/3/library/profile.html#pstats.Stats.print_callers And also look at print_callees. Between callers and callees you can usually find some insight. Barry > > On Sat, 14 Mar 2020 at 00:54, Go Luhng wrote: > >> Consid

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread Ethan Furman
On 03/16/2020 11:31 AM, Irv Kalb wrote: The problem is that in the feedback section for homework assignments, Canvas eliminates any leading space characters. So, I might write: if x == y: # do thing 1 else: # do thing 2 but when it gets posted and viewed by the student, it shows up

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Chris Angelico
On Tue, Mar 17, 2020 at 6:25 AM Orges Leka wrote: > > Dear Python developers, > > I am a data scientist and use Python regularly. I have a question: > How difficult is it to write a Python web-app, with the following basic > functionality: > > The user writes anonymously without registration where

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread MRAB
On 2020-03-16 18:31, Irv Kalb wrote: This is for anyone who teaches Python and uses the Canvas Learning Management System (maybe a small group). I teach Python at two colleges in Silicon Valley in California. At both schools we use Canvas. Overall, it works very well. I use it to post notes

Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-16 Thread Orges Leka
Dear Python developers, I am a data scientist and use Python regularly. I have a question: How difficult is it to write a Python web-app, with the following basic functionality: The user writes anonymously without registration where (City, supermarket), when (Date and Time) he plans to go to the

[Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread Irv Kalb
This is for anyone who teaches Python and uses the Canvas Learning Management System (maybe a small group). I teach Python at two colleges in Silicon Valley in California. At both schools we use Canvas. Overall, it works very well. I use it to post notes, sample programs, build tests, post h

Re: Profiler showing path dependency?

2020-03-16 Thread Marco Sulla
https://docs.python.org/3/library/profile.html#pstats.Stats.print_callers On Sat, 14 Mar 2020 at 00:54, Go Luhng wrote: > Consider a simple call graph: `main()` calls `foo()`, which calls > `bar()`. Then `main()` calls `qux()` which also calls `bar()`, but > with different parameters. > > When y

Re: Multiple comparisons in a single statement

2020-03-16 Thread Stephen Tucker
OK. You are right. I was misleading. I am sorry for wasting your time. Thanks you for helping me to express myself. Stephen. Virus-free. www.avast.com