Skip to content

bpo-42860: Remove type error from grammar#24156

Merged
miss-islington merged 1 commit into
python:masterfrom
lysnikolaou:parser-type-error
Jan 7, 2021
Merged

bpo-42860: Remove type error from grammar#24156
miss-islington merged 1 commit into
python:masterfrom
lysnikolaou:parser-type-error

Conversation

@lysnikolaou

@lysnikolaou lysnikolaou commented Jan 7, 2021

Copy link
Copy Markdown
Member

This is only there so that alternative implementations written in statically-typed languages can use this grammar without
having type errors in the way.

https://bugs.python.org/issue42860

Automerge-Triggered-By: GH:lysnikolaou

@pablogsal pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

statically-typed languages can use this grammar without having type errors in the way.

This is also our daily reminder that C is a statically typed language unless you start casting stuff to void* 😉

@miss-islington

Copy link
Copy Markdown
Contributor

@lysnikolaou: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 07dcd86 into python:master Jan 7, 2021
@lysnikolaou lysnikolaou deleted the parser-type-error branch January 7, 2021 22:31
@bedevere-bot

Copy link
Copy Markdown

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

Hi! The buildbot aarch64 RHEL7 3.x has failed when building commit 07dcd86.

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/539/builds/542) and take a look at the build logs.
  4. Check if the failure is related to this commit (07dcd86) 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/539/builds/542

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

== Tests result: ENV CHANGED ==

412 tests OK.

10 slowest tests:

  • test_unparse: 4 min
  • test_tokenize: 3 min 47 sec
  • test_capi: 3 min 17 sec
  • test_concurrent_futures: 3 min 13 sec
  • test_multiprocessing_spawn: 2 min 52 sec
  • test_peg_generator: 2 min 48 sec
  • test_lib2to3: 2 min 15 sec
  • test_asyncio: 2 min 4 sec
  • test_unicodedata: 1 min 46 sec
  • test_multiprocessing_forkserver: 1 min 39 sec

1 test altered the execution environment:
test_asyncio

13 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
test_winreg test_winsound test_zipfile64

Total duration: 8 min 48 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/asyncio/sslproto.py", line 321, in __del__
    self.close()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/asyncio/sslproto.py", line 316, in close
    self._ssl_protocol._start_shutdown()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/asyncio/sslproto.py", line 590, in _start_shutdown
    self._abort()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/asyncio/sslproto.py", line 731, in _abort
    self._transport.abort()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/asyncio/selector_events.py", line 680, in abort
    self._force_close(None)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/asyncio/selector_events.py", line 731, in _force_close
    self._loop.call_soon(self._call_connection_lost, exc)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/asyncio/base_events.py", line 745, in call_soon
    self._check_closed()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/asyncio/base_events.py", line 510, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

@lysnikolaou

Copy link
Copy Markdown
Member Author

The buildbot failure seems unrelated to this PR.

@pablogsal

Copy link
Copy Markdown
Member

The buildbot failure seems unrelated to this PR.

Yeah, is some recurring asyncio failure

adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
This is only there so that alternative implementations written in statically-typed languages can use this grammar without
having type errors in the way.

Automerge-Triggered-By: GH:lysnikolaou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants