baron icon indicating copy to clipboard operation
baron copied to clipboard

Support PEP448

Open boxed opened this issue 7 years ago • 6 comments

https://www.python.org/dev/peps/pep-0448/

boxed avatar Jul 25 '18 22:07 boxed

Closed mine since this one covers it better. This unpacking syntax is really handy and my projects are using it all over - is support coming soon?

toejough avatar Mar 08 '19 16:03 toejough

I'd strongly recommend moving your project over to use parso. I've done it with mutmut. Parso is well supported.

boxed avatar Mar 08 '19 16:03 boxed

Parso is well supported.

wait, are baron/redbaron not supported anymore? I still see some activity on the projects, though I haven't dug in too deeply.

toejough avatar Mar 08 '19 17:03 toejough

It's way way behind and not catching up. Parso is caught up and has way less bugs. It's also used by big projects like jedi and indirectly ipython so will be invested in. You should bet on it.

boxed avatar Mar 08 '19 17:03 boxed

The following is a MWE for this issue:

    import textwrap
    import redbaron
    text = textwrap.dedent(
        '''
        d1 = {1: 2}
        d2 = {3: 4}
        d_combo = {**d1, **d2}
        ''').strip('\n')

    # This code should work
    exec(text)

    # But it does not
    red = redbaron.RedBaron(text)

@boxed is parso a FST? can it do refactoring similar to redbaron?

Erotemic avatar Oct 27 '21 16:10 Erotemic

@Erotemic it is. I use it in mutmut for mutation testing.

boxed avatar Oct 27 '21 16:10 boxed