First
|
Prev |
Next
|
Last
Pages: 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
Help with Regexp, \b This is a bit embarassing, but I seem to be misunderstanding how \b works in regexps. Please can someone explain why the following fails: from re import compile p = compile(r'\bword\b') m = p.match(' word ') assert m My understanding is that \b matches a space at the sta... 31 May 2010 20:46
A Friday Python Programming Pearl: random sampling Mark Dickinson wrote: N.B. I don't claim any originality for the algorithm; only for the implementation: the algorithm is based on an algorithm attributed to Robert Floyd, and appearing in Jon Bentley's 'Programming Pearls' book Actually it is the sequel, /More Programming Pearls/. (though that algori... 29 May 2010 13:32
Tkinter library reference Do we have a standard reference library for Tkinter available? -- Pradeep ... 31 May 2010 09:44
Python and Tkinter Programming by John Grayson On Fri, Jan 22, 2010 at 6:48 AM, Ethan Furman <ethan(a)stoneleaf.us> wrote: Peter wrote: On Jan 15, 9:12 am, Kevin Walzer <k...(a)codebykevin.com> wrote: On Jan 15, 6:24 am, Mark Roseman<m...(a)markroseman.com> Â wrote: Â Peter<peter.milli...(a)gmail.com> Â wrote: Besides, t... 31 May 2010 14:09
Py_single_input and the side-effects... Hi at all, I have a small problem with Py_single_input, that I dont really know what it actually does. I created my own interactive interpreter loop and when I create objects like p = TestObject() this instance is just deleted on Py_Finalize() even I delete the entire console scope long time before. It ... 17 Jun 2010 20:05
TypeError: _new_() takes exactly 3 arguments (2 given) - what doesit mean? On Wed, 26 May 2010 14:30:21 -0400 Terry Reedy <tjreedy(a)udel.edu> wrote: On 5/24/2010 2:52 PM, Jesse McDonnell wrote: I'm attempting to install Powerline http://code.google.com/p/powerline/, a computer reservation software based on CherryPy/Python using a MYSql database, at my local library and I'v... 28 May 2010 18:09
A Friday Python Programming Pearl: random sampling For a lazy Friday evening, here's a Python algorithm that seemed so cute that I just had to share it with everyone. I'm sure it's well known to many here, but it was new to me. Skip directly to the 'sample2' function to see the algorithm and avoid the commentary... Suppose that you want to select a number of el... 28 May 2010 17:03
Sockets and xml problem Hi in the following code class MyClientHandler(SocketServer.BaseRequestHandler): def handle(self): print self.client_address, now( ) time.sleep(5) while True: xmltxt = self.request.recv(1024) <--is this ok - enough? if not xmltxt: break doc... 28 May 2010 09:18
pythonMagick question Hello, I'm wanting to try out pythonMagick, but am pretty lost with this whole thing. What I'm wanting to do is view EPS and PDF files with Python and be able to zoom into the images to see smaller detail. I downloaded PythonMagick-0.9.1.tar and have been looking through that folder. The README file says:... 27 May 2010 22:32
ElementTree write creates large one line XML file .... On 5/27/10 7:52 PM, robert somerville wrote: Hi I am using Ubuntu 9.10 and Python 2.6.4 .. when I create an ElementTree object and the write it out using: xml.etree.ElementTree.write() , I get one single long single line files, instead of something that looks reasonable , what gives ??? (and is i... 27 May 2010 22:32 |