Python Forum
Can we use Python 4's end keyword in Python 2.7?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we use Python 4's end keyword in Python 2.7?
#1
Because of my ancient animation pipeline, I am stuck with python 2.7. I saw that python 4 will have an end keyword which can already be used in python 3 with pyend (https://pypi.org/project/pyend/).
I am using that in some python 3 projects already and it's pretty cool.

However, the pypi page states "Requires: Python >=3.7". Now my question is, does that mean that pyend itself needs Python 3.7 or newer to run on but it can be used on older python code or can it only be used on code that is >=3.7? I have tried with some python 2 code and it seems to be working fine but I would rather be sure before I switch.

Cheers!
Reply
#2
(Apr-01-2023, 01:39 PM)mqnc Wrote: I saw that python 4 will have an end keyword
Do you have any reference or link for python 4 implementing an end keyword? This looks like a joke to me.

Also in your module, there is this line
end = None
With this definition one can obviously scatter 'end' keywords everywhere in the code.
DeaD_EyE likes this post
Reply
#3
Only usable on April the 1st.
Gribouillis likes this post
Reply
#4
(Apr-01-2023, 01:39 PM)mqnc Wrote: I am using that in some python 3 projects already and it's pretty cool.
You may find my adddot.py extension useful. With it you can actually write Python 3 code without the 'dot' operator.
Reply
#5
I saw the post and after the first 3 Words... it's an April Foul.

My problem is, that I think the same the whole year about other non-technical news.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Find a specific keyword after another keyword and change the output sgtmcc 5 839 Oct-05-2023, 07:41 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020