[image: Invoice.jpg]
..
--
https://mail.python.org/mailman/listinfo/python-list
suggestions I wrote this line.
import sys, os
xmlfile = sys.argv[1]
filout = os.path.splitext(xmlfile)[0] + ".xmlparse" ### here is the new
line
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, 13 Oct 2008 08:50:41 -0400, Po
I'm using versions 2.5.2 and 2.5.1 of python and have encountered a
potential bug. Not sure if I'm misunderstanding the usage of the strip
function but here's my example.
var = "detail.xml"
print var.strip(".xml") ### expect to see 'detail', but get 'detai'
var = "overview.xml"
print var.stri
Arrgh. One of those days where I find an answer just after posting. I spend
hours on the code below only to find I don't know how to use split to it's
fullest.
>>> b.strip(",").split(",")
['I', 'G', 'AQ', 'ET',
I'm reading from a database a column that has a list of codes (comma
seperated). When I read in the list I have a single value, see code sample
below values for a, b, and c. These represent possible values in my
database. I need to loop through each value so I can expand my data from
this compr
lose' colours end up together,
> I don't know.
>
> You might try the PIL special interest group (SIG) 'image-sig'
>
> http://mail.python.org/mailman/listinfo/image-sig
>
> (If you want to know exactly how many unique colours an image actually
> has, load the imag
gt; Im = Image.open("server\\vol\\temp\\image.jpg")
> R,G,B = Im.split()
>
> Result=ImageChops.darker(R,G)
> Result=ImageChops.darker(Result,B)
>
> WhiteArea=Result.histogram()[0]
> TotalArea=Im.size[0] * Im.size[1]
> PercentageWhite = (WhiteArea * 100.0)/TotalArea
&g
return "image no good"
j = j + 1
i = i + 1
print whitePixCount
return "image is good"
print check_whitespace()
"Poppy" <[EMAIL PROTECTED]> wrote in message news:...
>I need to write a program to examine images (JPG) and determine ho
I need to write a program to examine images (JPG) and determine how much
area is whitespace. We need to throw a returned image out if too much of it
is whitespace from the dataset we're working with. I've been examining the
Python Image Library and can not determine if it offers the needed
func
Thanks Jerry and Diez. The first two replies I found answered my noob
question.
"Jerry Hill" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wed, Mar 19, 2008 at 11:03 AM, Poppy <[EMAIL PROTECTED]>
> wrote:
>> I've been working on the c
I've been working on the code below and and executes silently, no
complaints, however the end result should be a record in my table and it's
not added. The procedure works with the passed credentials using SQLPlus or
SQL Developer clients. However I'm not sure if I'm constructing my python
code
Thanks for your explanation and pointer.
"Mike Driscoll" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Feb 21, 7:34 am, "Poppy" <[EMAIL PROTECTED]> wrote:
>> I've been searching online to try get a better understanding of what
>
I've been searching online to try get a better understanding of what "self"
does when I define this parameter in my class functions. All I'm finding is
debates on whether "self" has any value to the language but that doesn't
help me in my newbie question. So the code excerpt below is from "Begi
13 matches
Mail list logo