Re: Best Python packages?

2008-07-18 Thread Ben Sizer
On Jul 16, 3:31 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Ben Sizer wrote: > > make my development a lot easier. > > Knowing what kind of development you do might help, of course.  Some > libraries are excellent in some contexts and suck badly in others... Sure. Mostl

Re: Best Python packages?

2008-07-22 Thread Ben Sizer
look on this collection helps > > http://wiki.python.org/moin/UsefulModules Yeah, I saw that. I hoped some people might have some more, but perhaps not. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Undefined calling conventions in Python.h

2008-07-23 Thread Ben Sizer
're not using managed code in your app, disable it in the project/build options. If you are, then perhaps you just need to specify that you're not with this DLL, though I've never had to deal with anything like that myself. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Undefined calling conventions in Python.h

2008-07-25 Thread Ben Sizer
On Jul 23, 1:19 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Ben Sizer wrote: > > You should put the extern block around the #include call > > rather than individual functions, as surely the C calling convention > > should apply to everything within. > > Hel

Re: Python GUI interpreter slower than DOS-version?

2008-08-12 Thread Ben Sizer
27;s crashed. It just means it's not servicing the message pump. Chances are high that the program is still running just as normal. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: How do clients(web browser) close a python CGI program that is not responding?

2006-03-28 Thread Ben Sizer
e problem in the first place. What sort of CGI program is this? -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: using range() in for loops

2006-04-05 Thread Ben Sizer
kay, or does it mean you are approaching the problem > incorrectly? Do you really need to do something "a number of times"? If so, range (or xrange) is perfect for the job. More often though, you need to do something "once for every ", so put your 'whatevers&#x

Re: Standalone Python functions in UML?

2006-04-05 Thread Ben Sizer
me, and may or may not exist, or the situation where multiple function calls with similar signatures can be redirected to one using some getattr trickery - these don't seem to play well with the static nature of UML. (Or editor auto-completion, or cross-referencing code in an IDE...) I tend

Re: About classes and OOP in Python

2006-04-11 Thread Ben Sizer
ects maintaining their own state, working together to produce the required results, as opposed to the procedural method where the program consists of functions that operate on a separate data set. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorators, Identity functions and execution...

2006-04-11 Thread Ben Sizer
st antiquated. Every day I come across people or programs that use tab stops every 2 or 8 columns. I am another fan of tabs every 4 columns, but unfortunately this isn't standard, so spaces in Python it is. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: New Karrigel page in Wikipedia

2006-04-13 Thread Ben Sizer
on Wikipedia are supposed to be from a neutral point of view and purely informative, not biased or instructive. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-08 Thread Ben Sizer
so simple for beginners. So, whether it is or has been > planned the core Python implementation of *scanf()* ? (prefered as a > batteries included method) Perhaps struct.unpack is close to what you need? Admittedly that doesn't read from a file, but that might not be a problem in mo

Confusion over etree.ElementTree.Element.getiterator

2010-07-03 Thread Ben Sizer
ript tags to be found, considering iterating over the whole lot found at least 2 at the end there. What am I doing wrong? >>> import sys >>> print sys.version 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] I will upgrade to 2.6.5 ASAP, but I don't see

Re: Confusion over etree.ElementTree.Element.getiterator

2010-07-03 Thread Ben Sizer
On Jul 3, 11:12 pm, Ben Sizer wrote: > >>> for el in root.getiterator(): > > ...        print el > [much output snipped] > http://www.w3.org/1999/xhtml}a at d871e8> > http://www.w3.org/1999/xhtml}a at d87288> > http://www.w3.org/1999/xhtml}script at d87300>

Re: Confusion over etree.ElementTree.Element.getiterator

2010-07-05 Thread Ben Sizer
HTML namespace'. Therefore I don't see how the example Python code given could work on a proper xhtml file, given that there should always be a namespace in effect but the code doesn't allow for it. That's my excuse anyway! :) -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3