
<?phpxml 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/"
>
<channel>
<title>Yeeach.com掘客 / 话题 / 技术-python</title>
<link>http://www.yeeach.com/digg</link>
<description>Pligg Web 2.0 Content Management System  votes</description>
<pubDate>Mon, 11 May 2009 08:11:28 PDT</pubDate>
<language>en</language>
<item>
<title><![CDATA[How to Use UTF-8 with Python]]></title>
<link>http://www.yeeach.com/digg/story/2992</link>
<comments>http://www.yeeach.com/digg/story/2992</comments>
<pubDate>Mon, 11 May 2009 08:11:28 PDT</pubDate>
<dc:creator></dc:creator>
<category>技术-python</category>
<guid>http://www.yeeach.com/digg/story/2992</guid>
<description><![CDATA[Tim Bray describes why Unicode and UTF-8 are wonderful much better than I could, so go read that for an overview of what Unicode is, and why all your programs should support it. What I'm going to tell you is how to use Unicode, and specifically UTF-8, with one of the coolest programming languages, Python, but I have also written an introduction to <br/><br/>1 投票人数 ]]></description>
</item>

<item>
<title><![CDATA[python urllib2模块详解]]></title>
<link>http://www.yeeach.com/digg/story/2826</link>
<comments>http://www.yeeach.com/digg/story/2826</comments>
<pubDate>Sat, 02 May 2009 06:56:00 PDT</pubDate>
<dc:creator></dc:creator>
<category>技术-python</category>
<guid>http://www.yeeach.com/digg/story/2826</guid>
<description><![CDATA[  					简介： urllib2是python的一个获取url（Uniform Resource Locators，统一资源定址器）的模块。它用urlopen函数的形式提供了一个非常简洁的接口。这使得用各种各样的协议获取url成为可能。它同时 也提供了一个稍微复杂的接口来处理常见的状况-如基本的认证，cookies，代理，等等。这些都是由叫做opener和handler的对象来处理的。 以下是获取url最简单的方式： import urllib2 response = urllib2.urlopen('http://python.org/') html = response.read() 许多urlib2的使用都是如此简单（注意我们本来也可以用一个以&amp;rdquo;ftp:&amp;rdquo;&amp;quot;file：&amp;rdquo;等开头的url取代&amp;rdquo;HTTP&amp;rdquo;开头的url）.然 而，这篇教程的目的是解释关于HTTP更复杂的情形。HTTP建基于请求和回应（requests &amp;amp;r<br/><br/>1 投票人数 ]]></description>
</item>

<item>
<title><![CDATA[The Python getattr Function]]></title>
<link>http://www.yeeach.com/digg/story/2791</link>
<comments>http://www.yeeach.com/digg/story/2791</comments>
<pubDate>Fri, 01 May 2009 08:25:33 PDT</pubDate>
<dc:creator></dc:creator>
<category>技术-python</category>
<guid>http://www.yeeach.com/digg/story/2791</guid>
<description><![CDATA[Python&amp;rsquo;s getattr function is used to fetch an attribute from an object, using a string object instead of an identifier to identify the attribute.  In other words, the following two statements are equivalent:value = obj.attributevalue = getattr(obj, &amp;quot;attribute&amp;quot;)If the attribute exists, the corresponding value is returned.  If the attribute does no<br/><br/>1 投票人数 ]]></description>
</item>

<item>
<title><![CDATA[Python正则表达式操作指南]]></title>
<link>http://www.yeeach.com/digg/story/2790</link>
<comments>http://www.yeeach.com/digg/story/2790</comments>
<pubDate>Fri, 01 May 2009 08:25:33 PDT</pubDate>
<dc:creator></dc:creator>
<category>技术-python</category>
<guid>http://www.yeeach.com/digg/story/2790</guid>
<description><![CDATA[This document is an introductory tutorial to using regular expressions in Python with the re module.  It provides a gentler introduction than the corresponding section in the Library Reference.   This document is available from  http://www.amk.ca/python/howto.<br/><br/>1 投票人数 ]]></description>
</item>

<item>
<title><![CDATA[用python解析html]]></title>
<link>http://www.yeeach.com/digg/story/2789</link>
<comments>http://www.yeeach.com/digg/story/2789</comments>
<pubDate>Fri, 01 May 2009 08:25:33 PDT</pubDate>
<dc:creator></dc:creator>
<category>技术-python</category>
<guid>http://www.yeeach.com/digg/story/2789</guid>
<description><![CDATA[因为要用python做学校网络的认证程序，需要解析服务器传回的html，本以为会像javascript里操作DOM那样简单，结果发现并不是这样，被搞了一下。其实python里面有xml.dom模块，但是这次却不能用，为啥呢？因为服务器传回的html从xml角度看不是良构的，没有闭合的标签、没有被注释掉的javascript和css，xml.dom没法处理，这个时候要用sgmllib。sgmllib.py 包含一个重要的类: SGMLParser。SGMLParser 将 HTML 分解成有用的片段，比如开始标记和结束标记。一旦它成功地分解出某个数据为一个有用的片段，它会根据所发现的数据，调用一个自身内部的方法。为了使用这个分析器，您需要子类化 SGML- Parser类，并且覆盖这些方法。SGMLParser类里面包含了很多内部方法，开始读取html后，遇到相应的数据就会调用其对应的方法，最重要的方法有三个：&amp;nbsp;&amp;nbsp;&amp;nbsp; * start_tagname(self, <br/><br/>1 投票人数 ]]></description>
</item>

<item>
<title><![CDATA[Python HTML Parser Performance]]></title>
<link>http://www.yeeach.com/digg/story/519</link>
<comments>http://www.yeeach.com/digg/story/519</comments>
<pubDate>Fri, 16 May 2008 08:28:00 PDT</pubDate>
<dc:creator></dc:creator>
<category>技术-python</category>
<guid>http://www.yeeach.com/digg/story/519</guid>
<description><![CDATA[ 				 In preparation for my PyCon talk on HTML I thought I&amp;rsquo;d do a performance comparison of several parsers and document models. The situation is a little complex because there&amp;rsquo;s different steps in handling HTML: Parse the HTMLParse it into something (a document object)Serialize it Some libraries handle 1, some handle 2, some handle 1, <br/><br/>0 投票人数 ]]></description>
</item>

<item>
<title><![CDATA[Building commercial grade mobile applications with Python for Series 60 | Redi for Life]]></title>
<link>http://www.yeeach.com/digg/story/365</link>
<comments>http://www.yeeach.com/digg/story/365</comments>
<pubDate>Sun, 09 Mar 2008 06:30:07 PDT</pubDate>
<dc:creator></dc:creator>
<category>技术-python</category>
<guid>http://www.yeeach.com/digg/story/365</guid>
<description><![CDATA[Python programming language, created in 1991 by Guido van Rossum, is the sixth most popular programming language and &amp;ldquo;the programming language of year 2007&amp;ldquo;. Nokia <br/><br/>1 投票人数 ]]></description>
</item>

<item>
<title><![CDATA[Python正则表达式操作指南 - Ubuntu中文]]></title>
<link>http://www.yeeach.com/digg/story/299</link>
<comments>http://www.yeeach.com/digg/story/299</comments>
<pubDate>Thu, 14 Feb 2008 06:05:20 PST</pubDate>
<dc:creator></dc:creator>
<category>技术-python</category>
<guid>http://www.yeeach.com/digg/story/299</guid>
<description><![CDATA[Python 自1.5版本起增加了re 模块，它提供 Perl 风格的正则表达式模式。Python 1.5之前版本则是通过 regex 模块提供 Emecs 风格的模式。Emacs 风格模式可读性稍差些，而且功能也不强，因此编写新代码时尽量不要再使用 regex 模块，当然偶尔你还是可能在老代码里发现其踪影。 就其本质而言，正则表达式（或 RE）是一种小型的、高度专业化的编程语言，（在Python中）它内嵌在Python中，并通过 re 模块实现。使用这个小型语言，你可以为想要匹配的相应字符串集指定规则；该字符串集可能包含英文语句、e-mail地址、TeX命令或任何你想搞定的东 西。然後你可以问诸如&amp;ldquo;这个字符串匹配该模式吗？&amp;rdquo;或&amp;ldquo;在这个字符串中是否有部分匹配该模式呢？&amp;rdquo;。你也可以使用 RE 以各种方式来修改或分割字符串。  正则表达式模式被编译成一系列的字节码，然後由用 C 编写的匹配引擎执行。在高级用法中，也许还要仔细留意引擎是如何执行给定 RE ，如何以特定方式编写 RE 以<br/><br/>1 投票人数 ]]></description>
</item>

<item>
<title><![CDATA[Extending Python with Pyrex | Python | Artful code]]></title>
<link>http://www.yeeach.com/digg/story/88</link>
<comments>http://www.yeeach.com/digg/story/88</comments>
<pubDate>Sat, 27 Oct 2007 18:42:46 PDT</pubDate>
<dc:creator></dc:creator>
<category>技术-python</category>
<guid>http://www.yeeach.com/digg/story/88</guid>
<description><![CDATA[In a previous entry, I showed how to extend Python without directly using the Python C using SWIG.  SWIG parses an interface file written by the programmer and then outputs a wrapper module.  A more elegant, more pythonic solution might be a parser which allows a C module to be written directly in Python. <br/><br/>1 投票人数 ]]></description>
</item>

</channel>
</rss>
