__deepcopy__ without recursive copies?

2005-01-25 Thread Bernie
#!/usr/bin/env python import sys import copy ''' How to define __deepcopy__ with out causing recursive calls to copies of self? Bernie Day 01/25/05 I was using deepcopy on DeviceManager and this worked well. When I defined __deepcopy__, so I could have a handle to the childre

Wow!

2005-01-26 Thread Bernie
That is clever, gives a lot of insight into how the __dict__ == the object. This is somewhat like the solution I am using from the Cookbook, an Empty object copy. This is cleaner and very much more concise. Thank you! -- http://mail.python.org/mailman/listinfo/python-list

The Python: Rag October issue available

2009-10-03 Thread Bernie
The Python: Rag October issue available The October issue of The Python: Rag is available at: http://www.pythonrag.org A monthly, free, community run, Python magazine - issues are in pdf format, intended for anyone interested in Python, without being particularly serious. If you have anythi

Re: The Python: Rag October issue available

2009-10-03 Thread Bernie
On Fri, 02 Oct 2009 11:32:41 -0700, steven.oldner wrote: Hi, no -its just put on the website. Unless there's a method you can suggest? Cheers Bernie > On Oct 2, 11:14 am, Bernie wrote: >> The Python: Rag October issue available >> >> The October issue of Th

Re: The Python: Rag October issue available

2009-10-04 Thread Bernie
On Sat, 03 Oct 2009 20:09:18 -0700, TerryP wrote: > On Oct 3, 4:29 pm, Bernie wrote: >> Hi, no -its just put on the website.  Unless there's a method you can >> suggest? > > Not to butt in, but off the top of my head, you could probably set up a > mailing list

Re: The Python: Rag October issue available

2009-10-04 Thread Bernie
On Sun, 04 Oct 2009 07:37:35 -0500, Bernie wrote: > On Sat, 03 Oct 2009 20:09:18 -0700, TerryP wrote: > >> On Oct 3, 4:29 pm, Bernie wrote: >>> Hi, no -its just put on the website.  Unless there's a method you can >>> suggest? >> >> Not to

The Python: Rag November issue available

2009-11-01 Thread Bernie
The November issue of The Python: Rag is available at: http://www.pythonrag.org A monthly, free, community run, Python magazine - issues are in pdf format, intended for anyone interested in Python. -- http://mail.python.org/mailman/listinfo/python-list

The Python: Rag September issue available

2009-09-03 Thread Bernie
The September issue of The Python: Rag is available at: http://www.pythonrag.org A monthly, free, community run, Python magazine - issues are in pdf format, intended for anyone interested in Python, without being particularly serious. If you have anything you would like to say about Python, p

Re: print syntax

2009-09-05 Thread Bernie
On Thu, 03 Sep 2009 12:22:14 -0400, doug wrote: > I am new to python, working by way through 'Core Python Programming'. I > can find no description of using print with the built-in type for > formatting. I think I have got some [most?] of it from Chun, google, and > python.org. My comment is - it

Re: Newbie problem with urllib.request.urlopen

2017-09-26 Thread Bernie Connors
On Tuesday, September 26, 2017 at 12:32:18 PM UTC-3, Bernie Connors wrote: > Hello, > > My first post here on C.L.P. I have only written a few python scripts > in 2.7 and now I'm trying my first python 3 script. Can you tell me why this &g

Re: Newbie problem with urllib.request.urlopen

2017-09-26 Thread Bernie Connors
On Tuesday, September 26, 2017 at 12:32:18 PM UTC-3, Bernie Connors wrote: > Hello, > > My first post here on C.L.P. I have only written a few python scripts > in 2.7 and now I'm trying my first python 3 script. Can you tell me why this &g

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

2015-11-09 Thread Bernie Lazlo
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.] The student scores need to be summed. import json import urllib url = "http://www.wickson.net/ge

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

2015-11-09 Thread Bernie Lazlo
On Monday, 9 November 2015 19:30:23 UTC-5, MRAB wrote: > On 2015-11-09 23:52, 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

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

2015-11-09 Thread Bernie Lazlo
On Monday, 9 November 2015 20:31:52 UTC-5, MRAB wrote: > On 2015-11-10 01:12, Bernie Lazlo wrote: > > On Monday, 9 November 2015 19:30:23 UTC-5, MRAB wrote: > >> On 2015-11-09 23:52, Bernie Lazlo wrote: > >> > This should be a simple problem but I have wasted hours

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

2015-11-09 Thread Bernie Lazlo
On Monday, 9 November 2015 18:53:06 UTC-5, 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.] > > The student scores need

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

2015-11-10 Thread Bernie Lazlo
On Monday, 9 November 2015 22:54:05 UTC-5, wayne@gmail.com wrote: > 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.

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

2015-11-10 Thread Bernie Lazlo
On Monday, 9 November 2015 18:53:06 UTC-5, 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.] > > The student scores need

Re: shelve.open call gives error

2008-02-10 Thread Bernie Woodham
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > En Sat, 09 Feb 2008 03:35:14 -0200, waltbrad <[EMAIL PROTECTED]> > escribi?: > >> On Feb 8, 5:29 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >>> En Fri, 08 Feb 2008 06:36:53 -0200, waltbrad <[EMAIL PROTECTED