[Python-Dev] pytracemalloc 0.7: new tool to track memory leaks in Python

2013-03-07 Thread Victor Stinner
Hi, See below for a copy of my email posted to python-list and python-announce mailing lists. pytracemalloc tool requires a patch on Python to hook memory allocation functions. I posted the patch there: http://bugs.python.org/issue3329 Thanks to this patch, it would also be possible to enable or

[Python-Dev] PEP 434: IDLE Enhancement Exception

2013-03-07 Thread Terry Reedy
This re-write of Todd's draft focuses better on the specific proposal and motivation. It tries to take into account comments posted both here and on python-ideas PEP: 434 Title: IDLE Enhancement Exception for All Branches Ver

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

2013-03-07 Thread Georg Brandl
Am 07.03.2013 11:08, schrieb Matej Cepl: >> Anyway, you spotted a missed optimization: it's now "fixed" in >> Python 3.3 and 3.4 by the following commits. > > Well, whatever is the problem, it is not fixed in python 3.3.0 > (as you can see in > https://travis-ci.org/mcepl/html2text/builds/4969045

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

2013-03-07 Thread Steve Dower
> From: 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 e

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

2013-03-07 Thread Eli Bendersky
On Thu, Mar 7, 2013 at 5:53 AM, Thomas Heller wrote: > 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 othe

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

2013-03-07 Thread Thomas Heller
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 not convertible to DIRENT_p

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

2013-03-07 Thread Victor Stinner
You should try to write a simple test not using your library (just copy/paste code) reproducing the issue. If you can do that, please fill an issue on bugs.python.org. Victor 2013/3/7 Matej Cepl : > On 2013-03-06, 18:34 GMT, Victor Stinner wrote: >> In short, Unicode was rewritten in Python 3.3 f

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

2013-03-07 Thread Eli Bendersky
On Thu, Mar 7, 2013 at 3:37 AM, Thomas Heller wrote: > Am 06.03.2013 18:19, schrieb 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 argt

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

2013-03-07 Thread Thomas Heller
Am 06.03.2013 18:19, schrieb Eli Bendersky: On Wed, Mar 6, 2013 at 8:33 AM, Andrew Svetlov mailto:andrew.svet...@gmail.com>> 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-

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

2013-03-07 Thread Xavier Morel
On 2013-03-07, at 11:08 , Matej Cepl wrote: > On 2013-03-06, 18:34 GMT, Victor Stinner wrote: >> 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

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

2013-03-07 Thread Matej Cepl
On 2013-03-06, 18:34 GMT, Victor Stinner wrote: > 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