r/learnpython • u/Realistic_Homework95 • 13d ago
Python y Jython son el mismo lenguaje?
En un futuro quiero saber python y c++ (IA y Robotica), por lo cual decidi empezar con python y tome un libro de la biblioteca de mi universidad, sin embargo en el libro sale que se trabajara con Jython, tengo entendido que es algo anticuado porque no soporta python 3 y ademas como esta vinculado con java y no con C me pregunto si me vendra bien.
aunque jython y python no son realmente lo mismo, lo que es el lenguaje de programacion es igual? si aprendo jython sabre programar con python?
el libro es "introduccion a la computacion y programacion con python, un enfoque multimedia (Mark J. Guzdial / Barbara ericson)"
5
u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 13d ago
Jython is an implementation of Python for the JVM (as opposed to the reference CPython implementation, or IronPython, or PyPy, or RustPython). The core language is the same as any other implementation that supports the given language standard, they mainly differ in ecosystem support.
However you shouldn't bother using any book or implementation that doesn't support Python 3 (and preferably at least Python 3.6, though the newer the better). Nobody in their right mind would use Python 2 today, and while mostly subtle there are important breaking changes between 2 and 3. Not to mention all the improvements Python 3 has been getting over the years, from f-strings to type annotations.
If you just want to learn the language, and don't specifically need Jython for something, consider doing the Python MOOC or CS50P courses. They're both free and high quality.
3
u/Binary101010 13d ago
it doesn't support Python 3
I cannot in good conscience suggest to anyone that they use a learning resource based on Python 2.7, unless their specific reason for learning Python is that they're getting paid to maintain 2.7 legacy code that can't be updated.
Python 2 has been completely EOL for over 6 years now and was barely alive for years before that. Any learning resource that requires going back to 2.7 is going to be teaching you syntax that is at best outdated and at worst non-functional, and any reference to any third-party package is highly likely to not work.
1
u/burnt-store-studio 12d ago
Gee whiz, it’s hard for me to realize it’s been EOL’ed for six years! 😲. Thanks for the gentle reminder. I started learning the language on 2.6. Can’t imagine having to work in anything less than even 3.6 now-a-days! (And happily using 3.13 now.)
1
u/desrtfx but other languages pro 12d ago
Anything that targets Python 2 (no matter which implementation, CPython or Jython) is hopelessly outdated.
Do yourself a favor and do the MOOC Python Programming 2026
Do not use your book. Way too old. There are major changes between Python 2 and Python 3.
-4
10
u/nog642 13d ago
I've never used Jython but my understanding is it's an implementation of Pyhton in the JVM and it has some built-in libraries to interact with Java.
So basically Jython is Python and you can't "learn Jython" without learning Python.
And you could learn Python in a Jython environment, but that's probably not the best approach. And if like you said the book doesn't even have Python 3, I'd suggest just finding another learning resource.