Re: `async def` breaks encapsulation?

2020-03-17 Thread Greg Ewing

On 4/03/20 12:52 pm, Marco Sulla wrote:

Why can't an asynchronous coroutine be simply a coroutine that has an
`async` or an `await` in its code, without `async` in the signature?


That wouldn't help as much as you seem to think. You still need
to use 'await' whenever you call a coroutine, so switching a
function between coroutine and non-coroutine would still have
just as much of a ripple effect on the rest of your code.

--
Greg

--
https://mail.python.org/mailman/listinfo/python-list


EuroPython 2020: Going virtual / EuroPython 2021: Dublin, Ireland

2020-03-17 Thread M.-A. Lemburg
In our blog post on the COVID-19 last week, we were still hopeful that
the situation would improve in time for the event in July. The last
few days have shown us that we need to have a more realistic view on
how things will develop in the coming months:

https://blog.europython.eu/post/612393987829039104/europython-2020-and-covid-19

Right now, we are at a point in the conference organization where we
have invested a lot of time into the preparation of the conference,
but have not started ticket sales, entered sponsorship agreements or
ordered conference and marketing material.

We also had discussions with the venue and caterer on possible options
to address the risk of not being able to hold the event in July due to
government regulations preventing indoor gatherings.


EuroPython 2021
---

In our EuroPython Society Board call last night, we discussed the
situation, looked at the options and decided to take the offer of the
venue to postpone the in-person conference to next year.


 * EuroPython 2021 will be held in Dublin, Ireland, *
   * from July 26 - August 1 2021 *


How about a virtual EuroPython 2020 ?
-

Since we all love EuroPython, the community and good vibes coming from
such gatherings, we are now considering turning this year’s EuroPython
2020 conference into a virtual event.

For this, we’d like to gather some feedback and have created a form
for you to let us know what your thoughts are on such a virtual setup:


   * EuroPython 2020 going virtual feedback form *

 https://forms.gle/dwMYXVR4RFAqvthP6


If we go for the virtual setup for EuroPython 2020, the dates will
likely change a bit, so ticket sales will start a little later. For
now, we will leave the EuroPython 2020 Call for Proposals (CfP)
open. Please note that those talks will then have to be held from your
notebook/desktop without face-to-face audience contact. On the other
hand, many more people could join in, since there’s no travel
involved. We will aim to make the virtual event as interactive as
possible.


Code name: EuroPython Winter Edition


While we’re at it, we’d also like to use the form to gather some
feedback on the idea to have a winter EuroPython event, one where we
run a BarCamp/Sprint/Hackathon style setup in a smaller setting.


Help spread the word


Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !

Link to the blog post:

https://blog.europython.eu/post/612826526375919616/europython-2020-going-virtual-europython-2021

Tweet:

https://twitter.com/europython/status/1239845360694067201

Thanks,
--
EuroPython 2020 Team
https://ep2020.europython.eu/
https://www.europython-society.org/

-- 
https://mail.python.org/mailman/listinfo/python-list


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

2020-03-17 Thread Orges Leka
The web-app could be a simple as one button:

If users are before supermarket and there is a long queue, they click on
the web-app button and warn other users of the queue.

The same principle works for anti-traffi-jam apps, with user generated
content.

If someone would like to work on this project, please let me know.



Am Di., 17. März 2020 um 07:21 Uhr schrieb Souvik Dutta <
souvik.vik...@gmail.com>:

> 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 on 10 am for a period of
>> fifteen minutes and say that this will be the number of persons in the mall
>> for at least an hour, because generally that is the time we spent in
>> supermarkets.
>> Then this number could be updated to the customers so that they could
>> plan accordingly. This will though have a waiting time for the peoples to
>> get good updates.
>> And to avoid discrepancy the supermarket workers (s.w) can update the
>> information when large number of people start coming in to the store.
>>
>>
>> On Tue, Mar 17, 2020, 12:54 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 (City,
>>> supermarket),
>>> when (Date and Time) he plans to go to the supermarket.
>>> If this is done by a lot of users, the first user gets to see the number
>>> of
>>> other buyers at this supermarket and can better plan when to go shopping.
>>> This would reduce the waiting queue at the supermarket and possibly the
>>> contact to other people thus would help a little bit in slowing down the
>>> spread of the Corona virus.
>>> One could also add openstreetmap functionality to this.
>>>
>>> As I am not a professional software developer, I can not predict how long
>>> it would take to write such a web-app in python.
>>>
>>> If you do not have currently time, but know someone who would possibly be
>>> interested in working at this project, I would be happy if you let me
>>> know.
>>>
>>> Kind regards,
>>> Orges Leka
>>>
>>> --
>>> Mit freundlichen Grüßen
>>> Herr Dipl. Math. Orges Leka
>>>
>>> Mobil: 015751078391
>>> Email: orges.l...@googlemail.com
>>> Holzheimerstraße 25
>>> 65549 Limburg
>>> --
>>> https://mail.python.org/mailman/listinfo/python-list
>>>
>>

-- 
Mit freundlichen Grüßen
Herr Dipl. Math. Orges Leka

Mobil: 015751078391
Email: orges.l...@googlemail.com
Holzheimerstraße 25
65549 Limburg
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: EuroPython 2020: Going virtual / EuroPython 2021: Dublin, Ireland

2020-03-17 Thread Alex Kaye
Glad to read this.

It is about time to benefit those of us

that do not travel to events.

AK

On Tue, Mar 17, 2020 at 2:52 AM M.-A. Lemburg  wrote:

> In our blog post on the COVID-19 last week, we were still hopeful that
> the situation would improve in time for the event in July. The last
> few days have shown us that we need to have a more realistic view on
> how things will develop in the coming months:
>
>
> https://blog.europython.eu/post/612393987829039104/europython-2020-and-covid-19
>
> Right now, we are at a point in the conference organization where we
> have invested a lot of time into the preparation of the conference,
> but have not started ticket sales, entered sponsorship agreements or
> ordered conference and marketing material.
>
> We also had discussions with the venue and caterer on possible options
> to address the risk of not being able to hold the event in July due to
> government regulations preventing indoor gatherings.
>
>
> EuroPython 2021
> ---
>
> In our EuroPython Society Board call last night, we discussed the
> situation, looked at the options and decided to take the offer of the
> venue to postpone the in-person conference to next year.
>
>
>  * EuroPython 2021 will be held in Dublin, Ireland, *
>* from July 26 - August 1 2021 *
>
>
> How about a virtual EuroPython 2020 ?
> -
>
> Since we all love EuroPython, the community and good vibes coming from
> such gatherings, we are now considering turning this year’s EuroPython
> 2020 conference into a virtual event.
>
> For this, we’d like to gather some feedback and have created a form
> for you to let us know what your thoughts are on such a virtual setup:
>
>
>* EuroPython 2020 going virtual feedback form *
>
>  https://forms.gle/dwMYXVR4RFAqvthP6
>
>
> If we go for the virtual setup for EuroPython 2020, the dates will
> likely change a bit, so ticket sales will start a little later. For
> now, we will leave the EuroPython 2020 Call for Proposals (CfP)
> open. Please note that those talks will then have to be held from your
> notebook/desktop without face-to-face audience contact. On the other
> hand, many more people could join in, since there’s no travel
> involved. We will aim to make the virtual event as interactive as
> possible.
>
>
> Code name: EuroPython Winter Edition
> 
>
> While we’re at it, we’d also like to use the form to gather some
> feedback on the idea to have a winter EuroPython event, one where we
> run a BarCamp/Sprint/Hackathon style setup in a smaller setting.
>
>
> Help spread the word
> 
>
> Please help us spread this message by sharing it on your social
> networks as widely as possible. Thank you !
>
> Link to the blog post:
>
>
> https://blog.europython.eu/post/612826526375919616/europython-2020-going-virtual-europython-2021
>
> Tweet:
>
> https://twitter.com/europython/status/1239845360694067201
>
> Thanks,
> --
> EuroPython 2020 Team
> https://ep2020.europython.eu/
> https://www.europython-society.org/
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: EuroPython 2020: Going virtual / EuroPython 2021: Dublin, Ireland

2020-03-17 Thread אורי
Hi,

I also don't usually attend conferences abroad, but I would like to
participate in a virtual conference if possible. I would also suggest that
a virtual conference would not require registration or paying for tickets.
I hope you will find a way to get the money from sponsors or other
resources and not from participants. In the past I did attend conferences
abroad and it was very expensive.

Uri.
אורי
u...@speedy.net


On Tue, Mar 17, 2020 at 11:50 AM M.-A. Lemburg  wrote:

> In our blog post on the COVID-19 last week, we were still hopeful that
> the situation would improve in time for the event in July. The last
> few days have shown us that we need to have a more realistic view on
> how things will develop in the coming months:
>
>
> https://blog.europython.eu/post/612393987829039104/europython-2020-and-covid-19
>
> Right now, we are at a point in the conference organization where we
> have invested a lot of time into the preparation of the conference,
> but have not started ticket sales, entered sponsorship agreements or
> ordered conference and marketing material.
>
> We also had discussions with the venue and caterer on possible options
> to address the risk of not being able to hold the event in July due to
> government regulations preventing indoor gatherings.
>
>
> EuroPython 2021
> ---
>
> In our EuroPython Society Board call last night, we discussed the
> situation, looked at the options and decided to take the offer of the
> venue to postpone the in-person conference to next year.
>
>
>  * EuroPython 2021 will be held in Dublin, Ireland, *
>* from July 26 - August 1 2021 *
>
>
> How about a virtual EuroPython 2020 ?
> -
>
> Since we all love EuroPython, the community and good vibes coming from
> such gatherings, we are now considering turning this year’s EuroPython
> 2020 conference into a virtual event.
>
> For this, we’d like to gather some feedback and have created a form
> for you to let us know what your thoughts are on such a virtual setup:
>
>
>* EuroPython 2020 going virtual feedback form *
>
>  https://forms.gle/dwMYXVR4RFAqvthP6
>
>
> If we go for the virtual setup for EuroPython 2020, the dates will
> likely change a bit, so ticket sales will start a little later. For
> now, we will leave the EuroPython 2020 Call for Proposals (CfP)
> open. Please note that those talks will then have to be held from your
> notebook/desktop without face-to-face audience contact. On the other
> hand, many more people could join in, since there’s no travel
> involved. We will aim to make the virtual event as interactive as
> possible.
>
>
> Code name: EuroPython Winter Edition
> 
>
> While we’re at it, we’d also like to use the form to gather some
> feedback on the idea to have a winter EuroPython event, one where we
> run a BarCamp/Sprint/Hackathon style setup in a smaller setting.
>
>
> Help spread the word
> 
>
> Please help us spread this message by sharing it on your social
> networks as widely as possible. Thank you !
>
> Link to the blog post:
>
>
> https://blog.europython.eu/post/612826526375919616/europython-2020-going-virtual-europython-2021
>
> Tweet:
>
> https://twitter.com/europython/status/1239845360694067201
>
> Thanks,
> --
> EuroPython 2020 Team
> https://ep2020.europython.eu/
> https://www.europython-society.org/
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2020-03-17 Thread joseph pareti
the use case is VERY valuable.

In order to increase its penetration, how about writing the app as a plug
in for a more widely used one such as google maps?

Am Di., 17. März 2020 um 11:20 Uhr schrieb Orges Leka :

> The web-app could be a simple as one button:
>
> If users are before supermarket and there is a long queue, they click on
> the web-app button and warn other users of the queue.
>
> The same principle works for anti-traffi-jam apps, with user generated
> content.
>
> If someone would like to work on this project, please let me know.
>
>
>
> Am Di., 17. März 2020 um 07:21 Uhr schrieb Souvik Dutta <
> souvik.vik...@gmail.com>:
>
> > 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 on 10 am for a
> period of
> >> fifteen minutes and say that this will be the number of persons in the
> mall
> >> for at least an hour, because generally that is the time we spent in
> >> supermarkets.
> >> Then this number could be updated to the customers so that they could
> >> plan accordingly. This will though have a waiting time for the peoples
> to
> >> get good updates.
> >> And to avoid discrepancy the supermarket workers (s.w) can update the
> >> information when large number of people start coming in to the store.
> >>
> >>
> >> On Tue, Mar 17, 2020, 12:54 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 (City,
> >>> supermarket),
> >>> when (Date and Time) he plans to go to the supermarket.
> >>> If this is done by a lot of users, the first user gets to see the
> number
> >>> of
> >>> other buyers at this supermarket and can better plan when to go
> shopping.
> >>> This would reduce the waiting queue at the supermarket and possibly the
> >>> contact to other people thus would help a little bit in slowing down
> the
> >>> spread of the Corona virus.
> >>> One could also add openstreetmap functionality to this.
> >>>
> >>> As I am not a professional software developer, I can not predict how
> long
> >>> it would take to write such a web-app in python.
> >>>
> >>> If you do not have currently time, but know someone who would possibly
> be
> >>> interested in working at this project, I would be happy if you let me
> >>> know.
> >>>
> >>> Kind regards,
> >>> Orges Leka
> >>>
> >>> --
> >>> Mit freundlichen Grüßen
> >>> Herr Dipl. Math. Orges Leka
> >>>
> >>> Mobil: 015751078391
> >>> Email: orges.l...@googlemail.com
> >>> Holzheimerstraße 25
> >>> 65549 Limburg
> >>> --
> >>> https://mail.python.org/mailman/listinfo/python-list
> >>>
> >>
>
> --
> Mit freundlichen Grüßen
> Herr Dipl. Math. Orges Leka
>
> Mobil: 015751078391
> Email: orges.l...@googlemail.com
> Holzheimerstraße 25
> 65549 Limburg
> --
> https://mail.python.org/mailman/listinfo/python-list
>


-- 
Regards,
Joseph Pareti - Artificial Intelligence consultant
Joseph Pareti's AI Consulting Services
https://www.joepareti54-ai.com/
cell +49 1520 1600 209
cell +39 339 797 0644
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2020-03-17 Thread MRAB

On 2020-03-16 21:49, 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.  At that point the "distance learning" setup is
definitely good, because you really don't want to hear the names
you'll be called.  ;)

I've just tried using non-breaking spaces at the Python prompt in a 
Windows 10 console window. It treated them like spaces!


However, it complained when I used them in a file.

Are there actually any programming languages that will accept 
non-breaking spaces as an alternative to "normal" spaces?

--
https://mail.python.org/mailman/listinfo/python-list


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

2020-03-17 Thread Orges Leka
Am Di., 17. März 2020 um 15:35 Uhr schrieb joseph pareti <
joeparet...@gmail.com>:

> the use case is VERY valuable.
>
> In order to increase its penetration, how about writing the app as a plug
> in for a more widely used one such as google maps?
>
> I don't have the knowledge to do this. Besides I think that this can be
done only by Google ( see:
https://stackoverflow.com/questions/5629779/is-it-possible-to-create-a-plugin-built-on-top-of-google-maps-for-android
) . If you have contact to Google and suggest this, I think that would be a
VERY GOOD THING.

Am Di., 17. März 2020 um 11:20 Uhr schrieb Orges Leka  >:
>
>> The web-app could be a simple as one button:
>>
>> If users are before supermarket and there is a long queue, they click on
>> the web-app button and warn other users of the queue.
>>
>> The same principle works for anti-traffi-jam apps, with user generated
>> content.
>>
>> If someone would like to work on this project, please let me know.
>>
>>
>>
>> Am Di., 17. März 2020 um 07:21 Uhr schrieb Souvik Dutta <
>> souvik.vik...@gmail.com>:
>>
>> > 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 on 10 am for a
>> period of
>> >> fifteen minutes and say that this will be the number of persons in the
>> mall
>> >> for at least an hour, because generally that is the time we spent in
>> >> supermarkets.
>> >> Then this number could be updated to the customers so that they could
>> >> plan accordingly. This will though have a waiting time for the peoples
>> to
>> >> get good updates.
>> >> And to avoid discrepancy the supermarket workers (s.w) can update the
>> >> information when large number of people start coming in to the store.
>> >>
>> >>
>> >> On Tue, Mar 17, 2020, 12:54 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 (City,
>> >>> supermarket),
>> >>> when (Date and Time) he plans to go to the supermarket.
>> >>> If this is done by a lot of users, the first user gets to see the
>> number
>> >>> of
>> >>> other buyers at this supermarket and can better plan when to go
>> shopping.
>> >>> This would reduce the waiting queue at the supermarket and possibly
>> the
>> >>> contact to other people thus would help a little bit in slowing down
>> the
>> >>> spread of the Corona virus.
>> >>> One could also add openstreetmap functionality to this.
>> >>>
>> >>> As I am not a professional software developer, I can not predict how
>> long
>> >>> it would take to write such a web-app in python.
>> >>>
>> >>> If you do not have currently time, but know someone who would
>> possibly be
>> >>> interested in working at this project, I would be happy if you let me
>> >>> know.
>> >>>
>> >>> Kind regards,
>> >>> Orges Leka
>> >>>
>> >>> --
>> >>> Mit freundlichen Grüßen
>> >>> Herr Dipl. Math. Orges Leka
>> >>>
>> >>> Mobil: 015751078391
>> >>> Email: orges.l...@googlemail.com
>> >>> Holzheimerstraße 25
>> >>> 65549 Limburg
>> >>> --
>> >>> https://mail.python.org/mailman/listinfo/python-list
>> >>>
>> >>
>>
>> --
>> Mit freundlichen Grüßen
>> Herr Dipl. Math. Orges Leka
>>
>> Mobil: 015751078391
>> Email: orges.l...@googlemail.com
>> Holzheimerstraße 25
>> 65549 Limburg
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
>
>
> --
> Regards,
> Joseph Pareti - Artificial Intelligence consultant
> Joseph Pareti's AI Consulting Services
> https://www.joepareti54-ai.com/
> cell +49 1520 1600 209
> cell +39 339 797 0644
>


-- 
Mit freundlichen Grüßen
Herr Dipl. Math. Orges Leka

Mobil: 015751078391
Email: orges.l...@googlemail.com
Holzheimerstraße 25
65549 Limburg
-- 
https://mail.python.org/mailman/listinfo/python-list


Announcing the 2020 John Hunter Excellence in Plotting Contest

2020-03-17 Thread Nelle Varoquaux
Dear all,


I apologize for the cross-posting.


In memory of John Hunter, we are pleased to announce the John Hunter
Excellence in Plotting Contest for 2020. This open competition aims to
highlight the importance of data visualization to scientific progress and
showcase the capabilities of open source software.

Participants are invited to submit scientific plots to be judged by a
panel. The winning entries will be announced and displayed at SciPy 2020 or
announced in the John Hunter Excellence in Plotting Contest website and
youtube channel.

John Hunter’s family are graciously sponsoring cash prizes for the winners
in the following amounts:

- 1st prize: $1000

- 2nd prize: $750

- 3rd prize: $500


   -

   Entries must be submitted by June 1st to the form at
   https://forms.gle/SrexmkDwiAmDc7ej7
   -

   Winners will be announced at Scipy 2020 in Austin, TX or publicly on the
   John Hunter Excellence in Plotting Contest website and youtube channel
   -

   Participants do not need to attend the Scipy conference.
   -

   Entries may take the definition of “visualization” rather broadly.
   Entries may be, for example, a traditional printed plot, an interactive
   visualization for the web, a dashboard, or an animation.
   -

   Source code for the plot must be provided, in the form of Python code
   and/or a Jupyter notebook, along with a rendering of the plot in a widely
   used format.  The rendering may be, for example, PDF for print, standalone
   HTML and Javascript for an interactive plot, or MPEG-4 for a video. If the
   original data can not be shared for reasons of size or licensing, "fake"
   data may be substituted, along with an image of the plot using real data.
   -

   Each entry must include a 300-500 word abstract describing the plot and
   its importance for a general scientific audience.
   -

   Entries will be judged on their clarity, innovation and aesthetics, but
   most importantly for their effectiveness in communicating a real-world
   problem. Entrants are encouraged to submit plots that were used during the
   course of research or work, rather than merely being hypothetical.
   -

   SciPy and the John Hunter Excellence in Plotting Contest organizers
   reserves the right to display any and all entries, whether prize-winning or
   not, at the conference, use in any materials or on its website, with
   attribution to the original author(s).
   -

   Past entries can be found at https://jhepc.github.io/
   -

   Questions regarding the contest can be sent to jhepc.organiz...@gmail.com



John Hunter Excellence in Plotting Contest Co-Chairs

Madicken Munk

Nelle Varoquaux
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2020-03-17 Thread Christian Gollwitzer

Am 17.03.20 um 11:16 schrieb Orges Leka:

The web-app could be a simple as one button:

If users are before supermarket and there is a long queue, they click on
the web-app button and warn other users of the queue.


It might be possible to make a Facebook "app" out of it. Facebook 
already provides a "login" feature, where it autodetects if you are near 
som point of interest and you only need to confirm that you want to be 
there. Also, the Facebook user base is extensive.



The same principle works for anti-traffi-jam apps, with user generated
content.

If someone would like to work on this project, please let me know.



There is one obvious candidate who could work on this project. It's you.

Best regards,

Christian
--
https://mail.python.org/mailman/listinfo/python-list