0
RefactoringTool: ### In file server\euclid.py ###
RefactoringTool: Line 147: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence
RefactoringTool: Line 147: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence
RefactoringTool: Line 367: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence
RefactoringTool: Line 367: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence
RefactoringTool: ### In file server\Predefs\Heroes\Sniper.py ###
RefactoringTool: Line 192: You should use a for loop here

When trying to convert python 3 to 3, I am getting above error.

Anyone can advice

Galib
  • 1
  • scope_tokens = attr.get( ("Abilities", "Scope", "Tokens") ) LINE 147 – Galib Sep 16 '22 at 02:25
  • for c, v in map(None, name, value): LINE 147 AND 367 – Galib Sep 16 '22 at 02:27
  • You can use `itertools.starmap` and `itertools.zip_longest` together. – Mechanic Pig Sep 16 '22 at 02:27
  • Welcome to Stack Overflow! Please take the [tour]. For help with your code, you need to provide a [mre], that is, show us a small example of some code that will raise this warning, as well as how you're calling the converter (which seems to be `RefactoringTool`). Please [edit] to add details, cause comments are meant to be temporary. For more tips, see [ask]. – wjandrea Sep 16 '22 at 03:03
  • "3 to 3" should be "2 to 3", right? – wjandrea Sep 16 '22 at 03:04
  • Have you done any research? For example, this existing question: [Using map with multiple args](/q/20646996/4518341) – wjandrea Sep 16 '22 at 03:11
  • scope_tokens = attr.get( ("Abilities", "Scope", "Tokens") ) and another line: for c, v in map(None, name, value): can someone rewrite this two line for python3 – Galib Sep 17 '22 at 01:00

0 Answers0