Re: [Python-Dev] Would like to contribute to Core Python Comunity on the Project Idea

2014-02-15 Thread Jessica McKellar
Hi Nitin, Thanks for your interest in CPython for Google Summer of Code. We are still getting our ducks in a row, and mentor organizations haven't been finalized yet (the official mentor list will go out on February 24th). Can you check back in then? In the meantime, I recommend: 1. Joining htt

Re: [Python-Dev] Would like to contribute to Core Python Comunity on the Project Idea

2014-02-15 Thread Nitin Agarwal
Thanks for your reply. I have joined on the pythonmentors.com and gone through the developer guide. Yes, I am going through the present bugs to resolve some of them. Could you Please reply as soon as you get the mentors allocated for the Possible email projects being proposed for Gsoc 2014. It w

Re: [Python-Dev] Add Py_REPLACE and Py_XREPLACE macros

2014-02-15 Thread Serhiy Storchaka
29.01.14 20:24, Serhiy Storchaka написав(ла): The Py_CLEAR macros is used as safe alternative for following unsafe idiomatic code: Py_XDECREF(ptr); ptr = NULL; But other unsafe idiomatic code is widely used in the sources: Py_XDECREF(ptr); ptr = new_value; Every occurrence

[Python-Dev] Using more specific methods in Python unit tests

2014-02-15 Thread Serhiy Storchaka
Many Python tests were written a very long time before the unittest, using simple asserts. Then, when they have been ported to the unittest, asserts were replaced with the assert_ method and then with assertTrue. The unittest has a number of other methods to check for and report failure, from a

[Python-Dev] Pickling of Enums

2014-02-15 Thread Serhiy Storchaka
How Enum items should be pickled, by value or by name? I think that Enum will be used to collect system-depending constants, so the value of AddressFamily.AF_UNIX can be 1 on one platform and 2 on other. If pickle enums by value, then pickled AddressFamily.AF_INET on on platform can be unpickl

Re: [Python-Dev] Using more specific methods in Python unit tests

2014-02-15 Thread Benjamin Peterson
On Sat, Feb 15, 2014, at 10:12 AM, Serhiy Storchaka wrote: > Many Python tests were written a very long time before the unittest, > using simple asserts. Then, when they have been ported to the unittest, > asserts were replaced with the assert_ method and then with assertTrue. > The unittest has

Re: [Python-Dev] Pickling of Enums

2014-02-15 Thread Antoine Pitrou
On Sat, 15 Feb 2014 21:01:36 +0200 Serhiy Storchaka wrote: > How Enum items should be pickled, by value or by name? > > I think that Enum will be used to collect system-depending constants, so > the value of AddressFamily.AF_UNIX can be 1 on one platform and 2 on > other. If pickle enums by val

Re: [Python-Dev] Using more specific methods in Python unit tests

2014-02-15 Thread Terry Reedy
On 2/15/2014 1:12 PM, Serhiy Storchaka wrote: Many Python tests were written a very long time before the unittest, using simple asserts. Then, when they have been ported to the unittest, asserts were replaced with the assert_ method and then with assertTrue. The unittest has a number of other met

Re: [Python-Dev] Possible major bug with zipimport on Windows in Python 3.3.4

2014-02-15 Thread Paul Moore
On 13 February 2014 20:58, Paul Moore wrote: > On 13 February 2014 20:54, Donald Stufft wrote: >> >> On Feb 13, 2014, at 3:53 PM, Paul Moore wrote: >> >>> Can someone please take a look at http://bugs.python.org/issue20621 >>> for me? It appears that there is a significant problem with zipimport

Re: [Python-Dev] Using more specific methods in Python unit tests

2014-02-15 Thread Ned Deily
In article <1392492250.26338.83831085.39a5e...@webmail.messagingengine.com>, Benjamin Peterson wrote: > On Sat, Feb 15, 2014, at 10:12 AM, Serhiy Storchaka wrote: > > Although Raymond approved a patch for test_bigmem [2], his expressed the > > insistent recommendation not to do this. So I stop

Re: [Python-Dev] Add Py_REPLACE and Py_XREPLACE macros

2014-02-15 Thread Nick Coghlan
On 16 February 2014 02:52, Serhiy Storchaka wrote: > There are objections to these patches. Raymond against backporting the patch > unless some known bugs are being fixed [1]. But it fixes at least one bug > that caused a crash. And I suspect that there may be other bugs, just we > still have no r

Re: [Python-Dev] Using more specific methods in Python unit tests

2014-02-15 Thread Nick Coghlan
On 16 February 2014 09:20, Ned Deily wrote: > In article > <1392492250.26338.83831085.39a5e...@webmail.messagingengine.com>, > Benjamin Peterson wrote: >> On Sat, Feb 15, 2014, at 10:12 AM, Serhiy Storchaka wrote: >> > Although Raymond approved a patch for test_bigmem [2], his expressed the >> >