[python-win32] [EXT] [ANN] pywin32 build 305 released

Scorby, Gary Gary.Scorby at finastra.com
Mon Nov 7 14:42:19 EST 2022


The error I reported in 304 still exists in the interactive window for Python 3.11.  Is this scheduled to be fixed?

Create the function below.  Goes bad when you try to call the function.

>>> def biff(x):
...     x = x + 1
...
>>> biffFailed to format the args
Traceback (most recent call last):
  File "C:\Python311-32\Lib\site-packages\pythonwin\pywin\idle\CallTips.py", line 133, in get_arg_text
    argText = inspect.formatargspec(*inspect.getfullargspec(fob))
              ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'formatargspec'
(

-----Original Message-----
From: python-win32 <python-win32-bounces+gary.scorby=dh.com at python.org> On Behalf Of Mark Hammond
Sent: Sunday, November 6, 2022 12:52 AM
To: Python-win32 at python.org
Subject: [EXT] [python-win32] [ANN] pywin32 build 305 released

Hi all,
   I'm happy to announce the release of pywin32 build 305.

This release has quite a few changes under the hood, updating our use of older deprecated Python functions etc - so there's some risk of unintended consequences.

Another unintended change is that .exe installers are deprecated, because the upstream support for building them is deprecated. Anyone still using them should start moving to pip:

   python -m pip install --upgrade pywin32

But while .exe files exist:

   https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmhammond%2Fpywin32%2Freleases%2Ftag%2Fb305&data=05%7C01%7Cgary.scorby%40finastra.com%7Cbbed47aa19c84221edd208dabfcbe483%7C0b9b90da3fe1457ab340f1b67e1024fb%7C0%7C0%7C638033179682788914%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bOvV7xam09Bg4mv%2BdWZaJpTkXUBZR17CQtopv1r0Iyg%3D&reserved=0

For initial support (eg, to ask questions about the release etc), please contact this mailing-list (python-win32 at python.org).  If you want to report a bug, please do so at https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmhammond%2Fpywin32%2Fissues&data=05%7C01%7Cgary.scorby%40finastra.com%7Cbbed47aa19c84221edd208dabfcbe483%7C0b9b90da3fe1457ab340f1b67e1024fb%7C0%7C0%7C638033179682788914%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YUvKzL024GAvhS7Vz5qx8ElfZC%2FB8I%2FO1S56jOoONR0%3D&reserved=0

As always, thanks to everyone who contributed to this release, both in terms of code and reporting bugs.

Cheers,

Mark.

Changes:

* Installation .exe files were deprecated.

* @kxrob put a lot of work towards removing use of the deprecated
   Unicode API so we can build on Python 3.12. This should be largely
   invisible, but please report any unintended consequences.

* odbc: Handle `varchar(max)`/`nvarchar(max)` column sizes (#1954)

* win32api.GetTickCount() now returns an unsigned 64bit integer (@kxrob,
   #1946)

* win32pipe.GetNamedPipeHandleState() now takes a 3rd optional param
   indicating whether the username should be returned, and related
   constants added. (@kxrob, #1946)

* Added win32gui.GetTopWindow() and win32gui.GetAncestor() (@CristiFati,
   #1928)

* Tweaks to how pywintypes searches for DLLs to better support
   virtualenvs created with --system-site-packages. (@saaketp, #1933)

* Added win32event.CreateWaitableTimerExW (#1945, @zariiii9003)

* Changes in PARAM handling. Some functions which returned a WPARAM or
   LPARAM allowed you to return a pointer to a Python buffer object or a
   PyUnicode. These functions now only accept a Python long to be
   returned. Note that this DOES NOT apply to functions with accept
   WPARAM or LPARAM as arguments, only when they are being returned.
   Impacted functions are `OnNotify` handler, LV_ITEM/TV_ITEM objects,
   PyIContextMenu3::HandleMenuMsg2, and the result of a WNDPROC/DLGPROC
   (#1927).

* service registration had an overhaul, avoiding a complicated, and
   ultimately unnecessary "single globally registered service runner"
   concept. Now, when registering a service, the host pythonservice.exe
   runner will be copied to `sys.exec_prefix`, along with possibly
   `pywintypesXX.dll` and run from there. (#1908)

* Dropped support for allowing a bytes object to be passed where a COM
   BSTR is expected - this support was accidental on the path from
   2.x->3.x.

* win32crypt's PyCERTSTORE.CertCloseStore()'s `Flags` argument has been
   deprecated as it is likely to crash the process if
   `CERT_CLOSE_STORE_FORCE_FLAG` is specified. The underlying function is
   now always called with `CERT_CLOSE_STORE_CHECK_FLAG`, and support for
   this param will be dropped at some point in the future.

* Fix a bug where win32crypt.CryptQueryObject() would return a
   PyCTL_CONTEXT object instead of a PyCERT_CONTEXT for base64 encoded
   certificates (#1859)

* win32crypt.CryptQueryObject() is now able to return PyCTL_CONTEXT
   objects. This is technically a breaking change as previously it would
   return the address in memory of the object, but this address wasn't
   practically usable, so it's very unlikely anyone relied on this
   behavior. (#1859)
_______________________________________________
python-win32 mailing list
python-win32 at python.org
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-win32&data=05%7C01%7Cgary.scorby%40finastra.com%7Cbbed47aa19c84221edd208dabfcbe483%7C0b9b90da3fe1457ab340f1b67e1024fb%7C0%7C0%7C638033179682788914%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2eOpX%2F7r3b%2Fb1hjxV%2BKydecNNKlzlIfWHfBHGkHF1lU%3D&reserved=0
"FINASTRA" is the trade name of the FINASTRA group of companies. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and FINASTRA. Please refer to the executed contract between you and the relevant member of the FINASTRA group for the identity of the contracting party with which you are dealing.


More information about the python-win32 mailing list