RUN is a global constant, and the method is documented, explaining why the 
parameter is there:

    # Copy globals as function locals to make sure that they are available
    # during Python shutdown when the Pool is destroyed.
    def __del__(self, _warn=warnings.warn, RUN=RUN):

From: Python-list <python-list-bounces+gweatherby=uchc....@python.org> on 
behalf of Stefan Ram <r...@zedat.fu-berlin.de>
Date: Friday, November 11, 2022 at 2:42 PM
To: python-list@python.org <python-list@python.org>
Subject: Re: Argument name should be lowercase
*** Attention: This is an external email. Use caution responding, opening 
attachments or clicking on links. ***

"Weatherby,Gerard" <gweathe...@uchc.edu> writes:
>I'd personally find it weird to see an all-cap parameter

  In the source code of the standard library, all-caps
  notation is used for a parameter name sometimes
  if that parameter name is "URL" or sometimes
  when it is being initialized from an all-caps name as in:

|def __del__(self, _warn=warnings.warn, RUN=RUN):
|        if self._state == RUN:
...
from "pool.py".

  ("RUN=RUN" makes RUN have the value "RUN" had
  at the time of the definition of the function.)


--
https://urldefense.com/v3/__https://mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!kI1c1EIpXCtnz0SBHvQmJokWXPBo0rCY9MQ-IwXOZU4RyHqqKho9wMu6Ekj6GMXA0EbReT8_4GOxvoldiOsL3W8$<https://urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!kI1c1EIpXCtnz0SBHvQmJokWXPBo0rCY9MQ-IwXOZU4RyHqqKho9wMu6Ekj6GMXA0EbReT8_4GOxvoldiOsL3W8$>
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to