Re: [Python-Dev] Stop using timeit, use perf.timeit!

2016-06-10 Thread Meador Inge
On Fri, Jun 10, 2016 at 6:13 AM, Victor Stinner wrote: The second result is a new perf module which includes all "tricks" > discovered in my research: compute average and standard deviation, > spawn multiple worker child processes, automatically calibrate the > number of outter-loop iterations, a

Re: [Python-Dev] C99

2016-06-04 Thread Meador Inge
On Sat, Jun 4, 2016 at 1:11 AM, Benjamin Peterson wrote: > So, what say you to updating PEP 7 to allow C99 features for Python 3.6 > (in so much as GCC and MSVC support them)? > +1 # Meador ___ Python-Dev mailing list Python-Dev@python.org https://ma

Re: [Python-Dev] Speeding up CPython 5-10%

2016-05-16 Thread Meador Inge
On Sun, May 15, 2016 at 2:23 AM, Cesare Di Mauro wrote: > Just one thing that comes to my mind: is the stack depth calculation > routine changed? It was suboptimal, and calculating a better number > decreases stack allocation, and increases the frame usage. > This is still a problem and came up

Re: [Python-Dev] ctypes compatibility with 2.3

2016-05-11 Thread Meador Inge
On Wed, May 11, 2016 at 11:07 AM, Thomas Heller wrote: Cool. While you're at it, the compatibility restriction for modulefinder > could also be lifted. +1 The question of modulefinder actually came up recently*: http://bugs.python.org/issue26881 -- Meador * Posting here for reference. Tho

Re: [Python-Dev] New poll about a macro for safe reference replacing

2015-12-23 Thread Meador Inge
On Wed, Dec 23, 2015 at 9:08 AM, Nick Coghlan wrote: > Within the Python context, the analogy from setattr and setitem at the > Python level to Py_SETREF at the C level is pretty solid, so it likely > makes sense to run with that as "good enough". > > In regards to Py_MOVEREF, while other langua

Re: [Python-Dev] New poll about a macro for safe reference replacing

2015-12-22 Thread Meador Inge
On Tue, Dec 22, 2015 at 3:58 AM, Serhiy Storchaka wrote: On 21.12.15 23:57, Steve Dower wrote: > >> Was Py_MOVEREF (or MOVE_REF) ever suggested? >> > > This would be nice name. The macro moves the ownership. But I think it's > too late. Otherwise we'll never finish the bikeshedding. FWIW, I lik

Re: [Python-Dev] Generated Bytecode ...

2015-11-01 Thread Meador Inge
On Fri, Oct 23, 2015 at 3:23 AM, Victor Stinner wrote: > Note: I propose "noopt" because we already have "optimization level 0" > which still uses optimizations, it's the default mode. It's different > than gcc -O0 which really disables all optimizations. I already prefix > the "noopt" suffix for

Re: [Python-Dev] cpython: Tighten-up code in the set iterator to use an entry pointer rather than

2015-07-09 Thread Meador Inge
On Thu, Jul 9, 2015 at 7:41 AM, Guido van Rossum wrote: > On Wed, Jul 8, 2015 at 10:19 PM, Serhiy Storchaka > wrote: >> >> On 08.07.15 01:45, Raymond Hettinger wrote: >>> >>> P.S. I don't think python-dev post was necessary or helpful (and I still >>> haven't had a chance to read the whole thre

Re: [Python-Dev] .clinic.c vs .c.clinic

2014-01-20 Thread Meador Inge
On Mon, Jan 20, 2014 at 2:05 AM, Larry Hastings wrote: Contestant 1: "Add .clinic.h" > > foo.c -> foo.c.clinic.h > foo.h -> foo.h.clinic.h > > -0 > Contestant 2: "Add .ac.h" > > foo.c -> foo.c.ac.h > foo.h -> foo.h.ac.h > > -1 > Contestant 3: "Add .clinic" > > foo.c -> foo.c.clinic > foo.h -

Re: [Python-Dev] Changing Clinic's output

2014-01-14 Thread Meador Inge
On Tue, Jan 14, 2014 at 3:12 PM, Antoine Pitrou wrote: On Tue, 14 Jan 2014 12:22:12 -0800 > Larry Hastings wrote: > > > > https://bitbucket.org/larry/clinic-buffer-samples/src > > > > In it I converted Modules/_pickle.c four different ways. There's a > > README, please read it. > > I'm +1 o

