You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm guessing you're using Python 3.7, but what OS are you on? Can you tell me what function the copy() / paste() functions are set to? For example, when I run this code in the interactive shell I can see I'm using the init_windows_clipboard class:
The OS is OpenIndiana. The problem (extra TEST word) happens with both Python 3.7.16 and Python 3.9.16.
$ python3.7
Python 3.7.16 (default, Feb 19 2023, 23:28:22)
[GCC 10.4.0] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyperclip
>>> pyperclip.copy('hello')
>>> pyperclip.copy
<function init_xsel_clipboard.<locals>.copy_xsel at 0x7fffa3e10a70>
>>>
$
$ python3.9
Python 3.9.16 (main, Feb 19 2023, 15:42:40)
[GCC 10.4.0] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyperclip
>>> pyperclip.copy('hello')
>>> pyperclip.copy
<function init_xsel_clipboard.<locals>.copy_xsel at 0x7fffad73aca0>
>>>
$
The test output is polluted by word
TEST
that should not be there:The text was updated successfully, but these errors were encountered: