Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

2012-08-10 Thread Chuck
Hi all, I cannot figure why I keep getting this error. It is my understanding that all methods need a self argument when designing a class. Here is my code: import random class ElementsQuiz: elements = {'H' : 'Hydrogen', 'He' : 'Helium', 'Li' : 'Lithium',

Re: Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

2012-08-10 Thread Chuck
On Friday, August 10, 2012 2:05:36 PM UTC-5, Pedro Kroger wrote: > On Aug 10, 2012, at 3:52 PM, Chuck wrote: > > > > >if __name__ == '__main__': > > > > > >quiz() > > > > > > > > > > You need to i

Re: Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

2012-08-10 Thread Chuck
Thanks for the help guys! I finally got it working. Shouldn't I technically call quiz() through the constructor, though? Otherwise, the constructor is pointless. I just put in pass for now. (Also, I always thought that if __name__ == '__main__': went IN the class. Why wouldn't it be apart

Re: Keep getting this in PyDev "TypeError: quiz() takes exactly 1 argument (0 given)"

2012-08-10 Thread Chuck
Yeah, I am mostly a Java guy. Just starting with Python. :) -- http://mail.python.org/mailman/listinfo/python-list

ControlDesk, Python, ActiveX, TableEditor

2012-04-27 Thread Chuck
I am trying to hook into the TableEditor on Controldesk using Python. Unfortunately there are no good examples of how to write the code anywhere I have looked. Does anyone know where to look? OR does anyone have code? Thanks Chuck -- http://mail.python.org/mailman/listinfo/python-list

installing modules in Enthought Python

2012-05-30 Thread Chuck
I just downloaded Enthought Python, free version. I wanted all the included packages, but I can't seem to find the correct directory to install new Python modules. Does anybody have an idea? I am trying to add Universal Feed Parser to Enthought. I have tried C:\Python27, C:\Python27\Lib, C:\Pyt

Re: installing modules in Enthought Python

2012-05-30 Thread Chuck
On May 30, 10:57 am, David Fanning wrote: > Chuck writes: > > > I just downloaded Enthought Python, free version.  I wanted all the > > included packages, but I can't seem to find the correct directory to > > install new Python modules.  Does anybody have an

File Upload Script

2005-09-29 Thread Chuck
Hi, can anyone provide or point me in the direction of a simple python file upload script? I've got the HTML form part going but simply putting the file in a directory on the server is what I'm looking for. Any help would be greatly appreciated. Thanks, Chuck -- http://mail.python.o

Dectecting dir changes

2005-12-09 Thread chuck
I need to write a daemon for Solaris that monitors a directory for incoming FTP transfers. Under certain conditions, when the transfer is complete I need to send an email notification, and do other stuff. Win32 provides FindFirstChangeNotification(), but as best I can tell this isn't supported on

Re: Dectecting dir changes

2005-12-09 Thread chuck
Is this on Solaris? I think you may have missed my point. I don't have fcntl.py on my Solaris box so how do I know what signals that I can used to monitor a directory for modification. In other words will the following work? fcntl.fcntl(self.fd, fcntl.F_NOTIFY, fcntl.DN_DELETE|fcntl.DN_CREATE|f

Re: Dectecting dir changes

2005-12-09 Thread chuck
ty - more useful than 'works here' -- http://mail.python.org/mailman/listinfo/python-list

Re: Dectecting dir changes

2005-12-09 Thread chuck
Hmmm, that is an interesting idea. I've noticed the new book on Twisted, thinking about picking it up. I assume that this little snippet will handle multiple/concurrent incoming transfers via threading/sub-process, is scalable, secure, etc? I could even run it on a non-standard port making it a

stdin/stdout fileno() always returning -1 from windows service

2005-07-17 Thread chuck
I have found that sys.stdin.fileno() and sys.stdout.fileno() always return -1 when executed from within a win32 service written using the win32 extensions for Python. Anyone have experience with this or know why? -- http://mail.python.org/mailman/listinfo/python-list

Re: stdin/stdout fileno() always returning -1 from windows service

