Developement Question?

2010-04-01 Thread Wayne
My town office uses Microsoft operating system. They have a proprietary accounting system that uses excel for their accounting reports. I would like to read these report and reproduce the report so that the report can be seen on the web. I was thinking about using xlrd and xlwt along with some sort

Re: object.enable() anti-pattern

2013-05-09 Thread Wayne Werner
ake sure that when I do this: thing = YourSuperAwesomeClass() thing.do_stuff() that I don't get some horrid stack trace ending with InvalidStateError: initialize() needs to be called before do_stuff() Or something worse. HTH, Wayne p.s. I'm interested in reading whatever i

Re: object.enable() anti-pattern

2013-05-12 Thread Wayne Werner
On Fri, 10 May 2013, Robert Kern wrote: On 2013-05-10 12:00, Steven D'Aprano wrote: But either way, that's fine. You've found an object where it does make sense to have an explicit "make it go" method: first one entity has permission to construct the object, but not to open the underlying file

Re: object.enable() anti-pattern

2013-05-12 Thread Wayne Werner
On Fri, 10 May 2013, Gregory Ewing wrote: Wayne Werner wrote: You don't ever want a class that has functions that need to be called in a certain order to *not* crash. That seems like an overly broad statement. What do you think the following should do? f = open("myfile.dat&q

Re: object.enable() anti-pattern

2013-05-13 Thread Wayne Werner
On Mon, 13 May 2013, Greg Ewing wrote: Wayne Werner wrote: On Fri, 10 May 2013, Gregory Ewing wrote: f = open("myfile.dat") f.close() data = f.read() To clarify - you don't want a class that has functions that need to be called in a certain order with *valid input*

Re: Determine actually given command line arguments

2013-05-15 Thread Wayne Werner
On Wed, 15 May 2013, Henry Leyh wrote: Yes, I was trying that and it sort of works with strings if I use something sufficiently improbable like "__UNSELECTED__" as default. But it gets difficult with boolean or even number arguments where you just may not have valid "improbable" defaults. You

Re: FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-28 Thread Wayne Werner
On Fri, 28 Jun 2013, 8 Dihedral wrote: KIND OF BORING TO SHOW HOW THE LISP PROGRAMMING WAS ASSIMULATED BY THE PYTHON COMMUNITY. OF COURSE PYTHON IS A GOOD LANGUAGE FOR DEVELOPING ARTIFICIAL INTELEGENT ROBOT PROGRAMS NOT SO BRAIN DAMAGES, OR SO SLAVERY AS C/C++ OR ASEMBLY PARTS. Best. Post

Re: FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-28 Thread Wayne Werner
On Fri, 28 Jun 2013, Joel Goldstick wrote: On Fri, Jun 28, 2013 at 2:52 PM, Wayne Werner wrote: On Fri, 28 Jun 2013, 8 Dihedral wrote: KIND OF BORING TO SHOW HOW THE LISP PROGRAMMING WAS ASSIMULATED BY THE PYTHON COMMUNITY. OF COURSE PYTHON IS

Re: DOS or not? [was Re: How to tell Script to use pythonw.exe ?]

2013-07-04 Thread Wayne Werner
On Wed, 3 Jul 2013, Dennis Lee Bieber wrote: Consider that the Powershell default is to /prevent/ execution of script files unless some security settings have been changed; even local script files need to be "signed" to be executed. Protip: No they don't - wrap it in a cmd/bat file and

Re: Default scope of variables

2013-07-04 Thread Wayne Werner
On Thu, 4 Jul 2013, Steven D'Aprano wrote: [1] Based on empirical evidence that Python supports names with length at least up to one million characters long, and assuming that each character can be an ASCII letter, digit or underscore. The specification *does* state unlimited length: http://

Re: Default scope of variables

2013-07-07 Thread Wayne Werner
for some error handling, or write your own context manager class. HTH, Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-12 Thread Wayne Werner
On Thu, 4 Jul 2013, Νίκος Γκρ33κ wrote: Στις 4/7/2013 6:10 μμ, ο/η MRAB έγραψε: What do you mean "I don't know how to catch the exception with OSError"? You've tried "except socket.gaierror" and "except socket.herror", well just write "except OSError" instead! try: host = socket.geth

UTF-EBCDIC encoding?

2013-07-12 Thread Wayne Werner
, Wayne [1]: https://en.wikipedia.org/wiki/UTF-EBCDIC -- http://mail.python.org/mailman/listinfo/python-list

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Wayne Werner
On Sat, 13 Jul 2013, Νικόλας wrote: But it works for me, How can it be impossible and worked for me at the same time? 2 + 2 = 4 2 + 6 = 8??? Why can't I make 2 and 6 equal 4? It worked for 2, so I know it's not impossible! I don't care what everyone says, I was able to make one case work so ob

Re: Ideal way to separate GUI and logic?

2013-07-13 Thread Wayne Werner
On Sat, 13 Jul 2013, fronag...@gmail.com wrote: Well, I'm a newcome to Python, but I'm developing a program with a GUI in tkinter, and I'm wondering what is the best, 'most pythonic' way of doing this? I could, obviously, write a monolithic block of code. True, you could, but don't do that.

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Wayne Werner
On Sat, 13 Jul 2013, Νικόλας wrote: But then how do you explain the fact that http://www.maxmind.com/en/geoip_demo pinpointed Thessaloníki and not Athens and for 2 friends of mine that use the same ISP as me but live in different cities also accurately identified their locations too? If you

Re: Dihedral

2013-07-15 Thread Wayne Werner
On Mon, 15 Jul 2013, Devyn Collier Johnson wrote: On 07/15/2013 08:36 AM, Steven D'Aprano wrote: On Mon, 15 Jul 2013 06:06:06 -0400, Devyn Collier Johnson wrote: On 07/14/2013 02:17 PM, 8 Dihedral wrote: [...] Do we want volunteers to speed up search operations in the string module in

Re: UTF-EBCDIC encoding?

2013-07-15 Thread Wayne Werner
On Mon, 15 Jul 2013, Kev Dwyer wrote: Joel Goldstick wrote: On Fri, Jul 12, 2013 at 3:12 PM, Skip Montanaro wrote: I can't help you. I'm astonished. Trying to imagine the work environment where this technology would be necessary http://www.iseriespython.com/app/ispMain.py/Start?job=Ho

Re: Newbie: Python 3 and web applications?

2013-07-30 Thread Wayne Werner
On Fri, 26 Jul 2013, Rui Maciel wrote: I'm currently learning Python, and I've been focusing on Python3. To try to kill two birds with one stone, I would also like to learn the basics of writing small web applications. These web applications don't need to do much more than provide an interface

Re: Algorithms using Python?

2012-09-26 Thread Wayne Werner
deal with the lower level algorithms. Which makes *me* happy :) -Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: One of my joomla webpages has been hacked. Please help.

2012-09-26 Thread Wayne Werner
l metrics? -Wayne-- http://mail.python.org/mailman/listinfo/python-list

Re: One of my joomla webpages has been hacked. Please help.

2012-09-26 Thread Wayne Werner
On Sun, 23 Sep 2012, Dwight Hutto wrote: We're the borg. Oh, so you *are* a robot. That does explain your posts ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Who's laughing at my responses, and who's not?

2012-09-26 Thread Wayne Werner
ge nitwits annoy most people who are interested in talking about Python code, and not who did what to who. -Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: Article on the future of Python

2012-09-27 Thread Wayne Werner
L for you - you just define the ORM. (Hey look! A Python module!) My $0.02 -Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: print or write on a text file ?

2012-09-28 Thread Wayne Werner
h the print function: values = [1,2,3,4] print(*values, sep='\n', file=outfile) I'll leave it to you to experiment. HTH, Wayne -- http://mail.python.org/mailman/listinfo/python-list

Posix call (execve) breaks mercurial?

2012-10-11 Thread Wayne Werner
n reading the manpages, but nothing seems to pop out at me as "hey, this should/shouldn't work!". Does anyone know what's going on here, or where I should go for more help? Thanks, Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: Posix call (execve) breaks mercurial?

2012-10-11 Thread Wayne Werner
On Thu, 11 Oct 2012, Wayne Werner wrote: So here's where things got weird. I could call `subprocess.check_output(['hg', 'root'])`, and things worked just fine. But when I added the env parameter, I got the untrusted issues. So if I did: import os, subp

Re: Why Doesn't This MySQL Statement Execute?

2012-12-18 Thread Wayne Werner
On Tue, 18 Dec 2012, Tom Borkin wrote: Hi; I have this test code:       if i_id == "1186":   sql = 'insert into interactions values(Null, %s, "Call Back", "%s")' % (i_id, date_plus_2)   cursor.execute(sql)   db.commit()   print sql It prints the sql statement, but it doesn't exe

Re: context aware execution

2012-12-19 Thread Wayne Werner
On Thu, 20 Dec 2012, Chris Angelico wrote: On Thu, Dec 20, 2012 at 2:57 AM, Bart Thate wrote: I want in a function or method determine the context of my caller and adapt the functionality accordingly. First off, please don't! Your code will be *extremely* confusing. Usually, the best way to

Re: New to python, do I need an IDE or is vim still good enough?

2013-01-02 Thread Wayne Werner
On Wed, 2 Jan 2013, Michael Torrie wrote: On 01/01/2013 11:43 AM, Mitya Sirenef wrote: Therefore, deleting 3 WORDs is 3daW (mnemonic: del a WORD 3 times). Interesting. I typically use just d3w. 3daW seems to delete 3 lines for me, the same result as d3. Another favorite command is d or c fo

Re: New to python, do I need an IDE or is vim still good enough?

2013-01-02 Thread Wayne Werner
On Tue, 1 Jan 2013, Mitya Sirenef wrote: On 01/01/2013 02:02 PM, Roy Smith wrote: That's true with Vim, as well, especially when I'm making a custom mapping and I can NEVER remember what some combination does, even though if I actually needed to use it, it pops right out, so to find out, I have

Re: New to python, do I need an IDE or is vim still good enough?

2013-01-02 Thread Wayne Werner
On Tue, 1 Jan 2013, Ramchandra Apte wrote: On Friday, 28 December 2012 01:31:16 UTC+5:30, mogul wrote: 'Aloha! I'm new to python, got 10-20 years perl and C experience, all gained on unix alike machines hacking happily in vi, and later on in vim. Now it's python, and currently mainly on

Re: New to python, do I need an IDE or is vim still good enough?

2013-01-06 Thread Wayne Werner
On Fri, 4 Jan 2013, Roy Smith wrote: In article , Cameron Simpson wrote: On 01/04/13 01:34, Anssi Saari wrote: | Just curious since I read the same thing in a programming book recently | (21st century C). So what's the greatness that terminal multiplexors | offer over tabbed terminals? Especi

Re: The best, friendly and easy use Python Editor.

2013-01-31 Thread Wayne Werner
On Thu, 24 Jan 2013, Tim Chase wrote: On 01/24/13 13:34, Leonard, Arah wrote: All true (especially the holy wars bit!). OP didn't (as far as I can see) even say which OS he is using. Anyway, my suggestion is generally that people use the editor with which they are already comfortable. Sound a

Re: newbie question

2011-04-01 Thread Wayne Brehaut
On Fri, 1 Apr 2011 21:52:24 +0200, Karl <8213543ggxnvjx...@kabelmail.de> wrote: >Hello, > >one beginner question: > >aList = [0, 1, 2, 3, 4] >bList = [2*i for i in aList] >sum = 0 >for j in bList: > sum = sum + bList[j] >print j > >0 >2 >4 >IndexError: 'list index out of range' >Why is j

Re: Bloody rubbish

2021-05-06 Thread Wayne Lodahl
On 5/6/21 6:11 AM, Mr Flibble wrote: > Python is slow and significant whitespace is patently absurd. > > Bloody rubbish, it's all bloody rubbish. > > Message ends. > > /Flibble > Machine language is so much simpler, and you can code with just a hexpad. -- https://mail.python.org/mailman/listin

What is "self"?

2005-09-22 Thread Wayne Sutton
OK, I'm a newbie... I'm trying to learn Python & have had fun with it so far. But I'm having trouble following the many code examples with the object "self." Can someone explain this usage in plain english? Thanks, Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: Deep vs. shallow copy?

2014-03-12 Thread Wayne Brehaut
On 12 Mar 2014 15:29:59 GMT, Alex van der Spek wrote: >On Wed, 12 Mar 2014 10:00:09 -0500, Zachary Ware wrote: > >> On Wed, Mar 12, 2014 at 9:25 AM, Alex van der Spek >> wrote: === 8< === >Having been taught programming in Algol60 Python still defeats me at times! >Particularly since Algol60 w

Re: PEP8 79 char max

2013-08-03 Thread Wayne Werner
On Wed, 31 Jul 2013, Joshua Landau wrote: To explain, I tend to take the "HTML" form of alignment by wrapping: open stuff stuff stuff close to open     stuff     stuff     stuff close Depending on how much 'stuff' I have, I, for one, prefer a third: open stuff stuff stuff clo

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-08-03 Thread Wayne Werner
On Thu, 1 Aug 2013, Gilles wrote: On Wed, 24 Jul 2013 10:38:52 -0400, Kevin Walzer wrote: Thanks. hMailServer was one of the apps I checked, and I was just making sure there weren't something simpler, considering my needs, ideally something like Mongoose MTA. Have you checked Kenneth Rietz's

Re: Does Python 'enable' poke and hope programming?

2013-08-03 Thread Wayne Werner
On Thu, 1 Aug 2013, CM wrote: (My subject line is meant to be tongue and cheek inflammatory) I've been thinking about why programming for me often feels like ice skating uphill. I think part of the problem, maybe the biggest part, is what now strikes me as a Very Bad Habit, which is "poke an

Re: Logging help

2013-08-03 Thread Wayne Werner
On Thu, 1 Aug 2013, Joseph L. Casale wrote: I have a couple handlers applied to a logger for a file and console destination. Default levels have been set for each, INFO+ to console and anything to file. How does one prevent logging.exception from going to a specific handler when it falls within

Re: Python performance

2013-08-03 Thread Wayne Werner
On Fri, 2 Aug 2013, Schneider wrote: Hi list, I have to write a small SMTP-Relay script (+ some statistic infos) and I'm wondering, if this can be done in python (in terms of performance, of course not in terms of possibility ;) ). It has to handle around 2000 mails per hour for at least 8h

Re: Moving to Python for web

2013-09-05 Thread Wayne Werner
On Thu, 29 Aug 2013, Andreas Ecaz wrote: I've decided to go with Flask! It's now running on UWSGI with NGINX. Hopefully I can get some stuff done :) @Chris “Kwpolska” Warrick I just don't like the big frameworks, for me there is too much magic going on. I'm a huge fan of Flask - I also fi

Re: print function and unwanted trailing space

2013-09-11 Thread Wayne Werner
On Sat, 31 Aug 2013, candide wrote: # - for i in range(5): print(i, end=' ') # <- The last ' ' is unwanted print() # - Then why not define end='' instead? -W -- https://mail.python.org/mailman/listinfo/python-list

Re: Language design

2013-09-11 Thread Wayne Werner
On Tue, 10 Sep 2013, Ben Finney wrote: The sooner we replace the erroneous “text is ASCII” in the common wisdom with “text is Unicode”, the better. I'd actually argue that it's better to replace the common wisdom with "text is binary data, and we should normally look at that text through U

Re: better and user friendly IDE recommended?

2013-09-12 Thread Wayne Werner
On Thu, 12 Sep 2013, Ben Finney wrote: Better to learn these once, in a single powerful tool that can be maintained independent of any one vendor for as long as its community is interested. And if you're a developer, even a community of one is enough ;) -W -- https://mail.python.org/mailman/li

Re: JUST GOT HACKED

2013-10-04 Thread Wayne Werner
On Tuesday, October 1, 2013 5:06:38 PM UTC-5, Ben Finney wrote: > This is an unmoderated forum, so we have occasional spates of persistent > > nuisances, and those who respond with the maturity level and impulse > > control of an average six-year-old. Hey! That's so degrading! I don't know many

Re: JUST GOT HACKED

2013-10-04 Thread Wayne Werner
On Wednesday, October 2, 2013 5:43:32 AM UTC-5, Ferrous Cranus wrote: > > I only re-ask the same thing if: > > > 1. Di not understood what was provided or proposed to me as being a solution > > 2. Still feel that that the solution provided to me doesn't meet my > needs and should have been re

Re: Writting Dialog to enter preset items from a combo list

2015-06-12 Thread Wayne Norman
ok I have wxFormBuilder as well and so could use some help with working on my project I would explain exactally what I am doing to and one who wishes to aid me with this. for now I will has it has to do with a minecraft mod if you would like to known more I will put more here -- https://mail.p

Re: Extracting and summing student scores from a JSON file using Python 2.7.10

2015-11-09 Thread wayne . wickson
On Monday, 9 November 2015 22:27:40 UTC-5, Denis McMahon wrote: > On Mon, 09 Nov 2015 15:52:45 -0800, Bernie Lazlo wrote: > > > This should be a simple problem but I have wasted hours on it. Any help > > would be appreciated. [I have taken my code back to almost the very > > beginning.] > > =

Re: Jinja2 installation help

2013-02-08 Thread Wayne Werner
ll it, and what to do step by step? I am using the lastest Python version 3.3 . Do you have easy_install or pip installed? If you do, $ pip install jinja2 And that's it! HTH, Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: "monty" < "python"

2013-03-21 Thread Wayne Werner
On Thu, 21 Mar 2013, Roy Smith wrote: In article , Terry Reedy wrote: On 3/20/2013 10:03 AM, franzferdinand wrote: Ok, thanks everybody! Threads are like the Sorcerer's Apprentice. You can start 'em, but you cannot stop 'em ;-) Of course you can stop threads. Just call _exit(). No more

Re: Problems with sockets and threads

2013-04-11 Thread Wayne Werner
On Thu, 11 Apr 2013, Dexter Deejay wrote: When i try to run this code and to connect to server (server is written in java that part of code is ok) everything stalls. Thread that i created here occupies processor all the time and GUI freezes. It's supposed to be waiting for message from server

Re: Problems with sockets and threads

2013-04-11 Thread Wayne Werner
On Thu, 11 Apr 2013, Dexter Deejay wrote: Yeah, that seems to be problem. Waiting for message is in theory infinite. But why doesn't this separate thread leave processor while it is sleeping? As far as I've been able to tell? Magic ;) But I haven't really dug into it. If you're really doing

Re: dynamic forms generation

2013-04-18 Thread Wayne Werner
OST']) def basic(): form = MyBasicForm() if form.validate_on_submit(): do_the_needful(form.some_text.data) return redirect(url_for('main')) return render_template('basic_form.html', form=form) Obviously a really basic example. Check out Flask here:

Re: anyone know pandas ? Don't understand error: NotImplementedError...

2013-04-18 Thread Wayne Werner
ntedError() Which is terribly unhelpful. HTH, Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: Encoding NaN in JSON

2013-04-18 Thread Wayne Werner
On Wed, 17 Apr 2013, Miki Tebeka wrote: I'm trying to find a way to have json emit float('NaN') as 'N/A'. No. There is no way to represent NaN in JSON. It's simply not part of the specification. I know that. I'm trying to emit the *string* 'N/A' for every NaN. Why not use `null` instead? I

Re: Encoding NaN in JSON

