Re: [Python-ideas] New Data Structure - Non Well-Founded Dict

2019-03-17 Thread Cameron Simpson
And in case it wasn't clear, "python-list" is here: python-l...@python.org Please try posting the same question there instead. Cheers, Cameron Simpson On 17Mar2019 16:23, David Mertz wrote: This is an interesting challenge you have. However, this list is for proposing ideas for changes in

Re: [Python-ideas] Code version evolver

2019-03-17 Thread Chris Angelico
On Mon, Mar 18, 2019 at 9:34 AM Steven D'Aprano wrote: > > On Mon, Mar 18, 2019 at 01:13:29AM +1100, Chris Angelico wrote: > [...] > > Yes, it will. Can you determine whether some code does this? Can you > > recognize what kind of object is on the left of a percent sign? > > Remember, it quite pos

Re: [Python-ideas] Code version evolver

2019-03-17 Thread Steven D'Aprano
On Mon, Mar 18, 2019 at 01:13:29AM +1100, Chris Angelico wrote: [...] > Yes, it will. Can you determine whether some code does this? Can you > recognize what kind of object is on the left of a percent sign? > Remember, it quite possibly won't be a literal. I don't understand whether your question

Re: [Python-ideas] New Data Structure - Non Well-Founded Dict

2019-03-17 Thread David Mertz
This is an interesting challenge you have. However, this list is for proposing ideas for changes in the Python language itself, in particular the CPython reference implementation. Python-list or some discussion site dealing with machine learning or natural language processing would be appropriate

Re: [Python-ideas] Code version evolver

2019-03-17 Thread Stephen J. Turnbull
francismb writes: > On 3/15/19 4:54 AM, Stephen J. Turnbull wrote: > > What 2to3 does is to handle a lot of automatic conversions, such as > > flipping the identifiers from str to bytes and unicode to str. It was > > necessary to have some such tool because of the very large amount of > > suc

[Python-ideas] New Data Structure - Non Well-Founded Dict

2019-03-17 Thread Savant Of Illusions
I am in desperate need of a dict similar structure that allows sets and/or dicts as keys *and* values. My application is NLP conceptual plagiarism detection. Dealing with infinite grammars communicating illogical concepts. Would be even better if keys could nest the same data structure, e.g. set(s)

Re: [Python-ideas] Code version evolver

2019-03-17 Thread francismb
On 3/15/19 11:09 PM, Chris Angelico wrote: > And, are you going to run this function on every single code snippet > before you try it? If just trying, may be not. But yes, if I care to know where the applicability limits are (interpreter versions) before integrating it. IMHO I don't think it's a g

Re: [Python-ideas] Code version evolver

2019-03-17 Thread Chris Angelico
On Mon, Mar 18, 2019 at 1:09 AM francismb wrote: > > On 3/15/19 11:09 PM, Chris Angelico wrote: > > Python 3.5 introduced the modulo operator for bytes objects. How are > > you going to write a function that determines whether or not a piece > > of code depends on this? > I'm not sure I understand

Re: [Python-ideas] Code version evolver

2019-03-17 Thread francismb
On 3/15/19 11:09 PM, Chris Angelico wrote: > Python 3.5 introduced the modulo operator for bytes objects. How are > you going to write a function that determines whether or not a piece > of code depends on this? I'm not sure I understand the question. Isn't *a piece of code* that does a modulo oper

Re: [Python-ideas] Left arrow and right arrow operators

2019-03-17 Thread francismb
On 3/15/19 9:02 PM, francismb wrote: > And the operator is the function.exactly, function application/call ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/c

Re: [Python-ideas] Left arrow and right arrow operators

2019-03-17 Thread francismb
Hi Nick, On 3/12/19 3:57 PM, Nick Timkovich wrote: > The onus is on you > to positively demonstrate you require both directions, not him to > negatively demonstrate it's never required. >From Calvin I just wanted to have some examples where he sees a use for swapping operands (nothing to be demons