I am looking for advice on Python Editors and IDEs
I have read other posts and threads on the subject and my two
questions at this time are mainly about the IDLE-like F5-run
facilities. While I am fairly happy using IDLE, the debugger is
unintuitive to me and I wanted a project manager and a bett
On Aug 5, 12:18 am, Tim Roberts <[EMAIL PROTECTED]> wrote:
> >But when using smtp.gmail.com as the server I learned that any
> >@gmail.com address in the Cc: text block would
> >receive mail even if I changed the code to have the RECEIVERS list to
> >ignore the CC addresses or not include the gma
After reading about and using the smtplib module, I thought code such
as below would ignore the 'Cc: ' body line below when sending messages
and instead simply use the RECEIVERS list
session = smtplib.SMTP(SMTPserver,port)
session.set_debuglevel(1)
session.ehlo(SMTPuser) # say hello
session.start
Gabriel,
I meant the latter, so this helps
> Or, do you mean you already have those names and values, perhaps mixed
> with a lot more names, and want to extract only those starting with "x"
> and following with a number?
>
> result = {}
> for name, value in vars(): # or locals().items(), or g
> > And for that matter a way to create a
> > dictionary from a set of variables (local or global).
>
> You have to be more specific: there are {} displays and dict(args) call
> and other methods. Read the manual.
My desire is to take a set of data items in an alpha-numeric range and
oput them in
I found code to undo a dictionary association.
def undict(dd, name_space=globals()):
for key, value in dd.items():
exec "%s = %s" % (key, repr(value)) in name_space
So if i run
>>> dx= { 'a':1, 'b': 'B'}
>>> undict(dx)
I get
>>> print A, B
1 B
Here, a=1 and b='B'
This works well
> Regarding ... try lxml.
> http://codespeak.net/lxmlhttp://codespeak.net/lxml/tutorial.htmlhttp://codespeak.net/lxml/validation.html
>
Thx Stefan, it seems that lxml does everything I need. I have not
figured out all of the bells and whistles but the tutorials are
getting me up to speed. Based
I found Python code to validate a XML document basd on DTD file
layout. The code uses the 'xmlproc' package and these module loading
steps
from xml.parsers.xmlproc import xmlproc
from xml.parsers.xmlproc import xmlval
from xml.parsers.xmlproc import xmldtd
Unfortunately, the xml package no long
I wrote the code below to create simple arithmetic sequences that are
iter-able
I.e., this would basically combine the NUMPY arange(start,end,step)
to range(start,end), with step not necessarily an integer.
The code below is in its simplest form and I want to generalize the
sequence types (multi
Oops I did make a mistake. The code I wanted to test should have been
import copy
print 'Test 1'
pf= '?,?,?,?'
sqlx1= 'INSERT INTO DTABLE2 VALUES ( %s ) ' % pf
print sqlx1
print
print 'Test 2'
sqlx2= copy.copy(sqlx1)
sqlx3= sqlx1
pf= '?,?,?, '
print 'sqlx1= ', sqlx1
print 'sqlx2= ', sqlx2
pr
Steve, I think you were right the first time is saying
> it should really be this:
> sqlxb= 'INSERT INTO DTABLE2 VALUES (?, ?, ?, ?)'
my copy.copy() has the equivalent effect.
Running this test code produces the output below
import copy
print 'Test 1'
pf= '?,?,?,?'
sqlx1= 'INSERT INTO DTABLE
> > Hence (if I understand python convention), this can be
> > solved by adding
> > sqlx= copy.copy(sqlx)
> > before the looping. And in tests adding this step saved about 5-10% in
> > time.
>
> Now this I don;t really understand at all. What's the point of trying to
> replace sqlx with a copy of
On 11 May 2007 14:57:21 -0700, [EMAIL PROTECTED] wrote:
>http://britneyboobs.blogspot.com/2007/05/britney-spears-slips-up-again-exposes.html
>- Exclusive pics of Britney Spears..
Stoopid dog fuckers!We crackers went to school with these bitches for
at least 6 grades and decided they are so ign
On 7 May 2007 10:45:51 -0700, [EMAIL PROTECTED] wrote:
>My friend asked some tough questions
>http://ugotquestions.blogspot.com/2007_05_01_archive.html
>unlike yahoo answers ( Which Generates Content with Answers ) U got
>questions picks only the best, Real Person Questions.,yeah so there is
>thi
Michele Simionato wrote:
> Suppose I want to write a book with many authors via the Web. The
book has
> a hierarchical structure with chapter, sections, subsections,
subsubsections,
> etc. At each moment it must be possible to print the current version
of the
> book in PDF format. There must be aut
15 matches
Mail list logo