Тёмный

Python 3.3: Trust Me, It's Better than 2.7 

Next Day Video
Подписаться 68 тыс.
Просмотров 84 тыс.
50% 1

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@mountainhobo
@mountainhobo 10 лет назад
This saga of Python 2.x vs 3.x starts to remind me of Perl 6...
@timelder43361
@timelder43361 11 лет назад
Will be worth using once all the library's are ported over to use it as well...not much library support right now
@RogerErens
@RogerErens 11 лет назад
In the slide shown around 7:30 which defines 'scoping', the return line should be return increment, value instead of return inc, value
@vcool
@vcool 8 лет назад
Yup. The author could've used a simple IDE with basic static analysis to easily find this bug.
@xbsoft
@xbsoft 9 лет назад
Seriously people.. Time to move to Python 3 !!! Stop being hipsters and use the newest version of the Python. EDIT: I am a Perl developer and wouldn't trade it to Python any day or night; especially Perl's built-in regex.
@jasonking44
@jasonking44 9 лет назад
""Stop being hipsters" You will actually BE a "hipster" by jumping to 3.
@polishfish
@polishfish 9 лет назад
jasonking44 there's basically no reason to stay with python 2 unless you're bound by a library that REQUIRES python 2. the default obviously should be python 3.
@gaatutube
@gaatutube 9 лет назад
xbsoft Don't you mean 'old foggies' or something like that. Hipsters are the ones who are desperate to be cool regardless of consequences.
@horseradish843
@horseradish843 8 лет назад
+gaatutube But that is exactly what they are
@vcool
@vcool 8 лет назад
Is there a corresponding video by any author for what's new in Python 3.4?
@bjodah
@bjodah 11 лет назад
A very good talk. However, I completely disagree that performance would be a "big thing" comparing python 2.7 and 3.3. By profiling your application once it's close to feature complete it is very easy (using Cython) to export the hot parts to a extension module which usually gives me 10-100X speedup.
@BrettCannon
@BrettCannon 11 лет назад
But you would get the same performance boost under Python 2.7 as well presumably from Cython. It has been a point of contention amongst people in the community before, so I had to address it.
@moofymoo
@moofymoo 10 лет назад
lol, python community still hasn't solved out their python 2.x vs 3.x issues and moved to one version for good? ok, maybe next year.
@moofymoo
@moofymoo 8 лет назад
Oh, thanks for update. Took only like 8 years to get to this point.. and no I don't live under the rock, there are other stacks (not naming to avoid flame wars). But what about single centralized package management system, quick google search reveals 4 different claims that tool x is now de facto package manager. Do they need 8 more years to agree on using one package manager?
@moofymoo
@moofymoo 7 лет назад
3 years later (2017), now I have to run some damn script client is using to do some weird data thing. yep, it's python 2.x .. installing python2 , haha.
@ald7248
@ald7248 10 лет назад
I am afraid that introducing a large number of breaking changes in the interest of shedding some of the idiomatic cruft of the past 15 years is a very, very poor trade-off. It's increasingly-apparent to me that the effort I have spent migrating code to Python 3 might have been better served migrating to an entirely different platform (e.g. Scala)
@jasonking44
@jasonking44 9 лет назад
An extremely important point.
@Wowthatsfail
@Wowthatsfail 7 лет назад
Steve Bergman change is bad and scary
@okuno54
@okuno54 11 лет назад
That's because legacy installations. If you're writing new stuff and the libraries you want have been ported, then use 3. I work with python2.6 because that's what the server needs somewhere, and it's a pain compared to 3. However, the incomplete status of library ports to 3 is also frustrating. Really I'm just moving to Haskell for my own work.
@bjodah
@bjodah 11 лет назад
Indeed, don't get me wrong - I was just trying to say that even if Python 3.3 would have been slightly slower: I wouldn't have minded that tradeoff for new features. CPU bound Python code can (should?) have hot parts factored out to e.g. Cython or you can "write an extension in C" as Guido put it in his keynote at PyCon 2012. Though I would strongly advocate against the latter and recommend using e.g. Cython (especially after watching David Malcolm's talk "Death by a thousand leaks").
@VladSvoka
@VladSvoka 11 лет назад
what is a point of venv in python33 without pip? Anyway, big thing for me in python is unicode. Great idea to put line between strings and b''
@duncreg
@duncreg 11 лет назад
That's because of people like those posting here who keep saying "there's nothing new". They hold everyone else back.
@gamemeister27
@gamemeister27 11 лет назад
That's because no one is switching to 3. Roll your own, people will start using those libraries you make, more people switch to Python 3 because someone started making libraries, meaning there is more demand for more libraries, meaning more and more users and more and more libraries.
@salmaankhan1654
@salmaankhan1654 11 лет назад
in 3.3 their are great new fix-ups, but I asked a renown computer scientist that 2.7 is what most industries use
@DarkShroom
@DarkShroom 11 лет назад
i dunno the "print" requirement is just annoying, i use python like a scratchpad in console, further mac os has 2.7 so whatever this would basically require another copy of the same thing. further it may only be slightly different but do i have time to waste finding out how when most apps run python 2.7 type code. people do not appreciate having to rewrite things... hence most everything i run into uses 2.7
@Halz0holic
@Halz0holic 10 лет назад
He kinda speaks like Stewart from Big Bang Theory.
@shefitomer
@shefitomer 11 лет назад
gate-way that thing that allows you to surf online.... python is much better than C++ and java because you are able to make more complex programs in less time i used to be a c++ programmer but now python is my "way of programming"
@TheClonerx
@TheClonerx 6 лет назад
Every language is a tool, you chose your tool depending on the needs
@jdgregson
@jdgregson 7 лет назад
What part of this is "Google Confidential and Proprietary"?
@dfrusdn
@dfrusdn 11 лет назад
I want to switch to 3 but it does not support most libraries.
@intelligenceservices
@intelligenceservices 7 лет назад
it is not easy to just use python 3 because there are so many projects out there that were made in python 2. this officially makes it no fun to use python seriously.
@FrostZone
@FrostZone 9 лет назад
Tough crowd
@jesuschrist1501
@jesuschrist1501 8 лет назад
+Joosherino Tries Design Every programming crowd is always a tough crowd, they don't open their minds, they think logically, like robots with all that years of programming, which takes out the endorphin's that tinkles the laughing mechanisms.
@FrostZone
@FrostZone 8 лет назад
k
@neuemage
@neuemage 11 лет назад
Achievement unlocked!
@SvenTeresniak
@SvenTeresniak 11 лет назад
Python is just sexy! :D Thanks for this good talk
@dengan699
@dengan699 7 лет назад
2to3 done
@KickYouInTheThroat
@KickYouInTheThroat 11 лет назад
0:10 i wonder what the wire was
10 лет назад
Google Confidential and Proprietary?
@brettlaw4346
@brettlaw4346 10 лет назад
What do they do with your information?
@torontoomar
@torontoomar 11 лет назад
Cool thanks for the vid
@charliegnu
@charliegnu 11 лет назад
super is now considered super!
@trungthanhbp
@trungthanhbp 7 лет назад
i trust you, but i still using python 2
@nicolausvalar9861
@nicolausvalar9861 10 лет назад
Right now, the best version of python is 2.7. Theres a larger community to back it up, and it's stable. Until python decides to stay at a single version for at least a decade, I'm not moving away from 2.7.
@nicolausvalar9861
@nicolausvalar9861 10 лет назад
***** C++ was a rock. Why can't Python be a rock? Rocks are nice.
Далее
Transforming Code into Beautiful, Idiomatic Python
48:51
Python's Class Development Toolkit
45:56
Просмотров 238 тыс.
Holding Bigger And Bigger Dogs
00:18
Просмотров 27 млн
How to Build a Homemade Bike Using a Barrel
00:21
Просмотров 1,1 млн
The Art of Subclassing
39:48
Просмотров 39 тыс.
Loop like a native: while, for, iterators, generators
29:15
Stop Writing Classes
27:29
Просмотров 934 тыс.
The Clean Architecture in Python
49:54
Просмотров 109 тыс.
Vim as a Python IDE - Martin Brochhaus
36:44
Просмотров 282 тыс.
Functional Programming with Python
27:05
Просмотров 80 тыс.
How To Think Like A Programmer
1:00:07
Просмотров 2 млн
Holding Bigger And Bigger Dogs
00:18
Просмотров 27 млн