Re: [Python-Dev] ThreadedProcessPoolExecutor

2018-03-21 Thread Roberto Martínez
El mié., 21 mar. 2018 a las 16:23, Guido van Rossum () escribió: > Roberto, > > That looks like an interesting class. I presume you're intending to > publish this as a pip package on PyPI.python.org? > > Precisely. I'm no lawyer, but I believe you can license your code under a new license > (I re

[Python-Dev] ThreadedProcessPoolExecutor

2018-03-21 Thread Roberto Martínez
Hi, I've made a custom concurrent.futures.Executor mixing the ProcessPoolExecutor and ThreadPoolExecutor. I've published it here: https://github.com/nilp0inter/threadedprocess This executor is very similar to a ProcessPoolExecutor, but each process in the pool have it's own ThreadPoolExecutor i

Re: [Python-Dev] New security-annou...@python.org mailing list

2017-09-27 Thread Roberto Martínez
I can't see the lists either. Same message "No such list security-announce". Cheers. On Wed, Sep 27, 2017, 18:05 Jesus Cea wrote: > On 21/09/17 17:30, Barry Warsaw wrote: > > https://mail.python.org/mailman/listinfo/security-announce > > "No such list security-announce". > > > https://mail.pyth

Re: [Python-Dev] collections.abc for data and non-data descriptors

2017-01-17 Thread Roberto Martínez
nd you're better off just checking for __set__ (if it only has __set__ but not __get__, do you care what it is?). On Tue, Jan 17, 2017 at 10:18 AM, Roberto Martínez < robertomartin...@gmail.com> wrote: Well, for me having to check both __get__ and __str__ for a data descriptor f

Re: [Python-Dev] collections.abc for data and non-data descriptors

2017-01-17 Thread Roberto Martínez
ió: > For this use case I see nothing wrong with hasattr(myobj, '__set__'). > > On Tue, Jan 17, 2017 at 9:41 AM, Roberto Martínez < > robertomartin...@gmail.com> wrote: > > I need to check if some objects obey the descriptor protocol in the > construction of a me

Re: [Python-Dev] collections.abc for data and non-data descriptors

2017-01-17 Thread Roberto Martínez
situation where you miss them? > > --Guido > > On Tue, Jan 17, 2017 at 8:51 AM, Roberto Martínez < > robertomartin...@gmail.com> wrote: > > Hi, > > I miss abstract base classes in collections.abc implementing the > descriptor protocol. Any reason why they do not ex

[Python-Dev] collections.abc for data and non-data descriptors

2017-01-17 Thread Roberto Martínez
Hi, I miss abstract base classes in collections.abc implementing the descriptor protocol. Any reason why they do not exist? What do you think of adding NonDataDescriptor and DataDescriptor ABCs? Best regards, Roberto ___ Python-Dev mailing list Python-

Re: [Python-Dev] AutoNumber Enum

2016-06-29 Thread Roberto Martínez
Why the 'start' parameter default is 1? 0 (zero) is more consistent with other parts of the language: indexes, enumerate, range... El mié., 29 de jun. de 2016 21:26, Ethan Furman escribió: > On 06/29/2016 12:11 PM, Guido van Rossum wrote: > > > And how would you implement that without support fr

[Python-Dev] Which version is better? Phyton 27 or Phyton 35?

2016-04-01 Thread Roberto Martínez
Hi, I am having a hard time trying to choose one of this two products: Phyton 27: http://www.amazon.com/Phyton-27-Systemic-Bactericide-Fungicide/dp/B00VKPL8FU Phyton 35: http://www.amazon.com/Phyton-Bactericide-fungicide-Substitute-Liter/dp/B00BGE65VM Phyton 35 is announced as the "Substitute fo

[Python-Dev] Dinamically set __call__ method

2014-11-04 Thread Roberto Martínez
Hi folks, I am trying to replace dinamically the __call__ method of an object using setattr. Example: $ cat testcall.py class A: def __init__(self): setattr(self, '__call__', self.newcall) def __call__(self): print("OLD") def newcall(self): print("NEW") a=A(