Re: [Python-ideas] Retire or reword the "Beautiful is better than ugly" Zen clause

2018-09-13 Thread Ryan Birmingham
. Forgetting for a moment the charged context of the conversation itself, does anyone have any opinions on how this would come to be? Thank you for reading and hopefully listening, -Ryan Birmingham On Thu, 13 Sep 2018 at 23:03, Terry Reedy wrote: > On 9/13/2018 7:34 PM, Tim Peters wrote: &g

Re: [Python-ideas] Smoothing transition: 'unicode' and 'basestring' as aliases for 'str'?

2017-03-03 Thread Ryan Birmingham
o I understand where a desire like this would come from. Would more specific and succinct documentation on this change alone help? -Ryan Birmingham On 3 March 2017 at 06:44, Thomas Güttler wrote: > I found this in an old post: > > > Maybe too late now but there should have been 'unicode&#

Re: [Python-ideas] unify usage of mutable and immutable objects

2017-02-28 Thread Ryan Birmingham
I'm sorry for the confusion, but what is frozen_tree_set() here, and what is ipop? frozensets don't have pop or 'ipop', so my apologies that I'm a bit lost here. -Ryan Birmingham On 28 February 2017 at 08:59, 语言破碎处 wrote: > > Hi! > I write a '<&#

Re: [Python-ideas] suggestion about the sort() function of the list instance

2017-02-26 Thread Ryan Birmingham
It sorts the list in place. Can you use sorted(item_list)? -Ryan Birmingham On 26 February 2017 at 22:07, qhlonline wrote: > Hi, all > I have a suggestion that, the sort() member method of the list > instance, should return the 'self' as the result of list.sort() call.

Re: [Python-ideas] List indexing multiple elements

2017-02-20 Thread Ryan Birmingham
So, to make sure I have this right: your proposal says array should be indexable by a list of indexes as they're currently done, in a tuple, right? Would this also mean that something like (1:4, 8:10, 13) should be an acceptable constructor for a tuple? -Ryan Birmingham On 20 February 2017

Re: [Python-ideas] Is it Python 3 yet?

2017-01-26 Thread Ryan Birmingham
hen move to 2.7 being substantially smaller, then eventually to dropping 2.7. -Ryan Birmingham On 26 January 2017 at 11:11, Victor Stinner wrote: > Hi, > > The download button of https://www.python.org/ currently gives the > choice between Python 2.7 and 3.6. I read more and more ar

Re: [Python-ideas] How to respond to trolling

2017-01-10 Thread Ryan Birmingham
I think that replying with an almost canned response, like the one Ned proposed ("unless you are seriously proposing a change to the language, this is not the right list."), would help discourage other list members from responding where responses aren't necessary. -Ryan Birmingham

Re: [Python-ideas] Method signature syntactic sugar (especially for dunder methods)

2016-11-08 Thread Ryan Birmingham
o teach, as opposed to changing them. -Ryan Birmingham On 7 November 2016 at 23:49, Stephen J. Turnbull < turnbull.stephen...@u.tsukuba.ac.jp> wrote: > Nathan Dunn writes: > > > > * the mapping protocol covers more than just __getitem__ > > > > __setitem__(self, key

Re: [Python-ideas] PEP 531: Existence checking operators

2016-10-29 Thread Ryan Birmingham
I certainly like the concept, but I worry that use of __exists__() could generalize it a bit beyond what you're intending in practice. It seems like this should only check if an object exists, and that adding the magic method would only lead to confusion. -Ryan Birmingham On 28 October 20

Re: [Python-ideas] SI scale factors alone, without units or dimensional analysis

2016-10-28 Thread Ryan Birmingham
I'd certainly be interested in hearing about how this has worked with C++, but this would certainly make scientific code less easy to misuse due to unclear units. -Ryan Birmingham On 28 October 2016 at 16:45, Sven R. Kunze wrote: > On 28.10.2016 22:06, MRAB wrote: > >> On

Re: [Python-ideas] More user-friendly version for string.translate()

2016-10-24 Thread Ryan Birmingham
I also believe that using a text file would not be the best solution; using a dictionary, other data structure, or anonomyous function would make more sense than having a specially formatted file. On Oct 24, 2016 13:45, "Chris Barker" wrote: > my thought on this: > > If you need translate() you

Re: [Python-ideas] Smart/Curly Quote Marks and cPython

2016-10-22 Thread Ryan Birmingham
Per the comments in this thread, I believe that a better error message for this case would be a reasonable way to fix the use case around this issue. It can be difficult to notice that your quotes are curved if you don't know that's what you're looking for. -Ryan Birmingham On 22

Re: [Python-ideas] Smart/Curly Quote Marks and cPython

2016-10-21 Thread Ryan Birmingham
typographical characters. -Ryan Birmingham On 22 October 2016 at 02:35, Steven D'Aprano wrote: > On Sat, Oct 22, 2016 at 01:17:58AM -0400, Ryan Birmingham wrote: > > Hello everyone, > > > > I want to start small and ask about smart/curly quote marks (” vs "). > >

Re: [Python-ideas] Smart/Curly Quote Marks and cPython

2016-10-21 Thread Ryan Birmingham
I was thinking of using them only as possibly quotes characters, as students and beginners seem to have difficulties due to this quote-mismatch error. That OSX has smart quotes enabled by default makes this a worthwhile consideration, in my opinion. -Ryan Birmingham On 22 October 2016 at 01:34

[Python-ideas] Smart/Curly Quote Marks and cPython

2016-10-21 Thread Ryan Birmingham
if it has come up before, and if there are any compatibility issues that I'm not seeing here. Thank you, -Ryan Birmingham ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code o