Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-26 Thread HoneyMonster
On Wed, 27 Jun 2012 07:39:42 +1000, Chris Angelico wrote: > On Wed, Jun 27, 2012 at 7:08 AM, John Nagle wrote: >>    The Python 3 to MySQL connection is still a mess. >> The original developer of MySQLdb doesn't want to support Python 3. > > This is where I would start asking: How hard is it to

Re: code review

2012-07-01 Thread HoneyMonster
On Sun, 01 Jul 2012 09:46:56 +0200, Thomas Jollans wrote: > I don't have PostgeSQL handy just now - what is the result of (1 < 2 < > 3) ? I bet it's the same error, which means the two are still > equivalent. $ psql misc psql (9.1.4) Type "help" for help. misc=# select (1 < 2); ?column? --

Re: Preventing crap email from google?

2012-10-22 Thread HoneyMonster
On Mon, 22 Oct 2012 14:21:36 +, Grant Edwards wrote: > On 2012-10-22, Walter Hurry wrote: >> 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

Questions about "compiled" Python (beginner)

2012-01-29 Thread HoneyMonster
I am new to Python (Python 2.7 on Linux). Research indicates that: a) "Compiling" Python modules into intermediate bytecode marginally improves load time. b) The Python interpreter will use an already-prepared .pyc file if one exists in the same directory as the .py. That then, is presumably w

Re: Questions about "compiled" Python (beginner)

2012-01-29 Thread HoneyMonster
On Sun, 29 Jan 2012 14:01:01 -0500, Terry Reedy wrote: > On 1/29/2012 12:57 PM, HoneyMonster wrote: >> I am new to Python (Python 2.7 on Linux). Research indicates that: >> >> a) "Compiling" Python modules into intermediate bytecode marginally >> improves load

Naming convention for in-house modules (Newbie question)

2012-02-08 Thread HoneyMonster
I am quite new to Python (2.7 on Linux), and have built a few modules using wxPython/wxGlade for GUI elements and Psycopg2 for database access. I adhere mostly to the PEP8 guidelines, and use Pylint to help with quality control. So far I have been *very* impressed. Due to Python's straightforwa

Apparent "double imports" (was: Naming convention for in-house modules (Newbie question))

2012-02-09 Thread HoneyMonster
On Thu, 09 Feb 2012 14:36:52 +, Arnaud Delobelle wrote: > On 9 February 2012 14:00, Laurent Claessens wrote: >> >>> Here is my question: I would like to start an in-house library of >>> small modules to import, for things like error handling/logging. >>> That's easy enough, but is there a rec

Re: Apparent "double imports" (was: Naming convention for in-house modules (Newbie question))

2012-02-09 Thread HoneyMonster
On Thu, 09 Feb 2012 12:02:03 -0700, Ian Kelly wrote: > On Thu, Feb 9, 2012 at 11:53 AM, HoneyMonster > wrote: >> One issue I have run into, which may or may not be a problem: I am >> finding that modules in the in-house "library" package sometimes have >> to imp

Re: Apparent "double imports"

2012-02-09 Thread HoneyMonster
On Thu, 09 Feb 2012 15:05:52 -0500, Dave Angel wrote: > On 02/09/2012 02:40 PM, HoneyMonster wrote: >> On Thu, 09 Feb 2012 12:02:03 -0700, Ian Kelly wrote: >> >>> On Thu, Feb 9, 2012 at 11:53 AM, HoneyMonster >>> wrote: >>>> One issue I have run

Wanted: Criticism of code for a Python module, plus a Mac tester

2012-02-15 Thread HoneyMonster
I am quite new to Python (running Python 2.7 on Linux). I have written a very small and simple dealing module for the game of Bridge. For those unfamiliar with the game, the idea is to deal each of 4 players a hand of 13 cards from a pack of 52, and to display it thus (use a fixed pitch font):

Re: Wanted: Criticism of code for a Python module, plus a Mac tester

2012-02-15 Thread HoneyMonster
On Wed, 15 Feb 2012 17:07:48 -0700, Ian Kelly wrote: > On Wed, Feb 15, 2012 at 4:33 PM, HoneyMonster > wrote: >> Secondly, as a more general point I would welcome comments on code >> quality, adherence to standards and so forth. The code is at: > > Looks pretty

Just curious: why is /usr/bin/python not a symlink?

2012-02-23 Thread HoneyMonster
$ cd /usr/bin $ ls -l python* -rwxr-xr-x 2 root root 9496 Oct 27 02:42 python lrwxrwxrwx 1 root root6 Oct 29 19:34 python2 -> python -rwxr-xr-x 2 root root 9496 Oct 27 02:42 python2.7 $ diff -s python python2.7 Files python and python2.7 are identical $ I'm just curious: Why two identical fi

Re: Just curious: why is /usr/bin/python not a symlink?

2012-02-23 Thread HoneyMonster
On Thu, 23 Feb 2012 14:24:23 -0500, Jerry Hill wrote: > On Thu, Feb 23, 2012 at 2:11 PM, HoneyMonster > wrote: >> $ cd /usr/bin $ ls -l python* >> -rwxr-xr-x 2 root root 9496 Oct 27 02:42 python lrwxrwxrwx 1 root root >>    6 Oct 29 19:34 python2 -> python -rwxr-x