2013-04-22 Thread Wayne Werner
back into a floating point NaN object. I infer that you were proposing a JSON null value and not the string 'null'? Not me, Wayne Werner proposed to use the JSON null value. I parsed the backticks (`) used by him as a way to delimit it from text and not as a string. That was, in

Re: Python work in UK

2006-11-24 Thread Steven Wayne
On Thu, 23 Nov 2006 19:28:26 +, Will McGugan <[EMAIL PROTECTED]> wrote: > Hi, > > I'd love to work in Python, for the sake of my blood pressure, but there > doesnt seem to be that many jobs that look for Python as the main skill. > I use Python at work from time to time, and occasiona

Re: 2**2**2**2**2 wrong? Bug?

2007-07-13 Thread Wayne Brehaut
On Mon, 09 Jul 2007 23:51:25 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >On Jul 9, 11:42?pm, Paul McGuire <[EMAIL PROTECTED]> wrote: >> On Jul 9, 11:21 pm, "Jim Langston" <[EMAIL PROTECTED]> wrote:> In Python 2.5 >> on intel, the statement >> > 2**2**2**2**2 >> > evaluates to>>> 2**2**

Re: Understanding python functions - Instant Python tutorial

2007-07-13 Thread Wayne Brehaut
On Fri, 13 Jul 2007 18:49:06 +0200, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: >Wildemar Wildenburger wrote: >> x = [1, 2, 3] >> y = [1, 2, 3] >> id(x), id(y) >> x == y >> x is y >> >Ooops! > >Make that: > >x = [1, 2, 3] >y = [1, 2, 3] >id(x); id(y) >x == y >x is y > >(had to be a semicol

Re: 2**2**2**2**2 wrong? Bug?

2007-07-13 Thread Wayne Brehaut
On Wed, 11 Jul 2007 21:37:00 -0400, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > >"Evan Klitzke" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >| On 7/11/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >| > Just for curiosity: This helps to find the answer to the problem "Which >is

Re: 2**2**2**2**2 wrong? Bug?

2007-07-13 Thread Wayne Brehaut
On Fri, 13 Jul 2007 11:30:16 -0700, Paul McGuire <[EMAIL PROTECTED]> wrote: >On Jul 13, 1:20 pm, Wayne Brehaut <[EMAIL PROTECTED]> wrote: >> On Mon, 09 Jul 2007 23:51:25 -0700, "[EMAIL PROTECTED]" >> >> >> >> >> >> <[EMAIL PRO

Re: Can a low-level programmer learn OOP?

2007-07-13 Thread Wayne Brehaut
On Sat, 14 Jul 2007 06:01:56 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >Chris Carlen a écrit : >> Hi: >> >> From what I've read of OOP, I don't get it. I have also found some >> articles profoundly critical of OOP. I tend to relate to these articles. >> === 8< === >> >> Hence,

Re: A Python newbie ask a simple question

2007-07-13 Thread Wayne Brehaut
On Fri, 13 Jul 2007 14:51:52 -0400, "Jeff McNeil" <[EMAIL PROTECTED]> wrote: >The raw_input built-in returns a string. The '[0]' subscript returns >the first character in the user supplied response as strings support >indexing. > >[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin >Type "hel

Re: Understanding python functions - Instant Python tutorial

2007-07-13 Thread Wayne Brehaut
On Sat, 14 Jul 2007 03:18:43 +0200, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: >Wayne Brehaut wrote: >>> (had to be a semicolon there) >>> >> >> Not "had to be" since a discerning reader will note that the two >> values in

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread Wayne Brehaut
On Fri, 13 Jul 2007 20:37:04 -0400, Steve Holden <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> In article <[EMAIL PROTECTED]>, >> Chris Carlen <[EMAIL PROTECTED]> wrote: >>>From what I've read of OOP, I don't get it. >> >> For that matter, even using OOP a bit with C++ and Perl, I didn't get it >

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread Wayne Brehaut
On Sat, 14 Jul 2007 19:18:05 +0530, "Rustom Mody" <[EMAIL PROTECTED]> wrote: >On 7/14/07, Alex Martelli <[EMAIL PROTECTED]> wrote: >> >> OOP can be abused (particularly with deep or intricate inheritance >> structures). But the base concept is simple and clear: you can bundle >> state and behavio

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread Wayne Brehaut
On Sat, 14 Jul 2007 11:49:48 -0600, darren kirby <[EMAIL PROTECTED]> wrote: >quoth the Wayne Brehaut: > >> (I started with Royal McBee LGP 30 machine language (hex input) in >> 1958, and their ACT IV assembler later! Then FORTRAN IV in 1965. By >> 1967 I too was usin

Re: Can a low-level programmer learn OOP?

2007-07-15 Thread Wayne Brehaut
On Sun, 15 Jul 2007 07:47:20 -, [EMAIL PROTECTED] wrote: >On Jul 13, 3:20 pm, Wayne Brehaut <[EMAIL PROTECTED]> wrote: >> On Sat, 14 Jul 2007 06:01:56 +0200, Bruno Desthuilliers >> >> <[EMAIL PROTECTED]> wrote: >> >Chris Carlen a écrit : >> >

Re: 2**2**2**2**2 wrong? Bug?

2007-07-15 Thread Wayne Brehaut
On Fri, 13 Jul 2007 14:27:13 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >On Jul 13, 1:20 pm, Wayne Brehaut <[EMAIL PROTECTED]> wrote: >> On Mon, 09 Jul 2007 23:51:25 -0700, "[EMAIL PROTECTED]" >> >> >> >> >> >

Re: 2**2**2**2**2 wrong? Bug?

2007-07-15 Thread Wayne Brehaut
On Fri, 13 Jul 2007 14:32:03 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >On Jul 13, 2:52 pm, Wayne Brehaut <[EMAIL PROTECTED]> wrote: >> On Fri, 13 Jul 2007 11:30:16 -0700, Paul McGuire <[EMAIL PROTECTED]> >> wrote: >> >> >>

Re: 2**2**2**2**2 wrong? Bug?

2007-07-15 Thread Wayne Brehaut
On Sun, 15 Jul 2007 17:37:13 -0400, Steve Holden <[EMAIL PROTECTED]> wrote: >Wayne Brehaut wrote: >> On Fri, 13 Jul 2007 14:32:03 -0700, "[EMAIL PROTECTED]" >[...] >> But I digress (but only because provoked!)... >> >>>> [for purposes of t

Re: Can a low-level programmer learn OOP?

2007-07-16 Thread Wayne Brehaut
On Mon, 16 Jul 2007 10:10:05 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >Wayne Brehaut a écrit : >(snip) > > after Bruno made the >> claim: "OO is about machines - at least as conceveid by Alan Key, who >> invented the term and most of the concept.&q

Re: Can a low-level programmer learn OOP?

2007-07-16 Thread Wayne Brehaut
On Mon, 16 Jul 2007 09:55:35 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >Wayne Brehaut a écrit : >> On Sat, 14 Jul 2007 06:01:56 +0200, Bruno Desthuilliers >> <[EMAIL PROTECTED]> wrote: >> >>> Chris Carlen a écrit : >>>> Hi: >

Re: 2**2**2**2**2 wrong? Bug?

2007-07-16 Thread Wayne Brehaut
On Mon, 16 Jul 2007 08:51:31 +0200, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > "Wayne Brehaut" <[EMAIL PROTECTED]> wrote: > >> On Sun, 15 Jul 2007 17:37:13 -0400, Steve Holden <[EMAIL PROTECTED]> >> wrote: >> >> >

Re: How to optimise this code?

2007-08-21 Thread Wayne Brehaut
On Tue, 21 Aug 2007 21:56:18 +0200, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: >Christof Winter <[EMAIL PROTECTED]> writes: > >> To get rid of the if statements, replace __init__ function with: >> >> def __init__(self, tc): >> functionToCall = eval("self.testCase%s" % tc) > >Or functio

RE: Python 2.1 and Daylight saving time

2007-03-07 Thread Hammett, Wayne
the new DST 2007 changes. Thanks again, Wayne Hammett - MCSE Snr. Network Engineer 1214 Church Street Nashville, TN 37246 (615) 747-3092 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 1:41 PM To: Hammett, Wayne

Re: readline() - problem

2007-10-02 Thread Wayne Brehaut
On Tue, 02 Oct 2007 12:13:21 -, [EMAIL PROTECTED] wrote: >On 2 Pa , 13:39, Ben Finney <[EMAIL PROTECTED]> >wrote: >> [EMAIL PROTECTED] writes: >> > import string >> >> Why import 'string' if you're not using it? >> >> > f=open('/test/test.asc','r') >> > o=open('/test/out.asc','w') >> > for lin

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Wayne Brehaut
On Thu, 04 Oct 2007 04:12:04 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >J. Clifford Dyer a écrit : >> On Fri, Oct 05, 2007 at 04:11:07PM -, Grant Edwards wrote >> regarding Re: Python Magazine: Issue 1 Free!: >> >>> On 2007-10-05, Steve Holden <[EMAIL PROTECTED]> wrote: >>> >

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Wayne Brehaut
On Thu, 04 Oct 2007 04:52:13 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >Wayne Brehaut a écrit : >> On Thu, 04 Oct 2007 04:12:04 +0200, Bruno Desthuilliers >> <[EMAIL PROTECTED]> wrote: >> >> >>>J. Clifford Dyer a écrit : >(snip)

Is this a bug of the lambda function

2007-10-11 Thread Zhu Wayne
ion), I can get expected answer, otherwise the result is not unexpected. Could anybody give me a possible explanation to this? Does python use kind of pre-complie techinque to treat the lambda function? (like the macro in C or inline function in C++) Thanks in advance Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: linear programming in Python

2007-10-17 Thread Wayne Brehaut
rver has still available and got no hits on "linear programming", but didn't try just "LP" or similar. Good luck! Wayne >Thanks, > >Jorge Velasquez >PhD Student, Department of Ecology and Evolution at Stony Brook -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python book, new edition?

2007-01-12 Thread Steven Wayne
On Thu, 11 Jan 2007 16:42:34 -0600, Demel, Jeff <[EMAIL PROTECTED]> wrote: > John wrote: >>So what happens with google bots etc... Information provided >>in the email could be helpful to others that are NOT the original >> recipient. And what happens to the archive stuff? > > I will forw

Re: Learning Python book, new edition?

2007-01-12 Thread Steven Wayne
On 12 Jan 2007 11:06:29 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote: > Steven Wayne <[EMAIL PROTECTED]> wrote: > >> Don't take this the wrong way, but this isn't an email, it's a usenet >> posting. > > It is now, but it started as an ema

Re: Learning Python book, new edition?

2007-01-12 Thread Steven Wayne
On Fri, 12 Jan 2007 22:44:33 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Fri, 12 Jan 2007 04:50:21 -0600, Steven Wayne wrote: > > [snip stupid disclaimer and response to it] > >> Unlawful how? You've already given permission for an "

Re: LaTeX tutorial updated [OT]

2007-11-07 Thread Wayne Brehaut
On Wed, 07 Nov 2007 09:00:12 -0800, John DeRosa <[EMAIL PROTECTED]> wrote: >On Wed, 07 Nov 2007 16:23:56 +0900, Byung-Hee HWANG <[EMAIL PROTECTED]> >wrote: > >>On Wed, 2007-11-07 at 00:10 +, [EMAIL PROTECTED] wrote: >>> On Nov 6, 12:30 pm, Nicola Talbot <[EMAIL PROTECTED]> wrote: >>> > Hi, >>>

Re: Questions on Using Python to Teach Data Structures and Algorithms

2007-11-07 Thread Wayne Brehaut
On Thu, 28 Sep 2006 17:23:25 +0200, "Ramon Diaz-Uriarte" <[EMAIL PROTECTED]> wrote: >Going back to the original question, a related question: does anybody >know why there are so few books on data structures and algorithms that >use Python? > >I remember that, at least ~ 12 years ago there were man

Re: Questions on Using Python to Teach Data Structures and Algorithms

2007-11-07 Thread Wayne Brehaut
On Thu, 28 Sep 2006 17:32:06 +0200, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >Ramon Diaz-Uriarte wrote: > >> Going back to the original question, a related question: does anybody >> know why there are so few books on data structures and algorithms that >> use Python? > >Probably because Python has

Re: eof

2007-11-21 Thread Wayne Brehaut
Hi braver, On Wed, 21 Nov 2007 15:17:14 -0800 (PST), braver <[EMAIL PROTECTED]> wrote: >I'd like to check, for a filehandle f, that EOF has been reached on >it. What's the way to do it? I don't want to try/except on EOF, I >want to check, after I read a line, that now we're in the EOF state. I

Re: eof

2007-11-21 Thread Wayne Brehaut
On Wed, 21 Nov 2007 17:06:15 -0800 (PST), braver <[EMAIL PROTECTED]> wrote: >On Nov 22, 3:41 am, Wayne Brehaut <[EMAIL PROTECTED]> wrote: >> If you have PythonWin 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 >> 32 bit (Intel)] on win32.for example, using He

Re: JESUS in the QURAN

2007-12-10 Thread Wayne Brehaut
On Mon, 10 Dec 2007 11:20:49 -0800 (PST), aassime abdellatif <[EMAIL PROTECTED]> wrote: > 'And they devised, and God >devised, and God devised, and God is the best of divisors. Obvious, since God is One, and so He divides 1, and 0, and -1, and all integers both positive and negative (Peace Be Up

Re: J in the Q

2007-12-10 Thread Wayne Brehaut
On Mon, 10 Dec 2007 21:41:56 +0100, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >Wayne Brehaut a écrit : >(snip spam) >> Obvious, since God is One, and so He divides 1, and 0, and -1, and all >> integers both positive and negative (Peace Be Upon Them). >> >

Re: Update of Gnuplot.py

2008-01-09 Thread Wayne Brehaut
On Wed, 9 Jan 2008 03:43:38 -0800 (PST), Tom La Bone <[EMAIL PROTECTED]> wrote: > >Can someone suggest where to get a version of Gnuplot.py (for Windows) that >has been updated to use numpy? Or, is there another interface available to >use GnuPlot from Python? > >Thanks. > >Tom Gnuplot 1.7 uses

One Bug of Python 3.0

2009-01-15 Thread Wayne Huang
hen I run the client code,some error of parser raise. I found it is the matter of 'Content-Length' in the HTTP Response of CGIXMLRPCRequestHandler,it is a wrong number. I don't know how to handle the problem. Wait for your help. Wayne -- http://mail.python.org/mailman/listinfo/python-list

Re: Email Program

2009-03-02 Thread Wayne Cannon
The Twisted package (http://twistedmatrix.com/) has some examples of interacting with e-mail servers. Twisted supports interaction between asynchronous tasks. --Wayne J wrote: Is it possible to make a GUI email program in Python that stores emails, composes, ect? -- http://mail.python.org

Python open of c:\ path Problem

2008-08-23 Thread Wayne Watson
oblematic segment is just a hack of a similar statement which has the same problem and a much longer path. I suspect the problem is with the back slash. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)

Re: Program to compute and print 1000th prime number

2009-11-07 Thread Wayne Brehaut
On Sat, 7 Nov 2009 19:34:47 +0100, Andre Engels wrote: >On Sat, Nov 7, 2009 at 6:40 PM, Mensanator wrote: > >>> Tongue in cheek solution: >>> >>> import urllib2 >>> >>> url = 'http://primes.utm.edu/lists/small/1.txt' >>> primes = [] >>> for line in urllib2.urlopen(url).read().splitlines(): >

Re: Tutorials on Jinja

2009-06-25 Thread Wayne Brehaut
On Wed, 24 Jun 2009 11:46:55 -0700 (PDT), Saurabh wrote: >Hi All, > >I am trying to move my application on a MVC architecture and plan to >use Jinja for the same. Can anyone provide me with few quick links >that might help me to get started with Jinja? Perhaps the most useful link is: http://ww

  1   2   >