Skip to content

Remove Python2 generator work around #7659

@williambdean

Description

@williambdean
Contributor

Seems stale:

pymc/pymc/data.py

Lines 111 to 121 in b36e573

def __next__(self):
"""Next value in the generator."""
if not self._yielded_test_value:
self._yielded_test_value = True
return self.test_value
else:
return smarttypeX(copy(next(self.gen)))
# python2 generator
next = __next__

Activity

ricardoV94

ricardoV94 commented on Jan 25, 2025

@ricardoV94
Member

That whole thing is deprecated (if you trigger it via the user-facing API)

williambdean

williambdean commented on Jan 25, 2025

@williambdean
ContributorAuthor

I see the deprecation warning dating to August. Can I do the honors of removing?

ricardoV94

ricardoV94 commented on Jan 25, 2025

@ricardoV94
Member

Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @ricardoV94@williambdean

      Issue actions

        Remove Python2 generator work around · Issue #7659 · pymc-devs/pymc