Skip to content

libgap of Group with no generator fails #35508

@fchapoton

Description

@fchapoton

Is there an existing issue for this?

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.

Did you read the documentation and troubleshoot guide?

  • I have read the documentation and troubleshoot guide

Environment

- **OS**: Ubuntu
- **Sage Version**: 10.0.beta9

Steps To Reproduce

No response

Expected Behavior

It should return the group with one element.

Actual Behavior

sage: libgap.Group([])
---------------------------------------------------------------------------
GAPError                                  Traceback (most recent call last)
Cell In [54], line 1
----> 1 libgap.Group([])

File ~/sage/src/sage/libs/gap/element.pyx:2535, in sage.libs.gap.element.GapElement_Function.__call__()
   2533 try:
   2534     sig_GAP_Enter()
-> 2535     sig_on()
   2536     if n == 0:
   2537         result = CALL_0ARGS(self.value)

GAPError: Error, usage: Group(<gen>,...), Group(<gens>), Group(<gens>,<id>)

Additional Information

Found when trying

WeylGroup(SymmetricGroup(1))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions