Message175532
> Possibly reduce could be handled in a similar way with a fallback python
> implementation? Otherwise your suggestion of conditionally adding it to __all__
> makes sense to me.
In the meantime I'd expect the import of _functools.reduce to not be wrapped in a try block. Does that have an impact on coverage?
>> * Should the pure Python partial only be used if _functools.partial is not available?
>> * Should _functools.partial be removed?
>
> What are the main considerations to properly answer these last questions? Performance
> comparison between the implementations, maintainability?
Sorry, the first time through I missed the part of the patch that tries to import _functools.partial _after_ the pure Python version is defined. |
|
Date |
User |
Action |
Args |
2012-11-14 03:51:05 | eric.snow | set | recipients:
+ eric.snow, rhettinger, ncoghlan, pitrou, jackdied, ezio.melotti, eric.araujo, Thorney, python-dev |
2012-11-14 03:51:05 | eric.snow | set | messageid: <1352865065.61.0.586605726674.issue12428@psf.upfronthosting.co.za> |
2012-11-14 03:51:05 | eric.snow | link | issue12428 messages |
2012-11-14 03:51:04 | eric.snow | create | |
|