A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-November/018741.html below:

[Python-Dev] What's a PyStructSequence ?

[Python-Dev] What's a PyStructSequence ? [Python-Dev] What's a PyStructSequence ?Martin v. Loewis martin@v.loewis.de
Tue, 27 Nov 2001 21:05:44 +0100
> Wouldn't it make sense to expose this object in Python,
> e.g. by contructing it from a dictionary of string mappings ?
> 
> (The type constructor is not made available in bltinmodule.c.)

No. AFAIR, this idea was explicitly rejected at the time the patch was
designed (see the comments on the stat patch for the exact history).

The rationale was that it is easy enough to create a class that
doubles as tuple in Python yourself (perhaps through inheritance from
tuple), so there would be no need to expose this type.

Regards,
Martin




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