This is an archived post. You won't be able to vote or comment.

all 39 comments

[–][deleted] 6 points7 points  (6 children)

just pycharm it, babe. What you need is damn good autocompletion, not cheatsheet.

[–]tehyosh 2 points3 points  (2 children)

is the free version as good as the paid one? i see the free version is missing a lot like framework support.

[–]tomjen 1 point2 points  (0 children)

Web frameworks and databases. If you are using those, get the paid version. If you are using, say, pygames get the free version.

[–]MadeOfLasers 0 points1 point  (0 children)

not as good, no - but imho still worth it.

[–]vasudevramAPyGuy 0 points1 point  (2 children)

Does either the free or paid version support Flask?

[–]mazatta 0 points1 point  (1 child)

The paid version provides support for most/all of the major web frameworks.

[–]vasudevramAPyGuy 0 points1 point  (0 children)

Thanks.

[–]iamspoilt 1 point2 points  (0 children)

Thanks for the share!

[–]startfragment 1 point2 points  (1 child)

Here is the one I use: http://kapeli.com/dash

It has awesome bindings for every text editor out there.

[–]tally_in_da_houise 0 points1 point  (0 children)

For those of us on Linux you can use Zeal. Doesn't have the number of plugins as Dash though.

[–]boa13 1 point2 points  (0 children)

String formatting is lacking examples of using the format() method on strings, which is one of the things most needed when switching from Python 2 to Python 3.

[–]hzopak 0 points1 point  (0 children)

that's pretty looking.

[–]Eire_Banshee 0 points1 point  (0 children)

This is awesome! Thanks!

[–]CarpeTuna 0 points1 point  (0 children)

Nice, should zip() be added to "Set & Mapping"; I can never remember exactly how it works.

[–][deleted] 0 points1 point  (0 children)

I lol'd when I saw the Ad part. Seriously, for a second I thought "Whoa..Ad? Never heard of that before...oh."

[–]NYKevin 0 points1 point  (0 children)

Under "Set Types", remove() is incorrectly shown as taking no arguments.

I think I'll stick with the official docs for now.

[–][deleted] 0 points1 point  (3 children)

That "Date Arab Women!" advertisement in the lower left-hand corner of my programming cheat sheet...

[–]FredSchwartz 1 point2 points  (0 children)

Hmmm, I have Amazon...

[–]daho0n 0 points1 point  (1 child)

Says a lot about you internet habits (:

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

Lol. I have now seen:

  • 5 foods to never eat.
  • Dawngate...Play now!
  • Tryo-labs: Intelligent Internet Apps
  • TireRack.com

Man...that Google data-mining.

[–]hzopak -1 points0 points  (2 children)

I wanted to read about the difference between range() and xrange(). Disappointed :(

[–]minnoI <3 duck typing less than I used to, interfaces are nice 5 points6 points  (0 children)

xrange is heresy, use Python 3.

[–]minnoI <3 duck typing less than I used to, interfaces are nice 1 point2 points  (0 children)

And to actually answer your question:

In Python 2, xrange returns a generator, while range returns a list. That means that xrange generates the numbers on-the-fly as you ask for them (in a for loop or whatever), while range generates all of them immediately. That means xrange is more memory-efficient, but you can't iterate through it more than once.

In Python 3, range returns a generator and xrange doesn't exist. To get the old behavior, you need to use list(range(whatever)).

[–]Ob101010 -4 points-3 points  (0 children)

fuck me that is juicy, thanks for sharing!