[issue2932] Documenting Python: Syntax

2008-05-20 Thread Wallace Owen

New submission from Wallace Owen [EMAIL PROTECTED]:

http://docs.python.org/doc/latex-syntax.html

--
messages: 67142
nosy: owen
severity: normal
status: open
title: Documenting Python: Syntax

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2932
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2933] Documenting Python: Syntax bug

2008-05-20 Thread Wallace Owen

New submission from Wallace Owen [EMAIL PROTECTED]:

The 'documenting Python' document, section 4.1, at this url:
 http://docs.python.org/doc/latex-syntax.html
has an incorrect (but correctly spelled) word in one of it's sentences:


Macros which take no parameters but which should not be followed by a
word space do not need special treatment if the following character in
the document source if not a name character (such as punctuation).


The phrase source if not a name should be source is not a name.

By the way, in attempting to classify this bug within the parameters
allowed, I observe that there is no correct 'Type' for this bug: none of
the allowed choices seem to apply.  It's not a crash, compile error,
resource usage, security, behavior, performance or feature
request.  I figured feature request would ring the fewest alarm
bells, so I used that.

--
assignee: georg.brandl
components: Documentation
messages: 67143
nosy: georg.brandl, owen
severity: normal
status: open
title: Documenting Python: Syntax bug
type: feature request
versions: Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2933
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2933] Documenting Python: Syntax bug

2008-05-20 Thread Wallace Owen

Wallace Owen [EMAIL PROTECTED] added the comment:

Thanks for the fast attention.  One question:  How do I access and use
these docs?  I went looking for the instructions on documenting, so when
I contribute, the docs I do are in the right format.  The url I was
reading didn't have a '2.5' in it's path, it was:
 http://docs.python.org/doc/latex-syntax.html

I navigated there by selecting Browse Current Documentation at
http://www.python.org/doc/ which took me directly to the 2.5.2
documentation page.  If the 2.5 stuff isn't current, this link would
appear to be bad.  Should I submit a bug, or have I jammed my head too
far up my ass to be useful? :^)

  // Wally

On Wed, 2008-05-21 at 03:07 +, Benjamin Peterson wrote:
 Benjamin Peterson [EMAIL PROTECTED] added the comment:
 
 Thanks for the report. However, since we have moved to a new doc format
 (reST), we are not maintaining the 2.5 docs.
 
 --
 nosy: +benjamin.peterson
 resolution:  - wont fix
 status: open - closed
 versions: +Python 2.5 -Python 3.0
 
 __
 Tracker [EMAIL PROTECTED]
 http://bugs.python.org/issue2933
 __

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2933
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Perl XML::Simple and Data::Dumper - exists in Python?

2006-06-14 Thread Wallace Owen
Miguel Manso wrote:
 Hi there,
 
 I'm a Perl programmer trying to get into Python. I've been reading some 
 documentation and I've choosed Python has being the next step to give.
 
 Can you point me out to Python solutions for:
 
 1) Perl's Data::Dumper
 
 It dumps any perl variable to the stdout in a readable way.

All Python objects support reflection and can be serialized to a data 
stream.  There's about four ways to do it (Kinda perl-like in that 
regard, but typically for a particular application there's one obvious 
right choice).  You control the way your objects appear as strings, by 
defining a __str__ member function that'll be invoked if the user does:

% print str(yourObject)

You can print any builtin type with just:

  lst = [one, two, (3, 4.56), 1]
  print lst
['one', 'two', (3, 4.5596), 1]
 

 
 2) Perl's XML::Simple
 
 It maps a XML file into a Perl data structure.

Python's got a Document Object Model lib that essentially maps an XML 
file to objects that have built-in-type behavior - you can treat a 
NodeList object as a python list, indexing into it, iterating over it's 
contents, etc.

It's also got SAX and expat bindings.

 
 Does Python have something like these two tools? I've been googling 
 before posting this and didn't find anything.

Do your searches at python.org.


   // Wally
-- 
http://mail.python.org/mailman/listinfo/python-list