Dr. Dobb's Python-URL! - weekly Python news and links (Jun 22)

2005-06-22 Thread Simon Brunning
QOTW: "Python is more concerned with making it easy to write good programs
than difficult to write bad ones." - Steve Holden

"Scientists build so that they can learn. Programmers and engineers learn
so that they can build." - Magnus Lycka

"It happens that old Java programmers make one module per class when they
start using Python. That's more or less equivalent of never using more
than 8.3 characters in filenames in modern operating systems, or to make
a detour on your way to work because there used to be a fence blocking the
shortest way a long time ago." - Magnus Lycka


Python doesn't currently have a case or switch statement. Case blocks
are easily simulated with if, elif, and else, but would Python's
readability benefit from having it built in?:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/29e45afc78adcd15

A Podcast worth listening to at last. Guido speaks on Python's history
and community:
http://www.itconversations.com/shows/detail545.html
http://www.itconversations.com/shows/detail559.html

If your class implements __eq__ but not __ne__, (a = b) does not imply
!(a != b). If this something that should be fixed, or just a "gotcha"?

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/f6e0986b2c0f01c0

John Machin instructively analyzes several of Excel's defects as a
data-management vehicle, obliquely highlighting Python's Zen.  Tim
Roberts follows up with a small but potentially crucial addendum
pertinent, among others, to those who deal with USA "zip codes":

http://groups-beta.google.com/group/comp.lang.python/index/browse_frm/thread/d14b13c8bc6e8515/

Recent (unreleased) work on distutils allows you to automatically
upload packages to PyPI:
http://www.amk.ca/diary/archives/003937.html

Text files and line endings; Python helps you out on Windows, which can
be a little confusing:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/2d3f61b949bca0e9

Kalle wants to protect his instance attributes. He's warned off the
idea, but at the same time, alex23 demonstrates an interesting way of
doing it using properties():

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/9f7c29fed95d7586

Creating a Python iterator by wrapping any callable:

http://bob.pythonmac.org/archives/2005/06/14/python-iterators-and-sentinel-values/

Richard Lewis wants resumable exceptions. Python doesn't have them,
but Peter Hansen shows him how to achieve what he wants, and Willem
shows us how resumable exceptions work in Lisp:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/e3dafce228dd4258

Jan Danielsson is confused about the difference between __str__ and
__repr__, and what they are both for:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/b37f1e3fae1154d6

The Kamaelia Framework; communicating with and linking Python generators:
http://www.bbc.co.uk/rd/pubs/whp/whp113.shtml

Ron Adams proposes an "also" block to be executed if a "for" loop's
"else" block isn't, and more controversially, that the "else" block's
meaning be switched:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/b15de260c5ca02e0

How you convince your marketing drones that switching from Python to
Java would be A Bad Thing?

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/5b6d1ff54640e9b1

Why should an ambitious 14-year-old look at Python? (And why source-code
hiding is a waste of time.)

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/107a4da1dd45b915



Everything Python-related you want is probably one or two clicks away in
these pages:

Python.org's Python Language Website is the traditional
center of Pythonia
http://www.python.org
Notice especially the master FAQ
http://www.python.org/doc/FAQ.html

PythonWare complements the digest you're reading with the
marvelous daily python url
 http://www.pythonware.com/daily  
Mygale is a news-gathering webcrawler that specializes in (new)
World-Wide Web articles related to Python.
 http://www.awaretek.com/nowak/mygale.html 
While cosmetically similar, Mygale and the Daily Python-URL
are utterly different in their technologies and generally in
their results.

For far, FAR more Python reading than any one mind should
absorb, much of it quite interesting, several pages index
much of the universe of Pybloggers.
http://lowlife.jp/cgi-bin/moin.cgi/PythonProgrammersWeblog
http://www.planetpy

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 22)

2005-06-22 Thread Simon Brunning
QOTW: "Python is more concerned with making it easy to write good programs
than difficult to write bad ones." - Steve Holden

"Scientists build so that they can learn. Programmers and engineers learn
so that they can build." - Magnus Lycka

"It happens that old Java programmers make one module per class when they
start using Python. That's more or less equivalent of never using more
than 8.3 characters in filenames in modern operating systems, or to make
a detour on your way to work because there used to be a fence blocking the
shortest way a long time ago." - Magnus Lycka


Python doesn't currently have a case or switch statement. Case blocks
are easily simulated with if, elif, and else, but would Python's
readability benefit from having it built in?:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/29e45afc78adcd15

A Podcast worth listening to at last. Guido speaks on Python's history
and community:
http://www.itconversations.com/shows/detail545.html
http://www.itconversations.com/shows/detail559.html

If your class implements __eq__ but not __ne__, (a = b) does not imply
!(a != b). If this something that should be fixed, or just a "gotcha"?

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/f6e0986b2c0f01c0

John Machin instructively analyzes several of Excel's defects as a
data-management vehicle, obliquely highlighting Python's Zen.  Tim
Roberts follows up with a small but potentially crucial addendum
pertinent, among others, to those who deal with USA "zip codes":

http://groups-beta.google.com/group/comp.lang.python/index/browse_frm/thread/d14b13c8bc6e8515/

Recent (unreleased) work on distutils allows you to automatically
upload packages to PyPI:
http://www.amk.ca/diary/archives/003937.html

Text files and line endings; Python helps you out on Windows, which can
be a little confusing:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/2d3f61b949bca0e9

Kalle wants to protect his instance attributes. He's warned off the
idea, but at the same time, alex23 demonstrates an interesting way of
doing it using properties():

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/9f7c29fed95d7586

Creating a Python iterator by wrapping any callable:

http://bob.pythonmac.org/archives/2005/06/14/python-iterators-and-sentinel-values/

Richard Lewis wants resumable exceptions. Python doesn't have them,
but Peter Hansen shows him how to achieve what he wants, and Willem
shows us how resumable exceptions work in Lisp:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/e3dafce228dd4258

Jan Danielsson is confused about the difference between __str__ and
__repr__, and what they are both for:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/b37f1e3fae1154d6

The Kamaelia Framework; communicating with and linking Python generators:
http://www.bbc.co.uk/rd/pubs/whp/whp113.shtml

Ron Adams proposes an "also" block to be executed if a "for" loop's
"else" block isn't, and more controversially, that the "else" block's
meaning be switched:

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/b15de260c5ca02e0

How you convince your marketing drones that switching from Python to
Java would be A Bad Thing?

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/5b6d1ff54640e9b1

Why should an ambitious 14-year-old look at Python? (And why source-code
hiding is a waste of time.)

http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/107a4da1dd45b915



Everything Python-related you want is probably one or two clicks away in
these pages:

Python.org's Python Language Website is the traditional
center of Pythonia
http://www.python.org
Notice especially the master FAQ
http://www.python.org/doc/FAQ.html

PythonWare complements the digest you're reading with the
marvelous daily python url
 http://www.pythonware.com/daily  
Mygale is a news-gathering webcrawler that specializes in (new)
World-Wide Web articles related to Python.
 http://www.awaretek.com/nowak/mygale.html 
While cosmetically similar, Mygale and the Daily Python-URL
are utterly different in their technologies and generally in
their results.

For far, FAR more Python reading than any one mind should
absorb, much of it quite interesting, several pages index
much of the universe of Pybloggers.
http://lowlife.jp/cgi-bin/moin.cgi/PythonProgrammersWeblog
http://www.planetpy