Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-119698: fix symtable.Class.get_methods and document its behaviour correctly #120151

Merged
merged 24 commits into from
Jun 20, 2024

Conversation

picnixz
Copy link
Contributor

@picnixz picnixz commented Jun 6, 2024

Copy link
Member

@carljm carljm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also test here that we do identify a PEP 695 generic method (e.g. def f[T](self): ...) as a method.

(I don't have strong opinions about whether we fix or document get_methods, but seems like we may as well fix if this much of the work is already done to fix.)

@bedevere-app
Copy link

bedevere-app bot commented Jun 6, 2024

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@picnixz picnixz requested a review from carljm June 7, 2024 08:07
@picnixz
Copy link
Contributor Author

picnixz commented Jun 7, 2024

Thank you Carl, I have made the requested changes; please review again. The irony is that I worked on those blocks and I forgot about them in this PR...

@bedevere-app
Copy link

bedevere-app bot commented Jun 7, 2024

Thanks for making the requested changes!

@carljm: please review the changes made to this pull request.

Lib/symtable.py Outdated Show resolved Hide resolved
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot x86-64 MacOS Intel ASAN NoGIL 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/1366/builds/1481) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/1366/builds/1481

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/Users/ec2-user/buildbot/buildarea/3.x.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/Users/ec2-user/buildbot/buildarea/3.x.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot aarch64 RHEL8 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/529/builds/6803) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/529/builds/6803

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL7 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/15/builds/8000) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/15/builds/8000

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot x86-64 MacOS Intel NoGIL 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/1258/builds/2183) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/1258/builds/2183

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/Users/ec2-user/buildbot/buildarea/3.x.itamaro-macos-intel-aws.nogil/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/Users/ec2-user/buildbot/buildarea/3.x.itamaro-macos-intel-aws.nogil/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL8 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/509/builds/6802) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/509/builds/6802

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL7 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/179/builds/7619) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/179/builds/7619

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Windows10 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/146/builds/8902) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/146/builds/8902

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "D:\buildarea\3.x.bolen-windows10\build\Lib\symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL8 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/185/builds/7094) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/185/builds/7094

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

JelleZijlstra added a commit that referenced this pull request Jun 20, 2024
…ehaviour correctly (#120151) (#120776)

(cherry picked from commit b8a8e04)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot aarch64 Fedora Stable 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/125/builds/6134) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/125/builds/6134

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL7 LTO + PGO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/244/builds/7561) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/244/builds/7561

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto-pgo/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto-pgo/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL8 LTO + PGO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/442/builds/6871) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/442/builds/6871

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto-pgo/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto-pgo/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL7 LTO + PGO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/96/builds/7767) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/96/builds/7767

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot aarch64 RHEL8 LTO + PGO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/78/builds/7355) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/78/builds/7355

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.lto-pgo/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.lto-pgo/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL8 LTO + PGO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/568/builds/6805) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/568/builds/6805

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64.lto-pgo/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64.lto-pgo/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot aarch64 Fedora Stable Clang Installed 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/14/builds/6285) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/14/builds/6285

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.14/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.clang-installed/build/target/lib/python3.14/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL7 LTO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/402/builds/7456) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/402/builds/7456

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot aarch64 RHEL8 LTO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/338/builds/7013) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/338/builds/7013

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.lto/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.lto/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

JelleZijlstra added a commit that referenced this pull request Jun 20, 2024
…ehaviour correctly (GH-120151) (#120777)

(cherry picked from commit b8a8e04)


Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL8 FIPS Only Blake2 Builtin Hash 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/469/builds/8396) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/469/builds/8396

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL8 LTO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/567/builds/6797) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/567/builds/6797

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel8-z.lto/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL8 LTO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/64/builds/7101) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/64/builds/7101

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64.lto/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64.lto/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot aarch64 Fedora Stable LTO + PGO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/524/builds/6137) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/524/builds/6137

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto-pgo/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto-pgo/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot aarch64 Fedora Stable LTO 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/336/builds/5447) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/336/builds/5447

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Ubuntu Shared 3.x has failed when building commit b8a8e04.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/506/builds/8182) and take a look at the build logs.
  4. Check if the failure is related to this commit (b8a8e04) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/506/builds/8182

Failed tests:

  • test_symtable

Failed subtests:

  • test_class_info - test.test_symtable.SymtableTest.test_class_info

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_symtable.py", line 365, in test_class_info
    self.assertEqual(this.get_methods(), (
                     ~~~~~~~~~~~~~~~~^^
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/symtable.py", line 253, in get_methods
    case _symtable.TYPE_TYPE_PARAM:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '_symtable' has no attribute 'TYPE_TYPE_PARAM'. Did you mean: 'DEF_TYPE_PARAM'?

@picnixz picnixz deleted the fix-symtable-get-methods branch June 22, 2024 13:01
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
…haviour correctly (python#120151)



Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
…haviour correctly (python#120151)



Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…haviour correctly (python#120151)



Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants