Re: A missing iterator on itertools module?

Liste des GroupesRevenir à cl python 
Sujet : Re: A missing iterator on itertools module?
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.python
Date : 28. Mar 2024, 18:23:14
Autres entêtes
Organisation : Stefan Ram
Message-ID : <underscore-20240328182256@ram.dialup.fu-berlin.de>
References : 1 2 3
ast <none@none.fr> wrote or quoted:
Why did you renamed itertools as _itertools ?

  Assume I have a module A.py:

import math
def f(): pass

  . Assume I have an additional module B.py:

import A

  . Now, when I'm editing "B.py" in IDLE and type "A.", IIRC
  IDLE will offer me two possible completions: "A.math" and
  "A.f". The "A.math" makes no sense to me. I want it to go
  away. Therefore, I rewrite A.py as:

import math as _math
def f(): pass

  . Now, Idle will only offer the completion "A.f".

  So, I sometimes use this "import math as _math" style. But then,
  it is simpler for me to /always/ use this style; after all: you
  can't know whether someone eventually will import your module!

Date Sujet#  Auteur
28 Mar 24 * A missing iterator on itertools module?9ast
28 Mar 24 +- Re: A missing iterator on itertools module?1ast
28 Mar 24 +* Re: A missing iterator on itertools module?5Stefan Ram
28 Mar 24 i`* Re: A missing iterator on itertools module?4ast
28 Mar 24 i `* Re: A missing iterator on itertools module?3Stefan Ram
29 Mar 24 i  +- Re: A missing iterator on itertools module? (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
29 Mar 24 i  `- Re: A missing iterator on itertools module?1Mark Bourne
3 Apr 24 +- Re: A missing iterator on itertools module?1Antoon Pardon
3 Apr 24 `- Re: A missing iterator on itertools module?1<avi.e.gross

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal