Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Base64 encoding returns bytes. Why would anybody _ever_ want that? The whole purpose of B64 encoding is to make something string-safe.

No, it's to make something ascii-safe which is a completely different concern.

> It's also now invalid to have this as a project structure: Name/name.py (with a Name class) in it.

What?

    > mkdir Name
    > echo "class Name: pass" > Name/name.py
    > python3 -c "from Name.name import Name;print(Name)"
    <class 'Name.name.Name'>
> "Dictionary view objects" are horribly unsemantic

Unsemantic? They're just the opposite. keyviews and itemviews are now sets, which is semantically sensible and really useful to get the intersection of two dictionary keysets, the only missing part is being able to subdict based on a keyset.

> Just give me a list.

    list(d.keys())
Why are you even using .sort()

> unicode strings.

That's what broke compatibility FFS, that's the entire reason why the maintainers felt they could change the rest of the language.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: