On 25/10/19 4:29 AM, Frank Millman wrote:
On 2019-10-19 12:37 AM, DL Neil via Python-list wrote:
On 16/10/19 6:33 PM, Frank Millman wrote:
On 2019-10-14 10:55 PM, DL Neil via Python-list wrote:
Is there a technique or pattern for taking a (partially-) populated
instance of a class, and re-crea
On 2019-10-19 12:37 AM, DL Neil via Python-list wrote:
On 16/10/19 6:33 PM, Frank Millman wrote:
On 2019-10-14 10:55 PM, DL Neil via Python-list wrote:
Is there a technique or pattern for taking a (partially-) populated
instance of a class, and re-creating it as an instance of one of its
sub-c
On 18/10/2019 23:57, DL Neil wrote:
> On 17/10/19 7:52 AM, MRAB wrote:
>> On 2019-10-16 19:43, duncan smith wrote:
>>> On 16/10/2019 04:41, DL Neil wrote:
On 16/10/19 1:55 PM, duncan smith wrote:
> On 15/10/2019 21:36, DL Neil wrote:
>> On 16/10/19 12:38 AM, Rhodri James wrote:
>>>
On 18/10/19 9:27 AM, Eryk Sun wrote:
On 10/17/19, MRAB wrote:
On 2019-10-17 20:06, Eryk Sun wrote:
I'm bugged by how the article mis-characterizes the fundamental
problem. The operating system has nothing to do with the order of a
directory listing, which varies even with an OS, depending on
On 17/10/19 7:52 AM, MRAB wrote:
On 2019-10-16 19:43, duncan smith wrote:
On 16/10/2019 04:41, DL Neil wrote:
On 16/10/19 1:55 PM, duncan smith wrote:
On 15/10/2019 21:36, DL Neil wrote:
On 16/10/19 12:38 AM, Rhodri James wrote:
On 14/10/2019 21:55, DL Neil via Python-list wrote:
...
So, ye
On 17/10/19 4:08 AM, Piet van Oostrum wrote:
DL Neil writes:
That said, if a "trans" person has ovaries or testes (for example) then
a non-traditional sexual identification is irrelevant - for medical
purposes. Diseases in those areas (and now I'm a long way from a
research questionnaire and f
On 16/10/19 6:33 PM, Frank Millman wrote:
On 2019-10-14 10:55 PM, DL Neil via Python-list wrote:
Is there a technique or pattern for taking a (partially-) populated
instance of a class, and re-creating it as an instance of one of its
sub-classes?
Here is a link to an article entitled 'Underst
On 10/17/19, MRAB wrote:
> On 2019-10-17 20:06, Eryk Sun wrote:
>
>> I'm bugged by how the article mis-characterizes the fundamental
>> problem. The operating system has nothing to do with the order of a
>> directory listing, which varies even with an OS, depending on the file
>> system. The latte
On 2019-10-17 20:06, Eryk Sun wrote:
On 10/17/19, Dennis Lee Bieber wrote:
On Wed, 16 Oct 2019 19:52:50 +0100, MRAB
declaimed the following:
Researchers find bug in Python script may have affected hundreds of
studies
https://arstechnica.com/information-technology/2019/10/chemists-discover-cr
On 10/17/19, Dennis Lee Bieber wrote:
> On Wed, 16 Oct 2019 19:52:50 +0100, MRAB
> declaimed the following:
>
>>Researchers find bug in Python script may have affected hundreds of
>> studies
>>https://arstechnica.com/information-technology/2019/10/chemists-discover-cross-platform-python-scripts-n
On 2019-10-16 7:33 AM, Frank Millman wrote:
Here is a link to an article entitled 'Understanding Hidden Subtypes'.
It dates back to 2004, but I think it is still relevant. It addresses
precisely the issues that you raise, but from a data-modelling
perspective, not a programming one.
http://
On 16/10/2019 19:52, MRAB wrote:
> On 2019-10-16 19:43, duncan smith wrote:
>> On 16/10/2019 04:41, DL Neil wrote:
>>> On 16/10/19 1:55 PM, duncan smith wrote:
On 15/10/2019 21:36, DL Neil wrote:
> On 16/10/19 12:38 AM, Rhodri James wrote:
>> On 14/10/2019 21:55, DL Neil via Python-lis
> On 14 Oct 2019, at 21:55, DL Neil via Python-list
> wrote:
>
> Is there a technique or pattern for taking a (partially-) populated instance
> of a class, and re-creating it as an instance of one of its sub-classes?
The pattern I know is to use a factory function to choose between a number
On 2019-10-16 19:43, duncan smith wrote:
On 16/10/2019 04:41, DL Neil wrote:
On 16/10/19 1:55 PM, duncan smith wrote:
On 15/10/2019 21:36, DL Neil wrote:
On 16/10/19 12:38 AM, Rhodri James wrote:
On 14/10/2019 21:55, DL Neil via Python-list wrote:
...
So, yes, the "label" is unimportant - ex
On 16/10/2019 04:41, DL Neil wrote:
> On 16/10/19 1:55 PM, duncan smith wrote:
>> On 15/10/2019 21:36, DL Neil wrote:
>>> On 16/10/19 12:38 AM, Rhodri James wrote:
On 14/10/2019 21:55, DL Neil via Python-list wrote:
>>> ...
>>> So, yes, the "label" is unimportant - except to politicians and
>>
DL Neil writes:
> That said, if a "trans" person has ovaries or testes (for example) then
> a non-traditional sexual identification is irrelevant - for medical
> purposes. Diseases in those areas (and now I'm a long way from a
> research questionnaire and from Python - but this is roughly how it
On 2019-10-14 10:55 PM, DL Neil via Python-list wrote:
Is there a technique or pattern for taking a (partially-) populated
instance of a class, and re-creating it as an instance of one of its
sub-classes?
In a medically-oriented situation, we have a Person() class, and start
collecting infor
On 16/10/19 1:55 PM, duncan smith wrote:
On 15/10/2019 21:36, DL Neil wrote:
On 16/10/19 12:38 AM, Rhodri James wrote:
On 14/10/2019 21:55, DL Neil via Python-list wrote:
...
So, yes, the "label" is unimportant - except to politicians and
statisticians, who want precise answers from vague coll
On 15/10/2019 21:36, DL Neil wrote:
> On 16/10/19 12:38 AM, Rhodri James wrote:
>> On 14/10/2019 21:55, DL Neil via Python-list wrote:
> ...
>
>>> It seemed better (at the design-level) to have Man( Person ) and
>>> Woman( Person ) sub-classes to contain the pertinent attributes,
>>> source more d
On 16/10/19 12:38 AM, Rhodri James wrote:
On 14/10/2019 21:55, DL Neil via Python-list wrote:
...
It seemed better (at the design-level) to have Man( Person ) and
Woman( Person ) sub-classes to contain the pertinent attributes,
source more detailed and specific questions, and collect such dat
On 14/10/2019 21:55, DL Neil via Python-list wrote:
Is there a technique or pattern for taking a (partially-) populated
instance of a class, and re-creating it as an instance of one of its
sub-classes?
In a medically-oriented situation, we have a Person() class, and start
collecting informat
Hi Greg,
On 15/10/19 11:37 AM, Gregory Ewing wrote:
DL Neil wrote:
Is there a technique or pattern for taking a (partially-) populated
instance of a class, and re-creating it as an instance of one of its
sub-classes?
Often you can assign to the __class__ attribute of an instance
to change i
DL Neil wrote:
Is there a technique or pattern for taking a (partially-) populated
instance of a class, and re-creating it as an instance of one of its
sub-classes?
Often you can assign to the __class__ attribute of an instance
to change its class.
Python 3.7.3 (default, Apr 8 2019, 22:20:19
Is there a technique or pattern for taking a (partially-) populated
instance of a class, and re-creating it as an instance of one of its
sub-classes?
In a medically-oriented situation, we have a Person() class, and start
collecting information within an instance (person = Person(), etc).
Du
24 matches
Mail list logo