This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Yang Big
Recipients Yang Big, amaury.forgeotdarc, belopolsky, meador.inge
Date 2017-10-30.03:53:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1509335619.79.0.213398074469.issue31896@psf.upfronthosting.co.za>
In-reply-to
Content
Here my code:
  2 import sys
  3 import ctypes
  4      
  5      
  6 def hi():
  7     class timespec(ctypes.Structure):
  8     ┆   """Time specification, as described in clock_gettime(3)."""
  9     ┆   _fields_ = (('tv_sec', ctypes.c_long),
 10     ┆   ┆   ┆   ┆   ('tv_nsec', ctypes.c_long))
 11      
 12      
 13     ts = timespec()
 14     po = ctypes.pointer(ts)
 15      
 16      
 17 def main():
 18     while True:
 19     ┆   test = hi()
 20      
 21 if __name__ == "__main__":
 22     sys  2 import sys
  3 import ctypes
  4      
  5      
  6 def hi():
  7     class timespec(ctypes.Structure):
  8     ┆   """Time specification, as described in clock_gettime(3)."""
  9     ┆   _fields_ = (('tv_sec', ctypes.c_long),
 10     ┆   ┆   ┆   ┆   ('tv_nsec', ctypes.c_long))
 11      
 12      
 13     ts = timespec()
 14     po = ctypes.pointer(ts)
 15      
 16      
 17 def main():
 18     while True:
 19     ┆   test = hi()
 20      
 21 if __name__ == "__main__":
 22     sys.exit(main())

run this code, i find that the program occupy more and more VmRss
my python is 2.7.11, in python3 i also find this problem. 
   Is this normal?I am a newbie with python, not very familiar with some 
python's internal principle. 
   Tanks.
History
Date User Action Args
2017-10-30 03:53:40Yang Bigsetrecipients: + Yang Big, amaury.forgeotdarc, belopolsky, meador.inge
2017-10-30 03:53:39Yang Bigsetmessageid: <1509335619.79.0.213398074469.issue31896@psf.upfronthosting.co.za>
2017-10-30 03:53:39Yang Biglinkissue31896 messages
2017-10-30 03:53:38Yang Bigcreate