tuple creation in C extensions
Peter Schneider-Kamp
petersc at stud.ntnu.no
Wed Jun 14 07:10:21 EDT 2000
More information about the Python-list mailing list
Wed Jun 14 07:10:21 EDT 2000
- Previous message (by thread): tuple creation in C extensions
- Next message (by thread): tuple creation in C extensions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Just van Rossum wrote: > > >Just van Rossum <just at letterror.com> writes: > > > >This is a shorter-to-write, slower-to-run version. If you use > >Py_BuildValue, the code has to parse the format string in order to > >build the object. If you are coding in C because you're trying to > >speed up a speed-critical part of your program, the code you posted is > >the better way. > > On the other hand, creating tuples is probably not often something one does > inside an inner loop... On yet another hand it was for an IndexError patch for the main Python distribution. Not that it really matters as the patch was (for good reasons) not accepted. Just that speed was the main problem. ;) thnx-for-the-help-though-ly y'rs Peter -- Peter Schneider-Kamp ++47-7388-7331 Herman Krags veg 51-11 mailto:peter at schneider-kamp.de N-7050 Trondheim http://schneider-kamp.de
- Previous message (by thread): tuple creation in C extensions
- Next message (by thread): tuple creation in C extensions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list