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 Claudiu.Popa
Recipients Claudiu.Popa
Date 2014-02-13.20:00:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392321624.4.0.262730610366.issue20619@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a strange bug. I don't know if this is legitimate or not, but it seems like there is some sort of overflow.

Given the following code:

  data = """
  def function(*, foot):
    print(foot)
  """
  from ast import parse
  import tracemalloc
  tracemalloc.start()
  node = parse(data)
  tracemalloc.stop()
  arg = node.body[0].args.kwonlyargs[0]
  print(arg.lineno, arg.col_offset)

it yields on a freshly build the following, which is obviously wrong. It should have printed `1 1`.

  <_ast.arg object at 0x80103bcf8>
  1681660160 -2124152704

Also, there is no need to call tracemalloc.start, it has the same behaviour just by importing it.
History
Date User Action Args
2014-02-13 20:00:24Claudiu.Popasetrecipients: + Claudiu.Popa
2014-02-13 20:00:24Claudiu.Popasetmessageid: <1392321624.4.0.262730610366.issue20619@psf.upfronthosting.co.za>
2014-02-13 20:00:24Claudiu.Popalinkissue20619 messages
2014-02-13 20:00:23Claudiu.Popacreate