Python Forum
Basic Pyhton for Rhino 6 question about variables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic Pyhton for Rhino 6 question about variables
#2
pt2 is a pointer to pt1, so they both share the same variable space. (an other name for the same variable)
id one changes since the other does as well since they are really one.
you can use the copy function if you want one to be a copy of and independent of the other.
https://docs.python.org/3/library/copy.h...odule-copy
Reply


Messages In This Thread
RE: Basic Pyhton for Rhino 6 question about variables - by Larz60+ - Jan-28-2020, 04:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Very Beginner question on simple variables Harvy 1 408 Apr-12-2024, 12:03 AM
Last Post: deanhystad
  Basic Coding Question: Exit Program Command? RockBlok 3 736 Nov-19-2023, 06:31 PM
Last Post: deanhystad
  Vlookup function in Pyhton antozas 1 773 Oct-02-2023, 04:16 AM
Last Post: vikraman
  [solved] Basic question on list matchiing paul18fr 7 2,061 May-02-2022, 01:03 PM
Last Post: DeaD_EyE
  Very basic calculator question BoudewijnFunke 4 2,087 Dec-10-2021, 10:39 AM
Last Post: BoudewijnFunke
  Reading Multiple text Files in pyhton Fatim 1 2,037 Jun-25-2021, 01:37 PM
Last Post: deanhystad
  basic question isinstance tames 5 3,010 Nov-23-2020, 07:20 AM
Last Post: tames
  basic question about tuples and immutability sudonym3 6 3,118 Oct-18-2020, 05:11 PM
Last Post: sudonym3
  Pyhton code help from head first with python Shaikat_99 3 3,357 Jun-07-2020, 09:12 AM
Last Post: snippsat
  Question regarding local and global variables donmerch 12 5,481 Apr-12-2020, 03:58 PM
Last Post: TomToad

Forum Jump:

User Panel Messages

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