Re: Project

2012-03-07 Thread HoneyMonster
On Wed, 07 Mar 2012 13:06:38 -0500, Rodrick Brown wrote: > Pay a smart developer! What? For homework? -- http://mail.python.org/mailman/listinfo/python-list

Re: No os.copy()? Why not?

2012-04-02 Thread HoneyMonster
On Wed, 28 Mar 2012 13:12:30 -0700, John Ladasky wrote: > I'm looking for a Python (2.7) equivalent to the Unix "cp" command. > Since the equivalents of "rm" and "mkdir" are in the os module, I > figured I look there. I haven't found anything in the documentation. > I am also looking through the

Re: f python?

2012-04-08 Thread HoneyMonster
On Sun, 08 Apr 2012 11:34:56 +, Steven D'Aprano wrote: > I have read Xah Lee's post so that you don't have to. Well, I certainly shall not be reading - or even seeing - any more of his drivel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Python 3?

2014-04-20 Thread HoneyMonster
On Mon, 21 Apr 2014 10:00:01 +1000, Chris Angelico wrote: > On Mon, Apr 21, 2014 at 9:50 AM, Walter Hurry > wrote: >> I would use Python 3 in a flash if only wxPython would support it. > > There seems to be a "Project Phoenix" (found it at the other end of a > Google search) with that goal. I've

Re: my new project, is this the right way?

2011-11-25 Thread HoneyMonster
On Mon, 14 Nov 2011 21:55:43 +1100, Chris Angelico wrote: > On Mon, Nov 14, 2011 at 9:41 PM, Tracubik wrote: >> Hi all, >> i'm developing a new program. >> Mission: learn a bit of database management > > If your goal is to learn about databasing, then I strongly recommend a > real database engin

Newbie Question: Obtain element from list of tuples

2011-12-18 Thread HoneyMonster
Hi, I'm just starting to learn Python, so please bear with me. I have in my program an object (recs) which is a list of tuples (returned as such by a database query). My question is doubtless a very easy one to answer: Say I want the ninth element in the twentieth tuple put into variable PID,

Re: Newbie Question: Obtain element from list of tuples

2011-12-18 Thread HoneyMonster
On Sun, 18 Dec 2011 15:04:13 -0500, Roy Smith wrote: > In article , > HoneyMonster wrote: > >> Hi, >> >> I'm just starting to learn Python, so please bear with me. I have in my >> program an object (recs) which is a list of tuples (returned as such by &g

Re: Newbie Question: Obtain element from list of tuples

2011-12-18 Thread HoneyMonster
On Mon, 19 Dec 2011 07:51:08 +1100, Chris Angelico wrote: > On Mon, Dec 19, 2011 at 6:41 AM, HoneyMonster > wrote: >> My question is doubtless a very easy one to answer: Say I want the >> ninth element in the twentieth tuple put into variable PID, I can do >> this, bearin

Re: Newbie Question: Obtain element from list of tuples

2011-12-19 Thread HoneyMonster
On Mon, 19 Dec 2011 10:40:06 +1100, Chris Angelico wrote: > On Mon, Dec 19, 2011 at 9:55 AM, HoneyMonster > wrote: >> When the user selects a row and clicks a button, I am using: >> pos = self.grid_1.GetGridCursorRow() to establish which tuple in recs >> is involved, an

Re: Newbie Help

2012-01-04 Thread HoneyMonster
On Tue, 03 Jan 2012 17:13:17 -0600, mixolydian wrote: > I want to get into Python progamming for both local database > applications and dynamic web pages. Maybe some Q&D scripts. I am new to Python too, and recently completed my first "real" cross- platform GUI application with local/remote datab

Re: Spamming PyPI with stupid packages

2012-01-04 Thread HoneyMonster
On Wed, 04 Jan 2012 20:48:36 +, PiLS wrote: > If I nuke a Karmic Koala, will they rat me out to the WWF, to the > UNODA, or to both? Personally I'd be cheering for you, provided you also took out all the warthogs, hedgehogs, badgers, drakes, efts, fawns, gibbons, herons, ibexes, jackalopes,

Newbie: Looking for code review on my first Python project.

2012-01-10 Thread HoneyMonster
Hi, I'm new to Python and recently completed my first project. I used wxPython with wxGlade to generate the GUI bits.The application seems to work well, but I am entirely self-taught, so have undoubtedly committed a number of howlers in terms of style, design, standards, best practice and so forth

Re: Newbie: Looking for code review on my first Python project.

2012-01-11 Thread HoneyMonster
On Tue, 10 Jan 2012 18:17:48 -0700, Ian Kelly wrote: > On Tue, Jan 10, 2012 at 4:44 PM, HoneyMonster > wrote: >> Hi, >> >> I'm new to Python and recently completed my first project. I used >> wxPython with wxGlade to generate the GUI bits.The application seems

Re: Newbie: Looking for code review on my first Python project.

2012-01-11 Thread HoneyMonster
On Wed, 11 Jan 2012 11:39:48 +, HoneyMonster wrote: > On Tue, 10 Jan 2012 18:17:48 -0700, Ian Kelly wrote: > >> On Tue, Jan 10, 2012 at 4:44 PM, HoneyMonster >> wrote: >>> Hi, >>> >>> I'm new to Python and recently completed my first project