Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-101819: Remove _PyWindowsConsoleIO_Type from the Windows DLL#101904

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
miss-islington merged 4 commits intopython:mainfromerlend-aasland:winconsoletype
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Address review: remove the PyWindowsConsoleIO_Check macro
  • Loading branch information
@erlend-aasland
erlend-aasland committedFeb 15, 2023
commit66d43fb050f722ee57a65445f11cc40641bdcadf
1 change: 0 additions & 1 deletionModules/_io/_iomodule.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,6 @@ extern PyTypeObject PyIncrementalNewlineDecoder_Type;

#ifdef MS_WINDOWS
extern PyTypeObject PyWindowsConsoleIO_Type;
#define PyWindowsConsoleIO_Check(op) (PyObject_TypeCheck((op), (PyTypeObject*)&PyWindowsConsoleIO_Type))
#endif /* MS_WINDOWS */

/* These functions are used as METH_NOARGS methods, are normally called
Expand Down
2 changes: 1 addition & 1 deletionModules/_io/winconsoleio.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -260,7 +260,7 @@ _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj,
int fd_is_own = 0;
HANDLE handle = NULL;

assert(PyWindowsConsoleIO_Check(self));
assert(PyObject_TypeCheck((self), (PyTypeObject *)&PyWindowsConsoleIO_Type));
if (self->fd >= 0) {
if (self->closefd) {
/* Have to close the existing file first. */
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp