Re: Pycharm offers only implementation of an abstract getter but not an abstract setter

2020-06-24 Thread zljubisic
This also works with no errors: from abc import ABC, abstractmethod class C(ABC): @property @abstractmethod def my_abstract_property(self): pass @my_abstract_property.setter @abstractmethod def my_abstract_property(self, val): pass class D(C): my

Re: Pycharm Won't Do Long Underscore

2020-06-24 Thread Grant Edwards
On 2020-06-24, Peter J. Holzer wrote: > There is U+FF3F Fullwidth Low Line. > >> If there were, Python would not know what to do with it > > You can use it in variable names, but not at the beginning, and it isn't > equivalent to two underscores, of course: Ouch. Anybody caught using that shoul

Re: Pycharm Won't Do Long Underscore

2020-06-24 Thread o1bigtenor
On Wed, Jun 24, 2020 at 1:54 PM Tony Kaloki wrote: > > Thanks for all your explanations, everyone. Hopefully, I'll know better next > time I come across a similar case. Now, to try and understand the rest of > Python... > Your last sentence - - - - I'm right there with you! (Reading it made me

Re: Pycharm offers only implementation of an abstract getter but not an abstract setter

2020-06-24 Thread zljubisic
If my subclass is as this: from subclassing.abstract.BaseSomeAbstract import BaseSomeAbstract class ChildSomeAbstract(BaseSomeAbstract): @property def abs_prop(self): return self._abs_prop I can create an instance of it with no errors. So x = ChildSomeAbstract() works with no p

Pycharm offers only implementation of an abstract getter but not an abstract setter

2020-06-24 Thread zljubisic
I would like to have an abstract class in which I will have an abstract property. So I used Pycharm in order to create an abstract (base) class: import abc class BaseSomeAbstract(abc.ABC): _abs_prop = None @property @abc.abstractmethod def abs_prop(self): return self._a

Re: FW: Pycharm Won't Do Long Underscore

2020-06-24 Thread Joe Pfeiffer
One other note -- while you may want various good-looking fonts with ligatures in other domains, for writing code a monospace font with no ligatures lets you see exactly what's there and saves a host of problems. My personal favorite for these purposes is called "Terminus Regular", but which speci

Re: Pycharm Won't Do Long Underscore

2020-06-24 Thread Peter J. Holzer
On 2020-06-24 13:48:18 -0400, Dennis Lee Bieber wrote: > On Tue, 23 Jun 2020 20:49:36 +, Tony Kaloki > declaimed the following: > > Alexander, > > Thank you so much! It worked! Thank you. One question: in your > > reply, are you saying that Python would have treated the two > > separate unders

Re: Pycharm Won't Do Long Underscore

2020-06-24 Thread Chris Angelico
On Thu, Jun 25, 2020 at 4:40 AM MRAB wrote: > > On 2020-06-24 18:59, Chris Angelico wrote: > > On Thu, Jun 25, 2020 at 3:51 AM Dennis Lee Bieber > > wrote: > >> > >> On Tue, 23 Jun 2020 20:49:36 +, Tony Kaloki > >> declaimed the following: > >> > >> >Alexander, > >> > Than

Re: Pycharm Won't Do Long Underscore

2020-06-24 Thread Tony Kaloki
Thanks for all your explanations, everyone. Hopefully, I'll know better next time I come across a similar case. Now, to try and understand the rest of Python... Get Outlook for Android From: Python-list on behalf of MRAB Sent: Wednesday

Re: Pycharm Won't Do Long Underscore

2020-06-24 Thread MRAB
On 2020-06-24 18:59, Chris Angelico wrote: On Thu, Jun 25, 2020 at 3:51 AM Dennis Lee Bieber wrote: On Tue, 23 Jun 2020 20:49:36 +, Tony Kaloki declaimed the following: >Alexander, > Thank you so much! It worked! Thank you. One question: in your reply, are you saying t

Re: Pycharm Won't Do Long Underscore

2020-06-24 Thread Chris Angelico
On Thu, Jun 25, 2020 at 3:51 AM Dennis Lee Bieber wrote: > > On Tue, 23 Jun 2020 20:49:36 +, Tony Kaloki > declaimed the following: > > >Alexander, > > Thank you so much! It worked! Thank you. One question: in > > your reply, are you saying that Python would have treated th

Re: Asynchronous generators

2020-06-24 Thread Dieter Maurer
Jonathan Gossage wrote at 2020-6-23 14:04 -0400: >-- >I am attempting to learn how to use asyncio and I have been unable to find >any documentation or Internet posts that give information on the principles >underlying asyncio ... I am almost sure to have read an asyncio tutorial found via "python.