Skip to content

Misleading error type in draw.circle #2404

Open
@yunline

Description

@yunline
>>> import pygame 
pygame-ce 2.4.0.dev1 (SDL 2.26.5, Python 3.10.6)
>>> sf = pygame.Surface((100,100)) 
>>> pygame.draw.circle(sf, "red", (0,0), 1<<33) 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: radius argument must be a number
>>>

Should raise an OverflowError here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot working as intendeddrawpygame.draw

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions