A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/040597.html below:

[Python-Dev] pprint and list/tuple/dict subclasses

[Python-Dev] pprint and list/tuple/dict subclasses [Python-Dev] pprint and list/tuple/dict subclassesHunter Peress hfastjava at yahoo.com
Tue Dec 2 14:06:20 EST 2003
I see the arguments,but the following code works fine. so what exactly is the issue?

#!/usr/bin/python
import sys,commands,os,re,string
from pprint import pprint as ppr

class t(list):
  pass

inst = t()
inst.append(1)
inst.append({2:3})
inst.append([4,5,6,[7,8]])

ppr(inst)

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4