ioritize requests before he even thinks about beginning a
task. It's difficult to outsource these things, 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
ing out.
Thanks.
--
.. Chuck Rhode, Sheboygan, WI, USA
--
http://mail.python.org/mailman/listinfo/python-list
d to externalize all the options; nevertheless, 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
m only
minimally and am 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
, one of
which should prevent it in all cases, 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
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 ni
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
PythonTidy to do the right thing on
> unfamiliar code, and I can't readily try out 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 ra
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, She
my own style is
> to use double quotes (I don't think that pep8 prefers one 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
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, W
of tars and other 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
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, sim
uction.
While skimming this discussion, 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
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
--
..
ational.
... so what's this we hear 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
arser = ElementTree.XMLTreeBuilder(
: target=ElementTree.TreeBuilder(Element))
: 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
..
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):
>
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
.. Wea
/PythonTidy/PythonTidy-1.10.python";>PythonTidy
1.10 - Cleans up, regularizes, and reformats the text of Python
scripts. (18-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/
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.
--
h
rubbed clean of any delimiters that would
look like executable shell script code, 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
ythonTidy/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.&q
ittier solution 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
ndshake even though 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
d *come from*
construct proposed 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 Rhod
quot;
>
> result = pathlib.Path.home() / ".config"
> return result
- --
.. Be Seeing You,
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather: https://LacusVeris.com/Wx
.. 47° — Wind NNW at 12 mph. Sky clear.
-BEGIN PGP SIGNATURE-
iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xip
27 matches
Mail list logo