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
#3
(Sep-14-2021, 04:02 PM)jamie_01 Wrote: please, coming from C, where would be #define or const int ... to a newbie just scraping the surface of python?

There is a big difference between #define and const int. When I search for preprocessors for Python I found How would you do the equivalent of preprocessor directives in Python? | Newbedev.
Reply


Messages In This Thread
const or #define coming from C - by jamie_01 - Sep-14-2021, 04:02 PM
RE: const or #define coming from C - by jefsummers - Sep-14-2021, 04:38 PM
RE: const or #define coming from C - by SamHobbs - Sep-14-2021, 07:00 PM
RE: const or #define coming from C - by deanhystad - Sep-14-2021, 08:22 PM
RE: const or #define coming from C - by ndc85430 - Sep-15-2021, 08:05 AM
RE: const or #define coming from C - by SamHobbs - Sep-15-2021, 05:10 PM
RE: const or #define coming from C - by jefsummers - Sep-15-2021, 08:03 PM
RE: const or #define coming from C - by SamHobbs - Sep-15-2021, 09:07 PM
RE: const or #define coming from C - by jefsummers - Sep-15-2021, 10:32 PM
RE: const or #define coming from C - by SamHobbs - Sep-16-2021, 04:54 AM
RE: const or #define coming from C - by deanhystad - Sep-16-2021, 02:49 AM
RE: const or #define coming from C - by jefsummers - Sep-16-2021, 05:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to know coming snmp trap version in python pysnmp? ilknurg 0 2,657 Jan-31-2022, 12:16 PM
Last Post: ilknurg
  String coming up weird EddiesTech 1 1,577 Mar-15-2020, 05:02 PM
Last Post: buran
  Timer keeps coming up with a non-callable int object birdwatcher 1 3,217 Feb-16-2020, 12:40 PM
Last Post: DeaD_EyE
  Error Message Coming Up When Running Code eddywinch82 0 1,918 Feb-10-2020, 11:48 PM
Last Post: eddywinch82
  need help coming up with a code Staph 0 1,488 Jun-21-2019, 10:06 AM
Last Post: Staph
  Learning python My lists are not coming out right TheMusicMan 3 2,665 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