Re: pure python gaussian blur

2007-08-14 Thread Patrick Doyle
On 8/14/07, Gerdus van Zyl <[EMAIL PROTECTED]> wrote: > Does anyone have a relatively fast gaussian blur implemented in pure > python? Below is my attempt but it takes 2.9 seconds for a 320x240 > image. Image comes from byte string: self.array = > array.array('B',srcstring). Would some sort of matr

Re: check if regeular expression has results

2007-08-09 Thread Patrick Doyle
On 8/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > I'm looking for the best way to check if regular expression return > true (it's mean - there is a match). for example, i want "if" that > check if this regular expression: .*born.*to.* has a match. > > What's the way to do that simply?

Re: Importing * From a Package

2007-08-07 Thread Patrick Doyle
On 7 Aug 2007 13:54:21 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote: > "Patrick Doyle" <[EMAIL PROTECTED]> wrote: > > > Why does Python include the submodules that were explicitly loaded by > > previous imports? Does it go out of it's way to do so? If

Re: Importing * From a Package

2007-08-07 Thread Patrick Doyle
> There's no reliable way to differentiate between names which you defined > using something other than an import statement, names you defined with an > import statement with the intent of publishing them as part of your external > API, and names you defined with an import statement which you only

Importing * From a Package

2007-08-06 Thread Patrick Doyle
Reading through the Python tutorial, I got to section 6.4.1, "Importing * From a Package", which states: "If __all__ is not defined, the statement from Sound.Effects import * does not import all submodules from the package Sound.Effects into the current namespace; ..." It then goes on to state: