Python-URL! - weekly Python news and links (Mar 31)

2012-04-02 Thread Cameron Laird
I pine for the fjords.

And it's time to bring Python-URL! to a close.  Python-URL!, which
Jean-Claude Wippler and I appear to have launched in 1998, has reached
the end of its utility.  We still have many loyal and enthusiastic
readers--one subscription request arrived within the last day, in
fact--and certainly much writing turns up every week that *deserves*
the spotlight Python-URL! has shone in the past.

However, the Python world has changed a great deal over the last
fourteen years.  There are many, MANY other ways for those with an
interest in Python to nourish themselves, and Python itself has grown
and normalized so much that it no longer fits particularly well in
the Python-URL! format.  Enjoy Mouse vs. Python URL:
http://www.blog.pythonlibrary.org/ , the Python areas of DZone,
Reddit, developerWorks, stackoverflow, and so on.

For your reference, I append below the most-recent-but-not-
particularly-
current version of Python-URL!'s coda of related readings.

That is all.



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

Just beginning with Python?  This page is a great place to start:
http://wiki.python.org/moin/BeginnersGuide/Programmers

Planet Python:  you want to visit there:
http://planet.python.org
But don't confuse it with Planet SciPy:
http://planet.scipy.org
And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
for the numerically-inclined:
http://twitter.com/SciPyTip

Python Insider is the official blog of the Python core development
team:
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider
-blog.html

The Python Software Foundation (PSF) has replaced the Python
Consortium as an independent nexus of activity.  It has official
responsibility for Python's development and maintenance.
http://www.python.org/psf/
Among the ways you can support PSF is with a donation.
http://www.python.org/psf/donations/
Keep up with the PSF at Python Software Foundation News:
http://pyfound.blogspot.com

The Python Papers aims to publish the efforts of Python
enthusiasts:
http://pythonpapers.org/

Doug Hellman's Module of the week is essential reading:
http://www.doughellmann.com/PyMOTW/

comp.lang.python.announce announces new Python software.  Be
sure to scan this newsgroup weekly.
http://groups.google.com/group/comp.lang.python.announce/topics

Python411 indexes podcasts ... to help people learn Python ...
Updates appear more-than-weekly:
http://www.awaretek.com/python/index.html

The Python Package Index catalogues packages.
http://www.python.org/pypi/

Much of Python's real work takes place on Special-Interest Group
mailing lists
http://www.python.org/sigs/

Python Success Stories--from air-traffic control to on-line
match-making--can inspire you or decision-makers to whom you're
subject with a vision of what the language makes practical.
http://www.pythonology.com/success

The Summary of Python Tracker Issues is an automatically generated
report summarizing new bugs, closed ones, and patch submissions.
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.c
omp.python.develsort=date

nullege is an interesting search Web application, with the
intelligence
to distinguish between Python code and comments.  It provides what
appear to be relevant results, and demands neither Java nor CSS be
enabled:
http://www.nullege.com

Although unmaintained since 2002, the Cetus collection of Python
hyperlinks retains a few gems.
http://www.cetus-links.org/oo_python.html

The Cookbook is a collaborative effort to capture useful and
interesting recipes:
http://code.activestate.com/recipes/langs/python/

Many Python conferences around the world are in preparation.
Watch this space for links to them.

Among several Python-oriented RSS/RDF feeds available, see:
http://www.python.org/channews.rdf
For more, see:
http://www.syndic8.com/feedlist.php?ShowMatch=pythonShowStatus=all
The old Python To-Do List now lives principally in a
SourceForge reincarnation.
http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse
http://www.python.org/dev/peps/pep-0042/

del.icio.us presents an intriguing approach to reference
commentary.
It already aggregates quite a bit of Python intelligence.
http://del.icio.us/tag/python

At least one of the Python magazines is explicitly multilingual:
http://www.python.org/ar/

  

Python-URL! - weekly Python news and links (Mar 31)

2012-04-02 Thread Cameron Laird
I pine for the fjords.

And it's time to bring Python-URL! to a close.  Python-URL!, which
Jean-Claude Wippler and I appear to have launched in 1998, has reached
the end of its utility.  We still have many loyal and enthusiastic
readers--one subscription request arrived within the last day, in
fact--and certainly much writing turns up every week that *deserves*
the spotlight Python-URL! has shone in the past.

However, the Python world has changed a great deal over the last
fourteen years.  There are many, MANY other ways for those with an
interest in Python to nourish themselves, and Python itself has grown
and normalized so much that it no longer fits particularly well in
the Python-URL! format.  Enjoy Mouse vs. Python URL:
http://www.blog.pythonlibrary.org/ , the Python areas of DZone,
Reddit, developerWorks, stackoverflow, and so on.

For your reference, I append below the most-recent-but-not-
particularly-
current version of Python-URL!'s coda of related readings.

That is all.



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

Just beginning with Python?  This page is a great place to start:
http://wiki.python.org/moin/BeginnersGuide/Programmers

Planet Python:  you want to visit there:
http://planet.python.org
But don't confuse it with Planet SciPy:
http://planet.scipy.org
And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
for the numerically-inclined:
http://twitter.com/SciPyTip

Python Insider is the official blog of the Python core development
team:
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider
-blog.html

The Python Software Foundation (PSF) has replaced the Python
Consortium as an independent nexus of activity.  It has official
responsibility for Python's development and maintenance.
http://www.python.org/psf/
Among the ways you can support PSF is with a donation.
http://www.python.org/psf/donations/
Keep up with the PSF at Python Software Foundation News:
http://pyfound.blogspot.com

The Python Papers aims to publish the efforts of Python
enthusiasts:
http://pythonpapers.org/

Doug Hellman's Module of the week is essential reading:
http://www.doughellmann.com/PyMOTW/

comp.lang.python.announce announces new Python software.  Be
sure to scan this newsgroup weekly.
http://groups.google.com/group/comp.lang.python.announce/topics

Python411 indexes podcasts ... to help people learn Python ...
Updates appear more-than-weekly:
http://www.awaretek.com/python/index.html

The Python Package Index catalogues packages.
http://www.python.org/pypi/

Much of Python's real work takes place on Special-Interest Group
mailing lists
http://www.python.org/sigs/

Python Success Stories--from air-traffic control to on-line
match-making--can inspire you or decision-makers to whom you're
subject with a vision of what the language makes practical.
http://www.pythonology.com/success

The Summary of Python Tracker Issues is an automatically generated
report summarizing new bugs, closed ones, and patch submissions.
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.c
omp.python.develsort=date

nullege is an interesting search Web application, with the
intelligence
to distinguish between Python code and comments.  It provides what
appear to be relevant results, and demands neither Java nor CSS be
enabled:
http://www.nullege.com

Although unmaintained since 2002, the Cetus collection of Python
hyperlinks retains a few gems.
http://www.cetus-links.org/oo_python.html

The Cookbook is a collaborative effort to capture useful and
interesting recipes:
http://code.activestate.com/recipes/langs/python/

Many Python conferences around the world are in preparation.
Watch this space for links to them.

Among several Python-oriented RSS/RDF feeds available, see:
http://www.python.org/channews.rdf
For more, see:
http://www.syndic8.com/feedlist.php?ShowMatch=pythonShowStatus=all
The old Python To-Do List now lives principally in a
SourceForge reincarnation.
http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse
http://www.python.org/dev/peps/pep-0042/

del.icio.us presents an intriguing approach to reference
commentary.
It already aggregates quite a bit of Python intelligence.
http://del.icio.us/tag/python

At least one of the Python magazines is explicitly multilingual:
http://www.python.org/ar/

  

Python-URL! - weekly Python news and links (Aug 25)

2011-08-25 Thread Cameron Laird
[Original draft by Gabriel Genellina.]

QOTW:  Python is a programming language, not an ice cream shop. -
Steven
D'Aprano, 2011-08-10, on providing the language with just more
choices


   Comparing the relative speed of `i += 1` and `i = i + 1`
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/db68a23685eb03a9/

   Efficiently split and process a large string:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/f9122961559e747b/

   Fastest way to do string concatenation:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/f65e05cd3a230290/

   An unexpected interaction between function scope and class
namespace:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/9c4435d56fdec152/

   The GIL, once again:
   http://mail.python.org/pipermail/python-dev/2011-August/112813.html

   Three language proposals:
   allow line breaks at operators (very long thread!):
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/a80ffc70aeea2116/
   repeat the right hand side value of assignment statements, as
needed:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/6cf460dc9d6262d1/
   issue warnings when builtin names are hidden:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/1b2dd8552aabf033/

   How to generate and send mails: a step by step tutorial
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/e0793c1007361398/

   Best practices when dealing with unknown exceptions:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/d8da925e6fa03ec6/

   When using extended slicing, behavior of negative stop values is
not fully
   intuitive:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/29193779abef5bfb/

   It's not easy to check a folder for write access on Windows:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/122a47fce5571322/

   Advice on how long a function should be:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/97076160ebf0f392/

   It is relatively easy to confuse the import machinery and make
import fail:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/d3199d1e000b135d/

   Non-local variables and exec/eval: a clarification
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/9f46a4b59f525f59/

   An original idea: pure-python templates using the AST
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/827f4345d4ad5672/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   

Python-URL! - weekly Python news and links (Aug 10)

2011-08-10 Thread Cameron Laird
QOTW: If an elegant solution doesn't occur to me right away, then I
first
compose the most obvious solution I can think of. Finally, I refactor
it
until elegance is either achieved or imagined. - Neil Cerutti,
2011-07-28


   What is the real purpose of __all__?
   http://old.nabble.com/__all__-td32227593.html

   __set__ does not appear to work for class attributes:
   http://groups.google.com/group/comp.lang.python/t/72a346299a7eacf5/

   Talking of class attributes: how to set up a docstring for them?
   http://old.nabble.com/Docstrings-and-class-Attributes-td32218039.html

   Using zip to separate a list of pairs into two lists:
   http://groups.google.com/group/comp.lang.python/t/98008a2c63b002fa/

   Detecting object differences in order to propagate the changes over
   a network:
   http://old.nabble.com/Object-Diffs-ts32221405.html

   modules, classes, and functions: all appear to be different ways to
   execute a block of code; similarities and differences
http://groups.google.com/group/comp.lang.python/t/79bc8b7d5267338a/

   Replace all references to one object with another, is it possible?
http://groups.google.com/group/comp.lang.python/t/32b67545254bdf37/

   Ensure certain attributes, even if writable and modifiable,
maintain
   certain invariants:
   http://groups.google.com/group/comp.lang.python/t/d23a48c858b2cb75/

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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes:
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to them.

   Among several Python-oriented RSS/RDF feeds available, see:
   http://www.python.org/channews.rdf
   For more, see:
   http://www.syndic8.com/feedlist.php?ShowMatch=pythonShowStatus=all
   The old Python To-Do List now lives principally in a
   SourceForge reincarnation.
   http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse
  

Python-URL! - weekly Python news and links (Aug 10)

2011-08-10 Thread Cameron Laird
QOTW: If an elegant solution doesn't occur to me right away, then I
first
compose the most obvious solution I can think of. Finally, I refactor
it
until elegance is either achieved or imagined. - Neil Cerutti,
2011-07-28


   What is the real purpose of __all__?
   http://old.nabble.com/__all__-td32227593.html

   __set__ does not appear to work for class attributes:
   http://groups.google.com/group/comp.lang.python/t/72a346299a7eacf5/

   Talking of class attributes: how to set up a docstring for them?
   http://old.nabble.com/Docstrings-and-class-Attributes-td32218039.html

   Using zip to separate a list of pairs into two lists:
   http://groups.google.com/group/comp.lang.python/t/98008a2c63b002fa/

   Detecting object differences in order to propagate the changes over
   a network:
   http://old.nabble.com/Object-Diffs-ts32221405.html

   modules, classes, and functions: all appear to be different ways to
   execute a block of code; similarities and differences
http://groups.google.com/group/comp.lang.python/t/79bc8b7d5267338a/

   Replace all references to one object with another, is it possible?
http://groups.google.com/group/comp.lang.python/t/32b67545254bdf37/

   Ensure certain attributes, even if writable and modifiable,
maintain
   certain invariants:
   http://groups.google.com/group/comp.lang.python/t/d23a48c858b2cb75/

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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes:
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to them.

   Among several Python-oriented RSS/RDF feeds available, see:
   http://www.python.org/channews.rdf
   For more, see:
   http://www.syndic8.com/feedlist.php?ShowMatch=pythonShowStatus=all
   The old Python To-Do List now lives principally in a
   SourceForge reincarnation.
   http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse
  

Re: Looking PDF module

2011-06-24 Thread Cameron Laird
On Jun 24, 6:45 am, neil.suffi...@gmail.com
neil.suffi...@gmail.com wrote:
 You might also want to have a look at Pisa (http://www.xhtml2pdf.com/
 ) . It's based on reportlab but might suit you better.

There's more to the story.  As with many things, the answer is, it
depends.
In this case, there are so many variables that I probably should write
up an
article outlining the pertinent ones ...

Hegedüs Ervin, it's quite likely that ReportLab will be a good
technical fit
for you.  Are you in a position to pay licensing fees for advanced
features?
Do you have any requirements to *merge* PDF instances?  How stringent
are your
performance requirements?
-- 
http://mail.python.org/mailman/listinfo/python-list


Python-URL! - weekly Python news and links (Jun 14)

2011-06-14 Thread Cameron Laird
[Originally drafted by Gabriel Genellina.]

QOTW: Well, it's incompatible with the Python compiler I keep in my
head. Have
these developers no consideration for backward-thinking-
compatibility?
   (Ben Finney, 2011-06-10, on certain old but not-so-obvious change)


   Python versions 2.7.2 and 3.1.4 (final) have been released!
   http://www.python.org/news/

   Formatting numbers with dynamic width and padding:
   http://groups.google.com/group/comp.lang.python/t/52810ad96a5e759b/

   How good is security via hashing?
   http://groups.google.com/group/comp.lang.python/t/2bfe26882f3de56f/

   Is it possible to omit the parentheses when writing a decorator
accepting
   optional arguments?
   http://groups.google.com/group/comp.lang.python/t/3adbb4ec23b38b31/

   Inheriting docstrings
   http://groups.google.com/group/comp.lang.python/t/af47222fd9188506/

   virtualenv has extremely powerful capabilities.  How will they
   reach Python?
   http://mail.python.org/pipermail/python-dev/2011-June/111903.html

   The regular expressions culture:
   http://groups.google.com/group/comp.lang.python/t/4df6669917ef2bfd/

   How and when metaclasses are actually used:
   http://groups.google.com/group/comp.lang.python/t/a48f5efafc287c68/

   Unicode handling when stdout is not a tty:
   http://groups.google.com/group/comp.lang.python/t/293dab4db766b68a/
   http://thread.gmane.org/gmane.comp.python.general/692355

   The difference between dot and bracket notation:
   http://groups.google.com/group/comp.lang.python/t/e0ea54b326d14c6e/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes:
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to them.

   Among several Python-oriented RSS/RDF feeds available, see:
   http://www.python.org/channews.rdf
   For more, see:
   

Python-URL! - weekly Python news and links (Jun 7)

2011-06-07 Thread Cameron Laird
[Drafted by Gabriel Genellina.]

QOTW:  'Reminds me of the catch-phrase from the first Pirates of the
Caribbean  movie: 'It's more of a guideline than a rule.' - Tim
Roberts,
2011-05-27, on the mutator-methods-return-None


   Announcing two maintenance releases (including security fixes):
2.5.6
   and 2.6.7 and two pre-final ones: 2.7.2rc1 and 3.1.4rc1:
   http://www.python.org/news/

   How compatible are 2.x vs. 3.x?  and what does compatible mean
   exactly?  Is it something like American English vs. British
English?
   http://groups.google.com/group/comp.lang.python/t/1b0e4fb6785449ae/
   Raymond Hettinger on how to use super() correctly:
   http://groups.google.com/group/comp.lang.python/t/1b78f365bccd1275/
   http://groups.google.com/group/comp.lang.python/t/c87b2cb8bda10705/

   Make sure you read these anecdotes from Guido's recent life with
Python:
   http://neopythonic.blogspot.com/2011/06/depth-and-breadth-of-python.html

   Class decorators, multiple inheritance, and super():
   http://groups.google.com/group/comp.lang.python/t/b5839e91ac06f9cf/

   The memoize pattern revisited:
   http://groups.google.com/group/comp.lang.python/t/ca38638b080ba973/

   A long thread: NaN, IEEE-754 and its roots, the importance of such
   a standard,  and why Python should follow it or not:
   http://groups.google.com/group/comp.lang.python/t/73161a5e9c561db8/

   How to split a generator function in logical parts (and still have
   a generator):
   http://groups.google.com/group/comp.lang.python/t/73ca39d4a280f270/

   How do alternative implementations handle concurrency without a
GIL:
   http://code.activestate.com/lists/python-list/601913/

   Regular expressions or string methods: when to use them:
   http://code.activestate.com/lists/python-list/602284/

   A horrible function as an example how *not* to write code:
   http://groups.google.com/group/comp.lang.python/t/c7753efc88399b5f/
   http://groups.google.com/group/comp.lang.python/t/eda74e73fd7f53e7/

   Using Python (and free software in general) in school notebooks:
   http://code.activestate.com/lists/python-list/602126/
   A code review: commenting on some posted script style and behavior:
   http://groups.google.com/group/comp.lang.python/t/4f379b9c09edab73/

   The scope of function parameters; names and unnamed objects:
   http://groups.google.com/group/comp.lang.python/t/daac8ef71631dbd0/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   

Python-URL! - weekly Python news and links (May 26)

2011-05-26 Thread Cameron Laird
[This edition drafted by Gabriel Genellina.]

QOTW:  They did a study once to determine the best tool for
development.  Turns
out that the most productive tool was generally the one that the user
believed was
the most productive.  In hindsight I think that that was rather
obvious. - D'Arcy
J.M. Cain, 2011-05-24

   Python 2.6.7 release candidate 2 now available:
   http://groups.google.com/group/comp.lang.python/t/ebbd57431bb084b2/

   Amazing logic: and becomes or and or becomes and
   http://groups.google.com/group/comp.lang.python/t/b13e786438a609dd/

   Equal objects must have equal hashes - but how strong is that
requirement?
   http://groups.google.com/group/comp.lang.python/t/f23f72cf633892f9/

   Do secure systems exist?
   
http://groups.google.com/group/comp.lang.python/t/f887168ca476618f/7503714d82b1789b?#7503714d82b1789b

   os.access() returns totally useless results on Windows, always has,
and nobody
   cares:
   http://groups.google.com/group/comp.lang.python/t/aa3d9b21c77fa7d7/

   Is this PAAS Python mind-blowingly important, or pointless, or a
mix of the two?
   http://www.activestate.com/cloud

   contextlib.nested() is deprecated - and this example shows why a
custom
   implementation is hard to write well:
   http://groups.google.com/group/comp.lang.python/t/d6b090b7fd4a92c6/

   Why one startup chose Python for development:
   http://groups.google.com/group/comp.lang.python/t/17dca3bf467c9001/

   And more reasons another developer chose it:
   
http://groups.google.com/group/comp.lang.python/t/17dca3bf467c9001/83a7be235c113dac?#83a7be235c113dac

   And now, things people do *not* like about Python:
   http://groups.google.com/group/comp.lang.python/t/fff2826d44ea336/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes:
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to 

Python-URL! - weekly Python news and links (May 18)

2011-05-18 Thread Cameron Laird
QOTW:  When did we come to the idea that people should be able to
program in
a language without actually learning it?  The fact that Python comes
so close
to that possibility is nothing short of revolutionary.  I suppose one
day a
reasoning android will be able to sit down at the terminal of a star
ship
computer and ask simple questions while making random hand movements
across a
screen, but for now I am afraid that programmers still have to learn
programming. - D'Arcy J.M. Cain - 2011-05-11
   http://permalink.gmane.org/gmane.comp.python.general/690140


   Fast way to convert a set into a list:
   http://groups.google.com/group/comp.lang.python/t/a3c72619c1e867e3/

   'Still time to submit a proposal to PyCon India 2011:
   
http://pycon.blogspot.com/2011/05/pycon-india-2011-call-for-proposals.html

   How to make sure equal objects are unique:
   http://groups.google.com/group/comp.lang.python/t/a8889b7a327756dd/

   generator.send() explained:
   http://groups.google.com/group/comp.lang.python/t/953c8f1f8a5f73ed/

   object of different types never compare equal, a documentation
bug:
   http://groups.google.com/group/comp.lang.python/t/6ceb3a40dc263f25/

   Ofuscating code: not a good idea
   http://groups.google.com/group/comp.lang.python/t/f887168ca476618f/

   Summer pyGames Registration opens:
   http://pyfound.blogspot.com/2011/05/summer-pygames-registration-open.html

   The proper way to handle errors:
   http://groups.google.com/group/comp.lang.python/t/9c6a47de6bf8b352/
   http://groups.google.com/group/comp.lang.python/t/79c38e653587d4a/

   A long thread, now discussing an O(log n) algorithm for computing
the
   Fibonacci sequence:
   
http://groups.google.com/group/comp.lang.python/t/b713b14e3e0d9872/e9e64fa9a0348ad8?lnk=gst#e9e64fa9a0348ad8

   Implementing a multi-dimensional array:  a short but insightful
response
   from Robert Kern:
   http://groups.google.com/group/comp.lang.python/t/f20a6522369d2bbe/

   SciPy 2011, Austin, Texas, 11-16 July 2011:
   http://conference.scipy.org/scipy2011/index.php

   Unicode for dummies :-) :
   http://groups.google.com/group/comp.lang.python/t/23d8592a9170e26e/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java 

Python-URL! - weekly Python news and links (May 10)

2011-05-10 Thread Cameron Laird
[This content provided by Gabriel Genellina, despite what the From:
line says.]

QOTW:  Often, the cleverness of people is inversely proportional to
the
amount of CPU power and RAM that they have in their computer.

Unfortunately, the difficulty in debugging and maintaining code is
often
directly proportional to the cleverness exhibited by the original
programmer. - Irmen de Jong and Grant Edwards
   http://groups.google.com/group/comp.lang.python/t/58559ead6dc82448


   Looking for The Coolest Python Recipe of All Times:
   http://groups.google.com/group/comp.lang.python/t/141fdde77caab932

   A nice and clever probabilistic data structure:
   http://groups.google.com/group/comp.lang.python/t/58559ead6dc82448

   Development tools and best practices (continued from previous
week):
   http://groups.google.com/group/comp.lang.python/t/836537e6c25cf027

   Things to be aware of when using dictionary views:
   http://groups.google.com/group/comp.lang.python/t/b9c6ded7522e7425

   Python3 and absolute/relative imports:
   http://groups.google.com/group/comp.lang.python/t/9470dbdacc138709

   Another gotcha when using import with packages:
   http://groups.google.com/group/comp.lang.python/t/961a90219a61e19d

   Fibonacci, recursion, and the 'P' conspiracy theory:
   http://groups.google.com/group/comp.lang.python/t/b713b14e3e0d9872

   The preferred way for string formatting:
   http://groups.google.com/group/comp.lang.python/t/f0cd2717ffe13560

   Checking if a list is empty - and how to think the Python way:
   http://groups.google.com/group/comp.lang.python/t/d36dcd2e2e175d1e

   Classics never die: What other languages use the same data model as
Python?
   http://groups.google.com/group/comp.lang.python/t/4b8b0e06a2d5cfcc



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes:
   http://code.activestate.com/recipes/langs/python/

   Many Python 

Python-URL! - weekly Python news and links (Apr 21)

2011-04-21 Thread Cameron Laird
QOTW:  Python is a pragmatic language, so all the rules come pre-
broken. - Mel
   http://groups.google.com/group/comp.lang.python/msg/208face4a8e00062


   Look!  In the sky!  It's a SciPy demonstration!  It's a business!
   No, it's ForecastWatch:
http://goo.gl/AvzqZ

EuroPython 2011:  Firenze, 20-26 June 2011:
http://ep2011.europython.eu/

Python Software Foundation is collecting for a special project:
http://tinyurl.com/PSF-donation

   Jesse Noller explains the PSF:
   http://bit.ly/e1j7JE

   Do you *realize* how much you get with Plone, for free?
   http://goo.gl/fb/KRodb
   [Django and many other Python outposts also are wonderful, in
   their own ways, of course.]



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes:
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to them.

   Among several Python-oriented RSS/RDF feeds available, see:
   http://www.python.org/channews.rdf
   For more, see:
   http://www.syndic8.com/feedlist.php?ShowMatch=pythonShowStatus=all
   The old Python To-Do List now lives principally in a
   SourceForge reincarnation.
   http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse
   http://www.python.org/dev/peps/pep-0042/

   del.icio.us presents an intriguing approach to reference
commentary.
   It already aggregates quite a bit of Python intelligence.
   http://del.icio.us/tag/python

   At least one of the Python magazines is explicitly multilingual:
   http://www.python.org/ar/

   PythonWare complemented the digest you're reading with the
   marvelous daily python url.  While it's now ... dormant, it still
   has plenty of interesting reading.
http://www.pythonware.com/daily

   Python articles regularly appear at IBM DeveloperWorks:
   

Python-URL! - weekly Python news and links (Apr 9)

2011-04-09 Thread Cameron Laird
QOTW:  [You'll have to see it for yourself:  !Viva 2.7.1!]
http://groups.google.com/group/comp.lang.python/msg/8d79c5ee3913f82d


   De-briefing is characteristically something we do too little;
   there's a LOT of value in systematic examination of what we've
   experienced.  Unladen Swallow presents a particular instance:
   while the software appears to be at the end of its life, how it
   reached that has much to teach us.  Those with an interest in
   PyPy, LLVM, ... will also want to read Reid Kleckner's important
   retrospective:
   http://qinsb.blogspot.com/2011/03/unladen-swallow-retrospective.html

   SciPy's important; Sage is important; put 'em together, along with
   IPython progress, a gorgeous venue, numpy involvement, and so on,
   and good story results:
   http://blog.fperez.org/2011/03/ipython-and-scientific-python-go-to.html

   Should you care about Twisted 11.0?
   http://labs.twistedmatrix.com/2011/04/twisted-1100-released.html

   Matthew Wilkes and David Glick's zodb.ws is even better--more
broadly
   useful and instructive--than I first realized:
   http://bit.ly/eqEijV

   Arrange brain transfer:  Raymond Hettinger and @dabeaz join forces
to
   create what might be the most ultimate introductory Python course:
   http://bit.ly/ct292a

   Python on iPad?  Of course!
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/6910f30b1cd3f2c9

   COW is important to understand clearly:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/1df510595483b12f

   True expertise with a control structure comes out when exceptions
arise:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/81711eebf8e860da



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes:
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   

Python-URL! - weekly Python news and links (Apr 2)

2011-04-02 Thread Cameron Laird
QOTW:  Let us cease to nourish those fabled ones who dwell under
bridges. -
Tom Zych
   http://groups.google.com/group/comp.lang.python/msg/c1052c962becfc26


   Look for Python Insider below.  Then read through everything
there.
   You'll want to know about this one.

   Once again, the PSF sponsors GSoC projects (and, as has become
   traditional, Python-URL! is again a week late in publicizing the
   fact):
   
http://pyfound.blogspot.com/2011/03/google-summer-of-code-call-for-projects.html
   Projects range from Mailman to Web frameworks to Wikis ... Get
   your applications in THIS WEEK.

   An important recurring topic (particularly challenging with Win*,
   apparently):  communication with subprocess-es:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/66084de9de56d1f4
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/01e916d35e2da5b3

   A podcast on the Cython project.  Note this is *far* from the first
   C-Python alloy:
   http://inscight.org/2011/03/31/episode_/

   Another well-packaged non-first:  interactive Python interpretation
   through the Web:
   http://zodb.ws/

   You'll like PyMOTW below.  In the same vein:
   http://blog.doughellmann.com/2011/03/pycon-slides-online.html

   Warm-up alphabetic exercises for localization work:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/93ae5c73030658c7

   Check out the features of Wing IDE 4.0.1:
   http://groups.google.com/group/comp.lang.python/msg/5ba1e98f4b258821



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   Planet Python:  you want to visit there:
   http://planet.python.org
   But don't confuse it with Planet SciPy:
   http://planet.scipy.org
   And don't confuse *that* with SciPyTip, a high-quality daily (!)
tip
   for the numerically-inclined:
   http://twitter.com/SciPyTip

   Python Insider is the official blog of the Python core development
   team:
   
http://pyfound.blogspot.com/2011/03/python-dev-launches-python-insider-blog.html

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/
   Keep up with the PSF at Python Software Foundation News:
   http://pyfound.blogspot.com

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Doug Hellman's Module of the week is essential reading:
   http://www.doughellmann.com/PyMOTW/

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes:
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to them.

   Among several Python-oriented RSS/RDF feeds 

Python-URL! - weekly Python news and links (Mar 23)

2011-03-23 Thread Cameron Laird
QOTW:  So far as I know, that actually just means that the test suite
is
insufficient. - Peter Seebach, when an application passes all its
tests
   http://groups.google.com/group/comp.lang.lisp/msg/29aff9595bb0eac0


Administrative note:  it's been a while--since the end of October
2010,
in fact; Python-URL! has been dormant all that time.  It looks as
though
we're re-activating now, though, and the next month should make
apparent
whether we've returned to our roughly-weekly schedule.  A few minor
structural changes are afoot; likely to be of broadest interest is
that
twits can now follow Python-URL! on URL: http://twitter.com/Phaseit
.


   PyCon2011 had IDE news that made the trade press:
 
http://www.eweek.com/c/a/Application-Development/Microsoft-Launches-Python-Tools-for-Visual-Studio-Beta-638994/?kc=EWKNLITA03152011STR3

   Kirby Urner reflects on the virtues of our built-in battery tester:
   http://mail.python.org/pipermail/edu-sig/2011-February/010179.html

   regex is important.  It's also widely mis-understood, and often
   results in little more than frustration.  This conversation about
   regex's special characters ends happily:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/e8ea8cc833aebac2

   While file extensions are among the many topics Python has handled
   deftly for over two decades now, the best handling continues to
   update occasionally:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/6b166a07312c2c12



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes:
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to them.

   SciPyTip is a high-quality daily (!) tip for the numerically-
   inclined:
   http://twitter.com/SciPyTip

   Among several Python-oriented RSS/RDF feeds available, see:
   http://www.python.org/channews.rdf
   For more, see:
   http://www.syndic8.com/feedlist.php?ShowMatch=pythonShowStatus=all
   The old Python To-Do List now lives principally in a
   SourceForge reincarnation.
   http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse
   http://www.python.org/dev/peps/pep-0042/

   del.icio.us 

[issue9673] Entry Widget Not Editable under Windows XP

2010-08-24 Thread Cameron Laird

Cameron Laird cla...@phaseit.net added the comment:

If it'll help, I can translate this to Tcl/Tk, and report it to the Tk 
maintainers.

My first impression, which is in the realm of wild speculation, is that this is 
a Tk defect which has already been corrected.  A bit more care in composition 
of a homologous Tk-coded example should swiftly confirm or falsify that 
proposition.

--
nosy: +claird

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9673
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Python-URL! - weekly Python news and links (Jun 22)

2010-06-22 Thread Cameron Laird
QOTW:  It's hard to overestimate the variance you'll see when you
start
asking your users for information. - Cody Powell
   
http://www.codypowell.com/taods/2010/01/production-aint-pretty-a-case-for-excessive-application-logging.html


   The second Release Candidate of Python 2.7 is available for
testing:
   http://comments.gmane.org/gmane.comp.python.devel/113970

   Do you want to help Python development?  Easy:  just review bug
   tracker items:
   http://groups.google.com/group/comp.lang.python/t/e9f27bae8afbc80b/

   Why can I not catch the same exception I'm raising?
   http://groups.google.com/group/comp.lang.python/t/3ff0e94eaaad430e/

   The Python way: polymorphism and duck typing explained to a visitor
   coming from C++:
   http://groups.google.com/group/comp.lang.python/t/bb154ff6a920087e/

   A strange issue at interpreter shutdown involving generators:
   http://groups.google.com/group/comp.lang.python/t/b2aa1fa16b34a7d4/

   Unfortunately, unicode handling in exception messages (in 2.x) is
far
   from perfect:
   http://groups.google.com/group/comp.lang.python/t/f3d0a1f554583eac/

   Generators and lazy evaluation of free variables:
   http://groups.google.com/group/comp.lang.python/t/bf3e25d9ee09c449/

   Lots of people recommend against using CGI for developing web
   applications - so, what alternatives are better?
   http://groups.google.com/group/comp.lang.python/t/829d0338a399fb9b/

   Mixing assembler and python - when does it make sense, if any?
   http://groups.google.com/group/comp.lang.python/t/237a9ef9fa862a03/

   Is it possible to override __setattr__ for a module?
   http://groups.google.com/group/comp.lang.python/t/d87e775920978683/

   Currently, the ssl module only ensures that you can have an
encrypted
   talk with your attacker :-)
   http://groups.google.com/group/comp.lang.python/t/c16a4cea469d346a/

   Everyone showing his favorite way of computing
   1**2+2**2+3**2-4**2-5**2+6**2+7**2+8**2-9**2-10**2+...-2010**2:
   http://groups.google.com/group/comp.lang.python/t/b2b82ed474d9f165/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes.
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in 

Python-URL! - weekly Python news and links (Jun 16)

2010-06-16 Thread Cameron Laird
QOTW:  Python advocacy seems to be by example, not cheerleading. -
Cameron
Simpson
   http://groups.google.com/group/comp.lang.python/msg/2cc7e643702d0ec8


   The first release candidate of Python 2.7 is now available for
testing:
   http://groups.google.com/group/comp.lang.python/t/e3cd74b1797162ca/

   __getattribute__ can influence how a method is searched - but how
to
   influence how it is called?
   http://groups.google.com/group/comp.lang.python/t/50c5d1cded9fde8e/

   Current options for GUI libraries are not good, so we need to build
a
   new one. Is that true? [long thread!]:
   http://groups.google.com/group/comp.lang.python/t/b2ef3a1f41b516ec/

   Another long thread starting with a vague problem description
involving
   HTML form handling, and gradually building a solution. Along it:
CGI
   for dummies and The right way to use FormStorage:
   http://groups.google.com/group/comp.lang.python/t/c532d28d5b550ead/

   Some tips on approaching the Python source code (C) by the first
time:
   http://groups.google.com/group/comp.lang.python/t/299649a2ba6a9792/

   Bogus benchmarks leads to bogus conclusions (in this case, that map
   is slow)
   http://groups.google.com/group/comp.lang.python/t/c6793a86ce70a4ca/

   optparse: how to deal with non standard options:
   http://groups.google.com/group/comp.lang.python/t/a25b905b27195798/

   Reasons for not allowing usage of ctypes in the standard library:
   http://groups.google.com/group/comp.lang.python/msg/be62be9e8f9ab77d

   Why any() instead of firsttrue(), which seems more useful?
   http://groups.google.com/group/comp.lang.python/t/c11a9b6e0cfd9c25/

   More ways to sum two integers than you ever thought:
   http://groups.google.com/group/comp.lang.python/t/5e4967d5ea98f983/

   A trollish rant on this community:
   http://groups.google.com/group/comp.lang.python/t/df5ed15eb2a29a54/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes.
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to them.

   Among several Python-oriented RSS/RDF feeds available, see:
   http://www.python.org/channews.rdf
   For more, see:
   

Re: GUIs - A Modest Proposal

2010-06-16 Thread Cameron Laird
On Jun 6, 5:49 pm, Kevin Walzer k...@codebykevin.com wrote:
.
  [much wisdom, particularly
   in regard to Tkinter]
.
.

 The very diversity of GUI toolkits came into effect because Python is
 very easy to extend and integrate with other C/C++ libraries. Writing a
 GUI toolkit from scratch is much, much harder. Even a simple toolkit
 like Tk has twenty years of developer-hours behind it. Do you really
 think the Python community will be able to a) agree on the design of a
 new toolkit to replace Tkinter and b) implement the code in a timely
 fashion across multiple platforms? It sounds like an impossible goal to me.
.
.
.
Several people (other than Kevin) have written about Tkinter's
non-standard/unsatisfying/... appearance.  Those who last
looked at it several years ago will probably do well to fire up
an instance and view the Tile widgets it now offers.  While I
don't know nearly enough to guarantee that they'll please
everyone, they're at least different from the Tkinter of 2005,
and at least some of the differences are in directions mentioned
in this thread.
-- 
http://mail.python.org/mailman/listinfo/python-list


Python-URL! - weekly Python news and links (Jun 6)

2010-06-07 Thread Cameron Laird
QOTW:  ... it's just laziness and hubris passed off under the banner
of
agility. - Clifford Heath, on the fashion of justification of
metaschemas
because those darn data architects are just too slow


   Efficient way to apply a function to every element in a list,
discarding
   the results:
   http://comments.gmane.org/gmane.comp.python.general/663445/

   Counting occurrences of every item in a list:
   http://groups.google.com/group/comp.lang.python/t/317d9828b0d4c1c6

   The meaning of '\b' in regular expressions may be confusing:
   http://groups.google.com/group/comp.lang.python/t/baa73e8838858aa3

   A better algorithm for random sampling:
   http://groups.google.com/group/comp.lang.python/t/28cdc0af76be03f7

   PyUseCase helps make GUI testing maintainable:
   http://www.texttest.org/index.php?page=ui_testing

   How to pass additional arguments to __getattr__:
   http://groups.google.com/group/comp.lang.python/t/ddc79f3b0621b73d

   Properties and inheritance - looking for the simplest way to make
it work:
   http://groups.google.com/group/comp.lang.python/t/753eafbc3a3a1f19

   Inconsistent handling of StopIteration between generator
expressions
   and list, set and dict comprehensions:
   http://groups.google.com/group/comp.lang.python/t/ec5f723657352217

   Metaclass for easier __slots__ handling, and even inheriting them:
   http://groups.google.com/group/comp.lang.python/t/971cc3583988d6e2

   How to distinguish between a built-in class and a user-defined one:
   http://comments.gmane.org/gmane.comp.python.general/663296/

   Reasons not to inherit both from Decimal and float at the same
time:
   http://groups.google.com/group/comp.lang.python/t/65f5a80088c91938

   The New Wave of command line parsers is out:
   http://groups.google.com/group/comp.lang.python/t/92c3bc11302ed1e7

   Handling of sql parameters and escape characters, in two related
   questions:
   http://comments.gmane.org/gmane.comp.python.general/663514
   http://comments.gmane.org/gmane.comp.python.general/663481

   Style: how to properly indent an 'if' statement with a long
condition,
   so the end of it is clearly distinguishable from the statement that
   follows:
   http://groups.google.com/group/comp.lang.python/t/e1aac5553db5ec07

   A simple, but hard to find problem using ctypes and the _fields_
name:
   httpgroups.google.com/group/comp.lang.python/t/b22c9d412a97eb90

   Looking for big Python powered web sites and applications:
   http://groups.google.com/group/comp.lang.python67a3fdc543cf5dfa1c6
   http://groups.google.com/group/comp.lang.python/t/bc80c1bae46aba04

   A new Python web forum announcement - is it good news or bad news?
   http://groups.google.com/group/comp.lang.python/t/17011e77f9bc51c8



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   

Python-URL! - weekly Python news and links (May 5)

2010-05-06 Thread Cameron Laird
[Authored by Gabriel Genellina.]

QOTW:  Even on alt.haruspicy they cannot do much without a liver now
and
then... - Peter Otten
   http://groups.google.com/group/comp.lang.python/msg/7852938d0b92bd7b


   Mixing bytes and unicode when writing data in Python 3.x:
   http://groups.google.com.ar/group/comp.lang.python/t/72614b3e49b2efe/

   The best way to join two lists: a.extend(b) or a+=b?
   http://groups.google.com.ar/group/comp.lang.python/t/e56703a77aff9c67/

   How to check who is still holding a reference to some object:
   http://groups.google.com.ar/group/comp.lang.python/t/ca9ca80d1f9b13da/

   Using metaclasses to define class-level, inheritable computed
attributes
   (properties):
   http://groups.google.com.ar/group/comp.lang.python/t/78394a73748c176f/

   How to compute a/b (a float value) when both numbers are really big
   integers outside the float range?
   http://groups.google.com.ar/group/comp.lang.python/t/bdfe5287890e5776/

   When creating millions of objects, disabling the garbage collector
may
   enormously improve performance:
   http://groups.google.com.ar/group/comp.lang.python/t/4294c4c585e75a6d/

   The right way to define __str__, __repr__ and __unicode__ in Python
2:
   http://groups.google.com.ar/group/comp.lang.python/t/e208e63e399ec52a/

   rfind()'s 'start' argument is quite unintuitive:
   http://groups.google.com.ar/group/comp.lang.python/t/d03fbdcacfbf5794/

   Generating nested code using a context manager:
   http://groups.google.com.ar/group/comp.lang.python/t/1200df3bd70afaa6/

   How can open() succeed but os.path.realpath() fail with the same
file
   name? (and later: how the Unix filesystems work)
   http://groups.google.com.ar/group/comp.lang.python/t/771f233167ac6d8e/

   [Windows] It may be wise to download Visual Studio Express 2008
now, to
   still be able to recompile C extensions in the future:
   http://groups.google.com.ar/group/comp.lang.python/t/65e34924e7d42c90/

   The available options for Web application development (and a
comparison
   with PHP):
   http://groups.google.com.ar/group/comp.lang.python/t/7caab317a1d56d6e/

   The dot in a.b is not an operator, and it's quite different from a
+=b
   (started as a new syntax proposal, the .= operator):
   http://groups.google.com.ar/group/comp.lang.python/t/c6f9171c7659a999/

   A proposal for engineering notation (like scientific format but
exponent
   is always multiple of 3):
   http://groups.google.com.ar/group/comp.lang.python/t/421f611d0235b9f6/

   How strong are statements like 'dict.keys() and dict.values()
correspond
   to each other'?
   http://groups.google.com.ar/group/comp.lang.python/t/29915caa46255e21/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting 

Python-URL! - weekly Python news and links (Mar 9)

2010-04-21 Thread Cameron Laird
QOTW:  I used to think anonymous functions (AKA blocks, etc...) would
be a
nice feature for Python.

Then I looked at a stack trace from a different programming language
with
lots of anonymous functions. (I believe it was perl.)

I became enlightened. - Jonathan Gardner, apparently echoing Guido's
criterion of debuggability in language design
   http://groups.google.com/group/comp.lang.python/msg/3ebe7a0b78086acf


Editor Cameron Laird apologizes for the following three entries, which
appeared in the last installment only in an unusably garbled form:
   There is no module in the standard library to handle filesystem
paths
   in an OO way - but why?
   http://groups.google.com/group/comp.lang.python/t/f580fb3763208425/

   A History Channel special: how the way a TAB key was interpreted
   changed over time
   http://groups.google.com/group/comp.lang.python/t/82d9181fcd31ffe4/

   After a false start, finally we get our first Is it Call-By-Value
or
   Call-By-Reference? thread of the year!
   http://groups.google.com/group/comp.lang.python/t/fd36962c4970ac48/
---
Back in the present,
   Three new preliminary Python versions are now available for
testing:
   Python 2.7 alpha 4
   http://groups.google.com/group/comp.lang.python/t/779e761d934dbc1a/
   Python 3.1.2 release candidate
   http://permalink.gmane.org/gmane.comp.python.general/656887
   Python 2.6.5 release candidate 1
   http://permalink.gmane.org/gmane.comp.python.devel/111319

   Forget those Java recipes when implementing the Singleton pattern:
   http://groups.google.com/group/comp.lang.python/t/9228a3763eb552b3/

   How to obtain a module docstring without actually importing it:
   http://groups.google.com/group/comp.lang.python/t/ca97d63ace6ea81d/

   Do something only if a certain module is already in use by the
current
   program:
   http://groups.google.com/group/comp.lang.python/t/ee22c223fa73a429/

   Functions, bound methods, unbound ones: what are their differences?
   http://groups.google.com/group/comp.lang.python/t/72ab93ba395822ed/

   Automatically adding global names to a module: how to do that, and
   alternatives to use when it's not a good idea:
   http://groups.google.com/group/comp.lang.python/t/40837c4567d64745/

   Raymond Hettinger on the rationale behind the collections.Counter
class:
   http://groups.google.com/group/comp.lang.python/t/64d0fe87f7ea9e6/

   How Tk 8.5 + ttk (the version that ships with Python 2.6) compares
to
   other GUI toolkits:
   http://groups.google.com/group/comp.lang.python/t/d8d24eacf022ed75/

   The actual behavior of slicing like L[n::-1] is not properly
documented:
   http://groups.google.com/group/comp.lang.python/t/add9aa920b55eacc/

   Documenting a function with #comments instead of a proper docstring
is
   silly, isn't it? How does that affect source code quality?
(Including
   historical disgression going back to the PDP-8, the Altair and even
   nanocomputers...)
   http://groups.google.com/group/comp.lang.python/t/dea5c94f3d058e26/

   Coming from Perl, one has to unlearn (bad?) habits and embrace
Python's
   rigid flexibility:
   http://groups.google.com/group/comp.lang.python/t/4bfdc60d3f58c960/
   http://groups.google.com/group/comp.lang.python/t/24bfa00b428f868f/

   And for those perl-like oneliner fans, here is dos2unix:
   http://groups.google.com/group/comp.lang.python/t/c4b63debe91d51c7/

   Perl has CPAN. Python has PyPI + easy_install, but they lack many
   important features. How could we improve that?
   http://groups.google.com/group/comp.lang.python/t/c2c452cc4aaa6e98/

   The pysandbox project provides a sandbox where untrusted code
cannot
   modify its environment; now looking for someone to find holes in
it:
   http://groups.google.com/group/comp.lang.python/t/87bf10f8acede7c3/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group

Python-URL! - weekly Python news and links (Mar 17)

2010-04-21 Thread Cameron Laird
QOTW:  ... [T]hat kills yet another usage of C ... - Maciej
Fijalkowski
   http://morepypy.blogspot.com/2009/11/some-benchmarking.html


   Making operations in the Fraction class automatically return a
subclass
   instance when called with subclass arguments:
   http://groups.google.com/group/comp.lang.python/t/2512697a901d4752/

   Providing alternate constructors for an existing class:
   http://groups.google.com/group/comp.lang.python/t/99e87afb58f3ef3d/

   Checking existence of files matching a certain pattern:
   http://groups.google.com/group/comp.lang.python/t/a95183b7ae931b7a/

   How to gracefully exit the current process, when there are multiple
   threads, on Windows:
   http://groups.google.com/group/comp.lang.python/t/5a6a7bcfd30fb7ce/

   How inspect.stack()/sys._getframe() interact with local variables
and
   references:
   http://groups.google.com/group/comp.lang.python/t/fc8bf697fa9a01a4/

   Alternatives to the re module when looking for a large set of
constant
   strings:
   http://groups.google.com/group/comp.lang.python/t/63e6e177be7dea21/

   Why does Python syntax allow break from no more than a single
loop
   at one time?
   http://groups.google.com/group/comp.lang.python/t/96f3407480ed39ab/

   Trying to start a new Python meeting group is not easy:
   http://groups.google.com/group/comp.lang.python/t/a24bf882c72c555/

   Bad interactions between cmd.exe code page (Windows), Popen, and
the
   UTF-8 encoding:
   http://groups.google.com/group/comp.lang.python/t/2da1f1de573e5663/

   An example showing how to use the locale module to format a number
with
   thousand separators:
   http://groups.google.com/group/comp.lang.python/t/42e63e3a53f03593/

   How non-ASCII characters get entered from the Python interactive
console:
   http://groups.google.com/group/comp.lang.python/t/77271907fb195aca/

   Raymond Hettinger on the rationale behind the collections.Counter
class:
   http://groups.google.com/group/comp.lang.python/t/64d0fe87f7ea9e6/

   You could not go to PyCon Atlanta? No problem - many PyCon talks
from
   the last two years are available here:
   httppycon.blip.tv/
   http://python.mirocommunity.org/

   An interesting problem: find out the the algorithm used to compute
a
   given CRC
   http://groups.google.com/group/comp.lang.python/t/b22db1e3e63db596/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   

Python-URL! - weekly Python news and links (Feb 9)

2010-04-21 Thread Cameron Laird
QOTW:  You see? That's what I like about the Python community: people
even
apologise for apologising :) - Tim Golden
http://groups.google.com/group/comp.lang.python/msg/858d1c31d0c2adff


   The third alpha version of Python 2.7 is ready for testing:
   http://groups.google.com/group/comp.lang.python/t/6f49dacfe8759508/

   How to enumerate all possible strings matching a given regular
expression:
   http://groups.google.com/group/comp.lang.python/t/1b78346c6661ac4f/

   Which language features do you like most?
   http://groups.google.com/group/comp.lang.python/t/599b3c9772421ece/

   Implementing a two-dimensional array in a simple way seems to
actually
   be more efficient than other, more sophisticated alternatives:
   http://groups.google.com/group/comp.lang.python/t/55e595d6dc4ca3f4/

   The new GIL (to be implemented in Python 3.2) will provide less
overhead,
   especially in multicore CPUs:
   http://groups.google.com/group/comp.lang.python/t/586ef2d3685fa7ea/

   In Python 3, 'exec' inside a function does not have the same effect
   as before:
   http://groups.google.com/group/comp.lang.python/t/7a046e4ede9c310a/

   Using Queue objects to feed and synchronize several worker threads:
   http://groups.google.com/group/comp.lang.python/t/32256dd608c9c02/

   New generation IDEs should provide much better and integrated
   refactoring tools:
   http://groups.google.com/group/comp.lang.python/t/e019614ea149e7bd/

   There is no module in the standard library to handle filesystem
paths
   in an OO way - but why?
   http://groups.google.com/group/comp.lang.pythonf580fb3763208425ece/

   A History Channel special: how the way a TAB key was interpreted
   changed over time
   http://groups.google.com/group/comp.lang.python82d9181fcd31ffea3f4/

   After a false start, finally we get our first Is it Call-By-Value
or
   Call-By-Reference? thread of the year!
   http://groups.google.com/group/comp.lang.pythonfd36962c4970ac487ea/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes.
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to them.

   Among several Python-oriented RSS/RDF 

Python-URL! - weekly Python news and links (Apr 21)

2010-04-21 Thread Cameron Laird
QOTW:  There's no RightAnswer(tm), just our best guess as to what is
the most
useful behavior for the most number of people. - Raymond Hettinger
   http://groups.google.com/group/comp.lang.python/msg/e7f78ef27811781b


   First beta version of Python 2.7 is available:
   http://groups.google.com.ar/group/comp.lang.python/t/d036954e11a264dd/

   Why still a 2.7 release, when 3.1 is already out?
   http://groups.google.com.ar/group/comp.lang.python/t/f8a5028affe772ed/

   Deciding when to pass around a parameter, and when to keep it as an
   instance attribute:
   http://groups.google.com.ar/group/comp.lang.python/t/6f51302327b58aac/

   A class is more than just a container for functions and attributes:
   http://groups.google.com.ar/group/comp.lang.python/t/5525bd981dd9ece6/

   Lie Ryan tries to explain the various escaping levels of a regular
   expression string:
   http://groups.google.com.ar/group/comp.lang.python/t/3a27b819307c0cb6/

   Peter Otten shows how to make string.Template resolve dotted.names
from
   nested dictionaries:
   http://groups.google.com.ar/group/comp.lang.python/t/d482f74d16fcbbb2/

   Simple string operations, regular expressions, and a full blown
parser:
   the right tools for different jobs
   http://groups.google.com.ar/group/comp.lang.python/t/888b3fe934e2c5e2/

   The list comprehension loop variable, nested scopes, and common
sense
   applied to programming languages:
   http://groups.google.com.ar/group/comp.lang.python/t/2b64b9a9069a324f/

   Performance of list vs. set equality operations -- later:
encapsulation,
   the Open/Closed principle, and why overriding __special__ methods
may
   not affect certain built-in type operations:
   http://groups.google.com.ar/group/comp.lang.python/t/818d143c7e9550bc/

   __del__ methods are not the same as C++ destructors; they might not
even
   be called:
   http://groups.google.com.ar/group/comp.lang.python/t/6c875525954df888/

   Abstract Base Classes affect the way issubclass() works -- it's not
   based only on the chain of MRO anymore:
   http://groups.google.com.ar/group/comp.lang.python/t/bd97c8e475e4da67/

   wxPython and a bad example of 'property' usage:
   http://groups.google.com.ar/group/comp.lang.python/t/d88a387b5dca/

   Keeping client expectations realistic and avoiding scope creep:
   http://www.gossamer-threads.com/lists/python/python/819932


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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   nullege is an interesting search Web application, with the
intelligence
   to distinguish between Python code and comments.  It provides what
   appear to be relevant results, and demands neither Java nor CSS be
   enabled:
   http://www.nullege.com

   Although unmaintained since 2002, the Cetus collection of Python
   

Python-URL! - weekly Python news and links (Dec 26)

2009-12-27 Thread Cameron Laird
QOTW:  It took Python to make me realize that programming *could* be
fun, or at least not annoying enough to keep me from making a career
of
programming. - Aahz
   http://groups.google.com/group/comp.lang.python/msg/65ad4e71c194d97e


   Thanks to Gabriel Genellina for these references:

   How to compare dialects of csv module?
   http://groups.google.com/group/comp.lang.python/t/9de18eeabd38faff/

   Retrieve the source lines of a function:
   http://groups.google.com/group/comp.lang.python/t/a389138fbd7a5c58/

   How do classes actually work? A beginner's introduction by Steve
Holden
   http://groups.google.com/group/comp.lang.python/t/e5347d4cebc71643/

   Packages, and importing names in __init__.py explained:
   http://groups.google.com/group/comp.lang.python/t/e90896c5b607904a/

   How C++ iterators differ from Python iterators, slices and indexes:
   http://groups.google.com/group/comp.lang.python/t/22d674ee0510cd97/

   Generating random numbers in parallel isn't easy:
   http://groups.google.com/group/comp.lang.python/t/e01e0e4c7073a1e3/

   An OS independent way to check if a python app is running:
   http://groups.google.com/group/comp.lang.python/t/6e00a4ac52863bcc/

   pyZui - a Zooming User Interface:
   http://groups.google.com/group/comp.lang.python/t/c158e4ab710de96/

   The way the re module handles backslashes in replacement strings
does
   not seem natural to many:
   http://groups.google.com/group/comp.lang.python/t/61fdda4299b6a7b4/

   Comparing performance: list comprehension vs. map vs. for loop
   http://groups.google.com/group/comp.lang.python/t/791b2a041acedbc0/



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes.
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for links to them.

   Among several Python-oriented RSS/RDF feeds available, see:
   http://www.python.org/channews.rdf
   For more, see:
   http://www.syndic8.com/feedlist.php?ShowMatch=pythonShowStatus=all
   The old Python To-Do List now lives principally in a
   SourceForge reincarnation.
   http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse
   http://www.python.org/dev/peps/pep-0042/

   del.icio.us presents an intriguing approach to reference
commentary.
   It already aggregates quite a bit of Python intelligence.
   http://del.icio.us/tag/python

   Enjoy the *Python Magazine*.
   http://pymag.phparch.com/

   *Py: 

Python-URL! - weekly Python news and links (Dec 15)

2009-12-15 Thread Cameron Laird
This installment, like all those for several months, was authored by
Gabriel Genellina.  We have hopes of correcting the attribution before
year's-end.


QOTW:  Plus, it's not something that's never foolproof. - Carl
Banks,
daring negater
http://groups.google.com/group/comp.lang.python/msg/e8f3adbf2cc31514


Several graph libraries are available; which one is the best?
maybe they
should be merged?
http://groups.google.com/group/comp.lang.python/t/785d100681f7d101/
http://groups.google.com/group/comp.lang.python/t/7e65ca66cd7b511/

list(generator) and the equivalent list comprehension are not
always
equivalent:
http://groups.google.com/group/comp.lang.python/t/ae70dfa12677c1d5/

A succint way to parse a string of name=value pairs:
http://groups.google.com/group/comp.lang.python/t/dc725717e63d6295/

Keep only unique elements in a list - and the perils of wrongly
defining
__hash__:
http://groups.google.com/group/comp.lang.python/t/80491b9bc2f45547/

Python does not have a switch statement - how to overcome that?
http://groups.google.com/group/comp.lang.python/t/9af90ddc7652beb0/

What are the advantages of an explicit self?
http://groups.google.com/group/comp.lang.python/t/17a3369aef70fd38/

A new guy in the neighborhood, recently moved from PHP:
http://groups.google.com/group/comp.lang.python/t/6e91d87a9a3a3edb/
http://groups.google.com/group/comp.lang.python4c295a7ca96f65c3101/

Another convert, this time coming from Perl-land:
http://groups.google.com/group/comp.lang.python/t/22edc1c7eef569d5/



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

Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

Readers have recommended the Planet site:
   http://planet.python.org

comp.lang.python.announce announces new Python software.  Be
sure to scan this newsgroup weekly.
http://groups.google.com/group/comp.lang.python.announce/topics

Python411 indexes podcasts ... to help people learn Python ...
Updates appear more-than-weekly:
http://www.awaretek.com/python/index.html

The Python Package Index catalogues packages.
http://www.python.org/pypi/

Much of Python's real work takes place on Special-Interest Group
mailing lists
http://www.python.org/sigs/

Python Success Stories--from air-traffic control to on-line
match-making--can inspire you or decision-makers to whom you're
subject with a vision of what the language makes practical.
http://www.pythonology.com/success

The Python Software Foundation (PSF) has replaced the Python
Consortium as an independent nexus of activity.  It has official
responsibility for Python's development and maintenance.
http://www.python.org/psf/
Among the ways you can support PSF is with a donation.
http://www.python.org/psf/donations/

The Summary of Python Tracker Issues is an automatically generated
report summarizing new bugs, closed ones, and patch submissions.
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.com
p.python.develsort=date

Although unmaintained since 2002, the Cetus collection of Python
hyperlinks retains a few gems.
http://www.cetus-links.org/oo_python.html

Python FAQTS
http://python.faqts.com/

The Cookbook is a collaborative effort to capture useful and
interesting recipes.
   http://code.activestate.com/recipes/langs/python/

Many Python conferences around the world are in preparation.
Watch this space for links to them.

Among several Python-oriented RSS/RDF feeds available, see:
http://www.python.org/channews.rdf
For more, see:
http://www.syndic8.com/feedlist.php?ShowMatch=pythonShowStatus=all
The old Python To-Do List now lives principally in a
SourceForge reincarnation.
http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse
   http://www.python.org/dev/peps/pep-0042/

del.icio.us presents an intriguing approach to reference
commentary.
It already aggregates quite a bit of Python intelligence.
http://del.icio.us/tag/python

Enjoy the *Python Magazine*.
   

Python-URL! - weekly Python news and links (Dec 9)

2009-12-09 Thread Cameron Laird
QOTW:  I'm not sure you ever understood what the problem was, or
where, but
I'm happy you feel like you've solved it. - Marco Mariani

http://groups.google.com/group/comp.lang.python/browse_thread/thread/8ec7ad4fcc714538


Python 2.7a1, the first alpha release of the 2.7 series, is
available now:
http://groups.google.com/group/comp.lang.python/t/743e13e80290fbbf/

A bidirectional dictionary structure analyzed:
http://groups.google.com/group/comp.lang.python/t/785d100681f7d101/

How to define and use a nested class:
http://groups.google.com/group/comp.lang.python/t/6649dfa6eb9797c8/

PyCon 2010 registration opens:

http://pycon.blogspot.com/2009/11/registration-for-pycon-2010-is-open.html

Why not have a local variable scope smaller than a function?
http://groups.google.com/group/comp.lang.python/t/57a8dec0d5d5deda/

How to test whether two floating point values are close enough
to be
almost equal:
http://groups.google.com/group/comp.lang.python/t/54ec18c06c46caaf/

A special notation for accessing dynamic attribute names:
http://groups.google.com/group/comp.lang.python/t/2f5674a1f451b12f/

Computed attributes, properties, and the descriptor protocol
magic:
http://groups.google.com/group/comp.lang.python/t/c07268689549cf01/

Name resolution, global names, importing modules, and how all of
them
interact:
http://groups.google.com/group/comp.lang.python/t/55afecc0d9e3e6c/
http://groups.google.com/group/comp.lang.python/t/de91efba9c5d68ae/

Are there any high-volume Python-powered websites?
http://groups.google.com/group/comp.lang.python/t/7e388f22cccf7c4b/

How decoupled are the Python web frameworks?
http://groups.google.com/group/comp.lang.python/t/f04940f9d4b136bc/

Moving from Python 2 to Python 3: A cheat sheet by Mark
Summerfield
http://groups.google.com/group/comp.lang.python/t/53716c4136be473b/
The sheets:
http://www.informit.com/promotions/promotion.aspx?promo=137519

Thoughts about bytecode optimization and measuring overhead of the
eval
loop:
http://groups.google.com/group/comp.lang.python/t/115b24c0ee9ee06a/

Python as the starting point for a career on IT:
http://groups.google.com/group/comp.lang.python/t/907419d0cdd68570/

Idea: get around the GIL using XMLRPC
http://groups.google.com/group/comp.lang.python/t/9f84e7aa634de4f5/

Bored and looking for something to do in Python:
http://groups.google.com/group/comp.lang.python/t/bba7c231bb9940a4/



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

Just beginning with Python?  This page is a great place to start:
http://wiki.python.org/moin/BeginnersGuide/Programmers

The Python Papers aims to publish the efforts of Python
enthusiasts:
http://pythonpapers.org/
The Python Magazine is a technical monthly devoted to Python:
http://pythonmagazine.com

Readers have recommended the Planet site:
http://planet.python.org

comp.lang.python.announce announces new Python software.  Be
sure to scan this newsgroup weekly.
http://groups.google.com/group/comp.lang.python.announce/topics

Python411 indexes podcasts ... to help people learn Python ...
Updates appear more-than-weekly:
http://www.awaretek.com/python/index.html

The Python Package Index catalogues packages.
http://www.python.org/pypi/

Much of Python's real work takes place on Special-Interest Group
mailing lists
http://www.python.org/sigs/

Python Success Stories--from air-traffic control to on-line
match-making--can inspire you or decision-makers to whom you're
subject with a vision of what the language makes practical.
http://www.pythonology.com/success

The Python Software Foundation (PSF) has replaced the Python
Consortium as an independent nexus of activity.  It has official
responsibility for Python's development and maintenance.
http://www.python.org/psf/
Among the ways you can support PSF is with a donation.
http://www.python.org/psf/donations/

The Summary of Python Tracker Issues is an automatically generated
report summarizing new bugs, closed ones, and patch submissions.

http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

Although unmaintained since 2002, the Cetus collection of Python
hyperlinks retains a few 

Python-URL! - weekly Python news and links (Nov 24)

2009-11-24 Thread Cameron Laird
QOTW:  ... it's generally accepted that COM sucks rocks through
straws, so
explore alternatives when they're available ;-) - Chris Withers
http://groups.google.com/group/comp.lang.python/msg/29577c851ceed167


From nothing to a complete working program - Peter Otten on
stepwise
refinement:

http://groups.google.com/group/comp.lang.python/t/f6f44b646af5b09e/8f59b2585da524a1?#8f59b2585da524a1

Handling whitespace in command line arguments:
http://groups.google.com/group/comp.lang.python/t/9a828279953b45a2/

Recognizing hex arguments in the command line:
http://groups.google.com/group/comp.lang.python/t/31d4c9386291c/

A pipeline of Python programs:
http://groups.google.com/group/comp.lang.python/t/cc06520602ae3f42/

Calling Python functions from Excel
http://groups.google.com/group/comp.lang.python/t/83aa60666c555d87/

The scope of interactive commands:   =20
http://groups.google.com/group/comp.lang.python/t/3f0d7607ed5a4a78/

List comprehensions and slice assignments - which are the
corresponding
operations for dictionaries?
http://groups.google.com/group/comp.lang.python/t/7aa443ac48f58851/

The precise semantics of [:]=20
http://groups.google.com/group/comp.lang.python/t/84b5ec30cdd26cde/

The 'with' statement doesn't allow () for implicit line
continuation:
http://comments.gmane.org/gmane.comp.python.general/645508

Grant Edwards on the best way to get help from this group :)

http://groups.google.com/group/comp.lang.python/t/b8a0c32cae495522/21e80ac383745d88?#21e80ac383745d88

Finding the root cause of slowness when sorting certain objects:
http://groups.google.com/group/comp.lang.python/t/44d80224360e085/

The fastest alternative to list.extend()
http://groups.google.com/group/comp.lang.python/t/614bfc36a09d9ab7/

A library for bijective mappings:
http://groups.google.com/group/comp.lang.python/t/785d100681f7d101/

GUI builders reviewed:
http://groups.google.com/group/comp.lang.python/t/3db5b18d77974b8/

A long thread started two weeks ago: is Python not scalable enough
for
Google?
http://groups.google.com/group/comp.lang.python/t/ceef2ae6b4472b61/



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

Just beginning with Python?  This page is a great place to start:
http://wiki.python.org/moin/BeginnersGuide/Programmers

The Python Papers aims to publish the efforts of Python
enthusiasts:
http://pythonpapers.org/
The Python Magazine is a technical monthly devoted to Python:
http://pythonmagazine.com

Readers have recommended the Planet site:
http://planet.python.org

comp.lang.python.announce announces new Python software.  Be
sure to scan this newsgroup weekly.
http://groups.google.com/group/comp.lang.python.announce/topics

Python411 indexes podcasts ... to help people learn Python ...
Updates appear more-than-weekly:
http://www.awaretek.com/python/index.html

The Python Package Index catalogues packages.
http://www.python.org/pypi/

Much of Python's real work takes place on Special-Interest Group
mailing lists
http://www.python.org/sigs/

Python Success Stories--from air-traffic control to on-line
match-making--can inspire you or decision-makers to whom you're
subject with a vision of what the language makes practical.
http://www.pythonology.com/success

The Python Software Foundation (PSF) has replaced the Python
Consortium as an independent nexus of activity.  It has official
responsibility for Python's development and maintenance.
http://www.python.org/psf/
Among the ways you can support PSF is with a donation.
http://www.python.org/psf/donations/

The Summary of Python Tracker Issues is an automatically generated
report summarizing new bugs, closed ones, and patch submissions.
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.com
p.python.develsort=date

Although unmaintained since 2002, the Cetus collection of Python
hyperlinks retains a few gems.
http://www.cetus-links.org/oo_python.html

Python FAQTS
http://python.faqts.com/

The Cookbook is a collaborative effort to capture useful and
interesting recipes.
http://code.activestate.com/recipes/langs/python/

Many Python conferences around the world are in preparation.
Watch this 

Python-URL! - weekly Python news and links (Nov 10)

2009-11-10 Thread Cameron Laird
QOTW:  Don't get me wrong - innovation often comes from scratching
ones
personal itch. But you seem to be suffering from a rather bad case of
neurodermatitis. - Diez B. Roggisch, on ... well, personal style in
problem-solving
http://groups.google.com/group/comp.lang.python/msg/4cf102bdd3a3267b


[It's actually Gabriel Genellina who wrote these entries.]

Why aren't lists usable as dictionary keys? What do you mean,
hashable?
http://groups.google.com/group/comp.lang.python/t/929905a622d704b4/

`x == None` or `x is None` -- which one is the right way?
http://groups.google.com/group/comp.lang.python/t/1d9112d5bbe243d3/

At Microsoft, they performed empirical research about common
software engineering assumptions: high test coverage is better,
write test code first, use assertions, and others:
http://groups.google.com/group/comp.lang.python/t/e06ac9acd1fc97fa/

The best way to populate a list of size N:
http://groups.google.com/group/comp.lang.python/t/fd07df5ffde3db83/

A new variant of an old problem: I got a single check from my
customer -
which ones among all pending invoices did he intend to pay?
http://groups.google.com/group/comp.lang.python/t/13f7645d99543e8/

How to test code that uses urllib without depending on external
resources?
http://groups.google.com/group/comp.lang.python/t/707f53122777e84a/

Singletons are hard to test too:
http://groups.google.com/group/comp.lang.python/t/dbe458917dd9b393/

How to use Filters in the logging module:
http://groups.google.com/group/comp.lang.python/t/6a002ee599fd94ba/

Delete items from a list that match a certain pattern:
http://groups.google.com/group/comp.lang.python/t/f6d0a08ad2642ddf/

What is the correct way to port codecs.open to python 3.1?
http://groups.google.com/group/comp.lang.python/t/b93ad93148bdc26d/

py2exe, cx_freeze, py2app: a comparison
http://groups.google.com/group/comp.lang.python/t/5abb44388a28ce25/

How to cancel a thread from another one:
http://groups.google.com/group/comp.lang.python/t/af903ef349b1bddf/

Why does help(import) not work?
http://groups.google.com/group/comp.lang.python/t/d8821fe86b3eda9a/



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

Just beginning with Python?  This page is a great place to start:
  http://wiki.python.org/moin/BeginnersGuide/Programmers

The Python Papers aims to publish the efforts of Python
enthusiasts:
  http://pythonpapers.org/
The Python Magazine is a technical monthly devoted to Python:
  http://pythonmagazine.com

Readers have recommended the Planet site:
  http://planet.python.org

comp.lang.python.announce announces new Python software.  Be
sure to scan this newsgroup weekly.
http://groups.google.com/group/comp.lang.python.announce/topics

Python411 indexes podcasts ... to help people learn Python ...
Updates appear more-than-weekly:
http://www.awaretek.com/python/index.html

The Python Package Index catalogues packages.
http://www.python.org/pypi/

Much of Python's real work takes place on Special-Interest Group
mailing lists
http://www.python.org/sigs/

Python Success Stories--from air-traffic control to on-line
match-making--can inspire you or decision-makers to whom you're
subject with a vision of what the language makes practical.
http://www.pythonology.com/success

The Python Software Foundation (PSF) has replaced the Python
Consortium as an independent nexus of activity.  It has official
responsibility for Python's development and maintenance.
http://www.python.org/psf/
Among the ways you can support PSF is with a donation.
http://www.python.org/psf/donations/

The Summary of Python Tracker Issues is an automatically generated
report summarizing new bugs, closed ones, and patch submissions.
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.com
p.python.develsort=date

Although unmaintained since 2002, the Cetus collection of Python
hyperlinks retains a few gems.
http://www.cetus-links.org/oo_python.html

Python FAQTS
http://python.faqts.com/

The Cookbook is a collaborative effort to capture useful and
interesting recipes.
  http://code.activestate.com/recipes/langs/python/

Many Python conferences around the world are in preparation.
Watch this space for links to them.


Python-URL! - weekly Python news and links (Nov 3)

2009-11-03 Thread Cameron Laird
QOTW:  I consider import * the first error to be fixed ... -
Robert
Kern, author of PyFlakes, a potential replacement for Pylint and
Pychecker,
on his personal style
http://groups.google.com/group/comp.lang.python/msg/5bf77b21b3b0caf2


Python 2.6.4 is out; it fixes some small but important bugs in
previous 2.6.3 release:
http://groups.google.com/group/comp.lang.python/t/44f4c166de5e6703/

PEP391: A new way to configure Python logging, using dictionaries:
http://groups.google.com/group/comp.lang.python/t/3fc3138c22a50678/

Why do you use Python?
http://groups.google.com/group/comp.lang.python/t/66ccb10d2da5b740/

Is there any value in forcing one class/function per module? (long
thread):
http://groups.google.com/group/comp.lang.python/t/1e0c1e2091539512/

A review of complex solutions to an almost inexistent problem
shows
constructive criticism in action:
http://groups.google.com/group/comp.lang.python/t/d218212cabe9670b/
A user module may shadow a standard module of the same name - is
it
avoidable?
http://groups.google.com/group/comp.lang.python/t/b31f74b6145c9d94/

copy.deepcopy() is not as deep as its name implies:
http://groups.google.com/group/comp.lang.python/t/d827fd118189fe01/

A long thread about Web development: why to use templates, and why
frameworks actually do help developers:
http://groups.google.com/group/comp.lang.python/t/367025d4d9a2e15d/

Using a module as a place to store application global settings:
http://groups.google.com/group/comp.lang.python/t/23e21edf1b232b32/

A simple list comprehension question leads to discuss mutability,
identity, and Cousin Chuy's Super-Burritos:
http://groups.google.com/group/comp.lang.python/t/17cfd91ece6ed54f/

Combining map, zip and filter into an equivalent list
comprehension:
http://groups.google.com/group/comp.lang.python/t/259976305282b0c0?q=map

timeit: make sure you actually measure what you want, and not
other code:
http://groups.google.com/group/comp.lang.python/t/7ecae76e11f720ee/

Why do compiled C extensions on Windows use '.pyd' in their name
instead
of '.dll'?
http://groups.google.com/group/comp.lang.python/t/c8d93871cc5f31dc/

Pyfora, a web forum about Python, was lauched recently. Will this
fragment the community?
http://groups.google.com/group/comp.lang.python/t/e6e0d99c995da697/

A guy's future book on programming Python doesn't fit standard
practice
(a long thread!):
http://groups.google.com/group/comp.lang.python/t/6918784f36d147d2/



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

Just beginning with Python?  This page is a great place to start:
http://wiki.python.org/moin/BeginnersGuide/Programmers

The Python Papers aims to publish the efforts of Python
enthusiasts:
http://pythonpapers.org/
The Python Magazine is a technical monthly devoted to Python:
http://pythonmagazine.com

Readers have recommended the Planet site:
http://planet.python.org

comp.lang.python.announce announces new Python software.  Be
sure to scan this newsgroup weekly.
http://groups.google.com/group/comp.lang.python.announce/topics

Python411 indexes podcasts ... to help people learn Python ...
Updates appear more-than-weekly:
http://www.awaretek.com/python/index.html

The Python Package Index catalogues packages.
http://www.python.org/pypi/

Much of Python's real work takes place on Special-Interest Group
mailing lists
http://www.python.org/sigs/

Python Success Stories--from air-traffic control to on-line
match-making--can inspire you or decision-makers to whom you're
subject with a vision of what the language makes practical.
http://www.pythonology.com/success

The Python Software Foundation (PSF) has replaced the Python
Consortium as an independent nexus of activity.  It has official
responsibility for Python's development and maintenance.
http://www.python.org/psf/
Among the ways you can support PSF is with a donation.
http://www.python.org/psf/donations/

The Summary of Python Tracker Issues is an automatically generated
report summarizing new bugs, closed ones, and patch submissions.

http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

Although unmaintained since 2002, the Cetus 

Python-URL! - weekly Python news and links (Oct 25)

2009-10-25 Thread Cameron Laird
QOTW:  It was intended to be understood, not copied. - Dave Angel
comments
on a characteristic of didactic examples
   http://groups.google.com/group/comp.lang.python/msg/61e2d60d08f1c630


   Altering the default character encoding (sys.setdefaultencoding) is
never
   a  good idea:
   ^://groups.google.com/group/comp.lang.python/t/
ecc3671082f897b4/

   How come id() returns the same thing for different objects?
   ^://groups.google.com/group/comp.lang.python/t/
bc09c37fc40059ac/

   Some iterators share state, while others don't - why?
   ^://groups.google.com/group/comp.lang.python/t/
d463230d1752aa7f/

   sum(list_of_strings) is explicitely forbidden - why?
   ^://groups.google.com/group/comp.lang.python/t/
f3c0fba5305e11e2/

   Neither __getattribute__ nor metaclasses can be used to implement
   __special__ methods:
   ^://groups.google.com/group/comp.lang.python/t/
f0a5aeb35f946f80/

   How to compute a running median efficiently:
   ^://groups.google.com/group/comp.lang.python/t/
d0e011c87174c2d0/

   Several details on how str.split() works are not adequately
documented:
   ^://groups.google.com/group/comp.lang.python/t/
26dff8570a79067d/

   How to implement a set that uses a custom function to determine
element
   membership (not the element's __eq__):
   ^://groups.google.com/group/comp.lang.python/t/
7eb4d6db8556f870/

   Generators explained as simply as possible:
   ^://groups.google.com/group/comp.lang.python/t/
70a954d0e034b84c/

   Proposal to add slice notation [start:stop:step] to iterators/
generators:
   ^://groups.google.com/group/comp.lang.python/t/
440076d71746f8cf/

   An encoding problem involves an XML document, HTTP headers, and
Google
   servers:
   ^://groups.google.com/group/comp.lang.python/t/
885c62699b434d25/

   The `while True:` idiom makes the longest thread so far:
   ^://groups.google.com/group/comp.lang.python/t/
46a2082b2e2c991c/

   Homework questions: what should be our reaction?
   ^://groups.google.com/group/comp.lang.python/t/
f7a8c5107e9d27bf/

   Why is python so sad :( ?
   ^://groups.google.com/group/comp.lang.python/t/
60c39c1ab1b39ef9/

   Guido's proposes to freeze language grammar and semantics for
several
   years:
   ^://comments.gmane.org/gmane.comp.python.ideas/6282



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

   Just beginning with Python?  This page is a great place to start:
   http://wiki.python.org/moin/BeginnersGuide/Programmers

   The Python Papers aims to publish the efforts of Python
enthusiasts:
   http://pythonpapers.org/
   The Python Magazine is a technical monthly devoted to Python:
   http://pythonmagazine.com

   Readers have recommended the Planet site:
   http://planet.python.org

   comp.lang.python.announce announces new Python software.  Be
   sure to scan this newsgroup weekly.
   http://groups.google.com/group/comp.lang.python.announce/topics

   Python411 indexes podcasts ... to help people learn Python ...
   Updates appear more-than-weekly:
   http://www.awaretek.com/python/index.html

   The Python Package Index catalogues packages.
   http://www.python.org/pypi/

   Much of Python's real work takes place on Special-Interest Group
   mailing lists
   http://www.python.org/sigs/

   Python Success Stories--from air-traffic control to on-line
   match-making--can inspire you or decision-makers to whom you're
   subject with a vision of what the language makes practical.
   http://www.pythonology.com/success

   The Python Software Foundation (PSF) has replaced the Python
   Consortium as an independent nexus of activity.  It has official
   responsibility for Python's development and maintenance.
   http://www.python.org/psf/
   Among the ways you can support PSF is with a donation.
   http://www.python.org/psf/donations/

   The Summary of Python Tracker Issues is an automatically generated
   report summarizing new bugs, closed ones, and patch submissions.
   
http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date

   Although unmaintained since 2002, the Cetus collection of Python
   hyperlinks retains a few gems.
   http://www.cetus-links.org/oo_python.html

   Python FAQTS
   http://python.faqts.com/

   The Cookbook is a collaborative effort to capture useful and
   interesting recipes.
   http://code.activestate.com/recipes/langs/python/

   Many Python conferences around the world are in preparation.
   Watch this space for 

Re: Python-URL! - weekly Python news and links (Sep 17)

2009-09-24 Thread Cameron Laird
In article h8tf2d$95...@lairds.us,
Gabriel Genellina python-...@phaseit.net wrote (but I edited):
.
.
.
More ways to define an empty function that you ever imagined:
http://groups.google.com/group/comp.lang.python/t/c9f494b6745c7d74/
.
.
.
Oops; this should have been URL: 
http://groups.google.com/group/comp.lang.python/browse_thread/thread/eddc376716d
f2029/ .
My apology, all.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [Diversity] Language note

2009-08-23 Thread Cameron Laird
In article mailman.4473.1249755333.8015.python-l...@python.org,
Rami Chowdhury  rami.chowdh...@gmail.com wrote:

 Most indian languages have a different
 grammer (compared to English). So i'm curious to see how that would be
 implemented in a parser

+1 -- I'd be interested in seeing this too, although we have drifted  
OT here and perhaps this conversation would be better had on Python- 
list. The closest I've seen to a language being able to support  
different grammatical structures is Perligata (http:// 
www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html), does  
Python have anything similar?
.
.
.
Yes and no.

There's considerably more to say on the subject than my own
patience permits for now.  Highlights, though:  I regard it
as a big deal whether a language permits Unicode in spelling
variable names (Python 3 does, despite URL:
http://mail.python.org/pipermail/idle-dev/2000-April/000133.html ,
and presumably you know the situation in Perl); languages like
Lisp, Forth, and Tcl have minimal syntax, and rich traditions
of construction of problem-specific little languages, so it's
common in them to see, for example, object orientation modeled
with a variety of lexical orders; and my own favorite
little-language work in Python has generally modeled VSO 
human languages.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help in reading the pdf file

2009-03-28 Thread Cameron Laird
In article mailman.2823.1238221222.11746.python-l...@python.org,
Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Thu, 26 Mar 2009 18:31:31 -0300, M Kumar tomanis...@gmail.com
escribió:

 I need to read pdf files and extract data from it, is there any way to  
 do it
 through python.

If you are interested in the text, I'd use ghostscript pdf2text (you may
invoke it from inside python).

Actually extracting text from a PDF is rather difficult. It's a
presentation format (or display format); every word in the document
might be absolutely positioned, there is no paragraph structure you can
rely on.
.
.
.
I reinforce Gabriel's good advice with a few points of my own:
A.  I used to try to index PDF's text extractors
at URL:
http://phaseit.net/claird/comp.text.pdf/PDF_converters.html#pdf2txt .
While I haven't maintained this page in years,
it would take only a little motivation for me
to freshen it considerably.
B.  My current favorite is pdftotext.
C.  There are multiple pdf2txt-s, that is, dif-
ferent products which share a name.  Notice
Gabriel's qualification that he is thinking 
of the *GS* one.
D.  Many times the best way to automate a business
process involving PDF demands a trek farther
upstream, that is, identification of the 
source of a text *before* it was rendered as
PDF.  Do you have access to such sources?
--
http://mail.python.org/mailman/listinfo/python-list


Re: can multi-core improve single funciton?

2009-02-19 Thread Cameron Laird
In article pan.2009.02.18.07.24...@remove.this.cybersource.com.au,
Steven D'Aprano  ste...@remove.this.cybersource.com.au wrote:
  .
  .
  .
 And now for my version (which admitedly isn't really mine, and returns
 slightly incorrect fib(n) for large values of n, due to the limited
 floating point precision).

The floating point version is nice, but it starts giving incorrect
answers relatively early, from n=71. But if you don't need accurate
results (a relative error of 3e-15 for n=71), it is very fast.
  .
  .
  .
 While my personal opinion is that it's silly to characterize an error of
 3e-15 as not accurate, 

That's a *relative* error. The absolute error is 1 for n=71, 59 for n=80, 
1196093 for n=100, and 1875662300654090482610609259 for n=200. As far as 
I can tell, the absolute error grows without bounds as n increases -- and 
it overflows at n=1475.

I agree that a relative error is small, and if your use allows it, then 
by all means use the inexact floating point function. But if you need 
exact results, then you won't get it using floats.



 I think more constructive is to focus on the
 fact that the closed-form solution can be touched up to give a precise
 integral solution, while re- taining its (approximately) O(log n)
 run-time cost.

I doubt that. Since both phi and sqrt(5) are irrational numbers, it would 
require an infinite number of integer digits to get precise integral 
solutions unless there was some sort of freakish cancellation. But you 
probably could get a very good integral solution which gives exact 
results up to whatever limit you wanted, bound only by the amount of 
memory and time you were willing to spend.
.
.
.
There *is* freakish cancellation.

I entirely recognize that Python builds in floating-point
calculations of limited precision.  The closed-form expres-
sion for Fibonacci, though, is exact, and can be coded in
terms of, for example, Python infinite-precision integers.
If there's sufficient interest, I'll cheerfully do so, al-
though only after meeting my own deadlines for February
for commitments outside comp.lang.python.
--
http://mail.python.org/mailman/listinfo/python-list


Re: can multi-core improve single funciton?

2009-02-17 Thread Cameron Laird
In article pan.2009.02.10.22.26...@remove.this.cybersource.com.au,
Steven D'Aprano  ste...@remove.this.cybersource.com.au wrote:
.
.
.
 And now for my version (which admitedly isn't really mine, and returns
 slightly incorrect fib(n) for large values of n, due to the limited
 floating point precision).

The floating point version is nice, but it starts giving incorrect 
answers relatively early, from n=71. But if you don't need accurate 
results (a relative error of 3e-15 for n=71), it is very fast.
.
.
.
While my personal opinion is that it's silly to 
characterize an error of 3e-15 as not accurate,
I think more constructive is to focus on the fact
that the closed-form solution can be touched up
to give a precise integral solution, while re-
taining its (approximately) O(log n) run-time
cost.
--
http://mail.python.org/mailman/listinfo/python-list


Re: New to python, open source Mac OS X IDE?

2009-01-28 Thread Cameron Laird
In article 33d59aa0-e73b-45f8-bdfe-4c78717c6...@v5g2000prm.googlegroups.com,
joseph.a.mar...@gmail.com joseph.a.mar...@gmail.com wrote:
On Jan 27, 6:47 pm, André andre.robe...@gmail.com wrote:
 On Jan 27, 7:06 pm, joseph.a.mar...@gmail.com

 joseph.a.mar...@gmail.com wrote:
  Greetings! I've heard enough raving about Python, I'm going to see for
  myself what all the praise is for!

  I'm on a Mac. I use Netbeans for Java, PHP, and C if needed. Do you
  even use an IDE for Python?

 If you already use netbeans, what
abouthttp://www.netbeans.org/features/python/
 ?


Wow, you guys are fast... yes, I was having trouble deciding between
that (Netbeans), Smultron, or TextWrangler. Thanks!

As already mentioned, both Netbeans and Komodo are good choices.
A few more comments about these two appear in URL:
http://ldn.linuxfoundation.org/column/debuggers-and-debugging .
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python Application Server

2009-01-28 Thread Cameron Laird
In article mailman.8176.1233117922.3487.python-l...@python.org,
James Mills  prolo...@shortcircuit.net.au wrote:
On Wed, Jan 28, 2009 at 2:42 PM, James Mills
prolo...@shortcircuit.net.au wrote:
(...)

 Might I recommend circuits (1) as a general purpose
 framework that you can build your application on top of.

 circuits will allow you to communicate with long-running
 background processes, communicate between processes
 (by way of a Bridge). All communication in circuits is
 asyncroneous. circuits has also recently seen the integration
 of the multiprocessing package from python 2.6/3.0 so you
 can create processes and have inter-process communication
 seamlessly. In fact, parts of your system can even run on other
 nodes (you mentioned clustering).

I should probably mention some of the components available (features);
 * TCPServer, TCPClient
 * UDPServer, UDPClient
 * HTTP, IRC and SMTP protocols
 * Web Server (with limited WSGI support) (depends on parts of CherryPy)
 * Timers, Timer
 * Logger, Debugger
 * ... there are many more components ... :)

Building new components is fairly easy as well.
.
.
.
The big question will be whether circuits qualifies for
the original poster as an application server.  I agree,
though, that, by the definition as it appeared at the
beginning of this thread, circuits seems to be the best
candidate.
--
http://mail.python.org/mailman/listinfo/python-list


Re: New to python, open source Mac OS X IDE?

2009-01-28 Thread Cameron Laird
In article bb128b21-43c4-4cf2-b3db-ede8f9079...@v18g2000pro.googlegroups.com,
7stud  bbxx789_0...@yahoo.com wrote:
.
.
.
 Vim and a terminal works for me, specifically with screen.

What does 'with screen' mean?


URL: http://www.gnu.org/software/screen/ 
--
http://mail.python.org/mailman/listinfo/python-list


Re: How to execute a hyperlink?

2009-01-28 Thread Cameron Laird
In article 8uvfl.45$n_6...@newsfe22.ams2,
Roel Schroeven  rschroev_nospam...@fastmail.fm wrote:
Muddy Coder schreef:
 Hi Folks,
 
 Module os provides a means of running shell commands, such as:
 
 import os
 os.system('dir .')
 
 will execute command dir
 
 I think a hyperlink should also be executed. I tried:
 
 os.system('http://somedomain.com/foo.cgi?name=foopasswd=bar')
 
 but I got kicked out by the Python interpreter. I wonder somebody
 knows the syntax of triggering a hyperlink? Thanks in advance!

As others have said, you can use the webbrowser module for hyperlinks.
Alternatively you can use os.startfile() which works hyperlinks and many
types of files, but only works on Windows (it does the same as
double-clicking in Windows Explorer).
.
.
.
I suspect that os.startfile() will indeed give Muddy Coder
the most immediate satisfaction.  It might interest him,
though, also to experiment with 

  os.system(start %s % URL)

Again, recognize this only gives happy results, in general,
under Win*.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Results of executing hyperlink in script

2009-01-28 Thread Cameron Laird
In article mailman.8233.1233184499.3487.python-l...@python.org,
MRAB  goo...@mrabarnett.plus.com wrote:
Muddy Coder wrote:
.
.
.
You could put quotes around the URL:

os.startfile('%s' % URL)

or:

os.system('start %s' % URL)

if  has a special meaning to the command-line.

In fact, no, happiness does NOT result in these contexts with
another layer of quoting.
  os.startfile(URL)
works fine even if URL embeds special characters, and does not
work at all if URL is itself quoted.

  os.system(start ...)

just gives a variety of unuseful results if URL embeds special
characters.
--
http://mail.python.org/mailman/listinfo/python-list


Re: How many followers of comp.lang.python

2009-01-27 Thread Cameron Laird
In article 8692c77c-0498-4c68-940f-e4d4427f3...@x37g2000yqj.googlegroups.com,
rantingrick  rantingr...@gmail.com wrote:
Seems like the only thing people are interested in is bickering and
name calling. I noticed the post Does Python really follow... has
over 400 post mainly from the same 10 people. Maybe this is why Guido
no longer wishes to be a part of this group. Where is the sense of
community here?

Anybody care to correct me, because i would love to be wrong about
this, but i fear i am 100% correct.

Which this?  Are you asking for evidence that more
than ten people regularly read comp.lang.python, OR
that there is traffic in comp.lang.python other than
bickering and name-calling?

My own rough estimate of readership is at least 4,000.
If motivated, one could refine the figure, I'm
confident).
--
http://mail.python.org/mailman/listinfo/python-list


Re: Windows SSH (remote execution of commands) - Python Automation

2008-12-29 Thread Cameron Laird
In article mailman.6325.1230551707.3487.python-l...@python.org,
Tino Wildenhain  t...@wildenhain.de wrote:
.
.
.
 I am looking for some information on how to automate remote login to a 
 UNIX machine using ssh from a windows XP box.
  
 Possible way:
  
 1. Use putty (or any other ssh client from windows XP). -- Can be 
 automated with command line parameters. The problem is that I am able to 
 login - Putty window opens up as well. But obviously I am unable to run 
 any commands in that. I need to find something like a handle to that 
 Putty window so that I can execute commands there.

Obviously putty is one (of several) terminal emulators (or in short gui 
clients) for ssh protocol. This means they are made for interactive work
with mouse and keyboard rather then for command automation.

Its easy if you just use one of the many command line ssh clients. You
can use os.popen() and friends or the command module to work with them.

There is also another solution:

http://www.lag.net/paramiko/

which implements the ssh protocol in python so you can do more and
have finer control over the processes and channels (for example
file transfer and command control w/o resort to multiple connections)

This is a little bit harder of course.

Also, sometimes its more easy and relieable to just use cron on unix 
side. This works much much better then Task scheduler on windows btw.
.
.
.
Good advice, all around.  I'll reinforce a few of your 
points:
A.  I entirely agree that Mr. Raghu would likely
do well to learn about cron(8); automation of
the sort that seems to be involved here is 
generally more convenient with standard Linux
tools than from the Windows side.
B.  One of the Windows command-line automaters 
to which you alluded is a sibling of putty:
plink URL: 
http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html .
It shares configuration and infrastructure 
elements with putty, and might require the
least adjustment.
C.  'You think paramiko is harder?  I find it a
nice solution in many situations.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Multiple equates

2008-12-03 Thread Cameron Laird
In article [EMAIL PROTECTED],
Lawrence D'Oliveiro  [EMAIL PROTECTED] wrote:
Cameron Laird wrote:

def f1(Match):
return

Something missing here?

Ugh; yes, sorry:

   def shell_escape(Arg) :
   returns Arg suitably escaped for use as a command-line argument
   to Bash.

   pattern = r['\|\\$\#\;\(\)\[\]\{\}\`\!\~\ \\]
   def f1(Match):
   return \\ + Match.group(0)
   return re.sub(pattern, f1, Arg)
 # Need to catch anything that might be meaningful to shell
   #end shell_escape
--
http://mail.python.org/mailman/listinfo/python-list


Re: Multiple equates

2008-12-03 Thread Cameron Laird
In article [EMAIL PROTECTED],
Lawrence D'Oliveiro  [EMAIL PROTECTED] wrote:
In message [EMAIL PROTECTED], Cameron Laird wrote:

def shell_escape(Arg) :
returns Arg suitably escaped for use as a command-line argument
to Bash.
 
pattern = r['\|\\$\#\;\(\)\[\]\{\}\`\!\~\ \\]
def f1(Match):
 return \\ + Match.group(0)
return re.sub(pattern, f1, Arg)
  # Need to catch anything that might be meaningful to shell
#end shell_escape

So why is that better?

I'm very lost, now.  As best I can remember and/or reconstruct 
this conversation, the form above is adequately readable and 
does not involve lambda (and fits in eighty-column lines, and
has a few even more mundane features).  There's a realm within
Pythonia that favors lambdalessness.  

I think that's all I'm claiming at this point.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Multiple equates

2008-12-02 Thread Cameron Laird
In article [EMAIL PROTECTED],
Lawrence D'Oliveiro  [EMAIL PROTECTED] wrote:
In message [EMAIL PROTECTED], Cameron Laird wrote:

 In article [EMAIL PROTECTED],
 Lawrence D'Oliveiro  [EMAIL PROTECTED] wrote:

Cameron Laird wrote:

 I've been trying to decide if there's any sober reason to advocate
 the one-liner
 
 map(lambda i: a.__setitem__(i, False), [x1, x2, x3, ..., x1024])

Are lambdas like the Dark Side of Python?

:)
 
 Enough so, apparently, that I'm reluctant even to touch that question.

So how else would you express something like

def shell_escape(Arg) :
returns Arg suitably escaped for use as a command-line argument
to Bash.
return \
re.sub \
  (
r['\|\\$\#\;\(\)\[\]\{\}\`\!\~\ \\],
lambda Match : \\ + Match.group(0),
Arg
  )
  # Need to catch anything that might be meaningful to shell
#end shell_escape

?

I suspect we're confusing each other.  I *like* lambdas--at least,
more than Guido does, which I recognize is a low standard.

When I take your question at face value, my response is

   def shell_escape(Arg) :
   returns Arg suitably escaped for use as a command-line argument
   to Bash.

   pattern = r['\|\\$\#\;\(\)\[\]\{\}\`\!\~\ \\]
   def f1(Match):
   return 
   return re.sub(pattern, f1, Arg)
 # Need to catch anything that might be meaningful to shell
   #end shell_escape

'cept that I'd hope to find a way to simplify pattern.  Was that
what you were asking?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Multiple equates

2008-11-26 Thread Cameron Laird
In article [EMAIL PROTECTED],
Lawrence D'Oliveiro  [EMAIL PROTECTED] wrote:
Cameron Laird wrote:

 I've been trying to decide if there's any sober reason to advocate
 the one-liner
 
 map(lambda i: a.__setitem__(i, False), [x1, x2, x3, ..., x1024])

Are lambdas like the Dark Side of Python?

:)

Enough so, apparently, that I'm reluctant even to touch that question.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Multiple equates

2008-11-17 Thread Cameron Laird
In article [EMAIL PROTECTED],
Tim Chase  [EMAIL PROTECTED] wrote:
.
.
.
To the OP, I think rather than cluttering my code, I'd just 
create a loop

   for i in [x1,x2,x3,x4,...x1024]:
 a[i] = False
.
.
.
I much prefer this, too.

I've been trying to decide if there's any sober reason to advocate
the one-liner

map(lambda i: a.__setitem__(i, False), [x1, x2, x3, ..., x1024])

My answer:  no.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Parse each line by character location

2008-11-04 Thread Cameron Laird
In article [EMAIL PROTECTED],
Tim Chase  [EMAIL PROTECTED] wrote:
 I hope this is the right place to ask, but I am trying to come up with
 a way to parse each line of a file. Unfortunately, the file is neither
 comma, nor tab, nor space delimited. Rather, the character locations
 imply what field it is.
 
 For example:
 
 The first ten characters would be the record number, the next
 character is the client type, the next ten characters are a volume,
 and the next three are order type, and the last character would be an
 optional type depending on the order type.

Sounds like you could do something like

   recno_idx = slice(0,10)
   client_idx = slice(10, 11)
   volume_idx = slice(11,11+10)
   order_type_idx = slice(11+10, 11+10+3)
.
.
.
!?  That seems to me confusingly far from a working solution,
at least in comparison to

recno_idex = the_line[0:10]
client_idx = the_line[10:11]
...

What am I missing?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Anyone in the Houston / College Station / Austin area? Looking to do some sprints / joint projects.

2008-11-03 Thread Cameron Laird
In article [EMAIL PROTECTED],
xkenneth  [EMAIL PROTECTED] wrote:
All,

   I'm in Houston/College Station/Austin quite often and I'm looking
for other coders to do some joint projects with, share experiences, or
do some sprints. Let me know if you're interested.
.
.
.
You'll want to see URL: http://python.meetup.com/14/ ,
URL: http://wiki.python.org/moin/AustinPythonUserGroup ,
and so on.
--
http://mail.python.org/mailman/listinfo/python-list


SQL is many things, but mini had never occurred to me as one of them (was: push-style templating - an xml-like way to process xhtml)

2008-11-03 Thread Cameron Laird
In article [EMAIL PROTECTED],
Tino Wildenhain  [EMAIL PROTECTED] wrote:
.
.
.
Mini languages is the correct term. And yes they have their
purpose. (Think of SQL for example).
.
.
.
I am, incidentally, among those who finds templating languages
in general and TAL in particular more perplexing annoyance
than solution.  I certainly use TAL, though ...
--
http://mail.python.org/mailman/listinfo/python-list


Re: Why gives k = 09 a syntax error ?

2008-10-29 Thread Cameron Laird
In article [EMAIL PROTECTED],
Mensanator  [EMAIL PROTECTED] wrote:
On Oct 29, 2:44 pm, Stef Mientki [EMAIL PROTECTED] wrote:
 Guilherme Polo wrote:
  On 10/29/08, Stef Mientki [EMAIL PROTECTED] wrote:

  hello,

   Why gives k = 09  a syntax error ?

  09 is not a valid octal number. Instead use 011.

  Ok, I guess you were not aware that prefixing a number with a '0'
  would cause python to parse it as an octal and now you know.

 thanks guys,
 I didn't realize there were still people using octal notation ;-)

Windows users don't have much need for it, but it's still
popular with the 'Nix crowd.
.
.
.
I contest that; my observation is that it's entirely an artifact
of legacy software, and regarded as no better than a distraction
by even the most narrow human 'Nixers, or the hardware types who
might at one time have found octal natural.  My own origins were
in hardware, Unix, and other DEC OSs, so I consider myself as
likely as anyone to think in octal--and I rarely do.

While I can't accept the popular part, I agree with you that
Unix people are at least more likely to recognize the 0-prefix.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Developing for Python (2.x or 3)?

2008-10-21 Thread Cameron Laird
In article [EMAIL PROTECTED],
Sean DiZazzo  [EMAIL PROTECTED] wrote:
I would use 2.5.2 or 2.6.  I don't think 3 is anywhere near stable
yet.

Paulo J. Matos wrote:
 Hi all,

 I am in the process of choosing which Python version for a brand new
 application. Van Rossum in an interview recently advised all new
 applications to use Python3 but I am afraid, most libraries (PyGtk,
 PyQt, Networking Libs, etc) won't follow suit to 3.0 and I will end up
 using a version of the language which can't connect to libraries because
  they haven't been ported yet.

 Should this be a concern?
.
.
.
Forget stability; for me, library availability is a far 
greater consideration.  My advice to Mr. Matos is that he
is quite right to be concerned about library availability.
In fact, there are significant libraries which remain back
at 2.5 ...

If Mr. Matos happens to know the specific libraries he'll
need, and those happen to be on a path to availability for
3.0 soon, of course, my recommendation changes.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Commercial Products in Python

2008-10-21 Thread Cameron Laird
In article [EMAIL PROTECTED],
Paulo J. Matos [EMAIL PROTECTED] wrote:
Hi all,

I was just wondering, if you wish to commercialize an application
developed in Python, what's the way to go?
I guess the only way is to sell the source, right?

This is because (and tell me if I am wrong):
1) You can't sell an executable because Python doesn't compile to native
code (the usual approach, afaik);
2) You can't sell the bytecode, otherwise you get the client stuck with
a specific python version (given bytecode might vary between versions)
(the alternative);
.
.
.
A desktop application?  One alternative often recommended is to
construct your application as a Web one, and require subscrip-
tions.

For strict desktop applications, it *is* possible to deliver
executables; in fact, there are several products on the market
that do NOT advertise themselves as Python-based, but merely
deliver conventional-looking executables and ancillary libraries.
URL: http://wiki.python.org/moin/How_to_make_exe_on_Windows  is
a good place for you to start reading.

There *are* companies that deliver .pyc-s.  You're right that
introduces a bit of ... delicacy with regard to the version of
Python used; it *is* feasible, though.
--
http://mail.python.org/mailman/listinfo/python-list


Re: use str as variable name

2008-09-04 Thread Cameron Laird
In article [EMAIL PROTECTED],
Bruno Desthuilliers  [EMAIL PROTECTED] wrote:
Mathieu Prevot a écrit :
 2008/9/4 Chris Rebert [EMAIL PROTECTED]:

(snip)

 You're looking for the setattr() built-in function. In this exact case:
setattr(a, arg, new_value)

 This is probably covered in the Python tutorial, please read it.

 Regards,
 Chris
 
 Indeed.
 
 I'll use:
 a.__setattr__(height, new_value)

Please don't. Use the generic setattr() function instead. This holds for 
any __magic__ method : they are *implementation* for operators and 
generic functions  - which you can think of as operators with a function 
syntax -, and are not meant to be called directly. You wouldn't write 
something like 2.__add__(3), would you ?


Along with the good advice the usual suspects have given,
my intuition is that there's an even better implementation
that doesn't setattr() at all.  While it's impossible to
know, of course, because we don't have the original poster's
true requirements, I conjecture that, rather than to link
this [user-supplied] word to a class variable, what will
serve him best is to regard the user text as an index into
a class dictionary.
--
http://mail.python.org/mailman/listinfo/python-list

Re: (in memory) database

2008-08-31 Thread Cameron Laird
In article [EMAIL PROTECTED],
Fredrik Lundh  [EMAIL PROTECTED] wrote:
mark wrote:
.
.
.
 Unfortunately I have only some knowledge of SQLite which is not an
 option here.

why is sqlite not an option?  it's is bundled with Python these days, 
and should be available (or trivial to install) on all major deployment 
platforms.
.
.
.
Yes and no.  My own experience with Debian packages is that with a
standard
  apt-get install python2.5
an attempt to 
  import sqlite3
results in
  ImportError: No module named _sqlite3
that is, URL: https://bugzilla.novell.com/show_bug.cgi?id=228733 .
I recognize the error was resolved nearly two years ago,
but I, for one, don't understand how to express the resolution in
terms of Debian packages.  Is there a way to install Python and have
it manage SQLite3 correctly withOUT configuring recent sources by
hand?
--
http://mail.python.org/mailman/listinfo/python-list


Re: python subprocess know how

2008-08-31 Thread Cameron Laird
In article [EMAIL PROTECTED],
King  [EMAIL PROTECTED] wrote:
Hi,

I am using subprocess module to execute a command and print results
back.

startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
my_process = subprocess.Popen(cmnd, startupinfo=startupinfo)
print repr(my_process.communicate()[0])

This code executes on pressing a button (wxPython). The problem is
until command is not done
and it's results are not printed, program halts and button keep the
state of pushed.

Is there any way to avoid this?
.
.
.
URL: 
http://wiki.python.org/moin/How_do_I_keep_a_GUI_alive_during_a_long-running_subprocess%3F
 
--
http://mail.python.org/mailman/listinfo/python-list


Re: (in memory) database

2008-08-31 Thread Cameron Laird
In article [EMAIL PROTECTED],
Paul Boddie  [EMAIL PROTECTED] wrote:
On 31 Aug, 16:45, [EMAIL PROTECTED] (Cameron Laird) wrote:
 Yes and no.  My own experience with Debian packages is that with a
 standard
   apt-get install python2.5
 an attempt to
   import sqlite3
 results in
   ImportError: No module named _sqlite3

That's strange from the perspective of the Debian package information:

http://packages.debian.org/etch/python2.5
http://packages.debian.org/lenny/python2.5

Both have libsqlite3-0 as a dependency. On my Ubuntu system, the same
dependency applies.

 that is, URL:https://bugzilla.novell.com/show_bug.cgi?id=228733.

I'm not sure Novell can help with the matter, though. ;-)

 I recognize the error was resolved nearly two years ago,
 but I, for one, don't understand how to express the resolution in
 terms of Debian packages.  Is there a way to install Python and have
 it manage SQLite3 correctly withOUT configuring recent sources by
 hand?

Which Debian version and which package repository? I imagine that
there may have been backports of Python 2.5 to Debian 3.1 (Sarge) and
earlier, but my own experience with sqlite prior to running Python 2.5
on Ubuntu involved use of the pysqlite2 module with Python 2.4
instead. Since Python 2.5 became the default on Ubuntu, I don't recall
having any problems with sqlite.

Paul

Thanks for pursuing this, Paul.  You have me curious now.

Let's take a definite example:  I have a convenient
Ubuntu 8.04.1
The content of /etc/apt/sources.list is
deb http://us.archive.ubuntu.com/ubuntu hardy main restricted
deb http://us.archive.ubuntu.com/ubuntu hardy-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu hardy universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
I do
apt-get update
apt-get upgrade
apt-get install python2.5
then
# python2.5
Python 2.5 (r25:51908, Dec 11 2006, 21:09:56)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type help, copyright, credits or license for more information.
 import sqlite3
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/local/lib/python2.5/sqlite3/__init__.py, line 24, in module
from dbapi2 import *
  File /usr/local/lib/python2.5/sqlite3/dbapi2.py, line 27, in module
from _sqlite3 import *
ImportError: No module named _sqlite3

How do you interpret this?
--
http://mail.python.org/mailman/listinfo/python-list


Re: (in memory) database

2008-08-31 Thread Cameron Laird
In article [EMAIL PROTECTED],
Paul Boddie  [EMAIL PROTECTED] wrote:
On 31 Aug, 20:05, [EMAIL PROTECTED] (Cameron Laird) wrote:

 Let's take a definite example:  I have a convenient
 Ubuntu 8.04.1
 The content of /etc/apt/sources.list is
 debhttp://us.archive.ubuntu.com/ubuntuhardy main restricted
 debhttp://us.archive.ubuntu.com/ubuntuhardy-updates main restricted
 debhttp://us.archive.ubuntu.com/ubuntuhardy universe multiverse
 debhttp://security.ubuntu.com/ubuntuhardy-security main restricted
 I do
 apt-get update
 apt-get upgrade
 apt-get install python2.5
 then
 # python2.5
 Python 2.5 (r25:51908, Dec 11 2006, 21:09:56)
 [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
 Type help, copyright, credits or license for more information.
  import sqlite3
 Traceback (most recent call last):
   File stdin, line 1, in module
   File /usr/local/lib/python2.5/sqlite3/__init__.py, line 24, in
module
 from dbapi2 import *
   File /usr/local/lib/python2.5/sqlite3/dbapi2.py, line 27, in module
 from _sqlite3 import *
 ImportError: No module named _sqlite3

 How do you interpret this?

What do you get if you run this command...?

  dpkg -s python2.5

For me, I get something which mentions the following:

  Package: python2.5

  [...]

  Depends: python2.5-minimal (= 2.5.1-0ubuntu1.2), mime-support,
  libbz2-1.0, libc6 (= 2.5-0ubuntu1), libdb4.4,
  libncursesw5 (= 5.4-5), libreadline5 (= 5.2),
  libsqlite3-0 (= 3.3.13), libssl0.9.8 (= 0.9.8c-1)
For me:
  Depends: libbz2-1.0, libc6 (= 2.4), libdb4.6, libncursesw5 (= 
5.6+20071006-3), libreadline5 (= 5.2), libsqlite3-0 (= 3.4.2), libssl0.9.8 
(= 0.9.8f-1), mime-support, python2.5-minimal (= 2.5.2-2ubuntu4.1)

Note the presence of the libsqlite3-0 package. In addition, you should
have the sqlite3 extension module somewhere:

  locate sqlite3.so

This should tell you where the sqlite libraries are as well as where
the extension module is. For me, I get something which includes the
following:

  /usr/lib/python2.5/lib-dynload/_sqlite3.so
  /usr/lib/libsqlite3.so.0
  /usr/lib/python2.5/lib-dynload/_sqlite3.so
  /usr/lib/libsqlite3.so.0.8.6
  /usr/lib/xulrunner-1.9.0.1/libsqlite3.so
  /usr/lib/xulrunner-1.9.0.1/libsqlite3.so.0
  /usr/lib/libsqlite3.so.0
  /usr/lib/libsqlite3.so

Passing one of these to dpkg -S should say which package provided
it.
  libsqlite3-dev: /usr/lib/libsqlite3.so

The strange thing is that the Ubuntu package information for your
version does mention the sqlite dependency and include the extension
module in the list of files:

  http://packages.ubuntu.com/hardy/python2.5

You can run the following command to see whether your python2.5
package really provides the extension module:

  dpkg --listfiles python2.5
  # dpkg --listfiles python2.5 | grep sqli
  /usr/lib/python2.5/sqlite3
  /usr/lib/python2.5/sqlite3/test
  /usr/lib/python2.5/sqlite3/test/__init__.py
  /usr/lib/python2.5/sqlite3/test/dbapi.py
  /usr/lib/python2.5/sqlite3/test/factory.py
  /usr/lib/python2.5/sqlite3/test/hooks.py
  /usr/lib/python2.5/sqlite3/test/regression.py
  /usr/lib/python2.5/sqlite3/test/transactions.py
  /usr/lib/python2.5/sqlite3/test/types.py
  /usr/lib/python2.5/sqlite3/test/userfunctions.py
  /usr/lib/python2.5/sqlite3/__init__.py
  /usr/lib/python2.5/sqlite3/dbapi2.py
  /usr/lib/python2.5/lib-dynload/_sqlite3.so

Even if the sqlite library is installed, if that package doesn't
provide the extension module, something must be wrong with it because
it should be there.

Paul

I'm certainly perplexed, and welcome suggestions.
--
http://mail.python.org/mailman/listinfo/python-list


Re: (in memory) database

2008-08-31 Thread Cameron Laird
In article [EMAIL PROTECTED],
Jean-Paul Calderone  [EMAIL PROTECTED] wrote:
On Sun, 31 Aug 2008 18:05:08 +, Cameron Laird [EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED],
Paul Boddie  [EMAIL PROTECTED] wrote:
 [snip]

Thanks for pursuing this, Paul.  You have me curious now.

Let's take a definite example:  I have a convenient
Ubuntu 8.04.1
The content of /etc/apt/sources.list is
deb http://us.archive.ubuntu.com/ubuntu hardy main restricted
deb http://us.archive.ubuntu.com/ubuntu hardy-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu hardy universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
I do
apt-get update
apt-get upgrade
apt-get install python2.5
then
# python2.5
Python 2.5 (r25:51908, Dec 11 2006, 21:09:56)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type help, copyright, credits or license for more information.

It doesn't seem likely to me that this is the Python 2.5 packaged in
Ubuntu 8.04.  It's build timestamp is almost a year and a half before
8.04 was released.  Here's the header on my installation:

  Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) 
  [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
  Type help, copyright, credits or license for more information.

This could be a bug in the upgrade from a previous version of Ubuntu
installed on the host or perhaps you have a different Python 2.5 installed
on the machine that's not from the Ubuntu package repository?

Jean-Paul

Thank you!  While I'm certainly not down to the bottom of this mystery,
I have a few clues.  First, the important point to make for original
questioner mark is that SQLite(3) is a perfectly reasonable implementation
to use in a Python2.5 context.

I now suspect that my 2.5 packaging has something to do with 64-bit builds;
all my 32-bit Ubuntu servers have Python 2.5.2, while the 64-bit ones are at
Python 2.5.
--
http://mail.python.org/mailman/listinfo/python-list


Re: When to use try and except?

2008-08-30 Thread Cameron Laird
In article [EMAIL PROTECTED],
Carl Banks  [EMAIL PROTECTED] wrote:
.
.
.
 Basically, there's a general principle (EAFP: Easier to ask
 forgiveness than permission) in Python to just try something and
 then catch the exception if something goes wrong. This is in contrast
 to e.g. C where you're supposed to Look before you leap (LBYL) and
 check for possible error conditions before performing the operation.

I wouldn't say that the possibility of EAFP in Python makes it
obsolute to use LBYL.  (Error checking seems to be too broad a subject
to apply the One Obvious Way maxim to.)  C isn't always LBYL anyway;
sometimes it's DFTCFE Don't forget to check for errors.

I tend to use EAFP to check if something wrong happened (a missing
file, invalid input, etc.), and LBYL for expected conditions that can
occur with valid input, even when that condition could be tested with
a try...except.  For instance, I'd write something like this:
.
.
.
I'll reinforce what Carl tells:  a wise developer knows how to
work in different styles in different circumstances.  In a retail
C program, for example, it might be wisest to emphasize ahead-of-
time diagnostics such as, the configuration file ... is {missing,
inaccessible,locked, ...}, while a system-level library making
what apparently is the same call needs to check return values
carefully, to guard against the possibility that the system's
state has changed while executing consecutive statements.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python in a Nutshell -- Book vs Web

2008-08-29 Thread Cameron Laird
In article [EMAIL PROTECTED],
Fredrik Lundh  [EMAIL PROTECTED] wrote:
Cameron Laird wrote:

 No.  No, to an almost libelous extent.  

No matter what you write about, there's always a certain subcategory of 
potential readers who insist that collection, editing, filtering, 
structuring, clarification, and the author's real-life experience of the 
topic he's writing about has no value at all.  My guess is that they 
don't value their own time very highly.

/F


Insightful.  Well, I find it insightful; perhaps it's
a personal blindness on my part.  I expect programmers
to understand, for example, that two lines of code can
be a good day's production, in some circumstances,
while it's civilians and managers who scorn their
value on quantitative grounds.  It's hard for me to 
conceive of an expert programmer who doesn't esteem
what a high-quality book provides.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Ensure only single application instance.

2008-08-29 Thread Cameron Laird
In article [EMAIL PROTECTED],
Uberman  [EMAIL PROTECTED] wrote:
On Fri, Aug 29, 2008 at 6:51 AM, Heston James [EMAIL PROTECTED] wrote:
 Good afternoon all.

 I have an application/script which is launched by crontab on a regular
 basis. I need an effective and accurate way to ensure that only one instance
 of the script is running at any one time.

You could create a named pipe in /tmp with a unique (static) name and
permissions that disallow any kind of read/write access.  Then simply have
your script check for its existence when it starts.  If it exists, then
another instance of your script is running, and just terminate.  Make sure
your original instance removes the pipe when it exits.

I'll write an article on this subject this fall.  The
essentials are:
A.  There's no canonical answer; every apparent solution
has problems;
B.  The suggestions offered you are certainly among the
popular ones;
C.  My personal favorite is to open a (network) socket
server.  For reasons I'll eventually explain, this
has particularly apt semantics under Unix.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Command lime code

2008-08-29 Thread Cameron Laird
In article [EMAIL PROTECTED],
Timothy Grant [EMAIL PROTECTED] wrote:
On Fri, Aug 29, 2008 at 3:38 PM,  [EMAIL PROTECTED] wrote:
Seriously, did you think we've hacked your computer and are spying on
your web browsing? How would we know what web page you have visited?

 I was hoping someone would give me a page add where such code could be
 found.
 Thanks for the helpful reply.
 --
 http://mail.python.org/mailman/listinfo/python-list


If you asked a more helpful question you may get more helpful replies.
None of us here have experienced your experiences, or seen the code
you're working on, so expecting us to divine what you're looking for
based on next-to-no content in your question is a bit much.
.
.
.
London, what does 'chdir' type code mean to you?  Are you
asking about use of Python by systems administrators URL:
http://www.webpronews.com/topnews/2004/02/24/python-in-systems-administration-part-i-better-scripting
 ?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Multipart - Counting the amount of Values for One key

2008-08-29 Thread Cameron Laird
In article [EMAIL PROTECTED],
Gabriel Genellina [EMAIL PROTECTED] wrote:
En Fri, 29 Aug 2008 14:41:53 -0300, Ron Brennan [EMAIL PROTECTED]  
escribi�:

 I am trying to find the amount of values there are pertaining to one key.

 For example:

 - To find the average of the values pertaining to the key.
 - Use the amount of values to calculate a histogram

What is a multipart?  I know MIME multipart messages but they don't seem  
to apply here...
 From your other posts I think you're talking about a dictionary mapping  
each key to a list of values.
So the values are contained inside a list. It doesn't matter *where* you  
store that list, or *how* you get access to it. You have a list of values  
- that's all.
.
.
.
Gabriel and other perplexed readers:  I *think* the original
questioner has in mind C++'s multimaps URL:
http://www.cplusplus.com/reference/stl/multimap/ , imple-
mented, among other places, in the C++ Standard Template
Library.  What puzzles *me* is his his insistence, if I 
understand him correctly, that Python's lists don't aptly
model multimap containers; from everything I know, a defin-
ing characteristic of multimap containers that they are
strictly ordered.  Perhaps someone more current in C++ can
explain.
--
http://mail.python.org/mailman/listinfo/python-list

Re: Wild Card String Comparison

2008-08-28 Thread Cameron Laird
In article [EMAIL PROTECTED],
W. eWatson [EMAIL PROTECTED] wrote:
Is it possible to do a search for a wild card string in another string. For 
example, I'd like to find v*.dat in a string called bingo. v must be 
matched against only the first character in bingo, and not simply found 
somewhere in bingo, as might be the case for *v*.dat.
.
.
.
Does this session leave any questions:

  python
  Python 2.4.4c0 (#2, Oct  2 2006, 00:57:46)
  [GCC 4.1.2 20060928 (prerelease) (Debian 4.1.1-15)] on linux2
  Type help, copyright, credits or license for more information.
   import re
   pattern = ^v.*\.dat
   compiled = re.compile(pattern)
   compiled.match(victory.dat)
  _sre.SRE_Match object at 0xb7da2c60
   ms = compiled.match(victory.dat)
   ms.group()
  victory.dat
   compiled.match(avoid.dat)
   # Notice the return value of None.
  ...
   import sys
   sys.exit()

?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python in a Nutshell -- Book vs Web

2008-08-28 Thread Cameron Laird
In article [EMAIL PROTECTED],
Matimus  [EMAIL PROTECTED] wrote:
On Aug 28, 3:05 pm, W. eWatson [EMAIL PROTECTED] wrote:
 I read an Amazon of Python in a Nutshell. The first edition is supposedly
 much like the web site. What web site? The second edition apparently adds
 more to the book than the web site.

O'Reilly seems to just read all of the available documentation and
regurgitate it in book form. The in a nutshell series being the
worst offender. Most of Python in a Nutshell tells you the same
information that you can find at http://docs.python.org, which is
probably the web site being referenced.

Matt

No.  No, to an almost libelous extent.  

As URL: http://www.unixreview.com/documents/s=7822/ur0303j/ 
hints, the first edition of *PIAN* included abundant material
that was found nowhere else.  Senior Tcl developers recognized
*PIAN*'s unique values to such an extent that they snapped up
the second edition quickly when it became available.  It's
simply mistaken to characterize *PIAN* as merely a regurgitation
of the available documentation; in fact, while hewing to the
style of its series, it's among the most *original* and well-
crafted of books on Python.
--
http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter event loop question

2008-08-27 Thread Cameron Laird
In article [EMAIL PROTECTED],
Fredrik Lundh  [EMAIL PROTECTED] wrote:
gordon wrote:

 is it possible to send a message to the gui instance while the Tk
 event loop is running?I mean after i create a gui object like
.
.
.
 but it only gets executed after i close the the ui window.Is there a
 way to get this message passing while gui is running ?

it's the event loop that keeps Tkinter running, and Tkinter then calls 
your program (typically via command callbacks or event handlers) when 
it's time to do something.

so I guess the question here is from where you expect to call that 
method, and what you expect Tkinter to do when you call it...
.
.
.
... but there certainly are Tkinter applications that 
respond to the user or other outside messages.  Just
as Fredrik advises, the next step would be for you to
provide a bit of detail on what you have in mind for
passing a message in.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Are dictionaries the same as hashtables?

2008-08-26 Thread Cameron Laird
In article [EMAIL PROTECTED],
Diez B. Roggisch [EMAIL PROTECTED] wrote:
Martin Marcher wrote:

 On 2008-08-26 00:32:20, cnb wrote:
 Are dictionaries the same as hashtables?
.
.
.
Python does not have a one key maps to a list of values-semantics - which
I consider the sane choice...

However, you can have that using the defaultdict for example:

listdict = defaultdict(list)

listdict[key].append(value)

Diez

?  I'm lost.  As I understand your terms, Python's dictionaries
map keys to objects, but you would prefer that Python's 
dictionaries map keys only to lists of values.  That *sounds* 
like a complexification, at best.  Are you trying to make a
point about implementation aligning with semantics?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Are dictionaries the same as hashtables?

2008-08-26 Thread Cameron Laird
In article [EMAIL PROTECTED],
Diez B. Roggisch [EMAIL PROTECTED] wrote:
Cameron Laird wrote:

 In article [EMAIL PROTECTED],
 Diez B. Roggisch [EMAIL PROTECTED] wrote:
Martin Marcher wrote:

 On 2008-08-26 00:32:20, cnb wrote:
 Are dictionaries the same as hashtables?
 .
 .
 .
Python does not have a one key maps to a list of values-semantics -
which I consider the sane choice...

However, you can have that using the defaultdict for example:

listdict = defaultdict(list)

listdict[key].append(value)

Diez
 
 ?  I'm lost.  As I understand your terms, Python's dictionaries
 map keys to objects, but you would prefer that Python's
 dictionaries map keys only to lists of values.  That *sounds*
 like a complexification, at best.  Are you trying to make a
 point about implementation aligning with semantics?

The OP seems to want that (or at least sees it as one of two viable design
choices), see his other answer in this thread.

I certainly *don't* agree with that, I merely pointed out that python comes
with means to easily create such a data-structure in the case it is needed.

Diez

Oh!  Thanks for clearing *that* up; I certainly had a different 
impression.

To the original poster then:  please be aware that the values of
Python's dictionaries not only can be any first-class objects,
but it's quite common--quite common in *my* code, anyway--for
dictionaries to range over lists, tuples, functions, other
dictionaries, and more.  Python needn't change to allow you to
write any of this.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Using Tkinter

2008-08-23 Thread Cameron Laird
In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] wrote:
On Aug 22, 7:20 am, J-Burns [EMAIL PROTECTED] wrote:
.
.
.
 If I have a drop down box in Pythons tkinter, is it possible that the
 entities that the drop down has are items that have been picked up
 from a notepad file via file handling?

You can just open the file once (on the script's start), when you
press a button, or every so often, that will update the drop-down box.
.
.
.
I find a notepad file so incongruous in this setting that
I wonder if J-Burns meant something other than, the contents
of a file which might have been generated originally through
use of Notepad.  If, for example, he has in mind, the 
current contents of a Notepad editing session, that, too,
is possible with Python; 'fact, most any interpretation I can
imagine is acessible with Python.  The first step is simply
to be clear about the goal.
--
http://mail.python.org/mailman/listinfo/python-list


Re: rules of thumb for cross os code

2008-08-23 Thread Cameron Laird
In article [EMAIL PROTECTED],
DwBear75  [EMAIL PROTECTED] wrote:
I am considering using python as a replacement for a lot of bash
scripting that I have been doing. I would like to be as cross platform
.
.
.
2) nifty lambda's or other things to create functions fit for the
environment
3) capturing return codes of other executables called from python; ie
use os.system, or popen? or ?

I don't understand 2); maybe URL:
http://www.pardus.org.tr/eng/projects/comar/PythonInPardus.html 
is a response, although I suspect it's at a different level than
you had in mind.

For 3), read URL: http://docs.python.org/lib/node536.html  on
Replacing os.system(), although I have several personal quibbles
with details of the subprocess reference documentation.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Turning py into an Executable Program for Win?

2008-08-23 Thread Cameron Laird
In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] wrote:
On 24 Aug, 01:28, W. eWatson [EMAIL PROTECTED] wrote:
 How do I get my py code into some executable form so that Win users who
 don't have python can execute it?

Py2exe: http://www.py2exe.org/

More generally, URL: http://wiki.python.org/moin/How_to_make_exe_on_Windows .
--
http://mail.python.org/mailman/listinfo/python-list


Re: Prevalent Python/Django academic software

2008-08-21 Thread Cameron Laird
In article [EMAIL PROTECTED],
Daniel Bickett  [EMAIL PROTECTED] wrote:
Is anyone working on any software at present, using django or python
in general, which serves various academic/course functions, or else
that of student-instructor arbitration? A popular example which my
university uses is the Blackboard Academic Suite (wpedia:Blackboard
Inc.), which offers a wide range of course functionality (prof
announcements, forums, content management, grades, file sharing, etc.)

A preliminary search on Google didn't turn up much. I'm interested in
developing this sort of application if there aren't any at large, or
perhaps even if there are. I'm equally interested in looking into
existing options.
.
.
.
I don't understand the question.  YES, there are MANY
Python-based applications doing service in a variety
of academic contexts.  No, there is no central index
of all such programs.
--
http://mail.python.org/mailman/listinfo/python-list


Re: AOP in Python

2008-08-18 Thread Cameron Laird
In article [EMAIL PROTECTED],
Kay Schluehr  [EMAIL PROTECTED] wrote:
On 18 Aug., 15:21, Hussein B [EMAIL PROTECTED] wrote:
 Hey,
 AOP is build in Groovy language via many means, does Python support
 AOP out of the box without the need for such
tools:http://pythonsource.com/open-source/aspect-oriented-frameworks
 Thanks.


Kay, I couldn't find anything at that URL, but the closely-related
URL: 
http://groups.google.com/group/comp.lang.python/browse_thread/thread/af82d7fa8fdf5a28
 
works better in my experiments.  URL:
http://www.cs.tut.fi/~ask/aspects/index.html  also might interest
the original poster.

My personal bias is that AOP mostly compensates for defects in Java,
and contributes little to Python.  I retain this prejudice despite
the respect I have for two people who are very good programmers and
enthralled by AOP.

--
http://mail.python.org/mailman/listinfo/python-list


Re: Is there a such Python module ?

2008-07-30 Thread Cameron Laird
In article [EMAIL PROTECTED],
Matthew Fitzgibbons  [EMAIL PROTECTED] wrote:
Johny wrote:
 Is there a Python module that can help with reading SMS message from a
 mobile phone?
 Or is there an example how to read SMS message using a program written
 in Python,C, or any other language?
 Thank you very much for help
 L.
 --
 http://mail.python.org/mailman/listinfo/python-list
 

There is a Python distro for Symbian, if your phone is running that. You 
can do things like send/receive SMS messages, control the camera, etc. 
http://wiki.opensource.nokia.com/projects/PyS60. Can't speak to anything 
else.

Cellular handsets are consumer devices; their notion
of standardization is ENTIRELY different from the
way most of Pythonia behaves.

So, yes, there are all sorts of resources of Nokia
devices.  Gammu URL: http://gammu.org/  is also
likely to interest you, depending on your hardware.
There are still other solutions specific to Motorola,
..., although Python's presence and compatibility 
declines steeply when you leave Nokia and/or Gammu.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Testing for an empty list

2008-07-03 Thread Cameron Laird
In article [EMAIL PROTECTED],
Matthew Fitzgibbons  [EMAIL PROTECTED] wrote:
Alexnb wrote:
 Okay this is a simple question I just don't know how. If I have a list, say:
 
 funList = []
 
 and after a while something possible should have been appended to it, but
 wasn't. How can I test if that list is empty.

if not funList:
   do_something()
.
.
.
It's also perfectly legitimate--and arguably even more 
precise--to write

if funList == []:
do_something()
--
http://mail.python.org/mailman/listinfo/python-list


Python needn't apologize (was: Using Python for programming algorithms)

2008-06-01 Thread Cameron Laird
In article [EMAIL PROTECTED],
sturlamolden  [EMAIL PROTECTED] wrote:
On May 18, 5:46 am, inhahe [EMAIL PROTECTED] wrote:

 The numbers I heard are that Python is 10-100 times slower than C.

Only true if you use Python as if it was a dialect of Visual Basic. If
you use the right tool, like NumPy, Python can be fast enough. Also
note that Python is not slower than any other language (including C)
if the code is i/o bound. As it turns out, most code is i/o bound,
even many scientific programs.

In scientific research, CPU time is cheap and time spent programming
is expensive. Instead of optimizing code that runs too slowly, it is
often less expensive to use fancier hardware, like parallell
computers. For Python, we e.g. have mpi4py which gives us access to
MPI. It can be a good advice to write scientific software
parallelizable from the start.
.
[more of same]
.
.
I can hardly overemphasize how often it happens not
just that Python is more than 1% as fast as C, not 
just that Python is fast enough, but that real-world
programs written in Python are FASTER then their
homologs coded in C.

--
http://mail.python.org/mailman/listinfo/python-list


Books for a new generation of Pythoneers (was: Newbie to python --- why should i learn !)

2008-05-09 Thread Cameron Laird
In article [EMAIL PROTECTED],
maxinbjohn  [EMAIL PROTECTED] wrote:
Hi Raxit,

One of the the tempting features of Python is that it is fun to code
in Python. If you are really trying to learn python, you should read
Adventures with Neko (http://gnuvision.com/books/pybook/) . It is an
introductory book on Python programming for school children by Mr.
Pramode CE.

It is fun for children (when I tried it, me too liked it) to do
programming with Neko, the cat. I am sure that it will be a fun filled
learning experience for you.
.
.
.
Also of interest in the same regard:  the just-released (and
still on sale at Amazon?) URL: http://www.manning.com/sande/ .
--
http://mail.python.org/mailman/listinfo/python-list


Who makes up these rules, anyway? (was: Python-URL! - weekly Python news and links (Apr 28))

2008-04-29 Thread Cameron Laird
In article [EMAIL PROTECTED],
Gabriel Genellina [EMAIL PROTECTED] wrote:
.
.
.
Explicit variable declaration for functions:
   
http://groups.google.com/group/comp.lang.python/browse_thread/thread/6c4a508edd2fbe04/
.
.
.
A reader notes that this thread actually lived during 2004 (!)
(entirely during January 2004, in fact), and mildly questions 
its pertinence to what bills itself as weekly Python news ...

Well might the reader wonder.  Python-URL! has long chosen
to err on the side of INclusiveness in its categorizations,
even to the occasional point of apparent frivolity.  As Harlan
Ellison used to advise his readers, think of it as a bonus,
rather than a mistake.  It's our tradition, too.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Mathematical Python Library

2008-04-07 Thread Cameron Laird
In article [EMAIL PROTECTED],
Dennis Lee Bieber  [EMAIL PROTECTED] wrote:
On Mon, 7 Apr 2008 09:05:57 -0700 (PDT), mc [EMAIL PROTECTED]
declaimed the following in comp.lang.python:

 I'm looking for a library which can do mathematical stuff like
 solving  equations. Or calculation the nulls of a function and so on.
 Does anyone know one?

   Other than coding some serial/USB interface to an HP50g...

   Maybe SAGE? 
   sympy?

http://www.google.com/search?hl=enq=python+computer+algebra+systembtnG=Google+Search
.
.
.
While there are in fact several possible approaches to symbolic mani-
pulation of mathematical stuff in Python, I STRONGLY recommend that
beginners in the area look into SAGE URL: http://www.sagemath.org/ , 
already mentioned above by Dennis.  SAGE is life-altering software, for
those with a life focused on mathematics or related science or
engineering.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Combinatorics

2008-02-13 Thread Cameron Laird
In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] wrote:
Cameron Laird:
 It does occur to me, though, that even more widely applicable
 than the combinatorics module of Mathematica (if only because of
 its licensing) might be such resources as

What I was trying to say is that that Mathematica combinatorics module
contains lots and lots and lots of things, so people that want to
create a combinatorics module for the Python std lib may read that
huge list of good ideas as a starting point.
.
.
.
Certainly; and I see that I neglected to make explicit that one
possible response to this thread would be to begin contributing
(pure-Python) combinatoric recipes to the Cookbook.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Combinatorics

2008-02-12 Thread Cameron Laird
In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] wrote:
Michael Robertson:
 I'm guessing sage has this, but shouldn't something like this be part of
 the standard library (perhaps in C)?

My answer is positive. As a reference point you can look at the
combinatorics module of Mathematica.
.
.
.
Should combinatorics be part of the standard library?  That's
an aesthetic-pragmatic question I don't feel competent to 
answer; I look to timbot and Guido and so on for judgment there.
It does occur to me, though, that even more widely applicable
than the combinatorics module of Mathematica (if only because of
its licensing) might be such resources as 
A.  http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465
B.  http://www.sagemath.org/doc/html/ref/node181.html
C.  
http://web.archive.org/web/20070306153113/http://www.unixreview.com/documents/s=10089/ur0606j/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: cloud computing (and python)?

2008-01-01 Thread Cameron Laird
In article [EMAIL PROTECTED],
Aaron Watters  [EMAIL PROTECTED] wrote:
So, in between skiing runs I noticed
a Business Week cover story on
cloud computing.  The article had
lots of interesting information in it like
about how somebody's mom used to
be an airline stewardess and the
interior decor of various office spaces.
It was a truly excellent piece of
journalism.

However it gave me no idea what
cloud computing is and how it
could be used to solve a computational
problem.

Could anyone on this list
which usually has highly informed
readers give me a clue at some
level of technical detail what cloud
computing is about and how it could
be used.  Bonus points if you mention
Python in the response!

An actual example would be great,
if it's not web scraping and searching.
.
.
.
Aaron, while I make time for a more pertinent response,
URL: http://www.unixreview.com/documents/s=10125/ur0704l/ 
might interest you.

I owe you better examples, though.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pexpect ssh login and ls | grep

2007-12-31 Thread Cameron Laird
In article [EMAIL PROTECTED],
crybaby  [EMAIL PROTECTED] wrote:
I need to ssh into a remote machine and check if mytest.log file is
there.  I have setup ssh keys to handle login authentications.

How do I determine if mytest.log is there by using Pexpect. What I
have done so far is spawned a child for ssh.

1) Now what do I do to execute shell_cmd(ls and grep), spawn another
child?

2) Can I use the same child that was spawned for ssh, if so how?

3) After executing the ls -l|grep mystest.log, how do I get the value
from pexpect?

shell_cmd = 'ls -l | grep mytest.log'
child = pexpect.spawn ('ssh [EMAIL PROTECTED]')
#child.sendline(shell_cmd)

 child.sendline(ls)
3
 print child.before
:~[
 child.after
'[EMAIL PROTECTED] '

 child.sendline('/bin/bash', ['-c',shell_cmd])
Traceback (most recent call last):
  File stdin, line 1, in ?
TypeError: sendline() takes at most 2 arguments (3 given)
.
.
.
You might like to experiment with this:

import pexpect

prompt = '\$ '
filename = mytest.log
password = xx

child = pexpect.spawn('ssh -l %s %s ' (user, host))
child.expect([pexpect.TIMEOUT, '[Pp]assword: '])
child.sendline(password)
child.expect([pexpect.TIMEOUT, prompt])
child.sendline(ls %s  /dev/null 21; echo $? % filename)
child.expect([pexpect.TIMEOUT, prompt])
result = child.before
# You'll typically see 0 or 2 here, depending on 
# whether filename exists or not.
print result.split('\r\n')[1]

Does this leave any questions?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python+Expect+Win32 = Not Possible?

2007-09-15 Thread Cameron Laird
In article [EMAIL PROTECTED],
gamename  [EMAIL PROTECTED] wrote:
On Sep 13, 1:42 am, [EMAIL PROTECTED] wrote:
 On Sep 12, 9:27 pm, gamename [EMAIL PROTECTED] wrote:

  Hi,

  Is it still the case there is no practical Expect-like module for
  win32? I know that cygwin can support pexpect, but that isn't an
  option here --- I have to use a native win32 Python version.

  Are there alternatives, or is it simply not an option to replicate
  Expect on win32 with python?

  All I'm trying to do is start a couple processes, wait for each to say
  done on stdout and then quit (or timeout if something went wrong).

  TIA,
  -T

 I had planned on using telnet to do the same thing on windows.  I
 don't think I ever proved it, but I'm pretty sure it will work.

Thanks, Sean.  The problem is that telnet is generally disabled on
most hosts nowadays.
.
.
.
I'm plenty confused about who's saying what now.  Yes,
well-run modern hosts disable telnetd; I think the 
original description, though, was about use of telnet
to connect to hardware devices which provide some
simple TCP/IP (or serial-line?) service.  Windows 
still builds in the telnet *client* ...

... which might well be superfluous.  If these 
hardware devices (did I understand that part correctly?)
are just simple network servers, and don't, for example,
demand authentication, Python's socket library can be
used directly (and even portably!), without involvement
of Expect capabilities or an external telnet executable.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: automatic parallelization

2007-09-14 Thread Cameron Laird
In article [EMAIL PROTECTED],
Mikhail Teterin  [EMAIL PROTECTED] wrote:
.
.
.
 I'm fond of Linda URL:
 http://www.unixreview.com/documents/s=10125/ur0704l/ , Parallel 
 Python URL: http://www.parallelpython.com/  only one of several
 initiatives which aspire to exploit multicores, and so on.

Linda URL does not open... I'll look into Parallel Python, but it is
.
.
.
It comes and goes.  It seems to have been OK the last several hours.
-- 
http://mail.python.org/mailman/listinfo/python-list


My first Python CGI (was: Coming from Perl)

2007-09-13 Thread Cameron Laird
In article [EMAIL PROTECTED],
Amer Neely  [EMAIL PROTECTED] wrote:
Amer Neely wrote:
 TheFlyingDutchman wrote:
 On Sep 12, 5:30 pm, Amer Neely [EMAIL PROTECTED] wrote:
 I'm a complete newbie with Python, but have several years experience
 with Perl in a web environment.

 A question I have, if someone here is familiar with Perl, does Python
 have something like Perl's 'here document'? I've just searched and read
 some postings on generating HTML but they all seem to refer to various
 template utilities. Is this the only way, or am I missing something? I'm
 used to generating X/HTML by hand, which makes the here document in Perl
 ideal for me. Also, many times a client already existing HTML code that
 I can use in a script.

 -- 
 Amer Neely
 w:www.webmechanic.softouch.on.ca/
 Perl | MySQL programming for all data entry forms.
 Others make web sites. We make web sites work!

 I am not sure if this is what you are looking for, but Python has a
 special string with 3 quotes that I believe duplicates part of the
 functionality of a here document:

 myHmtlHeader = 
 head attribute = abc
 titleMy Page/title
 /head
 

 print myHtmlHeader


 outputs:


 head attribute=abc
 titleMy Page/title
 /head

 
 Well, I have checked everything I can but I'm getting '500 Internal 
 Server Error'. The log files aren't helpful:
 [Thu Sep 13 03:43:00 2007] [error] [client 24.235.184.39] Premature end 
 of script headers: /home/softouch/public_html/cgi-bin/scratch/hello.py
 
 I can't even get it to run on my home PC running Apache + Win2K. Same 
 error.
 
 My script:
 #!/usr/bin/python
 import cgitb; cgitb.enable(display=0, logdir=.)
 import sys
 sys.stderr = sys.stdout
 print Content-Type: text/html
 print
 
 print 
 html
 body
 div align=centerfont style=font-family:verdana; size:18pxHello 
 from Python/font/div
 br
 Goodbye.
 /body
 /html
 
 

I should have added that it runs from the command line OK.
.
.
.
Yes, it should work fine.  Do the things you'd do if it were Perl source:
when you say it runs from the command line OK, do you mean invocation of
/home/softouch/public_html/cgi-bin/scratch/hello.py gives sensible results?
Does your Web server recognize that .py is a CGI extension?  What are the
permissions on /home/softouch/public_html/cgi-bin/scratch/hello.py?

Might your server have an issue with Content-Type vs. Content-type?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: automatic parallelization

2007-09-13 Thread Cameron Laird
In article [EMAIL PROTECTED],
Michael Schlenker  [EMAIL PROTECTED] wrote:
Mikhail Teterin schrieb:
 While C/C++ and Fortran have OpenMP (http://www.OpenMP.org/), there is
 nothing comparable in Tcl (nor, as far as I know, in the two other
 scripting languages).
 
 Or is there? I'd like to, for example, have a version of foreach loop, that
 would split the tasks between concurrently executing threads in order to
 scale to the number of available CPUs:

For CPython you don't get any benefit from extra CPUs even if you tried
(unless the code inside your loop is specially written C code), due to
the GIL.

For Perl i don't know, their threading model was a bit heavy last time i
looked, but i might be off with that, so maybe its doable in Perl.

For Tcl you would at least get the benefit of multiple CPUs, but its
more message passing based thread model is probably not the best for
autoparallelization like OpenMP (but you could use the tsv:: api for
shared vars if you want to).

 
 For example:
 
  pforeach image $images {
   set exif($image) [extract_exif $image]
  }
 
 The script would be the same on a single- and a multi-CPU computer, but
 would automatically take advantage of multiple processors, when possible.

Its doable in principle, but as with OpenMP you need extra annotations
to make it workable.

If you have an event style script in Tcl you might be easier able to use
threads, as the thread::send -async api fits very well with the event
based style.
.
.
.
There are a LOT more possibilities one might pursue, depending
on the details of Mr. Teterin's intent.  I'm fond of Linda URL:
http://www.unixreview.com/documents/s=10125/ur0704l/ , Parallel
Python URL: http://www.parallelpython.com/  only one of several 
initiatives which aspire to exploit multicores, and so on.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Basic GUI

2007-09-12 Thread Cameron Laird
In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] wrote:
.
.
.
You can also use threads, which is a little bit more portable than
using Python's fork methodology, or so I've read. The concepts on this
page can be applied to any GUI toolkit you choose:
http://wiki.wxpython.org/LongRunningTasks

I've used them with wxPython, but iirc, Lutz does something quite
similar with Tkinter in his latest edition of Programming Python.

I think what Michele is referring to is the subprocess module, which
is also useful.

Mike


Let's make it even more definite:  read URL:
http://docs.python.org/lib/module-subprocess.html 
for details about the subprocess module.

Don, you describe do-something-and-retrieve-the-
results, and ask about inter-task communications.
We can give more pointed advice with just a few more
details:  is it OK for your application to block 
during a do-something-and-retrieve-the-results
sequence?  Is it acceptable, for example, that some-
one push a button on your GUI, Python directs an HTTP
query, then the GUI freezes until the answer returns?
If your application can behave so, the programming
will be more direct than if you require the retrievals
to be done in the background while the GUI remains
live.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Why is this loop heavy code so slow in Python? Possible Project Euler spoilers

2007-09-02 Thread Cameron Laird
In article [EMAIL PROTECTED],
Mark Dickinson  [EMAIL PROTECTED] wrote:
On Sep 2, 9:45 am, [EMAIL PROTECTED] wrote:
 [snip code]

 Thanks for that. I realise that improving the algorithm will speed
 things up. I wanted to know why my less than perfect algorithm was so
 much slower in python than exactly the same algorithm in C. Even when
 turning off gcc's optimiser with the -O0 flag, the C version is still

  100 times quicker.

Well, for one thing, you're creating half a million xrange objects in
the course of the search.  All the C code has
to do is increment a few integers.

Mark


Right:  Mr. Dickinson's original question is entirely
legitimate, and it's not adequate to respond, as some
follow-ups did, with ways to improve the Python-coded
algorithm.

The correct answer, which I want to reinforce, is that
the exhibited Python and C versions are NOT exactly
the same algorithm, at least not without more quali-
fication.  Part of Python expertise is to recognize 
that creation of xrange objects, mentioned above, is
far from free.  Also, -O3 gives C the opportunity,
also remarked in a follow-up, to factor calculations
outside their loops.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: simple spider in python

2007-08-23 Thread Cameron Laird
In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] wrote:
thanks everybody, s kind. I'll take a look at booth.
have a nice day/night (depending on your latitude!) ^_^

ciao!


Somewhere in the middle between the two suggestions you've already
received is URL: http://www.unixreview.com/documents/s=10133/ur0706e/ .
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Server-side scripting in python

2007-08-22 Thread Cameron Laird
In article [EMAIL PROTECTED],
Nagarajan  [EMAIL PROTECTED] wrote:

 .
 .
 .
Let me phrase my problem in a finer way.
I have done simple projects in python.
I wanted to explore web programming facet of python. The problem at my
hand is to develop an email web client. I've developed web
applications in PHP. I need to evaluate python-based web frameworks to
make a smart choice of the web framework or a language like PHP, Perl
based on performance predominantly. Do I make myself clear now?
.
.
.
In general, network latency is likely to dominate the performance
of a hobbyist-scale Webmail application coded in PHP, Perl, or
Python; to base your decision predominantly on performance is ...
well, it's not what I'd recommend.  You might as well flip a coin.

Flipping a coin isn't such a bad idea; it's possible to write good
applications with any of PHP, Perl, and Python.  Even if you restrict
yourself to Python, you can flip another coin and choose almost any
of its Web frameworks.

I salute your intent to choose a Web framework wisely.  In the ab-
sence of still more detail about your situation, requirements,
constraints, ..., I don't know how to do so beyond what I've already
written.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Server-side scripting in python

2007-08-21 Thread Cameron Laird
In article [EMAIL PROTECTED],
Nagarajan  [EMAIL PROTECTED] wrote:
Hi group,
I need to develop a web application. I am in a fix as to choose among
the various server-side scripting options. I want to explore python
(am a newbie) to gain expertise and upon search, I learnt about
PSP(Python Server Pages) that uses Jython as its scripting language.
Is it a better option over PHP or Perl? Could anyone point out the
pros and cons of using PSP over others?
.
.
.
I suspect that several of us don't understand your question.

Python supports several--arguably, a plethora, more than any other
language--distinct frameworks for server-side scripting of Web
applications URL: http://wiki.python.org/moin/WebFrameworks .
PSP certainly is among these, although it's recommended URL:
http://colorstudy.com/docs/shootout.html  less often than
several others.  Is PSP better than PHP or Perl?  First, do you
understand that PSP isn't directly comparable to PHP or Perl?  The
latter two are languages, while PSP is a Web framework.  In any 
case, the answer is certain to be, it depends.  There certainly
are situations for each of PSP, PHP, Perl, and many other technol-
ogies.

I summarize:  if you have an interest in practicing Python while
building Web applications, your prospects certainly are bright; 
you'll receive abundant help from the folks here and elsewhere.
For us to provide more specific details about Perl, PSP, and so 
on, meaningful to your own needs, will only be possible when you
articulate the latter more fully URL:
http://catb.org/~esr/faqs/smart-questions.html .
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Simple python iteration question

2007-08-15 Thread Cameron Laird
In article [EMAIL PROTECTED],
Shawn Milochik [EMAIL PROTECTED] wrote:
.
.
.
Just for my own sanity: Isn't this the third response advocating the
use of enumerate()? Did the other responses not get through, or was
this a time-delay thing?
.
.
.
Yes.

Yes, for a variety of reasons, it's easy for it to happen that
all three-or-more enumerate-responders independently saw the
original question, but not any of their colleagues' responses.

Sometime we'll tell a few Usenet funnies about The Old Days
when transport included tape-backup-driven-by-private-car.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Simple python iteration question

2007-08-15 Thread Cameron Laird
In article [EMAIL PROTECTED],
BartlebyScrivener  [EMAIL PROTECTED] wrote:
On Aug 14, 11:59 am, Shawn Milochik [EMAIL PROTECTED] wrote:

 Just for my own sanity: Isn't this the third response advocating the
 use of enumerate()? Did the other responses not get through, or was
 this a time-delay thing?

 Thanks,
 Shawn

Look at the timestamps.  All within ten minutes. And those ten minutes
are spent keyboarding your response in and posting, plus it takes
several minutes for the posts to appear on Google Groups.

rd



... and now we've had two people reply with more-or-less the same
message to this question about the propriety of race conditions in
replies.  Go ahead, explain *that* level of abstracted confusion
to your civilian acquaintances in The Real World.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Process Control Help

2007-08-13 Thread Cameron Laird
In article [EMAIL PROTECTED],
Azazello  [EMAIL PROTECTED] wrote:
On Jul 31, 12:45 pm, Walt Leipold [EMAIL PROTECTED] wrote:
.
.
.
 It has nothing to do with 'proprietary issues'.  A lot of it has to do
 with the perception of support -- who will support Python and custom
 Python code if my plant shuts down?  Who will train my developers and
 operators?  Who can I sue?  The rest of it is because of the way the
.
.
.
 You *might* save on development time (although I wouldn't bet on it),
 but you'll lose on testing time.  Heck, you'll even lose because you
 have to document your stuff and train people to use it -- what happens
 to your custom system if you get hit by a bus?
.
.
.
 Yes, it's a shame that you have to buy three packages to perform three
 functions, and then buy other 3rd-party packages to tie them together.
 Yes, it's a shame that industrial software is expensive, and
 proprietary, and Windows-only, and generally has a brain-dead scripting
 language (when it has any scriptability at all).  Still, as much as it
 galls me to say it, if your company's primary business isn't writing
 industrial automation software, don't write industrial automation
 software.
.
.
.
 * Unless you're a hobbyist, if you want to do data acquisition or i/o,
 purchase an i/o server for your particular bus/instrumentation from a
 major manufacturer.  You *can* write your own i/o server, especially for
 simple protocols like Modbus, but the commercial versions have been
 tested more exhaustively than you can manage.  Also, the most common
 protocol these days is OPC, which isn't a protocol at all in the
 conventional sense -- it's a set of APIs to a Windows DLL, with the
 wire-level details completely opaque -- so you'd have to buy a library
 for that anyway.

 * Unless you're a hobbyist, if you want an HMI, purchase LabView or
 InTouch or RSView or whatever, and use their tools to draw and
 'configure' your screens.  (Where 'configure' generally means 'program
 in Visual Basic or some other brain-dead language', but we try not to
 say program -- customers and underwriters *hate* custom software.)

 I personally think it's a tragedy that every manufacturer bases its HMI
 on Visual Basic for Applications rather than a better (and free and Open
 Source!) language like Python.  It's also a tragedy that the dominant
 i/o 'protocol' for industrial automation isn't really a protocol, and is
 Windows-only to boot.  It's horrifying that the primary means of
 communication between process control and data acquisition applications
 is via DDE or ActiveX.  And I find it incredible that people and
 companies will pay large sums of money for some of the industrial
 automation products on the market.  But that's the way the industry
 works, and, as frustrating as the commercial offerings are, using them
 will probably be better for you and your company in the long run.
.
.
.
I really appreciate your post Walt. I started this thread last week
and I have to admit that in the subsequent days the 'option' of using
Python for our control solutions is simply not feasible.  Although the
project I wanted to implement was fairly small scale, no 20 ton pieces
or x-ray machinery, the principle of the matter remains the same,
especially as a large corporation.  As an intern returning to school
in the fall, the underlying responsibility for a Python system was my
original concern and discouragement to my employer for persuing this
path.  It became readily apparent that using the crumby software
packaged with our control devices is surely faster in the long run, as
we are not involved in software development.  (The majority of my
coworkers' formal programming experience is in FORTRAN) It has been a
very discouraging few days.  There's so much room for improvement and
yet...  My 4-day conclusion is unless you're already involved in
controls software you must be crazy to join.  Are many young engineers
entering this field?


At an anecdotal level, I'd guess that, no, there are few
young engineers entering this field.

Mr. Leipold's descriptions of the difficulties involved 
in use of Python are accurate, and I particularly support
his advice to use whatever commercial I/O you can find.
I've had success, though, introducing high-level language
programming, and even Linux, as an alternative to vendors'
APIs, Labview, and so on.  I'm not sure how to summarize
what went into this; perhaps the best is to emphasize how
flawed is the software that's typical with vendor APIs.

While there's more to tell about the errors in commercial
networking implementations, the horror of ActiveX, and so
on, right now 

Re: Process Control Help

2007-08-13 Thread Cameron Laird
In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] wrote:


I'm attempting to start some process control using Python.  I've have
.
.
.
Is there an existing forum on this already?
.
.
.
URL: http://www.engcorp.com/acf/RecentChanges 

It's been dormant for a while, but it wouldn't take much to
restore its vitality.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Process Control Help

2007-08-13 Thread Cameron Laird
In article [EMAIL PROTECTED], I mused:
In article [EMAIL PROTECTED],
Azazello  [EMAIL PROTECTED] wrote:
On Jul 31, 12:45 pm, Walt Leipold [EMAIL PROTECTED] wrote:
   .
   .
   .
 It has nothing to do with 'proprietary issues'.  A lot of it has to do
 with the perception of support -- who will support Python and custom
 Python code if my plant shuts down?  Who will train my developers and
 operators?  Who can I sue?  The rest of it is because of the way the
   .
   .
   .
 Yes, it's a shame that you have to buy three packages to perform three
 functions, and then buy other 3rd-party packages to tie them together.
 Yes, it's a shame that industrial software is expensive, and
 proprietary, and Windows-only, and generally has a brain-dead scripting
 language (when it has any scriptability at all).  Still, as much as it
 galls me to say it, if your company's primary business isn't writing
 industrial automation software, don't write industrial automation
 software.
   .
   .
   .
 * Unless you're a hobbyist, if you want to do data acquisition or i/o,
 purchase an i/o server for your particular bus/instrumentation from a
 major manufacturer.  You *can* write your own i/o server, especially for
 simple protocols like Modbus, but the commercial versions have been
 tested more exhaustively than you can manage.  Also, the most common
 protocol these days is OPC, which isn't a protocol at all in the
 conventional sense -- it's a set of APIs to a Windows DLL, with the
 wire-level details completely opaque -- so you'd have to buy a library
 for that anyway.
.
.
.
 on Visual Basic for Applications rather than a better (and free and Open
 Source!) language like Python.  It's also a tragedy that the dominant
 i/o 'protocol' for industrial automation isn't really a protocol, and is
 Windows-only to boot.  It's horrifying that the primary means of
 communication between process control and data acquisition applications
 is via DDE or ActiveX.  And I find it incredible that people and
 companies will pay large sums of money for some of the industrial
 automation products on the market.  But that's the way the industry
 works, and, as frustrating as the commercial offerings are, using them
 will probably be better for you and your company in the long run.
   .
   .
   .
I really appreciate your post Walt. I started this thread last week
and I have to admit that in the subsequent days the 'option' of using
Python for our control solutions is simply not feasible.  Although the
project I wanted to implement was fairly small scale, no 20 ton pieces
or x-ray machinery, the principle of the matter remains the same,
especially as a large corporation.  As an intern returning to school
in the fall, the underlying responsibility for a Python system was my
original concern and discouragement to my employer for persuing this
path.  It became readily apparent that using the crumby software
packaged with our control devices is surely faster in the long run, as
we are not involved in software development.  (The majority of my
coworkers' formal programming experience is in FORTRAN) It has been a
very discouraging few days.  There's so much room for improvement and
yet...  My 4-day conclusion is unless you're already involved in
controls software you must be crazy to join.  Are many young engineers
entering this field?


At an anecdotal level, I'd guess that, no, there are few
young engineers entering this field.
.
.
.
'Just occurred to me that a GREAT thing to do might be for a young
engineer to catch the SD Best Practices 2007 East in Boston in
September URL: http://www.sdexpo.com/2007/sdbp/overview.htm ,
which is running concurrently with Embedded Systems URL: 
http://www.embedded.com/esc/boston/  (as well as RFID World URL:
http://www.rfid-world.com/boston/ ).  They sell inspiration by the
half-hour.
-- 
http://mail.python.org/mailman/listinfo/python-list


  1   2   3   4   5   6   7   >