Re: [Python-Dev] Have problem when building python3.5.1 rpm with default SPEC file

2017-01-22 Thread Stefan Ring
> now that the SPEC file of fedora is open source, how about redhat's, how > could I get it? Fedora's spec files lives here: http://pkgs.fedoraproject.org/cgit/rpms/python3.git ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/ma

[Python-Dev] Update on the GitHub migration

2017-01-22 Thread Brett Cannon
The last blocker is updating issues on bugs.python.org when a commit is made that references an issue (Maciej is working on it, although as usual I'm sure help is welcome). Once that's in then it will be time to choose a date to stop commits and do the conversion. Once that's done it will be a bunc

Re: [Python-Dev] Default formatting

2017-01-22 Thread Serhiy Storchaka
On 25.10.16 12:37, Serhiy Storchaka wrote: Classes that doesn't define the __format__ method for custom PEP 3101 formatting inherits it from parents. Originally the object.__format__ method was designed as [1]: def __format__(self, format_spec): return format(str(self), format_spec)

[Python-Dev] adding threaded tests to the test suite

2017-01-22 Thread Ethan Furman
Question: I need to add a threaded test to the enum test module [1] -- is there anything extra I need to worry about besides the test itself? Setting or resetting or using a tool library, etc? -- ~Ethan~ [1] The test to be added: def test_unique_composite(self): # override __eq

Re: [Python-Dev] Default formatting

2017-01-22 Thread Ethan Furman
On 01/22/2017 11:48 AM, Serhiy Storchaka wrote: On 25.10.16 12:37, Serhiy Storchaka wrote: Classes that doesn't define the __format__ method for custom PEP 3101 formatting inherits it from parents. Originally the object.__format__ method was designed as [1]: def __format__(self, format_spe

Re: [Python-Dev] adding threaded tests to the test suite

2017-01-22 Thread Victor Stinner
There is @support.reap_thread which can help. Victor Le dim. 22 janv. 2017 à 21:04, Ethan Furman a écrit : > Question: I need to add a threaded test to the enum test module [1] -- is > there anything extra I > > need to worry about besides the test itself? Setting or resetting or > using a to

Re: [Python-Dev] adding threaded tests to the test suite

2017-01-22 Thread Martin Panter
> Le dim. 22 janv. 2017 à 21:04, Ethan Furman a écrit : >> Question: I need to add a threaded test to the enum test module [1] -- is >> there anything extra I >> need to worry about besides the test itself? Setting or resetting or >> using a tool library, etc? >> >> threads = [] >> for i in rang

Re: [Python-Dev] adding threaded tests to the test suite

2017-01-22 Thread Zachary Ware
On Sun, Jan 22, 2017 at 2:02 PM, Ethan Furman wrote: > Question: I need to add a threaded test to the enum test module [1] -- is > there anything extra I > need to worry about besides the test itself? Setting or resetting or using > a tool library, etc? As far as I know, the only extras to worr

Re: [Python-Dev] adding threaded tests to the test suite

2017-01-22 Thread Zachary Ware
On Sun, Jan 22, 2017 at 2:39 PM, Martin Panter wrote: > As I understand, @reap_threads basically does a join() on each > background thread, with a total timeout of 1 s. So since your test is > unlikely to fail between starting threads and joining them, I don’t > think you need to use @reap_threads

Re: [Python-Dev] adding threaded tests to the test suite

2017-01-22 Thread Ethan Furman
On 01/22/2017 12:02 PM, Ethan Furman wrote: Question: I need to add a threaded test to the enum test module [1] -- is there anything extra I need to worry about besides the test itself? Setting or resetting or using a tool library, etc? Thanks everyone. @support.reap_threads and skipping

Re: [Python-Dev] adding threaded tests to the test suite

2017-01-22 Thread Serhiy Storchaka
On 22.01.17 22:02, Ethan Furman wrote: Question: I need to add a threaded test to the enum test module [1] -- is there anything extra I need to worry about besides the test itself? Setting or resetting or using a tool library, etc? You can use the test.support.start_threads() context manager.

[Python-Dev] Hello World

2017-01-22 Thread Ramsey D'silva
Hello World, I am a python developer that has lurked beyond my box. Nice to meet all of you'll. I'm excited to learn and hopefully contribute someday. Best Regards, Ramsey https://linkedin.com/in/ramseydsilva ___ Python-Dev mailing list Python-Dev@pyt