[issue25011] Smarter rl complete: hide private and special names

2015-09-27 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: patch review -> resolved

___
Python tracker 

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



[issue25011] Smarter rl complete: hide private and special names

2015-09-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4dbb315fe667 by Serhiy Storchaka in branch 'default':
Issue #25011: rlcomplete now omits private and special attribute names unless
https://hg.python.org/cpython/rev/4dbb315fe667

--
nosy: +python-dev

___
Python tracker 

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



[issue25011] Smarter rl complete: hide private and special names

2015-09-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue25011] Smarter rl complete: hide private and special names

2015-09-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If no one has objections, I'll commit the patch.

--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue25011] Smarter rl complete: hide private and special names

2015-09-07 Thread R. David Murray

R. David Murray added the comment:

Sounds good to me, especially the __ part.

I don't actually use completions, though :)

--

___
Python tracker 

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



[issue25011] Smarter rl complete: hide private and special names

2015-09-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I like the idea, though some people may object to breaking their worflow (tm). 
Nosy'ing David just in case ;-)

--
nosy: +r.david.murray

___
Python tracker 

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



[issue25011] Smarter rl complete: hide private and special names

2015-09-05 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

When press tabulation just after the dot, the output is too long. It contains 
all attributes, most of them are dunder names.

>>> int.
int.__abs__(int.__doc__ int.__int__(
int.__pos__(int.__round__(  int.__truediv__(
int.__add__(int.__eq__( int.__invert__( 
int.__pow__(int.__rpow__(   int.__trunc__(
int.__and__(int.__flags__   int.__itemsize__
int.__prepare__(int.__rrshift__(int.__weakrefoffset__
int.__base__(   int.__float__(  int.__le__( 
int.__qualname__int.__rshift__( int.__xor__(
int.__bases__   int.__floor__(  int.__lshift__( 
int.__radd__(   int.__rsub__(   int.bit_length(
int.__basicsize__   int.__floordiv__(   int.__lt__( 
int.__rand__(   int.__rtruediv__(   int.conjugate(
int.__bool__(   int.__format__( int.__mod__(
int.__rdivmod__(int.__rxor__(   int.denominator
int.__call__(   int.__ge__( int.__module__  
int.__reduce__( int.__setattr__(int.from_bytes(
int.__ceil__(   int.__getattribute__(   int.__mro__ 
int.__reduce_ex__(  int.__sizeof__( int.imag
int.__class__(  int.__getnewargs__( int.__mul__(
int.__repr__(   int.__str__(int.mro(
int.__delattr__(int.__gt__( int.__name__
int.__rfloordiv__(  int.__sub__(int.numerator
int.__dict__int.__hash__(   int.__ne__( 
int.__rlshift__(int.__subclasscheck__(  int.real
int.__dictoffset__  int.__index__(  int.__neg__(
int.__rmod__(   int.__subclasses__( int.to_bytes(
int.__dir__(int.__init__(   int.__new__(
int.__rmul__(   int.__subclasshook__(   
int.__divmod__( int.__instancecheck__(  int.__or__( 
int.__ror__(int.__text_signature__  

Proposed patch hides underscored names and show dunder names only if a prefix 
starts with '__', and private members only if a prefix starts with '_'.

>>> int.
int.bit_length(  int.conjugate(   int.denominator  int.from_bytes(  int.imag
 int.mro( int.numeratorint.real int.to_bytes(
>>> int.__
int.__abs__(int.__divmod__( int.__init__(   
int.__neg__(int.__rlshift__(int.__sub__(
int.__add__(int.__doc__ int.__instancecheck__(  
int.__new__(int.__rmod__(   int.__subclasscheck__(
int.__and__(int.__eq__( int.__int__(
int.__or__( int.__rmul__(   int.__subclasses__(
int.__base__(   int.__flags__   int.__invert__( 
int.__pos__(int.__ror__(int.__subclasshook__(
int.__bases__   int.__float__(  int.__itemsize__
int.__pow__(int.__round__(  int.__text_signature__
int.__basicsize__   int.__floor__(  int.__le__( 
int.__prepare__(int.__rpow__(   int.__truediv__(
int.__bool__(   int.__floordiv__(   int.__lshift__( 
int.__qualname__int.__rrshift__(int.__trunc__(
int.__call__(   int.__format__( int.__lt__( 
int.__radd__(   int.__rshift__( int.__weakrefoffset__
int.__ceil__(   int.__ge__( int.__mod__(
int.__rand__(   int.__rsub__(   int.__xor__(
int.__class__(  int.__getattribute__(   int.__module__  
int.__rdivmod__(int.__rtruediv__(   
int.__delattr__(int.__getnewargs__( int.__mro__ 
int.__reduce__( int.__rxor__(   
int.__dict__int.__gt__( int.__mul__(
int.__reduce_ex__(  int.__setattr__(
int.__dictoffset__  int.__hash__(   int.__name__
int.__repr__(   int.__sizeof__( 
int.__dir__(int.__index__(  int.__ne__( 
int.__rfloordiv__(  int.__str__(

(The completion of int._ returns nothing because int has no private members).

--
components: Library (Lib)
files: rlcomplete_filter_private.patch
keywords: patch
messages: 249928
nosy: pitrou, serhiy.storchaka, twouters
priority: normal
severity: normal
stage: patch review
status: open
title: Smarter rl complete: hide private and special names
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file40377/rlcomplete_filter_private.patch

___
Python tracker 

___