onelinerizer icon indicating copy to clipboard operation
onelinerizer copied to clipboard

Shamelessly convert any Python 2 script into a terrible single line of code

Results 11 onelinerizer issues
Sort by recently updated
recently updated
newest added

does it work with flask

Hi, this repository looks really interesting. I was wondering would you consider to support python3?

`NotImplementedError: Open problem: yield`

When I have in print some unicode characters they can't pass to one-lined converter and throw error.

This is probably problem with using older python version, but one-lined code converter can't convert when you pass `async def somefunc()` / `await somefunc()`

I missed the presentation tonight at Boston Python, but a colleague pointed me at this repository. This PR is a work in progress toward support for with-blocks. The basic idea...

It seems that certain variable names can end up in name collisions in the generated code. For example, the code def f(__print): print __print return __print * 4 y =...

Does not below two ways equal? ``` python class Foo(object): def __enter__(self): print "hello, world" def __exit__(self, type, value, tb): print "bye" with Foo() as foo: pass mgr = Foo()...

Didn't expect this to work, but might want to add it to the list of features not supported: ``` locals()['y'] = 1 print y ``` Cool project!