2005-07-18 Thread chuck
Interesting. The stdin and stdout objects in my service seems respond to returing a string for the statements str(sys.stdin) and str(sys.stdout). I guess they are just not attached to files? Can you provide a reference (MSDN or otherwise) that indicates that Windows Services don't have standard

Re: stdin/stdout fileno() always returning -1 from windows service

2005-07-18 Thread chuck
"common wisdom" interesting. The value of the closed attribute is "False" when tested from within the service. Still digging -- http://mail.python.org/mailman/listinfo/python-list

pre subprocess module help

2005-08-02 Thread chuck
I need to execute a command shell process obtain the return code and capture stdout from that shell process. I've done this with 2.4 using subprocess. How do I do it with 2.3? -- http://mail.python.org/mailman/listinfo/python-list

pre subprocess module help

2005-08-02 Thread chuck
I need to execute a command shell process obtain the return code and capture stdout from that shell process. I've done this with 2.4 using subprocess. How do I do it with 2.3? -- http://mail.python.org/mailman/listinfo/python-list

pre subprocess help needed

2005-08-02 Thread chuck
I need to execute a command shell process obtain the return code and capture stdout from that shell process. I've done this with 2.4 using subprocess. How do I do it with 2.3? -- http://mail.python.org/mailman/listinfo/python-list

Python Database Scripts

2005-09-12 Thread Chuck
Hello, Can anyone provide any kind of python database (mysql) code or point me to a link that has this? Just simple things as maybe using a driver, opening up a db, an insert and select. Any help would be greatly appreciated! Thanks, --Chuck -- http://mail.python.org/mailman/listinfo/python

Re: Python Database Scripts

2005-09-13 Thread Chuck
Hi, thanks for (all) of your help. BTW, where is the DB-API docs for python? Thanks, --Chuck -- http://mail.python.org/mailman/listinfo/python-list

Why doesn't IDLE editor windows have horizontal scrollbars?

2005-09-16 Thread chuck
The browser windows do. Why not the editor windows? I hate to complain but is there any way to get IDLE to run in more of an MDI mode? Having the floating windows everywhere is rather confusing to me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't IDLE editor windows have horizontal scrollbars?

2005-09-16 Thread chuck
Well I don't want to start yet another thread on IDE's. I've googled and all of that an am aware of most of the IDE's that are out there. I am curious if there is someplace where statistics have been captured on what IDE's most people are using. Since IDLE ships with Python I assume a lot of peo

smtplib / solaris (newbie problem?)

