`functools.partialmethod` simplification
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 77.2k
- Forks
- 35.9k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
Feature or enhancement
Proposal:
Now, as partial has __get__ and Placeholder it is probably a good idea to simplify partialmethod.
So the mental model of partialmethod can simply be:
partial, which always has the first argument set to Placeholder.
So partialmethod could maybe be a subclass partial, which would potentially simplify things.
Also, maybe there is a way so that partialmethod can be made obsolete altogether.
Will see where I can get to with this.
Any ideas welcome.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
https://github.com/python/cpython/issues/121027
https://github.com/python/cpython/pull/119827#issuecomment-2190108757
Linked PRs
- gh-124788
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Start by reading the functools.partialmethod and functools.partial entry points, including the Placeholder behavior described in the proposal. Review issue 121027 and PR 119827's discussion, then inspect linked PR 124788. Done would require resolving whether the simplification or obsolescence proposal is viable and defining the resulting implementation and compatibility changes.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- backend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 15/100