slozier

Results 121 issues of slozier

https://docs.python.org/3/whatsnew/3.5.html#memory-bio-support Edit: https://github.com/IronLanguages/ironpython3/pull/1378 adds some tests from the stdlib which should be removed once we update to 3.5.

What's New In Python 3.5

It looks like `Converter.TryConvertToString` converts user defined types to strings if they define `__str__`. I have no idea is this is the correct behaviour for this method? This causes some...

The `AttributeError` should be passed through when calling `getattr`. For example: ```py class test: def __getattr__(self, attr): raise AttributeError("test") t = test() getattr(t, 'x') ``` throws > AttributeError: 'test' object...

CPython compatibility

https://peps.python.org/pep-0594/ This PEP is interesting since it lists a bunch of modules which will be removed from the standard library in 3.12/3.13. Probably not worth investing effort into getting these...

For example: - [ ] `f'{lambda x:x}'` reports `invalid syntax` instead of `unexpected EOF while parsing`. Note that `eval('(lambda x)')` also reports the wrong message. - [ ] `eval("f'''{\xa0}'''")` reports...

What's New In Python 3.6
CPython compatibility

For example, `"\N"` reports > SyntaxError: (unicode error) malformed \N character escape instead of > SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: malformed \N character escape...

CPython compatibility

For example, in the following example, `col_offset` of the `FormattedValue.value` is not correct: ```py import ast ast.dump(ast.parse("f'{1}'"), include_attributes=True) ``` In multi-line expressions, `lineno` is also incorrect. This is caused by...

What's New In Python 3.6

Using `yield`/`yield from` in an f-string should turn the function into a generator: ```py def fn(y): f'y:{yield y*2}' ```

What's New In Python 3.6

From the Python 3.6 release notes: > A backslash-character pair that is not a valid escape sequence now generates a [DeprecationWarning](https://docs.python.org/3/library/exceptions.html#DeprecationWarning). Although this will eventually become a [SyntaxError](https://docs.python.org/3/library/exceptions.html#SyntaxError), that will...

What's New In Python 3.6

A bunch of CA1416 warnings relating to `FileStream.Lock` on macOS were disabled in `IronPython.SQLite` (https://github.com/IronLanguages/ironpython3/pull/1330). Need to investigate if this is an issue.

macOS