Re: [Python-Dev] 128 bit integer support

2013-12-05 Thread Meador Inge
On Wed, Dec 4, 2013 at 8:15 AM, Antoine Pitrou wrote: Aren't you talking about the struct module? In ctypes, it seems it > would be sufficient to add a "c_int128" type (and/or "c_uint128"). Even in ctypes these codes are used internally for the field descriptors. For ctypes "c_int128" seems rea

Re: [Python-Dev] PandaBoard, Raspberry Pi coming to Buildbot fleet

2012-12-20 Thread Meador Inge
On Thu, Dec 20, 2012 at 2:23 PM, Barry Warsaw wrote: > On Dec 20, 2012, at 02:54 PM, Trent Nelson wrote: > >>On Thu, Dec 20, 2012 at 10:52:56AM -0800, Trent Nelson wrote: >>> I'll work on setting the ARM boards up next week. >> >>Does anyone have a preference regarding the operating syste

Re: [Python-Dev] AST optimizer implemented in Python

2012-08-12 Thread Meador Inge
On Sat, Aug 11, 2012 at 1:30 PM, Victor Stinner wrote: > Hi, > > I started to implement an AST optimizer in Python. It's easy to create > a new AST tree, so I'm surprised that I didn't find any existing > project. > > https://bitbucket.org/haypo/misc/src/tip/python/ast_optimizer.py Very cool. >

Re: [Python-Dev] 2.7 releases

2012-07-27 Thread Meador Inge
On Thu, Jul 26, 2012 at 1:50 PM, Thomas Heller wrote: > So, I have uploaded a patch and asked for review (since I'm not 1000% > sure that it is absolutely correct): > > http://bugs.python.org/issue15459 I'll take a look at this in the next few days. -- Meador ___

Re: [Python-Dev] [Python-checkins] cpython (merge 3.2 -> default): MERGE: Better test for Issue #15402: Add a __sizeof__ method to struct.Struct

2012-07-23 Thread Meador Inge
On Mon, Jul 23, 2012 at 11:38 AM, Jesus Cea wrote: >> As for the tests, I intentionally kept them the way that Serhiy >> contributed them -- using >= instead of >. I kept them this way >> because we also discussed in issue14596 the prospect of optimizing >> the way repeat counts are handled. Th

Re: [Python-Dev] Doc/ACKS and Misc/ACKS

2012-07-23 Thread Meador Inge
On Mon, Jul 23, 2012 at 12:17 PM, Antoine Pitrou wrote: > On Mon, 23 Jul 2012 18:38:30 +0200 > Jesus Cea wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 23/07/12 18:27, Meador Inge wrote: >> > Doc/ACKS.txt is *only* for acknowledging d

Re: [Python-Dev] [Python-checkins] cpython (merge 3.2 -> default): MERGE: Better test for Issue #15402: Add a __sizeof__ method to struct.Struct

2012-07-23 Thread Meador Inge
On Mon, Jul 23, 2012 at 11:17 AM, jesus.cea wrote: > http://hg.python.org/cpython/rev/b9a3ed1b14b9 > changeset: 78260:b9a3ed1b14b9 > parent: 78257:03063e718f5f > parent: 78259:1911e192af0d > user:Jesus Cea > date:Mon Jul 23 18:16:18 2012 +0200 > summary: > MERGE: Be

Re: [Python-Dev] [Python-checkins] cpython (merge 3.2 -> default): Merge #15232: correctly mangle From lines in MIME preamble and epilogue

2012-07-23 Thread Meador Inge
On Mon, Jul 23, 2012 at 12:34 AM, Meador Inge wrote: > On Sun, Jul 22, 2012 at 8:55 PM, r.david.murray > wrote: > >> http://hg.python.org/cpython/rev/80b81658455b >> changeset: 78246:80b81658455b >> parent: 78244:c43d73277756 >> parent: 78245:b97

Re: [Python-Dev] [Python-checkins] cpython (merge 3.2 -> default): Merge #15232: correctly mangle From lines in MIME preamble and epilogue

2012-07-22 Thread Meador Inge
On Sun, Jul 22, 2012 at 8:55 PM, r.david.murray wrote: > http://hg.python.org/cpython/rev/80b81658455b > changeset: 78246:80b81658455b > parent: 78244:c43d73277756 > parent: 78245:b97f65f2298d > user:R David Murray > date:Sun Jul 22 21:53:54 2012 -0400 > summary: >

Re: [Python-Dev] VS 11 Express is Metro only.

2012-06-08 Thread Meador Inge
On Fri, May 25, 2012 at 7:06 AM, wrote: > I hereby predict that Microsoft will revert this decision, and that VS > Express > 11 will be able to build CPython. And your prediction was right on :-) : http://blogs.msdn.com/b/visualstudio/archive/2012/06/08/visual-studio-express-2012-for-windows-de

