[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-02-01 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: Here are four ways to generate things called in the documentation Abstract Syntax Trees (ASTs). Obviously they are not all the same kind of object: #!/usr/local/bin/python2.6 import sys import compiler import parser import ast STATEMENT

[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-02-01 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: I don't see why the compiler module is any better than any of the other ways that produce reasonable AST. It is available on Python releases older than 2.6? -- ___ Python tracker rep

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-31 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: Thanks. -ccr- -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7210 ___ ___ Python-bugs-list

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-30 Thread Chuck Rhode
Changes by Chuck Rhode crh...@lacusveris.com: Removed file: http://bugs.python.org/file15231/test_grammar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7210

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-30 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: Oh! That's very different. :-) I can do that. -- Added file: http://bugs.python.org/file15237/test_grammar_trunk.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7210

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-29 Thread Chuck Rhode
Changes by Chuck Rhode crh...@lacusveris.com: Removed file: http://bugs.python.org/file15213/test_grammar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7210

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-29 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: Sorry I'm having so much trouble with this patch. Here's another. Thanks for your patience. -ccr- -- Added file: http://bugs.python.org/file15231/test_grammar.patch ___ Python tracker rep

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-27 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: Yet another patch file -- Added file: http://bugs.python.org/file15213/test_grammar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7210

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-26 Thread Chuck Rhode
New submission from Chuck Rhode crh...@lacusveris.com: PythonTidy is a code beautifier written three years ago and downloaded numerous times. o http://lacusveris.com/PythonTidy/PythonTidy.python It suffers a bug, which has only recently come to light. It considers the following lines

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-26 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: You mean like this? -- Added file: http://bugs.python.org/file15209/test_grammar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7210

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-26 Thread Chuck Rhode
Changes by Chuck Rhode crh...@lacusveris.com: Removed file: http://bugs.python.org/file15209/test_grammar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7210

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-26 Thread Chuck Rhode
Changes by Chuck Rhode crh...@lacusveris.com: Removed file: http://bugs.python.org/file15206/test_grammar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7210

[issue7210] Proposed Syntax Checks in Test Suite

2009-10-26 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: Well, the last two patch files weren't very good, but I hope the third time's the charm. -- Added file: http://bugs.python.org/file15210/test_grammar.patch ___ Python tracker rep...@bugs.python.org

[issue6978] compiler.transformer dict key bug d[1,] = 1

2009-10-21 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: PythonTidy encounters this problem. o http://lacusveris.com/PythonTidy/PythonTidy.python It is unable correctly to render line 694 of test_grammar.py in the Python Test Suite: d[1,] = 2 becomes: d[1] = 2 because the *compiler

Re: Good python equivalent to C goto

2008-08-18 Thread Chuck Rhode
for *fortran*? Here there be typos (abject apologies): o Clark, R. Lawrence. A Linguistic Contribution to GOTO-less Programming. _Datamation_ Dec. 1973. 18 Aug. 2008 http://www.fortranlib.com/gotoless.htm. -- .. Be Seeing You, .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http

Re: Web Crawler - Python or Perl?

2008-06-26 Thread Chuck Rhode
the download stalled. -- .. Chuck Rhode, Sheboygan, WI, USA .. 1979 Honda Goldwing GL1000 (Geraldine) .. Weather: http://LacusVeris.com/WX .. 73° — Wind Calm -- http://mail.python.org/mailman/listinfo/python-list

Re: Web Crawler - Python or Perl?

2008-06-12 Thread Chuck Rhode
is to supply timeout parms to the *curl* command through the shell. Execute the command and retrieve its output through the *subprocess* module. -- .. Chuck Rhode, Sheboygan, WI, USA .. 1979 Honda Goldwing GL1000 (Geraldine) .. Weather: http://LacusVeris.com/WX .. 64° — Wind SE 5 mph — Sky partly cloudy

Re: Python 3000: Standard API for archives?

2007-06-05 Thread Chuck Rhode
Tim Golden wrote this on Mon, 04 Jun 2007 15:55:30 +0100. My reply is below. Chuck Rhode wrote: samwyse wrote this on Mon, 04 Jun 2007 12:02:03 +. My reply is below. I think it would be a good thing if a standardized interface existed, similar to PEP 247. This would make it easier

Re: Python 3000: Standard API for archives?

2007-06-04 Thread Chuck Rhode
abominations). -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 62° — Wind N 7 mph — Sky overcast. Mist. -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 8 style enforcing program

2007-05-31 Thread Chuck Rhode
montyphyton wrote this on Thu, 31 May 2007 05:16:30 -0700. My reply is below. I understand that there are a lot of code beautifiers out there, but i haven't seen one specially tailored for Python. Consider PythonTidy: o http://lacusveris.com/PythonTidy/PythonTidy.python -- .. Chuck Rhode

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Chuck Rhode
, I, too, was suffering flashbacks to CDC's 6-bit Hollerith code. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 69° — Wind NNE 6 mph — Sky partly cloudy. -- http://mail.python.org/mailman/listinfo/python-list

Re: nonstandard XML character entities?

2007-04-14 Thread Chuck Rhode
)) : parser.entity = htmlentitydefs.entitydefs : self.parse(source=file, parser=parser) : return It looks goofy as can be, but it works for me. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 32° — Wind Calm -- http://mail.python.org/mailman

Re: nonstandard XML character entities?

2007-04-14 Thread Chuck Rhode
Chuck Rhode wrote this on Sat, 14 Apr 2007 09:04:45 -0500. My reply is below. Fixed text wrap: import xml.etree.ElementTree # or elementtree.ElementTree prior to 2.5 ElementTree = xml.etree.ElementTree import htmlentitydefs class XmlFile(ElementTree.ElementTree): def __init__(self

Re: [JOB] Sr. Python Developer, Northern VA

2007-03-23 Thread Chuck Rhode
of employers' (in the US) being so starved for talent that they're willing to bring in young men from overseas with 3.5 kids and 1.5 wives? -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 44° — Wind SSE 7 mph — Sky overcast. Light rain; mist. -- http://mail.python.org/mailman

Re: Python Source Code Beautifier

2007-02-27 Thread Chuck Rhode
/PythonTidy.python It doesn't have a graphical user interface, and it doesn't do everything you want, and it isn't reasonable (It's of an unreasonable size.), but it is a beginning. For future reference, look in: o http://cheeseshop.python.org/pypi ... under reformat. -- .. Chuck Rhode, Sheboygan, WI, USA

Re: Automated resizing of JPEG image + making slices?

2007-02-15 Thread Chuck Rhode
, variable substitutions, or even spurious path names. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 18° — Wind WNW 13 mph -- http://mail.python.org/mailman/listinfo/python-list

Re: beep or sound playing under linux

2007-01-22 Thread Chuck Rhode
hg wrote this on Mon, Jan 22, 2007 at 04:12:50PM +0100. My reply is below. Is there a way to do that? (Make noise.) In Gnome there is: gtk.gdk.beep() -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 28° — Wind WSW 10 mph — Sky overcast. -- http

PythonTidy 1.10

2007-01-19 Thread Chuck Rhode
://www.lacusveris.com/PythonTidy/PythonTidy-1.10.python;PythonTidy 1.10/A - Cleans up, regularizes, and reformats the text of Python scripts. (18-Jan-07)/P .. Chuck Rhode, Sheboygan, WI, USA .. mailto:[EMAIL PROTECTED] .. Weather: http://LacusVeris.com/WX .. 20° — Wind WNW 13 mph -- http://mail.python.org/mailman

PythonTidy 1.10

2007-01-18 Thread Chuck Rhode
://www.lacusveris.com/PythonTidy/PythonTidy-1.10.python;PythonTidy 1.10/A - Cleans up, regularizes, and reformats the text of Python scripts. (18-Jan-07)/P .. Chuck Rhode, Sheboygan, WI, USA .. mailto:[EMAIL PROTECTED] .. Weather: http://LacusVeris.com/WX .. 20° — Wind WNW 13 mph -- http://mail.python.org/mailman

Re: Conflicting needs for __init__ method

2007-01-17 Thread Chuck Rhode
Ben Finney wrote this on Wed, Jan 17, 2007 at 08:27:54PM +1100. My reply is below. I recommend, instead, separate factory functions for separate input types. Uh, how 'bout separate subclasses for separate input types? -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com

