Python Forum
const or #define coming from C
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
const or #define coming from C
#11
(Sep-15-2021, 10:32 PM)jefsummers Wrote: Yes
Though, truly I cannot speak for the guidance committees. Suggest a PEP that adds constants and see what the reaction is.

Sounds good.

The following is not intended to be a complaint or criticism. In many languages, such as C and C++, enhancement requests must be specific and complete and with strong familiarity with the language. If Python does not have such rigorous requirements then it is worth pursuing by someone interested in doing that. I am sure however that it cannot be a casual effort.
Reply
#12
Right. It is not trivial, but there is a mechanism. Start by reading PEP 1. This explains what PEPs are, and part way down you get the section "Start with an idea for Python". There are then guides for submission. It does require a GitHub account and the process creates a fork, so you should familiarize yourself with that if you aren't already.

Then it may be a good idea to look at some PEP submissions. Linking to one that Guido submitted and self rejected! Yet I hear something similar is coming in a version soon. https://www.python.org/dev/peps/pep-3103/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to know coming snmp trap version in python pysnmp? ilknurg 0 2,621 Jan-31-2022, 12:16 PM
Last Post: ilknurg
  String coming up weird EddiesTech 1 1,532 Mar-15-2020, 05:02 PM
Last Post: buran
  Timer keeps coming up with a non-callable int object birdwatcher 1 3,174 Feb-16-2020, 12:40 PM
Last Post: DeaD_EyE
  Error Message Coming Up When Running Code eddywinch82 0 1,892 Feb-10-2020, 11:48 PM
Last Post: eddywinch82
  need help coming up with a code Staph 0 1,461 Jun-21-2019, 10:06 AM
Last Post: Staph
  Learning python My lists are not coming out right TheMusicMan 3 2,619 Aug-17-2018, 02:45 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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