[issue17205] In the help() function the order of methods changes

2013-02-14 Thread R. David Murray

R. David Murray added the comment:

Ramchandra is correct.  If you were to implement a "don't sort" flag, what you 
would get is *random* order (and a different order each time, in 3.3+).

Further, this is Python-interpreter internal data structure we are talking 
about, so it isn't even an option to use OrderedDict in pydoc.

I'm closing this as "won't fix" because it would certainly be nice to have this 
ability...but there is no practical way to implement it.

--
nosy: +r.david.murray
resolution:  -> wont fix
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17205] In the help() function the order of methods changes

2013-02-14 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Sorry, but there is no way of telling the order as methods are respresented 
internally as a dictionary. Please close this as invalid.

--
nosy: +ramchandra.apte

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17205] In the help() function the order of methods changes

2013-02-14 Thread py.user

New submission from py.user:

>>> class A:
...   '''class'''
...   def c(self):
... '''c doc'''
... pass
...   def b(self):
... '''b doc'''
... pass
...   def a(self):
... '''a doc'''
... pass
... 
>>> help(A)

class A(builtins.object)
 |  class
 |  
 |  Methods defined here:
 |  
 |  a(self)
 |  a doc
 |  
 |  b(self)
 |  b doc
 |  
 |  c(self)
 |  c doc
 |  
 

When I have many methods ordered in the source in readable order, the help() 
function is mixing them, so the last method goes to the top and the first 
method goes to the bottom.

I would like to have an option, whether I want sort them or not.

--
assignee: docs@python
components: Documentation, Interpreter Core
messages: 182086
nosy: docs@python, py.user
priority: normal
severity: normal
status: open
title: In the help() function the order of methods changes
type: enhancement
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com