[python] xml.parser.expact modul a vynimka ExpatError

Miroslav Biňas binas na intrak.sk
Středa Leden 14 01:02:48 CET 2004


wow - fakt to funguje - dakujem velmi pekne

mire(c)
On Tue, Jan 13, 2004 at 09:03:08PM +0100, Petr Van?k wrote:
Content-Description: signed data
> tisic hrmenych!
> (mam tohle kleni ohromne rad:))
> 
> On Tuesday 13 of January 2004 17:26, Miroslav Bi?as wrote:
> > try:
> > 	p.ParseFile( fi )
> > except xml.parsers.expat.ExpatError:
> > 	error_code = xml.parsers.expat.ExpatError.code
> > 	print "more - ta nejaka chyba"
> 
> vetsinou to delam takhle:
> 
> except xml.parsers.expat.ExpatError, e:
> 	self.status = " " line:" + str(e.lineno) + \
>                 " column: " + str(e.offset+1) + " desc: " + \
>                 str(xml.parsers.expat.ErrorString(e.code))
> 
> -- 
> Petr Vanek --------------
> petr [at] yarpen [dot] cz
> www.yarpen.cz ----------------
> Kuolema Kaikille (Paitsi Meille)
> -------------------------------
> Today is good day to end it all



> _______________________________________________
> python mailing list
> python na py.cz
> http://www.py.cz/mailman/listinfo/python

-- 
e-mail: mirek na host.sk
icq: 113397932
jabber: mirek_b na jabber.sk
homepage: http://www.intrak.sk/~binas

english:
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

slovak:
prosim, neposielajte mi prilohy vo formatoch .doc a .ppt (power point)
precitajte si http://www.fsf.org/philosophy/no-word-attachments.cs.html



Další informace o konferenci Python