<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Programando Python no RS</title>
	<atom:link href="http://pythonrs.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pythonrs.wordpress.com</link>
	<description>Python Bagual !</description>
	<lastBuildDate>Fri, 09 Dec 2011 00:07:25 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pythonrs.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/d6e0fa5e753ab863eb9321dfa0f84853?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Programando Python no RS</title>
		<link>http://pythonrs.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pythonrs.wordpress.com/osd.xml" title="Programando Python no RS" />
	<atom:link rel='hub' href='http://pythonrs.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Como empacotar aplicações Python ?</title>
		<link>http://pythonrs.wordpress.com/2011/11/09/como-empacotar-aplicacoes-python/</link>
		<comments>http://pythonrs.wordpress.com/2011/11/09/como-empacotar-aplicacoes-python/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 15:41:40 +0000</pubDate>
		<dc:creator>Sérgio</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://pythonrs.wordpress.com/?p=416</guid>
		<description><![CDATA[Veja o artigo completo em: http://www.ibm.com/developerworks/br/library/os-pythonpackaging/index.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=416&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Veja o artigo completo em: http://www.ibm.com/developerworks/br/library/os-pythonpackaging/index.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonrs.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonrs.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonrs.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonrs.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pythonrs.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pythonrs.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pythonrs.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pythonrs.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonrs.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonrs.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonrs.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonrs.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonrs.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonrs.wordpress.com/416/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=416&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pythonrs.wordpress.com/2011/11/09/como-empacotar-aplicacoes-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-29.935724 -51.016591</georss:point>
		<geo:lat>-29.935724</geo:lat>
		<geo:long>-51.016591</geo:long>
		<media:content url="http://0.gravatar.com/avatar/208e4a03a5e5ac5dda83c6b685d399f5?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">berlotto</media:title>
		</media:content>
	</item>
		<item>
		<title>Utilizando o SQLAlchemy no Flask com MySQL</title>
		<link>http://pythonrs.wordpress.com/2011/11/08/utilizando-o-sqlalchemy-no-flask-com-mysql/</link>
		<comments>http://pythonrs.wordpress.com/2011/11/08/utilizando-o-sqlalchemy-no-flask-com-mysql/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 01:46:59 +0000</pubDate>
		<dc:creator>Sérgio</dc:creator>
				<category><![CDATA[flask]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[gone away]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sqlalchemy]]></category>

		<guid isPermaLink="false">http://pythonrs.wordpress.com/?p=409</guid>
		<description><![CDATA[Quando tentei utilizar esta combinação, seguindo justamente o howto do site do Flask, me ocorria um erro depois de um tempo em que a conexão não era utilizada: SqlAlchemy: SQLError: (OperationalError) (2006, ‘MySQL server has gone away’) E como resolver &#8230; <a href="http://pythonrs.wordpress.com/2011/11/08/utilizando-o-sqlalchemy-no-flask-com-mysql/">Continue lendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=409&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quando tentei utilizar esta combinação, <a href="http://flask.pocoo.org/docs/patterns/sqlalchemy/">seguindo justamente o howto do site do Flask</a>, me ocorria um erro depois de um tempo em que a conexão não era utilizada:</p>
<p><strong>SqlAlchemy: SQLError: (OperationalError) (2006, ‘MySQL server has gone away’)</strong></p>
<p>E como resolver isto ? Em vários posts por ai vi o pessoal utilizando-se da configuração &#8220;pool_recycle&#8221; para deixar a conexão mais tempo no ar, tentando colocar a conexão na sessão, e tudo mais&#8230; nada funcionou!</p>
<p>Só consegui resolver isto do modo pessimista, adicionando o seguinte código no database.py:</p>
<p><pre class="brush: python;">
from sqlalchemy import exc
from sqlalchemy import event
from sqlalchemy.pool import Pool

@event.listens_for(Pool, &quot;checkout&quot;)
def ping_connection(dbapi_connection, connection_record, connection_proxy):
    cursor = dbapi_connection.cursor()
    try:
        cursor.execute(&quot;SELECT 1&quot;)
    except:
        # optional - dispose the whole pool
        # instead of invalidating one at a time
        # connection_proxy._pool.dispose()

        # raise DisconnectionError - pool will try
        # connecting again up to three times before raising.
        raise exc.DisconnectionError()
    cursor.close()
</pre></p>
<p>E voialá ! Funcionou !&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonrs.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonrs.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonrs.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonrs.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pythonrs.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pythonrs.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pythonrs.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pythonrs.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonrs.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonrs.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonrs.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonrs.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonrs.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonrs.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=409&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pythonrs.wordpress.com/2011/11/08/utilizando-o-sqlalchemy-no-flask-com-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-29.935724 -51.016591</georss:point>
		<geo:lat>-29.935724</geo:lat>
		<geo:long>-51.016591</geo:long>
		<media:content url="http://0.gravatar.com/avatar/208e4a03a5e5ac5dda83c6b685d399f5?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">berlotto</media:title>
		</media:content>
	</item>
		<item>
		<title>Novos rumos: Pyramid</title>
		<link>http://pythonrs.wordpress.com/2011/06/29/novos-rumos-pyramid/</link>
		<comments>http://pythonrs.wordpress.com/2011/06/29/novos-rumos-pyramid/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 14:43:56 +0000</pubDate>
		<dc:creator>Sérgio</dc:creator>
				<category><![CDATA[pyramid/pylons]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[jinja2]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[pylons]]></category>
		<category><![CDATA[pyramid]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://pythonrs.wordpress.com/?p=402</guid>
		<description><![CDATA[Ontem tive meu primeiro contato real com o Pyramid! Depois de trabalhar várias vezes com o Django, de conhecer bem ele, suas várias features e tudo mais, acabei precisando de um framework mais flexível para meu projeto que quero desenvolver, &#8230; <a href="http://pythonrs.wordpress.com/2011/06/29/novos-rumos-pyramid/">Continue lendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=402&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ontem tive meu primeiro contato real com o Pyramid!</p>
<p><img class="aligncenter size-full wp-image-404" title="pyramid-small" src="http://pythonrs.files.wordpress.com/2011/06/pyramid-small.png?w=584" alt=""   /></p>
<p>Depois de trabalhar várias vezes com o Django, de conhecer bem ele, suas várias features e tudo mais, acabei precisando de um framework mais flexível para meu projeto que quero desenvolver, e que, não saiu ainda do papel por que em certo ponto do desenvolvimento tudo se tornava massante e trabalhoso.</p>
<p>Mas eu realmente vi uma luz no fim do tunel com o Pyramid. Se mostrou um fw simples, consistente e flexível. Não tive trabalho algum para iniciar um projeto e sair programando algo mais simples, como criar uma outra view além da default, bastou utilizar uma meia-hora e dar uma passada de olho na documentação.</p>
<p>Claro que, eu não fiz nada demais, apenas iniciei o projeto, fiz algumas alterações, tomei conhecimento do ambiente gerado por ele, rodei o ambiente de desenvolvimento, estas coisas. A partir de agora é trabalhar para aprender mais e mais deste frameworks que pelo visto vai me facilitar a vida.</p>
<p>Outra coisa, eu achei muito simples trabalhar com o mongodb juntamente com o Pyramid. Praticamente não necessita de configuração, é só chamar e usar.. hehehe Mas um detalhe que me deixou meio triste foi que não funcionou o projeto com o template para utilizar o Jinja2 como renderer dos templates web. Gosto muito do Jinja2 pelas facilidades, e principalmente pela herança de templates possível, onde você cria uma página com seções definidas e pode criar outras páginas que herdam esta página e imprimem somente nas seções que deseja.. mas o template engine do Pyramid, que veio do Pylons, não é tão mal assim, mas é mais trabalhoso, pois trabalha com umas tags no meio do html, e não me pareceu muito pythônico. Tudo bem !</p>
<p>Bom , é isto por enquanto, depois posto aqui como iniciar um projeto simples com o Pyramid + MongoDB ! Ok !</p>
<p>Abraços !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonrs.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonrs.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonrs.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonrs.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pythonrs.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pythonrs.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pythonrs.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pythonrs.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonrs.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonrs.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonrs.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonrs.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonrs.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonrs.wordpress.com/402/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=402&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pythonrs.wordpress.com/2011/06/29/novos-rumos-pyramid/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<georss:point>-29.935724 -51.016591</georss:point>
		<geo:lat>-29.935724</geo:lat>
		<geo:long>-51.016591</geo:long>
		<media:content url="http://0.gravatar.com/avatar/208e4a03a5e5ac5dda83c6b685d399f5?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">berlotto</media:title>
		</media:content>

		<media:content url="http://pythonrs.files.wordpress.com/2011/06/pyramid-small.png" medium="image">
			<media:title type="html">pyramid-small</media:title>
		</media:content>
	</item>
		<item>
		<title>Livros onlines&#8230;</title>
		<link>http://pythonrs.wordpress.com/2011/06/01/livros-onlines/</link>
		<comments>http://pythonrs.wordpress.com/2011/06/01/livros-onlines/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 16:44:27 +0000</pubDate>
		<dc:creator>Sérgio</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[aprender]]></category>
		<category><![CDATA[guia]]></category>
		<category><![CDATA[livro]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[programação]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://pythonrs.wordpress.com/?p=391</guid>
		<description><![CDATA[Olá ! Quero parabenizar o pessoal por ter traduzido o livro &#8220;A Byte of Python&#8221; para português. Segue o link: http://swaroopch.com/notes/Python_pt-br:Indice E sei que este blog é especialmente voltado ao Python, mas quero aqui citar também outro belo trabalho de &#8230; <a href="http://pythonrs.wordpress.com/2011/06/01/livros-onlines/">Continue lendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=391&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Olá !</p>
<p>Quero parabenizar o pessoal por ter traduzido o livro &#8220;A Byte of Python&#8221; para português.</p>
<p>Segue o link: <a href="http://swaroopch.com/notes/Python_pt-br:Indice">http://swaroopch.com/notes/Python_pt-br:Indice</a></p>
<p>E sei que este blog é especialmente voltado ao Python, mas quero aqui citar também outro belo trabalho de tradução, voltado ao Ruby, &#8220;O (comovente) Guia de Ruby do Why&#8221;</p>
<p>Segue o link tb: <a href="http://why.nomedojogo.com/">http://why.nomedojogo.com/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonrs.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonrs.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonrs.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonrs.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pythonrs.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pythonrs.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pythonrs.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pythonrs.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonrs.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonrs.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonrs.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonrs.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonrs.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonrs.wordpress.com/391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=391&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pythonrs.wordpress.com/2011/06/01/livros-onlines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-29.935724 -51.016591</georss:point>
		<geo:lat>-29.935724</geo:lat>
		<geo:long>-51.016591</geo:long>
		<media:content url="http://0.gravatar.com/avatar/208e4a03a5e5ac5dda83c6b685d399f5?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">berlotto</media:title>
		</media:content>
	</item>
		<item>
		<title>3 coisas legais para Python</title>
		<link>http://pythonrs.wordpress.com/2011/04/12/3-coisas-legais-para-python/</link>
		<comments>http://pythonrs.wordpress.com/2011/04/12/3-coisas-legais-para-python/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 12:54:29 +0000</pubDate>
		<dc:creator>Sérgio</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[dica]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[ocr]]></category>
		<category><![CDATA[pyrex]]></category>
		<category><![CDATA[pyro]]></category>
		<category><![CDATA[pytesser]]></category>

		<guid isPermaLink="false">http://pythonrs.wordpress.com/?p=387</guid>
		<description><![CDATA[PyRO &#8211; Python Remote Objects &#8211; É uma poderosa e avançada tecnologia de objetos distribuídos totalmente escrita em python. Pytesser &#8211; Módulo OCR para Python Pyrex - Permite você extender o Python criando módulos para a linguagem, com syntaxe Python, &#8230; <a href="http://pythonrs.wordpress.com/2011/04/12/3-coisas-legais-para-python/">Continue lendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=387&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.xs4all.nl/~irmen/pyro3/">PyRO &#8211; Python Remote Objects</a> &#8211; É uma poderosa e avançada tecnologia de objetos distribuídos totalmente escrita em python.</p>
<p><a href="http://code.google.com/p/pytesser/">Pytesser</a> &#8211; Módulo OCR para Python</p>
<p><a href="http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/">Pyrex </a>- Permite você extender o Python criando módulos para a linguagem, com syntaxe Python, que serão compilados para C.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonrs.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonrs.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonrs.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonrs.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pythonrs.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pythonrs.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pythonrs.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pythonrs.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonrs.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonrs.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonrs.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonrs.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonrs.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonrs.wordpress.com/387/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=387&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pythonrs.wordpress.com/2011/04/12/3-coisas-legais-para-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-29.935724 -51.016591</georss:point>
		<geo:lat>-29.935724</geo:lat>
		<geo:long>-51.016591</geo:long>
		<media:content url="http://0.gravatar.com/avatar/208e4a03a5e5ac5dda83c6b685d399f5?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">berlotto</media:title>
		</media:content>
	</item>
		<item>
		<title>Outros sites de &#8220;gincana&#8221; de programação</title>
		<link>http://pythonrs.wordpress.com/2011/04/07/outros-sites-de-gincana-de-programacao/</link>
		<comments>http://pythonrs.wordpress.com/2011/04/07/outros-sites-de-gincana-de-programacao/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 00:39:17 +0000</pubDate>
		<dc:creator>Sérgio</dc:creator>
				<category><![CDATA[dicas e tutoriais]]></category>
		<category><![CDATA[challenge]]></category>
		<category><![CDATA[gincana]]></category>
		<category><![CDATA[logica]]></category>
		<category><![CDATA[programação]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[roseta]]></category>

		<guid isPermaLink="false">http://pythonrs.wordpress.com/?p=385</guid>
		<description><![CDATA[Fica ai então a dica, do amigo leitor Guaracy, de outros dois sites equivalentes ao Project Euler. São eles: http://rosettacode.org e http://www.pythonchallenge.com/ O Python Challenge é um pouco diferente na forma de apresentar as questões, pois você tem que resolver uma para &#8230; <a href="http://pythonrs.wordpress.com/2011/04/07/outros-sites-de-gincana-de-programacao/">Continue lendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=385&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Fica ai então a dica, do amigo leitor Guaracy, de outros dois sites equivalentes ao Project Euler.</p>
<p>São eles: <a href="http://rosettacode.org/">http://rosettacode.org</a> e <a href="http://www.pythonchallenge.com/">http://www.pythonchallenge.com/</a></p>
<p>O Python Challenge é um pouco diferente na forma de apresentar as questões, pois você tem que resolver uma para depois ter a próxima disponível, além de ser direcionado a programação Python mesmo. Fora isto, aprenderemos muito igualmente aos outros !</p>
<p>Aproveitem !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonrs.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonrs.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonrs.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonrs.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pythonrs.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pythonrs.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pythonrs.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pythonrs.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonrs.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonrs.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonrs.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonrs.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonrs.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonrs.wordpress.com/385/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=385&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pythonrs.wordpress.com/2011/04/07/outros-sites-de-gincana-de-programacao/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>-29.935724 -51.016591</georss:point>
		<geo:lat>-29.935724</geo:lat>
		<geo:long>-51.016591</geo:long>
		<media:content url="http://0.gravatar.com/avatar/208e4a03a5e5ac5dda83c6b685d399f5?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">berlotto</media:title>
		</media:content>
	</item>
		<item>
		<title>Cálculo de números primos</title>
		<link>http://pythonrs.wordpress.com/2011/04/07/calculo-de-numeros-primos/</link>
		<comments>http://pythonrs.wordpress.com/2011/04/07/calculo-de-numeros-primos/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 12:23:48 +0000</pubDate>
		<dc:creator>Sérgio</dc:creator>
				<category><![CDATA[snippet]]></category>
		<category><![CDATA[funcional]]></category>
		<category><![CDATA[inteiros]]></category>
		<category><![CDATA[list comprehension]]></category>
		<category><![CDATA[numeros]]></category>
		<category><![CDATA[primos]]></category>
		<category><![CDATA[reais]]></category>
		<category><![CDATA[sum]]></category>

		<guid isPermaLink="false">http://pythonrs.wordpress.com/?p=382</guid>
		<description><![CDATA[Partindo de algumas leituras sobre as regras de números primos, então acabei por criar um pequeno script que gera os números primos de 1 até um limite informado, da forma mais pythônica que consegui. Explicando: - Números primos são somente &#8230; <a href="http://pythonrs.wordpress.com/2011/04/07/calculo-de-numeros-primos/">Continue lendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=382&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Partindo de algumas leituras sobre as regras de números primos, então acabei por criar um pequeno script que gera os números primos de 1 até um limite informado, da forma mais pythônica que consegui.</p>
<p><pre class="brush: python;">
def eh_primo(numero):
    #Verifica se um numero eh primo ou nao
    return True if sum([ 1 for div in range(2,numero) if numero % div == 0 ]) == 0 else False

def primos(limite):
    #Numeros primos
    numeros = [2] + range(3,limite+1,2)
    primos = []
    for num in numeros:
        if sum([ 1 for div in range(2,num) if num % div == 0 ]) == 0 :
            primos.append(num)
    return primos
    
print primos(100)
print primos(500)
print eh_primo(18)
print eh_primo(19)
print eh_primo(20)
print eh_primo(23)
</pre></p>
<p>Explicando:<br />
- Números primos são somente números ímpares e o 2<br />
- Não valida com 1 e o próprio número, pois não necessita<br />
- cria uma lista com o 2 e a partir do 3, somente os ímpares<br />
- verifica se a SOMA dos 1 retornados para cada NÚMERO onde o resto da divisão (%) entre o NÚMERO e cada um dos menores que ele for igual a zero, quer dizer que o número é divisível por outro número além de 1 e ele mesmo.</p>
<p>Olha, não é fácil entender a primeira vista este trecho de código, mas consegui finalmente chegar até um pequeno script sem muitos loops, graças as facilidades do python, com sua List Comprehension e Programação Funcional !</p>
<p>Conseguem melhorar ainda mais este script ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonrs.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonrs.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonrs.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonrs.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pythonrs.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pythonrs.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pythonrs.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pythonrs.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonrs.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonrs.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonrs.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonrs.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonrs.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonrs.wordpress.com/382/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonrs.wordpress.com&amp;blog=9916585&amp;post=382&amp;subd=pythonrs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pythonrs.wordpress.com/2011/04/07/calculo-de-numeros-primos/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<georss:point>-29.935724 -51.016591</georss:point>
		<geo:lat>-29.935724</geo:lat>
		<geo:long>-51.016591</geo:long>
		<media:content url="http://0.gravatar.com/avatar/208e4a03a5e5ac5dda83c6b685d399f5?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">berlotto</media:title>
		</media:content>
	</item>
	</channel>
</rss>
