News for hackers. Stuff that matters.
Re:Programming cheat sheets by shawnps on Tuesday May 03, 2016 @07:35AM (#11619628)
Pretty neat, but the first thing I looked for was how to open a file in Python and it wasn't there. I'm guessing it's because the "File" column only displays methods on the file object, and open is a built-in function. I can see how this might be useful when context-switching between different programming languages.
Re:Programming cheat sheets by dr_zoidberg on Tuesday May 03, 2016 @01:05PM (#11622416)
Also the "Array" section refers to array.array objetcs, but, as there's no sepparate section for "Lists", they can be confused. Worst thing about this is that .byteswap would seem to be a list method (I know it isn't, but someone who's just beggining may be confused as to way the list doesn't have a bytewap() method!)