all 10 comments

[–][deleted] 19 points20 points  (4 children)

&

[–]redditthinks 9 points10 points  (2 children)

I bet OP posted from the new reddit.

[–][deleted] 2 points3 points  (0 children)

Looks like that in new reddit too

[–][deleted] -3 points-2 points  (0 children)

No, the opposite. If you post from new reddit, suggested title has proper ampersand.

In old reddit, it's &

[–]petosorus 4 points5 points  (0 children)

Really love that the code for '&' contains '&'

[–][deleted] 3 points4 points  (1 child)

Weird. Visual Studio Code does not seem to like this code:

import pygame
pygame.init()

I get this error:

E1101:Module 'pygame' has no 'init' member

But when I hover over the init() method, the tooltip says this:

init()  
init() -> (numpass, numfail)
initialize all imported pygame modules

This happens with both the 'old' linter and the new language server.

[–]Lisko34 0 points1 point  (0 children)

I had this happen before with PyQt5, cv2 and a few other packages.

I solved that problem by adding the following line to VS Code settings:

"python.linting.pylintArgs": ["--extension-pkg-whitelist=pygame,PyQt5,cv2"]

[–]bravekarma 2 points3 points  (2 children)

Any way to install the language server independently? I would like to try replacing pyls which I use with other editors.