[Python-Dev] Add PyDict_GetItemSetDefault() as C-API for dict.setdefault()

2013-03-06 Thread Stefan Behnel
Hi, I've written a patch that adds a new C-API call for dict.setdefault(). The reason is that there is currently no way to test for a key and insert a fallback value for it without either evaluating the hash function twice or calling through the Python function. Both may involve considerable overh

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Case Van Horsen
On Wed, Mar 6, 2013 at 3:32 PM, Terry Reedy wrote: > On 3/6/2013 12:29 PM, Steve Dower wrote: >> >> From: Case Van Horsen > > >>> The "Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1" >>> is still available for download. It includes the command line compilers >>> that are >>> used w

Re: [Python-Dev] Introducing Electronic Contributor Agreements

2013-03-06 Thread Terry Reedy
On 3/4/2013 3:46 PM, Antoine Pitrou wrote: On Mon, 04 Mar 2013 15:46:48 -0500 Terry Reedy wrote: Either policy could be facilitated by tracker changes. In order to see the file upload box, one must login and the tracker knows who has a CLA on file (as indicated by a * suffix on the name). If

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Chris Angelico
On Thu, Mar 7, 2013 at 9:52 AM, Terry Reedy wrote: > On 3/6/2013 11:55 AM, Chris Angelico wrote: > >> Someone would have to check, but in most cases, software licenses >> govern the use, more than the distribution. If you're allowed to >> download it free of charge from microsoft.com, you should b

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Terry Reedy
On 3/6/2013 12:29 PM, Steve Dower wrote: From: Case Van Horsen The "Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1" is still available for download. It includes the command line compilers that are used with VS 2008. I have used to create extensions for Python 2.6 to 3.2. There

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Terry Reedy
On 3/6/2013 11:55 AM, Chris Angelico wrote: Someone would have to check, but in most cases, software licenses govern the use, more than the distribution. If you're allowed to download it free of charge from microsoft.com, you should be able to get hold of it in some other way and it be exactly t

Re: [Python-Dev] Introducing Electronic Contributor Agreements

2013-03-06 Thread Terry Reedy
On 3/6/2013 3:06 PM, Steven D'Aprano wrote: On 05/03/13 09:08, Brett Cannon wrote: Depends on your paranoia. If you're worried about accidentally lifting IP merely by reading someone's source code, then you wouldn't want to touch code without the CLA signed. Now I'm not that paranoid, but I'm

Re: [Python-Dev] Introducing Electronic Contributor Agreements

2013-03-06 Thread Stephen J. Turnbull
Steven D'Aprano writes: > Pardon my ignorance, but how does a CLA protect us in the event of an IP > violation? By licensing the content to the PSF, the contributor implicitly claims that he has the right to do so (I think the AFL even has an explicit provenance clause). This protects the PSF

Re: [Python-Dev] Introducing Electronic Contributor Agreements

2013-03-06 Thread Brett Cannon
On Wed, Mar 6, 2013 at 3:06 PM, Steven D'Aprano wrote: > On 05/03/13 09:08, Brett Cannon wrote: > > Depends on your paranoia. If you're worried about accidentally lifting IP >> merely by reading someone's source code, then you wouldn't want to touch >> code without the CLA signed. >> >> Now I'm

Re: [Python-Dev] Introducing Electronic Contributor Agreements

2013-03-06 Thread Steven D'Aprano
On 05/03/13 09:08, Brett Cannon wrote: Depends on your paranoia. If you're worried about accidentally lifting IP merely by reading someone's source code, then you wouldn't want to touch code without the CLA signed. Now I'm not that paranoid, but I'm still not about to commit someone's code now

Re: [Python-Dev] Difference in RE between 3.2 and 3.3 (or Aaron Swartz memorial)

2013-03-06 Thread Victor Stinner
Hi, In short, Unicode was rewritten in Python 3.3 for the PEP 393. It's not surprising that minor details like singleton differ. You should not use "is" to compare strings in Python, or your program will fail on other Python implementations (like PyPy, IronPython, or Jython) or even on a different

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Steve Dower
From: Case Van Horsen > On Wed, Mar 6, 2013 at 2:20 AM, Terry Reedy wrote: > > Clicking this link > > http://www.microsoft.com/en-us/download/details.aspx?id=14597 > > on this Developer Guide page > > http://docs.python.org/devguide/setup.html#windows > > now returns a > > "We are sorry, the page

Re: [Python-Dev] [docs] undocumented argtypes magic in ctypes?

2013-03-06 Thread Eli Bendersky
On Wed, Mar 6, 2013 at 8:33 AM, Andrew Svetlov wrote: > Looks like bug for me. > ctypes seems to auto-convert arguments when argtypes is specified. This fact is documented. However, I'm not sure whether this auto-conversion is advanced enough to apply byref. Because otherwise, DIRENT is certainly

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Steve Dower
From: Terry Reedy > Clicking this link > http://www.microsoft.com/en-us/download/details.aspx?id=14597 > on this Developer Guide page > http://docs.python.org/devguide/setup.html#windows > now returns a > "We are sorry, the page you requested cannot be found." > page with search results. > > The f

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Robert Kern
On 2013-03-06 16:55, Chris Angelico wrote: On Thu, Mar 7, 2013 at 3:46 AM, Stefan Behnel wrote: Chris Angelico, 06.03.2013 17:30: On Thu, Mar 7, 2013 at 1:40 AM, Ezio Melotti wrote: I did try a few weeks ago, when I had to download a copy of Windows for a project. Long story short, after 30+

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Case Van Horsen
On Wed, Mar 6, 2013 at 2:20 AM, Terry Reedy wrote: > Clicking this link > http://www.microsoft.com/en-us/download/details.aspx?id=14597 > on this Developer Guide page > http://docs.python.org/devguide/setup.html#windows > now returns a > "We are sorry, the page you requested cannot be found." > pa

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Brian Curtin
On Wed, Mar 6, 2013 at 10:55 AM, Chris Angelico wrote: > Is there any plan for future Python versions to use a free compiler on > Windows? That would eliminate this issue, but presumably would create > others. No plan, although there are at times patches/issues floating around to add some level o

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Chris Angelico
On Thu, Mar 7, 2013 at 3:46 AM, Stefan Behnel wrote: > Chris Angelico, 06.03.2013 17:30: >> On Thu, Mar 7, 2013 at 1:40 AM, Ezio Melotti wrote: >>> I did try a few weeks ago, when I had to download a copy of Windows >>> for a project. Long story short, after 30+ minutes and a number of >>> confir

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Stefan Behnel
Chris Angelico, 06.03.2013 17:30: > On Thu, Mar 7, 2013 at 1:40 AM, Ezio Melotti wrote: >> I did try a few weeks ago, when I had to download a copy of Windows >> for a project. Long story short, after 30+ minutes and a number of >> confirmation emails I reached a point where I had a couple of new

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Chris Angelico
On Thu, Mar 7, 2013 at 1:40 AM, Ezio Melotti wrote: > I did try a few weeks ago, when I had to download a copy of Windows > for a project. Long story short, after 30+ minutes and a number of > confirmation emails I reached a point where I had a couple of new > accounts on MSDN/Dreamspark, a "purc

Re: [Python-Dev] Difference in RE between 3.2 and 3.3 (or Aaron Swartz memorial)

2013-03-06 Thread MRAB
On 2013-03-06 14:18, Amaury Forgeot d'Arc wrote: Hi, 2013/3/6 Matěj Cepl mailto:mc...@redhat.com>> On 2013-02-26, 16:25 GMT, Terry Reedy wrote: > On 2/21/2013 4:22 PM, Matej Cepl wrote: >> as my method to commemorate Aaron Swartz, I have decided to port his >> html2text to w

Re: [Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Ezio Melotti
Hi, On Wed, Mar 6, 2013 at 12:20 PM, Terry Reedy wrote: > Clicking this link > http://www.microsoft.com/en-us/download/details.aspx?id=14597 > on this Developer Guide page > http://docs.python.org/devguide/setup.html#windows > now returns a > "We are sorry, the page you requested cannot be found.

Re: [Python-Dev] Difference in RE between 3.2 and 3.3 (or Aaron Swartz memorial)

2013-03-06 Thread Amaury Forgeot d'Arc
Hi, 2013/3/6 Matěj Cepl > > On 2013-02-26, 16:25 GMT, Terry Reedy wrote: > > On 2/21/2013 4:22 PM, Matej Cepl wrote: > >> as my method to commemorate Aaron Swartz, I have decided to port his > >> html2text to work fully with the latest python 3.3. After some time > >> dealing with various bugs,

Re: [Python-Dev] Difference in RE between 3.2 and 3.3 (or Aaron Swartz memorial)

2013-03-06 Thread R. David Murray
On Wed, 06 Mar 2013 14:09:54 +0100, =?UTF-8?Q?Mat=C4=9Bj?= Cepl wrote: > So, in the end, I have went the long way and bisected cpython to > find the commit which broke my tests, and it seems that the > culprit is http://hg.python.org/cpython/rev/123f2dc08b3e so it is > clearly something Unicod

Re: [Python-Dev] built-in Python test runner (was: Python Language Summit at PyCon: Agenda)

2013-03-06 Thread Nick Coghlan
On Wed, Mar 6, 2013 at 4:45 PM, Lennart Regebro wrote: > Perhaps we can solve this outside distutils-sig so that distutils-sig > can concentrate on the harder problems? It's a distutils-sig problem because you need a way to publish any new testing related metadata, and because we're planning to e

Re: [Python-Dev] Difference in RE between 3.2 and 3.3 (or Aaron Swartz memorial)

2013-03-06 Thread Matěj Cepl
On 2013-02-26, 16:25 GMT, Terry Reedy wrote: > On 2/21/2013 4:22 PM, Matej Cepl wrote: >> as my method to commemorate Aaron Swartz, I have decided to port his >> html2text to work fully with the latest python 3.3. After some time >> dealing with various bugs, I have now in my repo >> https://githu

[Python-Dev] VC++ 2008 Express Edition now locked away?

2013-03-06 Thread Terry Reedy
Clicking this link http://www.microsoft.com/en-us/download/details.aspx?id=14597 on this Developer Guide page http://docs.python.org/devguide/setup.html#windows now returns a "We are sorry, the page you requested cannot be found." page with search results. The first search result http://social.ms