Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue2874] Remove use of the stat module in the stdlib

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jun 8, 2008, 4:22 PM

Post #1 of 3 (158 views)
Permalink
[issue2874] Remove use of the stat module in the stdlib

Benjamin Peterson <musiccomposition[at]gmail.com> added the comment:

Can't you just inherit PyStructSequence with tp_base?

----------
nosy: +benjamin.peterson

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue2874>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jun 11, 2008, 2:25 PM

Post #2 of 3 (140 views)
Permalink
[issue2874] Remove use of the stat module in the stdlib [In reply to]

Barry A. Warsaw <barry[at]python.org> added the comment:

Perhaps collections.namedtuple() can be used with a custom subclass?

In any case, it's not worth holding up the first beta for this. We can
fix it after beta. Knocking this down to critical.

----------
nosy: +barry
priority: release blocker -> critical

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue2874>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jun 12, 2008, 3:51 PM

Post #3 of 3 (139 views)
Permalink
[issue2874] Remove use of the stat module in the stdlib [In reply to]

Georg Brandl <georg[at]python.org> added the comment:

This is a proof of concept how to add methods to a structseq type.

Of course PyStructSequence_InitType could also get a companion
PyStructSequence_InitTypeEx that takes a PyMethodDef* array.

----------
keywords: +patch
nosy: +georg.brandl
Added file: http://bugs.python.org/file10608/posix.diff

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue2874>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.