Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Konrad Gołda
Konrad Gołda
735 Points

Collection or Tuples?

Hi!

I have a question, what means that Python Collection are retired? I saw there a few lessons with subject that was already done on this course with Craig, but here Craig is recommending this Collections as a next step, but when I move forward, I am getting a redirection to "Introducing Tuples". Should I forget about this collections and start Tuples right away? Thanks :)

Dan B
Dan B
6,155 Points

I suppose you are referring to this: https://teamtreehouse.com/library/python-collections-2016-retired-2019

Collections in Python are container datatypes. See here: https://docs.python.org/3/library/collections.html

After checking these videos and the Python documentation, my understanding is as what is written on the documentation here under the table of those datatypes:

"Deprecated since version 3.3, will be removed in version 3.9: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.8."

It makes sense then that any of these videos will be removed from Team Treehouse as the next version of Python will have them removed.

In short, as the video redirects you, continue with what is mentioned. You could still learn about those datatypes if you are interested in learning about what will become 'legacy' datatypes (as you will be likely to see quite a few of them around). But if you are a new learner and want to just keep to what is in current use, it would be better to skip them.

I hope this makes sense.

1 Answer

Konrad Gołda
Konrad Gołda
735 Points

Oh I understand now, thanks Dan!

Dan B
Dan B
6,155 Points

My pleasure :)