Re: [Python-Dev] dir() in inspect.py ?

2012-05-20 Thread Meador Inge
On Tue, May 15, 2012 at 3:13 PM, Christian Tismer wrote: > Is the usage of dir() correct in this context or is the doc right? > It would be nice to add a sentence of clarification if the use of > dir() is in fact the correct way to implement inspect. There is already a note in the inspect.getmem

Re: [Python-Dev] OS X build break

2012-02-04 Thread Meador Inge
On Sat, Feb 4, 2012 at 7:35 AM, Ned Deily wrote: > Chances are you are using llvm-gcc-4.2, the default CC for Xcode 4.2. Yup: motherbrain:python meadori$ sw_vers ProductName:Mac OS X ProductVersion: 10.7.2 BuildVersion: 11C74 motherbrain:python meadori$ gcc --version i686-apple-darwin11-l

[Python-Dev] OS X build break

2012-02-03 Thread Meador Inge
On Sat, Dec 31, 2011 at 5:56 PM, Guido van Rossum wrote: > PS. I would propose a specific fix but I can't seem to build a working > CPython from the trunk on my laptop (OS X 10.6, Xcode 4.1). I get this error > late in the build: > > ./python.exe -SE -m sysconfig --generate-posix-vars > Fatal Pyt

Re: [Python-Dev] [Python-checkins] cpython (3.1): Closes #13807: Now checks for sys.stderr being there before writing to it.

2012-01-20 Thread Meador Inge
On Fri, Jan 20, 2012 at 5:32 AM, vinay.sajip wrote: > http://hg.python.org/cpython/rev/73dad4940b88 > changeset:   74538:73dad4940b88 > branch:      3.1 I thought that the 3.1 branch is in security mode? Is this a security related fix? >From my brief scan of the changeset, it doesn't seem to be.

Re: [Python-Dev] LZMA support has landed

2011-11-29 Thread Meador Inge
On Tue, Nov 29, 2011 at 4:59 PM, Nadeem Vawda wrote: > "liblzma-dev"; on Fedora I believe the correct package is "xz-devel". "xz-devel" is right. I just verified a build of the new module on a fresh F16 system. -- Meador ___ Python-Dev mailing list

Re: [Python-Dev] [Python-checkins] cpython: Issue #1172711: Add 'long long' support to the array module.

2011-09-21 Thread Meador Inge
On Wed, Sep 21, 2011 at 11:02 AM, Stefan Krah wrote: > Ezio Melotti wrote: >>> +@unittest.skipIf(not have_long_long, 'need long long support') >> >> I think this would read better with skipUnless and s/have/has/: >> >> @unittest.skipUnless(HAS_LONG_LONG, 'need long long support') > > skipUnless(

[Python-Dev] python -m tokenize in 3.x ?

2011-09-07 Thread Meador Inge
Hi All, I have been investing some 'tokenize' bugs recently. As a part of that investigation I was trying to use '-m tokenize', which works great in 2.x: [meadori@motherbrain cpython]$ python2.7 -m tokenize test.py 1,0-1,5:NAME'print' 1,6-1,21: STRING '"Hello, World!"' 1,21-1,

Re: [Python-Dev] Ctypes and the stdlib (was Re: LZMA compression support in 3.3)

2011-08-29 Thread Meador Inge
On Sat, Aug 27, 2011 at 11:58 PM, Terry Reedy wrote: > Dan, I once had the more or less the same opinion/question as you with > regard to ctypes, but I now see at least 3 problems. > > 1) It seems hard to write it correctly. There are currently 47 open ctypes > issues, with 9 being feature reques

