Skip to content

Errors with raise #2

@nicolasCDT

Description

@nicolasCDT

Hello!
I just report some classical errors with the raise :

  • Empty raise is not support, example :
	def f(self, arg):
		try:
			# ...
		except BaseException:
			raise

	def 2f(self, arg):
                pass
  • Complicated raise is not support too:
		if len(tokens)<argCount:
			raise RuntimeError("Analyzer.Run(line=%s), ...." % (line,...))

Script can't detect RuntimeError() class and cut at the first coma.

Not a bug but a proposition: Don't translate my_dict.has_key(my_key) by my_dict.__contains__(my_key) but my_key in my_dict.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions