unction "pathlib.Path.is_junction") as a proxy to [ ` os.path.isjunction()  ` ](../library/os.path.html#os.path.isjunction "os.path.isjunction") . (Contributed by Charles Machalow in [ gh-99547 ](https://github.com/python/cpython/issues/99547) .) 

  * Add _case_sensitive_ optional parameter to [ ` pathlib.Path.glob()  ` ](../library/pathlib.html#pathlib.Path.glob "pathlib.Path.glob") , [ ` pathlib.Path.rglob()  ` ](../library/pathlib.html#pathlib.Path.rglob "pathlib.Path.rglob") and [ ` pathlib.PurePath.match()  ` ](../library/pathlib.html#pathlib.PurePath.match "pathlib.PurePath.match") for matching the pathâs case sensitivity, allowing for more precise control over the matching process. 

###  pdb  Â¶

  * Add convenience variables to hold values temporarily for debug session and provide quick access to values like the current frame or the return value. (Contributed by Tian Gao in [ gh-103693 ](https://github.com/python/cpython/issues/103693) .) 

###  random  Â¶

  * Add [ ` random.binomialvariate()  ` ](../library/random.html#random.binomialvariate "random.binomialvariate") . (Contributed by Raymond Hettinger in [ gh-81620 ](https://github.com/python/cpython/issues/81620) .) 

  * Add a default of ` lambd=1.0  ` to [ ` random.expovariate()  ` ](../library/random.html#random.expovariate "random.expovariate") . (Contributed by Raymond Hettinger in [ gh-100234 ](https://github.com/python/cpython/issues/100234) .) 

###  shutil  Â¶

  * [ ` shutil.make_archive()  ` ](../library/shutil.html#shutil.make_archive "shutil.make_archive") now passes the _root_dir_ argument to custom archivers which support it. In this case it no longer temporarily changes the current working directory of the process to _root_dir_ to perform archiving. (Contributed by Serhiy Storchaka in [ gh-74696 ](https://github.com/python/cpython/issues/74696) .) 

  * [ ` shutil.rmtree()  ` ](../library/shutil.html#shutil.rmtree "shutil.rmtree") now accepts a new argument _onexc_ which is an error handler like _onerror_ but which expects an exception instance rather than a _(typ, val, tb)_ triplet. _onerror_ is deprecated. (Contributed by Irit Katriel in [ gh-102828 ](https://github.com/python/cpython/issues/102828) .) 

  * [ ` shutil.which()  ` ](../library/shutil.html#shutil.which "shutil.which") now consults the _PATHEXT_ environment variable to find matches within _PATH_ on Windows even when the given _cmd_ includes a directory component. (Contributed by Charles Machalow in [ gh-103179 ](https://github.com/python/cpython/issues/103179) .) 

[ ` shutil.which()  ` ](../library/shutil.html#shutil.which "shutil.which")
will call ` NeedCurrentDirectoryForExePathW  ` when querying for executables
on Windows to determine if the current working directory should be prepended
to the search path. (Contributed by Charles Machalow in [ gh-103179
](https://github.com/python/cpython/issues/103179) .)

[ ` shutil.which()  ` ](../library/shutil.html#shutil.which "shutil.which")
will return a path matching the _cmd_ with a component from ` PATHEXT  ` prior
to a direct match elsewhere in the search path on Windows. (Contributed by
Charles Machalow in [ gh-103179
](https://github.com/python/cpython/issues/103179) .)

###  sqlite3  Â¶

  * Add a [ command-line interface  ](../library/sqlite3.html#sqlite3-cli) . (Contributed by Erlend E. Aasland in [ gh-77617 ](https://github.com/python/cpython/issues/77617) .) 

  * Add the [ ` sqlite3.Connection.autocommit  ` ](../library/sqlite3.html#sqlite3.Connection.autocommit "sqlite3.Connection.autocommit") attribute to [ ` sqlite3.Connection  ` ](../library/sqlite3.html#sqlite3.Connection "sqlite3.Connection") and the _autocommit_ parameter to [ ` sqlite3.connect()  ` ](../library/sqlite3.html#sqlite3.connect "sqlite3.connect") to control  [ **PEP 249** ](https://peps.python.org/pep-0249/) -compliant [ transaction handling  ](../library/sqlite3.html#sqlite3-transaction-control-autocommit) . (Contributed by Erlend E. Aasland in [ gh-83