<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Python 3.0a1 support in pyPdf and pg8000</title>
	<atom:link href="http://mathieu.fenniak.net/python-30a1-support-in-pypdf-and-pg8000/feed/" rel="self" type="application/rss+xml" />
	<link>http://mathieu.fenniak.net/python-30a1-support-in-pypdf-and-pg8000/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 31 Mar 2009 04:37:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mathieu Fenniak</title>
		<link>http://mathieu.fenniak.net/python-30a1-support-in-pypdf-and-pg8000/comment-page-1/#comment-124</link>
		<dc:creator>Mathieu Fenniak</dc:creator>
		<pubDate>Sun, 07 Oct 2007 15:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://mathieu.fenniak.net/python-30a1-support-in-pypdf-and-pg8000/#comment-124</guid>
		<description>Koblaid - most PDF read errors will throw an exception, pyPdf.utils.PdfReadError.</description>
		<content:encoded><![CDATA[<p>Koblaid &#8211; most PDF read errors will throw an exception, pyPdf.utils.PdfReadError.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koblaid</title>
		<link>http://mathieu.fenniak.net/python-30a1-support-in-pypdf-and-pg8000/comment-page-1/#comment-123</link>
		<dc:creator>Koblaid</dc:creator>
		<pubDate>Mon, 01 Oct 2007 17:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://mathieu.fenniak.net/python-30a1-support-in-pypdf-and-pg8000/#comment-123</guid>
		<description>Out of topic:
Is there a way to catch the exception if the file that is loaded is no pdf?

Something like this:

try:
	pdfFile = pyPdf.PdfFileReader(file(path, &quot;rb&quot;))
except IOError,e:
        print &#039;File wasn\&#039;t opened&#039;
except PdfError,e:
        print &#039;File is no supported pdf&#039;</description>
		<content:encoded><![CDATA[<p>Out of topic:<br />
Is there a way to catch the exception if the file that is loaded is no pdf?</p>
<p>Something like this:</p>
<p>try:<br />
	pdfFile = pyPdf.PdfFileReader(file(path, &#8220;rb&#8221;))<br />
except IOError,e:<br />
        print &#8216;File wasn\&#8217;t opened&#8217;<br />
except PdfError,e:<br />
        print &#8216;File is no supported pdf&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo Padoan</title>
		<link>http://mathieu.fenniak.net/python-30a1-support-in-pypdf-and-pg8000/comment-page-1/#comment-122</link>
		<dc:creator>Eduardo Padoan</dc:creator>
		<pubDate>Thu, 06 Sep 2007 05:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://mathieu.fenniak.net/python-30a1-support-in-pypdf-and-pg8000/#comment-122</guid>
		<description>Your 2 first bytes issues are here: http://wiki.python.org/moin/BytesStr
Someone one could also setup a wiki page for documenting early porting experiences like yours and this ones:

http://intertwingly.net/blog/2007/09/01/2to3
http://oakwinter.com/code/porting-setuptools-to-py3k/</description>
		<content:encoded><![CDATA[<p>Your 2 first bytes issues are here: <a href="http://wiki.python.org/moin/BytesStr" rel="nofollow">http://wiki.python.org/moin/BytesStr</a><br />
Someone one could also setup a wiki page for documenting early porting experiences like yours and this ones:</p>
<p><a href="http://intertwingly.net/blog/2007/09/01/2to3" rel="nofollow">http://intertwingly.net/blog/2007/09/01/2to3</a><br />
<a href="http://oakwinter.com/code/porting-setuptools-to-py3k/" rel="nofollow">http://oakwinter.com/code/porting-setuptools-to-py3k/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