Re: [Python-Dev] API refactoring tracker field for Python4

2011-01-09 Thread Meador Inge
On Fri, Jan 7, 2011 at 11:20 AM, anatoly techtonik wrote: > This happened, because of poor bug management, where community doesn't > play any role in determining which issues are desired. > This mostly because of limitation of our tracker and desire of people > to extend it to get damn "stars", mo

Re: [Python-Dev] issue2180 and using 'tokenize' with Python 3 'str's

2010-09-28 Thread Meador Inge
On Tue, Sep 28, 2010 at 7:09 AM, Nick Coghlan wrote: > A feature request on the tracker is the best way to make that happen. > Done - http://bugs.python.org/issue9969. Thanks for the feedback everyone. -- Meador ___ Python-Dev mailing list Python-Dev

[Python-Dev] issue2180 and using 'tokenize' with Python 3 'str's

2010-09-27 Thread Meador Inge
Hi All, I was going through some of the open issues related to 'tokenize' and ran across 'issue2180'. The reproduction case for this issue is along the lines of: >>> tokenize.tokenize(io.StringIO("if 1:\n \\\n #hey\n print 1").readline) but, with 'py3k' I get: >>> tokenize.tokenize(io.Str

Re: [Python-Dev] Reindenting patches

2010-05-09 Thread Meador Inge
On Wed, May 5, 2010 at 8:10 AM, Antoine Pitrou wrote: > For the record, I've added to the untabify script a patch rewriting option > ("-p") which reindents all patch hunks for C files containing tabs. It > should > minimize manual reformatting work with existing patches. > I just tried '-p' with

Re: [Python-Dev] Enhanced tracker privileges for dangerjim to do triage.

2010-04-26 Thread Meador Inge
> In other words, I think the goal is not just to add new developers to > the community, but to continue to build a strong community of developers. FWIW, from a Python community newbie that has submitted a few patches and commented on the tracker for a few months, I agree with this statement and t

Re: [Python-Dev] C++

2010-03-12 Thread Meador Inge
On Fri, Mar 12, 2010 at 4:03 PM, Antoine Pitrou wrote: > Le Fri, 12 Mar 2010 13:29:09 -0600, > s...@pobox.com a écrit : > > > > Traditionally Python has run on some (minority) platforms where C++ > > was unavailable. > > Is this concern still valid? We are in the 2010s now. > I'm not saying I wan

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-03-01 Thread Meador Inge
On Sat, Feb 27, 2010 at 11:20 AM, Thomas Heller wrote: > See issue 887237: > > http://bugs.python.org/issue887237 > Thanks for the link Thomas. Since there is already interest in adding arithmetic to ctypes, perhaps that is an option. One question that raises in my mind, though, is should only

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-02-27 Thread Meador Inge
On Fri, Feb 26, 2010 at 4:08 PM, Greg Ewing wrote: > Meador Inge wrote: > > 3. Using Decimal keeps the desired precision, >> > > Well, sort of, but then you end up doing arithmetic in > decimal instead of binary, which could give different > results. > Even w

[Python-Dev] PEP 3188: Implementation Questions

2010-02-25 Thread Meador Inge
Hi All, Recently some discussion began in the issue 3132 thread ( http://bugs.python.org/issue3132) regarding implementation of the new struct string syntax for PEP 3118. Mark Dickinson suggested that I bring the discussion on over to Python Dev. Below is a summary of the questions\comments from

Re: [Python-Dev] Executing zipfiles and directories (was Re: PyCon Keynote)

2010-01-26 Thread Meador Inge
On Tue, Jan 26, 2010 at 9:35 PM, David Lyon wrote: > One problem is that in many places, users are trained specifically > under windows to *never* run anything in a zip file. As it might > contain a virus and "bring down the whole company network". I have even hit cases where Windows flat out bloc

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-25 Thread Meador Inge
> We really do need precise descriptions of the problems so we can avoid them. Initialization of objects with static storage duration typically get a bad wrap for two main reasons: (1) each toolchain implements them differently (but typically by storing initialization thunks in a table that is wal