PythonTidy 1.9

2007-01-09 Thread Chuck Rhode
;PythonTidy 1.9/A - Cleans up, regularizes, and reformats the text of Python scripts. (09-Jan-07) -- .. Chuck Rhode, Sheboygan, WI, USA .. mailto:[EMAIL PROTECTED] .. Weather: http://LacusVeris.com/WX .. 20° — Wind WNW 13 mph -- http://mail.python.org/mailman/listinfo/python-announce-list

Re: help: code formatter?

2007-01-08 Thread Chuck Rhode
siggi wrote this on Mon, Jan 08, 2007 at 03:33:21PM +0100. My reply is below. Is there a simple code formatter that first removes all indentations and then refomats correctly? Why, yes, there is: http://lacusveris.com/PythonTidy/PythonTidy.python -- .. Chuck Rhode, Sheboygan, WI, USA

Re: PythonTidy

2006-12-06 Thread Chuck Rhode
over the other). Is it possible to customize this? Here is a new global: DOUBLE_QUOTED_STRINGS = True. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 30° — Wind WNW 15 mph — Sky overcast. -- http://mail.python.org/mailman/listinfo/python-list

PythonTidy

2006-12-05 Thread Chuck Rhode
scripts: http://www.LacusVeris.com/PythonTidy/PythonTidy.python What next? Is it appropriately submitted to the Cheese Shop? -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 3° — Wind W 8 mph -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonTidy

2006-12-05 Thread Chuck Rhode
various options by simply activating or deactivating them; if I could, it would be much more useful to me. PythonTidy should be run only on code that is already familiar or that will rapidly become so in the near future. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX

Re: PythonTidy

2006-12-05 Thread Chuck Rhode
Thomas Heller wrote this on Tue, Dec 05, 2006 at 07:06:30PM +0100. My reply is below. I suggest you open the file with open(input-file, rU). This doesn't work so pretty good while reading from sys.stdin, so I'm still at the drawing board. -- .. Chuck Rhode, Sheboygan, WI, USA .. 1979 Honda

Re: PythonTidy

2006-12-02 Thread Chuck Rhode
, obviating the need for a custom switch. -- .. Chuck Rhode, Sheboygan, WI, USA .. 1979 Honda Goldwing GL1000 (Geraldine) .. Weather: http://LacusVeris.com/WX .. 10° — Wind S 5 mph -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonTidy

2006-12-02 Thread Chuck Rhode
Thomas Heller wrote this on Fri, Dec 01, 2006 at 10:12:38PM +0100. My reply is below. Chuck Rhode schrieb: o Command-line args: Please give an example of a standard command that I might emulate w.r.t. standard argument use. Well, at least it would be nice if I could call 'PythonTidy.py

Re: PythonTidy

2006-11-30 Thread Chuck Rhode
, most are declared near the beginning where they sit just begging for end-user involvement. See: CODING_SPEC and SHEBANG. *PythonTidy* is all about consistency, consistency, and consistency. You can use it to standardize shebangs and coding across a whole library of Python scripts. -- .. Chuck

Re: PythonTidy

2006-11-30 Thread Chuck Rhode
not greatly inconvenienced when they are moved around a little. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 21° — Wind N 8 mph -- http://mail.python.org/mailman/listinfo/python-list

PythonTidy

2006-11-29 Thread Chuck Rhode
. -- .. Chuck Rhode, Sheboygan, WI, USA -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding skilled pythonistas for micro-jobs?

2006-11-18 Thread Chuck Rhode
, and they are time consuming. -- .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 38° — Wind NNW 9 mph — Sky overcast. -- http://mail.python.org/mailman/listinfo/python-list

Re: [ python-Bugs-1215887 ] String and list methods deeply hidden

2005-12-24 Thread Chuck Rhode
not buried under 2.3.6.1 String Methods. Exposing the fourth level of subtopics in section 2.3 of the lib.html document would be nice, though. -- .. Chuck Rhode, Sheboygan, WI .. http://www.excel.net/~crhode/RockyGnashtoothsWeather/ .. 72?F. Wind WSW 9 mph. Partly cloudy