2005-03-11 Thread chuck
I've good luck with this on a Linux system (foolproof), and now I'm trying to get the same thing to run on a Solaris box. pythonpath, or env or..? Any help much appreciated. Thanks Chuck Python 2.3.2 (#1, Oct 17 2003, 19:06:15) [C] on sunos5 Type "help", "copyrigh

Re: smtplib / solaris (newbie problem?)

2005-03-13 Thread chuck
Thanks Steve! Your observation was spot-on. Changed to the correct SMTP host name, and it's all set. The error message 'Connection refused' got me thinking that the SMTP server wouldn't allow this or required some authentication, or etc. Chuck -- http://mail.python.

ActiveState Python 2.4 Woes

2004-12-18 Thread Chuck
I am having a lot of problems with this distribution. Is anyone else? Among many, many problems in the debugger I also see the error below when I start PythonWin using the context menu when selecting a python file in the windows shell explorer. Anyone having this problem? I done a complete unins

Re: ActiveState Python 2.4 Woes

2004-12-18 Thread Chuck
Just installed Python 2.4 (from Python.org) and the Win32 extesions (from Mark's site) and am now having NO problems. I'll report more info as I experience it. -- http://mail.python.org/mailman/listinfo/python-list

Newsgroup Programming

2005-04-03 Thread Chuck
I've found and used the nntplib module for newgroup programming. Can anyone suggest a library, technique or reference on how to combine mutliple messages with attachments such as mp3's, .wmv, *.avi, etc.? -- http://mail.python.org/mailman/listinfo/python-list

Sqlite3 help

2014-10-14 Thread Chuck
e any designing that included databases. Thanks! Chuck -- https://mail.python.org/mailman/listinfo/python-list

Re: Sqlite3 help

2014-10-20 Thread Chuck
Thanks a bunch Sibylle! That seems like a better approach. -- https://mail.python.org/mailman/listinfo/python-list

Config & ConfigParser

2013-03-05 Thread Chuck
I'm curious about using configuration files. Can someone tell me how they are used? I'm writing a podcast catcher and would like to set up some default configurations, e.g. directory, etcOther than default directory, what are some of the things that are put in a configuration file? They

Re: Config & ConfigParser

2013-03-05 Thread Chuck
Thanks Tim! So much stuff I haven't thought of before. Out of curiosity, what's the benefit of caching the download, instead of downloading to the final destination? So much stuff they never teach you school.So much theory & not enough practice. :( -- http://mail.python.org/mailman/l

Re: Config & ConfigParser

2013-03-05 Thread Chuck
I guess my question was more what is a config.file & why/how do I use one. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Generating Filenames from Feeds

2013-03-14 Thread Chuck
\Users\\Me\\Music\\Podcasts\\', pubdate.mp3), where pubdate has been parsed and stripped of whitespace. I keep getting an error around the .mp3. Any ideas? Thanks!! Chuck -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating Filenames from Feeds

2013-03-14 Thread Chuck
> Seriously, if you don't post a minimal code example that shows the problem > and with a full traceback you are asking strangers to do magic tricks for > your pleasure. I'm asking more for a better way of generating destination filenames, not so much debugging questions. I only put my attem

Re: Dectecting dir changes

2005-12-10 Thread chuck
I do need to stick to FTP though as indicated I could run it on a different port. Limit comes more from the client side capabilities. Did some reading about twisted and I now understand that things in general are single threaded. I started working my way through the twisted finger tutorial. Whi

PythonWin troubleshooting

2005-12-12 Thread chuck
Having problems with PythonWin on Windows XP SP1. Shortly after startup and trying to debug I see: LoadBarState failed - LoadBarState failed (with win32 exception!) Things go down hill quickly from there. From there I see stuff like: [Dbg]>>> Traceback (most recent call last): File "C:\Pytho

Re: PythonWin troubleshooting

2005-12-12 Thread chuck
Build 205 for the win32 ext. -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonWin troubleshooting

2005-12-13 Thread chuck
Sticking with 2.4.2 I reverted to win32 ext 204 and problems were the same or worse. Then I uninstalled both, removed the dangling py*24.dll and then installed "ActivePython 2.3.5.236". All the problems went away. I hate to go back to 2.3 cause there are some nice updates in the 2.4 library that

Re: PythonWin troubleshooting

2005-12-13 Thread chuck
chuck wrote: > Sticking with 2.4.2 I reverted to win32 ext 204 and problems were the > same or worse. Then I uninstalled both, removed the dangling py*24.dll > and then installed "ActivePython 2.3.5.236". All the problems went > away. > > I hate to go back to 2

Re: PythonWin troubleshooting

2005-12-13 Thread chuck
Thanks for the suggestions but I have all of the MFC dll's. In fact I have Visual Studio 2003 installed on the box. However my mfc42.dll is different than the size stated on that link. In fact the download is a different size that what is stated on the link. -- http://mail.python.org/mailman/l

Re: Dectecting dir changes

2005-12-15 Thread chuck
Thanks, I am aware of it. I may pick it up, but in reviewing it on Amazon and at the bookstore I've noted that it does not touch on FTP server stuff or how to grok the framework in general. -- http://mail.python.org/mailman/listinfo/python-list

Python IDE (was: PythonWin troubleshooting)

2005-12-15 Thread chuck
Apparently not too many people use or are interested in PythonWin. I'm giving up on it. It used to work pretty good. I'm lucky that I have found PyScripter (http://www.mmm-experts.com/) a python IDE for the windows platform which is much more stable and has more features that PythonWin. If you

Re: Which Python web framework is most like Ruby on Rails?

2005-12-15 Thread chuck
> People keep talking about Python's wealth of web frameworks as if it > were a bad thing. I disagree somewhat. While variety and choice are nice, sometimes having too many choices may inhibit people from trying the language because they don't know where to start in terms of framworks. Maybe I'm

Re: Which Python web framework is most like Ruby on Rails?

2005-12-16 Thread chuck
> I did a fairly thorough investigation of web frameworks that let us > write Python (we didn't care what the framework was written in; merely > that it interfaced with Python) for one of the systems I've built this > year. I wouldn't call the evaluation of web frameworks a problem - we > met our s

Re: Which Python web framework is most like Ruby on Rails?

2005-12-16 Thread chuck
> Let's just note that sturgeon's law applies to all programmers, and > let it go at that. I'll get back to this. fine > And thank you. you are welcome > I'm not a big fan of popularity for the sake of popularity. neither am I > "it would make Python more popular" isn't an adequate > justifica

Re: Python IDE (was: PythonWin troubleshooting)

2005-12-17 Thread chuck
Yeah but is it 'fast'. What is Komodo written in? -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonWin troubleshooting

2005-12-18 Thread chuck
Oh my gosh - thank you, thank. I must have had thousands of these entries in my registry. I've blown it away and at least at initial testing, appears to have solved the problem. I should have gone poking around the the bug database. Next time I will. -- http://mail.python.org/mailman/listinfo

advanced module/import/namespace idioms

2005-12-31 Thread chuck
Every once in awhile I run across a python module that might have statements like: for c in sys.modules[module].__dict__.values(): or import __builtin__ __builtin__.__dict__['_'] = lambda x: x Snurf also does some strange import trickory (see http://bdash.net.nz/svn/snurf/trunk/snurf/dataStore/

logging module question

2006-01-23 Thread chuck
I want to create two different loggers so that users see one output (e.g. no exception/stack traces) and others (e.g support staff) that does see stack traces via email. The code below is close but I still get console output on the email logger from the "root" logger. How do I get rid of it? im

Re: logging module question

2006-01-23 Thread chuck
Ok, so I've figured this out (see below), mail = logging.handlers.SMTPHandler('mail.vw.com', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]', 'Data Processing Error at location: %s' %

Compile ui files from within Eclipse

2006-03-06 Thread Chuck
Hello, I am new to the Eclipse IDE. I am using pydev plug-in to create python projects. Is there a way to create custom builders to build certain types of files? I have done this with other IDE's but can't seem to figure it out with Eclipse. I am trying to build *.ui files of a pydev project t

Ron Grossi The Troll Is Back

2005-05-11 Thread Chuck
Abuse reports to [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Python Interest group in Minneapolis/StPaul?

2005-05-18 Thread Chuck
Just curious if there is a Python Interest Group in The TwinCities. Thanks Chuck -- http://mail.python.org/mailman/listinfo/python-list

ReportLab - Frames - Images

2007-01-15 Thread Chuck
next line. Please help. Chuck *** CUT *** from reportlab.pdfgen import * from reportlab.platypus import * from reportlab.lib.units import inch from reportlab.platypus import SimpleDocTemplate from reportlab.platypus import flowables from reportlab.lib.enums i

Re: ReportLab - Frames - Images

2007-01-15 Thread Chuck
Thanks for the help. I made you changes but it still puts the picture above the text, not beside the text. I also found a user group at http://news.gmane.org/gmane.comp.python.reportlab.user . It may be the same. I have now posted there. Chuck -- http://mail.python.org/mailman/listinfo/python

If you were given a mall would you take it?

2006-05-18 Thread Chuck
http://www.telebay.com/esolutions/opp.html -- http://mail.python.org/mailman/listinfo/python-list

What does self.grid() do?

2009-03-03 Thread chuck
I am learning python right now. In the lesson on tkinter I see this piece of code from Tkinter import * class MyFrame(Frame): def __init__(self): Frame.__init__(self) self.grid() My question is what does "self.grid()" do? I understand that the grid method registers widgets wit

Re: What does self.grid() do?

2009-03-04 Thread chuck
On Mar 3, 10:40 pm, Marc 'BlackJack' Rintsch wrote: > On Tue, 03 Mar 2009 18:06:56 -0800, chuck wrote: > > I am learning python right now.  In the lesson on tkinter I see this > > piece of code > > > from Tkinter import * > > > class MyFrame(Frame):

Re: What does self.grid() do?

2009-03-10 Thread chuck
On Mar 5, 3:03 am, Marc 'BlackJack' Rintsch wrote: > On Wed, 04 Mar 2009 09:04:50 -0800, chuck wrote: > > On Mar 3, 10:40 pm, Marc 'BlackJack' Rintsch wrote: > >> On Tue, 03 Mar 2009 18:06:56 -0800, chuck wrote: > >> > I am learning pyth

Re: Compile ui files from within Eclipse

2006-03-07 Thread Chuck
Well, I tried that but there isnt a way to get the filename without the extension. For example, pyuic -o MyClass.py MyClass.ui Using the variables in the external tool config I dont see a way to get just the filename in order to create an output filename and pass it into the pyoic. -- http://ma

Re: Compile ui files from within Eclipse

2006-03-07 Thread Chuck
I guess I could prompt for input but was hoping to find a better way. -- http://mail.python.org/mailman/listinfo/python-list

unable to compile Python 2.6.4 on AIX using gcc

2009-11-03 Thread chuck
Hello -- I am trying to compile Python 2.6.4 on a Power 5 PC with AIX 5.3. Here are the settings: export OBJECT_MODE=64 export AR="ar -X64" export MAKE=/usr/bin/gmake export CC="gcc" export CFLAGS="-maix64 -O2 -g -mcpu=power5" export LDFLAGS="-L/usr/lib64 -L/opt/freeware/lib64 -L/opt/freeware/

Re: unable to compile Python 2.6.4 on AIX using gcc

2009-11-04 Thread chuck
ersions of python on that machine. I would appreciate any help. Do I need to set the exec_prefix as well? Thanks. Mark Dickinson wrote: On Nov 3, 10:40 pm, chuck wrote: Hello -- I am trying to compile Python 2.6.4 on a Power 5 PC with AIX 5.3. Here are the settings: Take a look at: http:/

Podcast catcher in Python

2009-09-11 Thread Chuck
3, or whatever, podcast? Do I need to somehow parse the XML document? I really don't know. Any ideas? Thanks! Chuck -- http://mail.python.org/mailman/listinfo/python-list

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
Also, if anyone could recommend some books that cover this type of programming, I would greatly appreciate it. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 10:30 am, Falcolas wrote: > On Sep 11, 8:20 am, Chuck wrote: > > > Hi all, > > > I would like to code a simple podcast catcher in Python merely as an > > exercise in internet programming.  I am a CS student and new to > > Python, but understand Java

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 12:56 pm, Chuck wrote: > On Sep 11, 10:30 am, Falcolas wrote: > > > > > > > On Sep 11, 8:20 am, Chuck wrote: > > > > Hi all, > > > > I would like to code a simple podcast catcher in Python merely as an > > > exercise in interne

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 1:09 pm, Chuck wrote: > On Sep 11, 12:56 pm, Chuck wrote: > > > > > > > On Sep 11, 10:30 am, Falcolas wrote: > > > > On Sep 11, 8:20 am, Chuck wrote: > > > > > Hi all, > > > > > I would like to code a simple p

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 8:32 pm, Chris Rebert wrote: > On Fri, Sep 11, 2009 at 11:09 AM, Chuck wrote: > > On Sep 11, 12:56 pm, Chuck wrote: > >> On Sep 11, 10:30 am, Falcolas wrote: > >> > On Sep 11, 8:20 am, Chuck wrote: > > >> > > Hi all, > > &

Re: Podcast catcher in Python

2009-09-11 Thread Chuck
On Sep 11, 9:07 pm, Chuck wrote: > On Sep 11, 8:32 pm, Chris Rebert wrote: > > > > > > > On Fri, Sep 11, 2009 at 11:09 AM, Chuck wrote: > > > On Sep 11, 12:56 pm, Chuck wrote: > > >> On Sep 11, 10:30 am, Falcolas wrote: > > >>

Re: Podcast catcher in Python

2009-09-12 Thread Chuck
On Sep 11, 9:54 pm, Chris Rebert wrote: > On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > Does anyone know how I should read/download the mp3 file, and how I > > should write/save it so that I can play it on a media player such as > > Windoze media player?  Excuse my

Re: Podcast catcher in Python

2009-09-18 Thread Chuck
On Sep 12, 3:37 pm, Chuck wrote: > On Sep 11, 9:54 pm, Chris Rebert wrote: > > > On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > > Does anyone know how I should read/download the mp3 file, and how I > > > should write/save it so that I can play it on a media play

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
On Sep 19, 7:40 am, Dave Angel wrote: > Chuck wrote: > > On Sep 12, 3:37 pm, Chuck wrote: > > >> On Sep 11, 9:54 pm, Chris Rebert wrote: > > >>> On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > >>>> Does anyone know how I should read/dow

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
On Sep 19, 7:40 am, Dave Angel wrote: > Chuck wrote: > > On Sep 12, 3:37 pm, Chuck wrote: > > >> On Sep 11, 9:54 pm, Chris Rebert wrote: > > >>> On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > >>>> Does anyone know how I should read/dow

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
On Sep 19, 7:40 am, Dave Angel wrote: > Chuck wrote: > > On Sep 12, 3:37 pm, Chuck wrote: > > >> On Sep 11, 9:54 pm, Chris Rebert wrote: > > >>> On Fri, Sep 11, 2009 at 7:43 PM, Chuck wrote: > > >>>> Does anyone know how I should read/dow

Re: Podcast catcher in Python

2009-09-19 Thread Chuck
Never mind, guys I finally got things working. Woo hoo -- http://mail.python.org/mailman/listinfo/python-list

Using plotly and getting "This site can't be reached"

2021-01-16 Thread Chuck Untulis
The Chrome browser on the machine shows "127.0.0.1 refused to connect" for various urls of the form 127.0.0.1:x where x are numbers like 64981, 65029,... About once in 20-40 attempts, the graphs appear. I ran the same code on a different machine and it created the plots in the Chrome brows

Stop feeding the Ferrous Cranus troll

2013-11-11 Thread Chuck Quast
http://www.politicsforum.org/images/flame_warriors/flame_62.php why are any of you replying? -- https://mail.python.org/mailman/listinfo/python-list

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Chuck Quast
On Thursday, November 14, 2013 3:35:56 AM UTC+7, bob gailer wrote: > I joined a week or so ago. > > > > The subject line was copied from the description of comp.lang.python aka > > python-list@python.org. > > > > I am very disappointed to see so much energy and bandwidth going to > > conv

Re: Finding skilled pythonistas for micro-jobs?

2006-11-18 Thread Chuck Rhode
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

PythonTidy

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

Re: PythonTidy

2006-11-30 Thread Chuck Rhode
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

Re: PythonTidy

2006-11-30 Thread Chuck Rhode
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

Re: PythonTidy

2006-12-02 Thread Chuck Rhode
, 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

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 ni

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
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

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, She

Re: PythonTidy

2006-12-06 Thread Chuck Rhode
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

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, W

Re: Python 3000: Standard API for archives?

2007-06-04 Thread Chuck Rhode
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

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, sim

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Chuck Rhode
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

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 -- ..

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

2007-03-23 Thread Chuck Rhode
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

Re: nonstandard XML character entities?

2007-04-14 Thread Chuck Rhode
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 ..

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): >

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 .. Wea

PythonTidy 1.10

2007-01-18 Thread Chuck Rhode
/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/

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. -- h

  1   2   >