Re: Why do Perl programmers make more money than Python programmers

2013-05-07 Thread Walter Hurry
On Tue, 07 May 2013 23:32:55 +1000, Chris Angelico wrote: > On Tue, May 7, 2013 at 11:22 PM, jmfauth wrote: >> There are plenty of good reasons to use Python. There are also plenty >> of good reasons to not use (or now to drop) Python and to realize that >> if you wish to process text seriously,

Re: spilt question

2013-05-16 Thread Walter Hurry
On Thu, 16 May 2013 08:00:25 -0700, loial wrote: > I want to split a string so that I always return everything BEFORE the > LAST underscore > > HELLO_.lst # should return HELLO > HELLO_GOODBYE_.ls # should return HELLO_GOODBYE > > I have tried with rsplit but cannot get

Re: any cherypy powred sites I can check out?

2013-05-16 Thread Walter Hurry
On Thu, 16 May 2013 11:17:37 -0700, visphatesjava wrote: > anyone? Questions asked in that fashion stand little chance of eliciting helpful responses. -- http://mail.python.org/mailman/listinfo/python-list

Re: any cherypy powred sites I can check out?

2013-05-17 Thread Walter Hurry
On Fri, 17 May 2013 18:15:38 +0100, Mark Lawrence wrote: > On 17/05/2013 01:00, visphatesj...@gmail.com wrote: >> fuck straight off >> >> > I assume you're the author of "How to win friends and influence people"? There are very few posters to this NG in the Hurry bozo bin, but OP is now one. --

Re: any cherypy powred sites I can check out?

2013-05-19 Thread Walter Hurry
On Fri, 17 May 2013 11:48:19 +1000, Chris Angelico wrote: > (Caveat: I am not a Catholic, so I haven't much of a clue as to how > confession usually goes.) Forgive OP Father, for he has sinned... -- http://mail.python.org/mailman/listinfo/python-list

Re: How clean/elegant is Python's syntax?

2013-05-29 Thread Walter Hurry
On Thu, 30 May 2013 04:54:44 +1000, Chris Angelico wrote: > GUIs and databasing are two of the areas where I > think Python's standard library could stand to be improved a bit. > There are definitely some rough edges there. Dunno what you mean about "standard library", but I'm very happy with w

Re: Too many python installations. Should i remove them all and install the latest?

2013-06-03 Thread Walter Hurry
On Sun, 02 Jun 2013 14:41:45 +1000, Chris Angelico wrote: > Nikos just > needs to learn the skill of figuring out where his problems really are. > Between the keyboard and the chair, obv. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to work with data from a query using Python.

2013-06-07 Thread Walter Hurry
On Fri, 07 Jun 2013 14:24:30 -0400, Dave Angel wrote: > On 06/07/2013 01:44 PM, ethereal_r...@hotmail.com wrote: >> > >> >> rows = cur.fetchall() >> >> for row in rows: >> print row >> >> >> >> >> Now assume that fetchall would print the following: > > I doubt if fetchall(

Build Python 2.7.5 - Modules missing

2013-06-10 Thread Walter Hurry
On building Python 2.7.5 I got the following message: Python build finished, but the necessary bits to build these modules were not found: dl imageoplinuxaudiodev spwd sunaudiodev To find the necessary bits, look in setup.py in

Re: Build Python 2.7.5 - Modules missing

2013-06-11 Thread Walter Hurry
On Tue, 11 Jun 2013 16:18:58 -0500, Tony the Tiger wrote: > On Mon, 10 Jun 2013 17:51:25 +0000, Walter Hurry wrote: > >> On building Python 2.7.5 I got the following message: >> >> Python build finished, but the necessary bits to build these modules &

Re: A few questiosn about encoding

2013-06-14 Thread Walter Hurry
On Sat, 15 Jun 2013 03:03:02 +1000, Chris Angelico wrote: > Why do you sell web hosting services when you > have no clue how to provide them? > And why do you continue responding to this timewaster? Please, please just killfile him and let's all move on. -- http://mail.python.org/mailman/listin

Re: python adds an extra half space when reading from a string or list

2013-07-01 Thread Walter Hurry
On Mon, 01 Jul 2013 10:56:54 +0200, Antoon Pardon wrote: > Op 01-07-13 09:55, Νίκος schreef: >> Στις 1/7/2013 9:37 πμ, ο/η Antoon Pardon έγραψε: Remember that Nick is as much a human as all of us, he is bound to have his feelings hurt when so many people pick on him -- whether they

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Walter Hurry
On Tue, 02 Jul 2013 07:14:42 +, Steven D'Aprano wrote: > On Mon, 01 Jul 2013 21:34:42 -0700, rusi wrote: > >> 2. "I am killfiling you" is bullying behavior. It is worse than >> useless because a. The problem cases couldn't care a hoot b. Those who >> could contribute usefully are shut up c.

Re: The way to develope a graphical application to manage a Postgres database

2012-08-05 Thread Walter Hurry
On Thu, 02 Aug 2012 20:24:36 +0200, Csanyi Pal wrote: > I'm searching for a way to develope a Python graphical application for a > Postgresql database. I use wxGlade/wxPython to build the GUI, and then hand code the database access using psycopg2 into the generated application. Works very well f

Re: The way to develope a graphical application to manage a Postgres database

2012-08-05 Thread Walter Hurry
On Sun, 05 Aug 2012 17:58:46 +0200, Csanyi Pal wrote: > Well, I tried out many adviced ways but none of them works on my Debian > GNU/Linux testing/sid system. Always get some error in one of the part > of the software. > > Can you give a short tutorial for newbies how to start to develope with >

Re: [ANNC] pybotwar-0.8

2012-08-16 Thread Walter Hurry
On Thu, 16 Aug 2012 17:20:29 -0400, Terry Reedy wrote: > On 8/16/2012 11:40 AM, Ramchandra Apte wrote: > >> Look you are the only person complaining about top-posting. > > No he is not. Recheck all the the responses. > >> GMail uses top-posting by default. > > It only works if everyone does it

Re: Why doesn't Python remember the initial directory?

2012-08-20 Thread Walter Hurry
On Mon, 20 Aug 2012 13:14:02 +, Steven D'Aprano wrote: > On Mon, 20 Aug 2012 12:56:42 +0100, andrea crotti wrote: > >> In the specific case there is absolutely no use of os.chdir, since you >> can: >> - use absolute paths - things like subprocess.Popen accept a cwd >> argument - at worst you

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Walter Hurry
On Mon, 20 Aug 2012 19:12:05 +0200, Kwpolska wrote: > On Mon, Aug 20, 2012 at 3:31 PM, Ganesh Reddy K > wrote: >> Hi All, >> >> We are trying python 2.6 installation on an RHEL PC , >> >> whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 >> EST 2008 x86_64 x86_64 x86_64 GNU/Li

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Walter Hurry
On Mon, 20 Aug 2012 11:02:25 -0700, Emile van Sebille wrote: > On 8/20/2012 10:20 AM Walter Hurry said... >> On Mon, 20 Aug 2012 19:12:05 +0200, Kwpolska wrote: > > > >>> >Do you really need to compile python2.6? RHEL has packages for >>> >python, &g

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Walter Hurry
On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote: > Package dependencies. If the OP intends to install a package that > doesn't support other than 2.6, you install 2.6. It would be a pretty poor third party package which specified Python 2.6 exactly, rather than (say) "Python 2.6 or

Re: Objects in Python

2012-08-22 Thread Walter Hurry
On Wed, 22 Aug 2012 18:46:43 +0100, lipska the kat wrote: > Well I'm a beginner Then maybe you should read more and write less. -- http://mail.python.org/mailman/listinfo/python-list

Re: Filter versus comprehension (was Re: something about split()???)

2012-08-24 Thread Walter Hurry
On Fri, 24 Aug 2012 14:29:00 -0400, Dennis Lee Bieber wrote: > It appears to be a change Google made in the last month or two... My > hypothesis is that they are replacing hard EOL found in inbound NNTP > with an HTML , and then on outgoing replacing the with a pair of > NNTP line endings. In con

Re: Filter versus comprehension (was Re: something about split()???)

2012-08-24 Thread Walter Hurry
On Fri, 24 Aug 2012 17:56:47 -0400, Dennis Lee Bieber wrote: > On Fri, 24 Aug 2012 19:03:51 + (UTC), Walter Hurry > declaimed the following in > gmane.comp.python.general: > > >> Google Groups sucks. These are computer literate people here. Why don't >> t

Re: simple client data base

2012-09-03 Thread Walter Hurry
On Mon, 03 Sep 2012 18:03:27 +0200, Wolfgang Keller wrote: >> Hello all, I am learning to program in python. I have a need to make a >> program that can store, retrieve, add, and delete client data such as >> name, address, social, telephone number and similar information. This >> would be a small

Re: python docs search for 'print'

2012-09-05 Thread Walter Hurry
On Wed, 05 Sep 2012 15:03:16 -0400, Terry Reedy wrote: > On 9/5/2012 8:45 AM, Ramchandra Apte wrote: > These ever increasing extra blank lines with each quote are obnoxious. > Consider using a news reader with news.gmane.org instead of google crap. > Or snip heavily. +1. And the duplicated post

Re: simple client data base

2012-09-08 Thread Walter Hurry
On Sat, 08 Sep 2012 13:11:27 -0700, Paul Rubin wrote: > Mark R Rivet writes: >>>ones for a few dollars. You're reading about lists, tuples, and >>>dictionary data? Great, but other home accounting businesses have their >>>client databases automatically synced with their smart-phones and their >>>

Re: Guides for communicating with business accounting systems

2012-09-14 Thread Walter Hurry
On Fri, 14 Sep 2012 16:36:58 +1000, Chris Angelico wrote: > Actually I haven't used Postgres with Python yet. Should probably do > that at some point. But the MySQL bindings for Python aren't so awesome > they can't be matched by any other. I have found psycopg2 excellent in every respect. -- ht

Re: Obnoxious postings from Google Groups (was: datetime issue)

2012-09-21 Thread Walter Hurry
On Fri, 21 Sep 2012 15:07:09 +, Grant Edwards wrote: > I told my news client years ago to filter out anything posted from > Google Groups -- and I know I'm not alone. If one wants the best chance > of getting a question answered, using something other than Google Groups > is indeed a good ide

Re: Print Function

2012-09-22 Thread Walter Hurry
On Sat, 22 Sep 2012 01:26:43 +, Steven D'Aprano wrote: > On Fri, 21 Sep 2012 13:20:09 -0700, gengyangcai wrote: > >> I am currently using Python 3.2.3 . WHen I use the print function by >> typing print "Game Over" , it mentions " SyntaxError : invalid syntax >> ". Any ideas on what the prob

Re: technologies synergistic with Python

2012-09-22 Thread Walter Hurry
On Sat, 22 Sep 2012 10:58:38 -0700, Emile van Sebille wrote: > On 9/21/2012 2:59 PM Ethan Furman said... >> ...if my dream job is one that consists mostly of Python, and might >> allow telecommuting? > > Hi Ethan, > > I have an open position in my two man office I've tried to fill a couple > tim

Re: Article on the future of Python

2012-09-26 Thread Walter Hurry
On Wed, 26 Sep 2012 17:14:44 -0700, alex23 wrote: > On Sep 26, 10:17 pm, wxjmfa...@gmail.com wrote: >> Notice, I'm not a Unicode illiterate > > Any chance you could work on your usenet literacy and fix your double > posts? I have a better idea: Consign him to the same bin as Dwight Hutto and Di

Re: Article on the future of Python

2012-09-27 Thread Walter Hurry
On Fri, 28 Sep 2012 00:32:58 +1000, Chris Angelico wrote: > On Thu, Sep 27, 2012 at 11:59 PM, Grant Edwards > wrote: >> On 2012-09-27, Chris Angelico wrote: >>> On Thu, Sep 27, 2012 at 4:01 PM, Steven D'Aprano >>> wrote: >>> Given how Perl has slipped in the last decade or so, that would b

Re: OT Questions

2012-10-16 Thread Walter Hurry
On Tue, 16 Oct 2012 11:23:09 -0600, Ian Kelly wrote: > My theory for a while now has been that Mr. Hutto is probably an > enterprising teenager My theory for a while now has been that Mr. Hutto belongs in the bozo bin. -- http://mail.python.org/mailman/listinfo/python-list

Re: A desperate lunge for on-topic-ness

2012-10-20 Thread Walter Hurry
On Sat, 20 Oct 2012 14:18:47 +, Grant Edwards wrote: > True, but nobody prints source code out on paper do they? > > Seriously -- I can't remember the last time I printed souce code... I remember my first IT job - COBOL programming in the early 80's. The rule was that every time we delivere

Re: Preventing crap email from google?

2012-10-20 Thread Walter Hurry
On Sat, 20 Oct 2012 01:43:03 +0100, Mark Lawrence wrote: > Good morning/afternoon/evening all, > > Is there any possibility that we could find a way to prevent the double > spaced rubbish that comes from G$ infiltrating this ng/ml? For example, > does Python have anybody who works for G$ who cou

Re: A desperate lunge for on-topic-ness

2012-10-21 Thread Walter Hurry
On Sat, 20 Oct 2012 16:37:23 -0400, Roy Smith wrote: > sys.stderr.write("Error: Can't find the file 'settings.py' > in the directory containing %r.\nYou'll have to run django-profile.py, > passing it your settings module.\n(If the file settings.py does indeed > exist, it's causing an

Re: Preventing crap email from google?

2012-10-22 Thread Walter Hurry
On Mon, 22 Oct 2012 13:51:35 +1100, Ben Finney wrote: > Walter Hurry writes: > >> It is Google bloody Groups which is the problem. I should have plonked >> posts from there ages ago, and am about to remedy that omission. > > What narrowly-defined, precise filter rule

Re: Preventing crap email from google?

2012-10-22 Thread Walter Hurry
On Mon, 22 Oct 2012 14:35:58 +, HoneyMonster wrote: Sorry about the moniker on the above. I used it by accident - it's one I reserve for junk trapping. -- http://mail.python.org/mailman/listinfo/python-list

Re: Where are documentation for Gnome

2012-10-28 Thread Walter Hurry
On Sun, 28 Oct 2012 16:29:07 +, Mark Lawrence wrote: > On 13/10/2012 18:49, Santosh Kumar wrote: >> >> > Try your local garden centre. Or: The Burrow, Ottery St. Catchpole, Devon, England -- http://mail.python.org/mailman/listinfo/python-list

Re: Conversion of List of Tuples

2012-12-03 Thread Walter Hurry
On Mon, 03 Dec 2012 22:11:40 +, Steven D'Aprano wrote: > On Mon, 03 Dec 2012 13:14:19 -0800, subhabangalore wrote: > >> Thanks. But I am not getting the counter "5posts 0 views"...if >> moderator can please check the issue. > > What counter are you talking about? > > This is an email mailin

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

2012-12-27 Thread Walter Hurry
On Thu, 27 Dec 2012 12:01:16 -0800, 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 my kubuntu desktop. > > Do I really need a real I

Re: PyGreSQL 4.1 released

2013-01-03 Thread Walter Hurry
On Thu, 03 Jan 2013 09:04:16 -0500, D'Arcy J.M. Cain wrote: > --- > Release of PyGreSQL version 4.1 --- > > It has been a long time coming but PyGreSQL v4.1 has been released. > > It is available at: http://pygresql.org/files/PyGreSQL-4.1.t

Re: PyGreSQL 4.1 released

2013-01-03 Thread Walter Hurry
On Thu, 03 Jan 2013 13:07:40 -0500, D'Arcy J.M. Cain wrote: > On Thu, 3 Jan 2013 15:06:29 + (UTC) > Walter Hurry wrote: >> Sounds good. Thanks for your efforts. > > I wasn't alone but I accept your thanks on behalf of the team. > >> Does it offer adva

Re: psycopg2 cursor.execute CREATE TABLE issue

2013-01-06 Thread Walter Hurry
On Sun, 06 Jan 2013 16:44:47 -0500, Mitya Sirenef wrote: > On Sun 06 Jan 2013 04:38:29 PM EST, andydtay...@gmail.com wrote: >> Hi all, >> >> I'm trying to create a process which will create a new table and >> populate it. >> >> But something is preventing this from working, and I don't know enough

Re: RIse and fall of languages in 2012

2013-01-10 Thread Walter Hurry
On Thu, 10 Jan 2013 07:23:51 +, Steven D'Aprano wrote: > "In general-purpose scripting languages, Python continues to grow > slowly, JavaScript and Ruby are treading water, and Perl continues its > long decline. According to Google trends, the number of searches for > Perl is 19% of what it wa

Re: please i need explanation

2013-01-13 Thread Walter Hurry
On Sun, 13 Jan 2013 15:04:34 -0600, Tony the Tiger wrote: > On Fri, 11 Jan 2013 09:35:10 -0600, kwakukwatiah wrote: > >> >> >> >> >> def factorial(n): > > Right, another html junkie, on windoze, no doubt. X-Mailer: Microsoft Windows Live Mail 15.4.3508.1109 -- http://mail.python.org/mailm

Re: Vote tallying...

2013-01-19 Thread Walter Hurry
On Sat, 19 Jan 2013 00:12:25 -0500, Dennis Lee Bieber wrote: > On Sat, 19 Jan 2013 07:24:40 +1100, Ben Finney > declaimed the following in > gmane.comp.python.general: > > >> * MySQL's development has suffered under Sun, and become virtually >> moribund under Oracle. They operate as a closed

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

2013-01-24 Thread Walter Hurry
On Thu, 24 Jan 2013 22:10:21 +1100, Chris Angelico wrote: > On Thu, Jan 24, 2013 at 8:43 PM, Hazard Seventyfour > wrote: >> Hello, >> >> I new in this python and decided to learn more about it, so i can make >> an own script :), >> >> for all senior can you suggest me the best, friendly and easy

Re: MySQL - "create table" creates malfunctioning tables

2013-01-24 Thread Walter Hurry
On Fri, 25 Jan 2013 07:55:06 +0100, F.R. wrote: > The other day, for unfathomable reasons, I lost control over tables > which I create. There was no concurrent change of anything on the > machine, such as an update. So I have no suspect. Does the following > action log suggest any recommendation t

Re: Automation

2013-11-19 Thread Walter Hurry
On Tue, 19 Nov 2013 21:48:10 +1100, Chris Angelico wrote: > I guessed Scots for the second one because it > didn't look Welsh and it seemed plausible to get a mostly-English > paragraph with one Welsh name and one Scots word. The word is *Scottish*. I think that's what Mark was driving at. -- h

Re: Automation

2013-11-20 Thread Walter Hurry
On Thu, 21 Nov 2013 03:33:02 +1100, Chris Angelico wrote: > But the actual fake is Cerinabbin You might have included Woolloomooloo in the list! -- https://mail.python.org/mailman/listinfo/python-list

Re: How to determine whether client and server are on the same host

2013-11-26 Thread Walter Hurry
On Wed, 27 Nov 2013 09:56:13 +1100, Chris Angelico wrote: > On Wed, Nov 27, 2013 at 4:26 AM, Malte Forkel > wrote: >> Thanks for the explanation. I guess I was hoping that I could use some >> property of a connection created with telnetlib or its socket to find >> out whether it was actually a ho

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-28 Thread Walter Hurry
On Thu, 28 Nov 2013 10:08:30 -0500, Roy Smith wrote: > In article <34479463-b8a8-4417-9989-cd2936946...@googlegroups.com>, > Victor Hooi wrote: > >> cur.executemany("INSERT INTO foobar_foobar_files VALUES (?)", >> [[os.path.relpath(filename, foobar_input_folder)] >>

Re: Managing Google Groups headaches

2013-11-28 Thread Walter Hurry
On Thu, 28 Nov 2013 11:00:22 -0800, rusi wrote: > On Friday, November 29, 2013 12:07:29 AM UTC+5:30, rusi wrote: >> On Thursday, November 28, 2013 11:59:13 PM UTC+5:30, Michael Torrie >> wrote: >> > On 11/28/2013 10:23 AM, Ned Batchelder wrote: >> > > Funny, I thought the sentiment of many here wa

Re: Managing Google Groups headaches

2013-11-28 Thread Walter Hurry
On Thu, 28 Nov 2013 11:50:47 -0700, Michael Torrie wrote: > On 11/28/2013 11:37 AM, rusi wrote: >> Do you realize that that person was not using GG? > > I do but he was using usenet. > >> IOW we are unfortunately conflating two completely unrelated things: >> 1. GG has some technical problems wh

Re: Trouble with Multi-threading

2013-12-10 Thread Walter Hurry
On Tue, 10 Dec 2013 11:21:32 -0500, dan.rose wrote: > "PLEASE NOTE: The preceding information may be confidential or > privileged. It only should be used or disseminated for the purpose of > conducting business with Parker. If you are not an intended recipient, > please notify the sender by replyi

Re: Dictionary

2013-12-30 Thread Walter Hurry
On Mon, 30 Dec 2013 18:38:20 +, Bischoop wrote: > I have a txt file with some words, and need simply program that will > print me words containing provided letters. > > For example: > Type the letters: > (I type: g,m,o) > open the dictionary.txt > check words containing:g,m,o in dictio

Re: Suggest an open-source log analyser?

2014-01-03 Thread Walter Hurry
On Thu, 02 Jan 2014 16:40:19 +1100, Alec Taylor wrote: > I use the Python logger class; with the example syntax of: > Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') > > Can of course easily use e.g.: a JSON syntax here instead. > > Are there any open-source log viewers (e.

Re: python finance

2014-01-06 Thread Walter Hurry
On Mon, 06 Jan 2014 13:11:53 -0800, d ss wrote: i wrote just 2 words with a clear > indicative title: "Python, Finance" which summarizes the following "if > you are good in python and interested in applying your python knowledge > to the field of finance then we may have a common interest in talk

Re: What does """ means in python?

2014-02-08 Thread Walter Hurry
Roy Smith wrote: > In article <72a7dd52-7619-4520-991e-20db7ce55...@googlegroups.com>, > Sam wrote: > >> For string, one uses "" to represent string. Below is a code fragment that >> uses """ instead. >> >> cursor.execute("""SELECT name, phone_number >> FROM coworkers >>

Re: What is the recommended python module for SQL database access?

2014-02-10 Thread Walter Hurry
Chris Angelico wrote: > Broad recommendation: Single application, tiny workload, concurrency > not an issue, simplicity desired? Go SQLite. Big complex job, need > performance, lots of things reading and writing at once, want > networked access? Go PGSQL. And don't go MySQL if PG is an option. > >

Re:Python programming

2014-02-11 Thread Walter Hurry
Dave Angel wrote: >> What is the best way i can master thinker? > > Never heard of it. Is it a computer language? > Socrates himself is particularly missed -- https://mail.python.org/mailman/listinfo/python-list

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Walter Hurry
Steven D'Aprano wrote: > On Sun, 30 Mar 2014 00:32:58 -0700, Larry Hudson wrote: > >> Unfortunately, there is no good word for "USA-ian". "United States >> Citizen" is too long and awkward and "United Statesian" is ridiculous. >> The common usage of "American" for this is at best ambiguous, and

Two Questions about Python on Windows

2014-04-03 Thread Walter Hurry
Normally my Python development is done on FreeBSD and Linux. I know that on *ix I simply have to make foo.py executable (the shebang line is present, of course) to make it runnable. For my son's school assignment, I have to help him with Python for Windows. As I understand it, on Windows a .py

Re: Why Python 3?

2014-04-20 Thread Walter Hurry
On Sat, 19 Apr 2014 20:25:32 -0700, Paul Rubin wrote: > Terry Reedy writes: >> LibreOffice bundles 3.3. So anyone who does Python scripting in >> LibreOffice is using Python 3. Actually, I believe LO uses Python >> internally for some of its scripting. If so, everyone using LO is >> indirectly us

Re: Confessions of a terrible programmer

2013-09-06 Thread Walter Hurry
On Fri, 06 Sep 2013 13:17:20 -0400, Joel Goldstick wrote: > On Fri, Sep 6, 2013 at 12:56 PM, Steven D'Aprano > wrote: >> Not specifically about Python, but still relevant: >> >> http://blog.kickin-the-darkness.com/2007/09/confessions-of-terrible- programmer.html > > Pardon me, but I completely d

Goodbye: was JUST GOT HACKED

2013-10-02 Thread Walter Hurry
On Wed, 02 Oct 2013 09:51:26 +0200, Antoon Pardon wrote: > Op 02-10-13 09:02, Ravi Sahni schreef: >> On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney >> wrote: >>> Antoon Pardon writes: >>> Op 02-10-13 00:06, Ben Finney schreef: > This is an unmoderated forum, so we have occasional spates of

Re: Goodbye: was JUST GOT HACKED

2013-10-07 Thread Walter Hurry
On Thu, 03 Oct 2013 11:35:00 +, Steven D'Aprano wrote: > On Thu, 03 Oct 2013 09:21:08 +0530, Ravi Sahni wrote: > >> On Thu, Oct 3, 2013 at 2:43 AM, Walter Hurry >> wrote: >>> Ding ding! Nikos is simply trolling. It's easy enough to killfile him >>

UnicodeEncodeError: SOLVED

2013-10-09 Thread Walter Hurry
Many thanks to those prepared to forgive my transgression in the 'Goodbye' thread. I mentioned there that I was puzzled by a UnicodeEncodeError, and said I would rise it as a separate thread. However, via this link, I was able to resolve the issue myself: http://stackoverflow.com/questions/3224

Re: UnicodeEncodeError: SOLVED

2013-10-10 Thread Walter Hurry
On Thu, 10 Oct 2013 01:47:52 +, Steven D'Aprano wrote: > On Wed, 09 Oct 2013 14:41:53 +, Walter Hurry wrote: > >> Many thanks to those prepared to forgive my transgression in the >> 'Goodbye' thread. I mentioned there that I was puzzled by a >> Un

Tkinter tutorial?

2013-10-22 Thread Walter Hurry
I have some experience with Python, having used it for a couple of years. Until now, my builder of choice for cross-platform GUI applications has been wxPython (with wxGlade), and I have been well satisfied with these tools. However, for a different project I need to get up to a reasonable spee

Re: Processing large CSV files - how to maximise throughput?

2013-10-26 Thread Walter Hurry
On Thu, 24 Oct 2013 18:38:21 -0700, Victor Hooi wrote: > Hi, > > We have a directory of large CSV files that we'd like to process in > Python. > > We process each input CSV, then generate a corresponding output CSV > file. > > input CSV -> munging text, lookups etc. -> output CSV > > My questi

Re: How to add a current string into an already existing list

2013-11-02 Thread Walter Hurry
On Sat, 02 Nov 2013 10:40:58 -0700, rusi wrote: > That Codd... > Should have studied some computer science > > [Ive a vague feeling I am repeating myself...] ROFL. Get thee into FNF! -- https://mail.python.org/mailman/listinfo/python-list

Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ???

2013-11-09 Thread Walter Hurry
On Fri, 08 Nov 2013 14:06:38 -0800, richard.balbat wrote: > I have the following script that reads in an HTML file containing a > table then sends it out via email with a content type of text/html. > > For some reason a few erroneous whitespaces get introduced to the HTML > source and a few < > c

Re: Opinion on best practice...

2013-02-05 Thread Walter Hurry
On Tue, 05 Feb 2013 13:22:02 +, Grant Edwards wrote: > On 2013-02-05, Anthony Correia wrote: > >> I need to pick up a language that would cover the Linux platform. > > Well, you haven't really described what it is you're trying to do, but > it looks to me like bash and the usual set of shel

Re: Thoughts on SQL vs ORM

2013-02-06 Thread Walter Hurry
On Wed, 06 Feb 2013 10:03:08 -0800, rusi wrote: > On Feb 6, 5:58 pm, Andriy Kornatskyy wrote: >> The question of persistence implementation arise often. I found >> repository pattern very valuable due to separation of concerns, mediate >> between domain model and data source (mock, file, database

Re: string.replace doesn't removes ":"

2013-02-13 Thread Walter Hurry
On Wed, 13 Feb 2013 16:55:36 +, Mark Lawrence wrote: > On 13/02/2013 16:34, Rick Johnson wrote: >> On Wednesday, February 13, 2013 1:10:14 AM UTC-6, jmfauth wrote: >>> >> d = {ord('a'): 'A', ord('b'): '2', ord('c'): 'C'} >> 'abcdefgabc'.translate(d) >>> 'A2CdefgA2C' >> >> >

Shebang line on Windows?

2013-02-22 Thread Walter Hurry
I use FreeBSD or Linux, but my son is learning Python and is using Windows. My question is this: Would it be good practice for him to put #!/usr/bin/ env python at the top of his scripts, so that if made executable on *nix they will be OK? As I understand it this will have no effect on Windows

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-13 Thread Walter Hurry
On Wed, 13 Mar 2013 18:40:07 +, tinnews wrote: > I want to write a fairly trivial database driven application, it will > basically present a few columns from a database, allow the user to add > and/or edit rows, recalculate the values in one column and write the > data back to the database. >

Re: No errors displayed but i blank scren nstead.

2013-03-28 Thread Walter Hurry
On Fri, 29 Mar 2013 02:25:26 +1100, Chris Angelico wrote: > On Fri, Mar 29, 2013 at 2:20 AM, Νίκος Γκρ33κ > wrote: >> PLEASE GIVE ME A CLUE ABOUT THIS SITUATION. >> >> EVEN JAILED SHELL ACCESS SAYS ITS OKEY BUT I CNA ONLY SEE A BLANK PAGE >> NOT EVEN AN INTERNAL SERVER ERROR. > > Quit shouting.

Re: No errors displayed but i blank scren nstead.

2013-03-29 Thread Walter Hurry
On Fri, 29 Mar 2013 20:14:16 +, Neil Cerutti wrote: > On 2013-03-29, Chris Angelico wrote: >> On Sat, Mar 30, 2013 at 6:27 AM, wrote: >>> But now iam also receivein this error message as shown here when i >>> switches to 'pymysql' >> >> Why the change of email address? Are you trying to dod

Re: Help

2013-04-01 Thread Walter Hurry
On Mon, 01 Apr 2013 15:12:20 -0700, khaosyt wrote: Sigh. Another one for the bozo bin. -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a dictionary from a .txt file

2013-04-01 Thread Walter Hurry
On Mon, 01 Apr 2013 23:53:40 +, Steven D'Aprano wrote: > As far as I'm concerned, anyone in the 21st century who names themselves > or their work (a movie, book, programming language, etc.) something > which breaks search tools is just *begging* for obscurity, and we ought > to respect their w

Re: Help

2013-04-02 Thread Walter Hurry
On Tue, 02 Apr 2013 02:02:58 +0100, Mark Lawrence wrote: > On 02/04/2013 00:56, Walter Hurry wrote: >> On Mon, 01 Apr 2013 15:12:20 -0700, khaosyt wrote: >> >> >> >> Sigh. Another one for the bozo bin. >> >> > I say old chap you're setting y

Re: I hate you all

2013-04-08 Thread Walter Hurry
On Mon, 08 Apr 2013 19:48:58 +, Grant Edwards wrote: > On 2013-04-08, Nobody wrote: >> On Sun, 07 Apr 2013 01:30:45 +, Steven D'Aprano wrote: >> >>> Am I the only one here who has used a typewriter? >>> >>> Tab stops were set manually, to a physical distance into the page, >>> using a me

Re: I hate you all

2013-04-08 Thread Walter Hurry
On Tue, 09 Apr 2013 08:00:06 +1000, Chris Angelico wrote: > On Tue, Apr 9, 2013 at 7:29 AM, Grant Edwards > wrote: >> On 2013-04-08, Walter Hurry wrote: >>> The fact of Python enforcing it (or all tabs; a poor second choice) >>> is *a good thing*, easy and natural

Re: While loop help

2013-04-09 Thread Walter Hurry
On Wed, 10 Apr 2013 02:10:29 +1000, Chris Angelico wrote: > On Wed, Apr 10, 2013 at 1:47 AM, wrote: >> ... I'm not sure what version I'm using ... > > Try putting these lines into a Python script: > > import sys > print(sys.version) > That works (of course), but in every Python version I've s

Re: While loop help

2013-04-09 Thread Walter Hurry
On Tue, 09 Apr 2013 16:12:34 -0400, Dave Angel wrote: > On 04/09/2013 03:35 PM, Walter Hurry wrote: >> On Wed, 10 Apr 2013 02:10:29 +1000, Chris Angelico wrote: >> >>> On Wed, Apr 10, 2013 at 1:47 AM, wrote: >>>> ... I'm not sure what version I'm us

Re: I hate you all

2013-04-09 Thread Walter Hurry
On Tue, 09 Apr 2013 16:51:26 +0100, Mark Lawrence wrote: > On 09/04/2013 14:39, Grant Edwards wrote: >> On 2013-04-09, Mark Lawrence wrote: >>> But wouldn't it have been easier simply to do do a quick sed or whatever rather than to spend hours here arguing? >>> >>> Where's the fun in th

Re: I hate you all

2013-04-09 Thread Walter Hurry
On Wed, 10 Apr 2013 09:28:26 +1000, Chris Angelico wrote: > On Wed, Apr 10, 2013 at 9:21 AM, Steven D'Aprano > wrote: >> Walter is pointing out that as a Windows user... > > Walter is also assuming that Mark is a Windows user, which was never > actually stated :) >From Mark's reply to me: User-

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Walter Hurry
On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: > I'm not so rich, so I prefer to go for a free database solution rather > than an expensive license ( but I do care about ACID compliance) Sounds to me that PostgreSQL is your man, then. -- http://mail.python.org/mailman/listinfo/python-list

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Walter Hurry
On Sat, 13 Apr 2013 21:34:38 +0200, someone wrote: > On 04/13/2013 04:56 PM, Walter Hurry wrote: >> On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: >> >>> I'm not so rich, so I prefer to go for a free database solution rather >>> than an expensive l

Re: howto remove the thousand separator

2013-04-14 Thread Walter Hurry
On Mon, 15 Apr 2013 11:29:17 +1000, Chris Angelico wrote: > There are actually a lot of optimizations done, so it might turn out to > be O(n) in practice. But strictly in the Python code, yes, this is > definitely O(n*n). In any event, Janssen should cease and desist offering advice here if he c

Re: Newbie questions on Python

2013-04-16 Thread Walter Hurry
On Wed, 17 Apr 2013 01:30:03 +1000, Chris Angelico wrote: > By the way, regarding your email address: there are no cheat codes in > Python ROFLMAO. Incidentally, my son used to use IDDQD rather than IDKFA. I of course spurned all such, since I preferred to do it the hard way. Thus I was Doomed.

Re: Understanding Boolean Expressions

2013-04-16 Thread Walter Hurry
On Tue, 16 Apr 2013 15:19:25 -0700, Bruce McGoveran wrote: > Hello. I am new to this group. I've done a search for the topic about > which I'm posting, and while I have found some threads that are > relevant, I haven't found anything exactly on point that I can > understand. So, I'm taking the

Re: How to set my gui?

2013-04-18 Thread Walter Hurry
On Fri, 19 Apr 2013 08:00:11 +1000, Chris Angelico wrote: > But 1 Corinthians 13:11 You are grown up now, I surmise. -- http://mail.python.org/mailman/listinfo/python-list

Re: ask for note keeper tomboy's style

2013-04-21 Thread Walter Hurry
On Sun, 21 Apr 2013 11:42:06 -0600, Michael Torrie wrote: > On 04/21/2013 12:20 AM, LordMax wrote: >> Hi to all. >> >> I am new to python and I was asked to implement a system of notes in >> tomboy's style for my company. >> >> As one of the requirements is the ability to synchronize notes betwe