<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules/getpath.c, branch misc-acks-comment</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-38353: Fix typos in calculate_argv0_path_framework() (GH-16695)</title>
<updated>2019-10-10T13:42:30+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-10T13:42:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b6e0fc74265db96fdd0e0b8151c768c583ad80f0'/>
<id>b6e0fc74265db96fdd0e0b8151c768c583ad80f0</id>
<content type='text'>
bpo-38353, bpo-38429: Fix typos introduced by commit
c02b41b1fb115c87693530ea6a480b2e15460424 in
calculate_argv0_path_framework() of getpath.c.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bpo-38353, bpo-38429: Fix typos introduced by commit
c02b41b1fb115c87693530ea6a480b2e15460424 in
calculate_argv0_path_framework() of getpath.c.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38353: Simplify calculate_pybuilddir() (GH-16614)</title>
<updated>2019-10-07T10:56:59+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-07T10:56:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b96145a6b5d89599ebccd2111d93f5670ddae840'/>
<id>b96145a6b5d89599ebccd2111d93f5670ddae840</id>
<content type='text'>
Calling _Py_wfopen() is enough to check if filename is an existing
file or not. There is no need to check first isfile().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calling _Py_wfopen() is enough to check if filename is an existing
file or not. There is no need to check first isfile().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38353: getpath.c: allocates strings on the heap (GH-16585)</title>
<updated>2019-10-04T17:53:43+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-04T17:53:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c02b41b1fb115c87693530ea6a480b2e15460424'/>
<id>c02b41b1fb115c87693530ea6a480b2e15460424</id>
<content type='text'>
* _Py_FindEnvConfigValue() now returns a string allocated
  by PyMem_RawMalloc().
* calculate_init() now decodes VPATH macro.
* Add calculate_open_pyenv() function.
* Add substring() and joinpath2() functions.

* Fix add_exe_suffix()

And a few cleanup changes.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* _Py_FindEnvConfigValue() now returns a string allocated
  by PyMem_RawMalloc().
* calculate_init() now decodes VPATH macro.
* Add calculate_open_pyenv() function.
* Add substring() and joinpath2() functions.

* Fix add_exe_suffix()

And a few cleanup changes.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38353: getpath.c uses dynamically allocated strings (GH-16582)</title>
<updated>2019-10-04T13:25:50+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-04T13:25:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=abd7cd856ba326bd7574135c7d034e98492ab695'/>
<id>abd7cd856ba326bd7574135c7d034e98492ab695</id>
<content type='text'>
* PyCalculatePath: add "_macro" to the 3 fields storing macro values
* Add dynamically allocated strings to PyCalculatePath</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PyCalculatePath: add "_macro" to the 3 fields storing macro values
* Add dynamically allocated strings to PyCalculatePath</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38353: Rework ismodule() in getpath.c (GH-16574)</title>
<updated>2019-10-04T01:53:26+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-04T01:53:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f0c85793d2a087974969f7eea6ca24bbd1178d53'/>
<id>f0c85793d2a087974969f7eea6ca24bbd1178d53</id>
<content type='text'>
* ismodule() no longer modify the input string.
* copy_absolute(), joinpath(): rename parameters and local variables.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* ismodule() no longer modify the input string.
* copy_absolute(), joinpath(): rename parameters and local variables.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38353: Add subfunctions to getpath.c (GH-16572)</title>
<updated>2019-10-04T00:22:39+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-04T00:22:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=03a8a56faca0c1851051269e3517d70cbce830b7'/>
<id>03a8a56faca0c1851051269e3517d70cbce830b7</id>
<content type='text'>
Following symbolic links is now limited to 40 attempts, just to
prevent loops.

Add subfunctions:

* Add resolve_symlinks()
* Add calculate_argv0_path_framework()
* Add calculate_which()
* Add calculate_program_macos()

Fix also _Py_wreadlink(): readlink() result type is Py_ssize_t, not
int.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Following symbolic links is now limited to 40 attempts, just to
prevent loops.

Add subfunctions:

* Add resolve_symlinks()
* Add calculate_argv0_path_framework()
* Add calculate_which()
* Add calculate_program_macos()

Fix also _Py_wreadlink(): readlink() result type is Py_ssize_t, not
int.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38353: Fix calculate_argv0_path() for symlinks (GH-16549)</title>
<updated>2019-10-03T21:17:00+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-10-03T21:17:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=86ec5c65fe04ece16f3aada5292cc62726062ad0'/>
<id>86ec5c65fe04ece16f3aada5292cc62726062ad0</id>
<content type='text'>
calculate_argv0_path() must read argv0_path link, not read
program_full_path link.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
calculate_argv0_path() must read argv0_path link, not read
program_full_path link.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38234: Cleanup getpath.c (GH-16367)</title>
<updated>2019-09-25T00:54:25+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-09-25T00:54:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=221fd84703c545408bbb4a6e0b58459651331f5c'/>
<id>221fd84703c545408bbb4a6e0b58459651331f5c</id>
<content type='text'>
* search_for_prefix() directly calls reduce() if found is greater
  than 0.
* Add calculate_pybuilddir() subfunction.
* search_for_prefix(): add path string buffer for readability.
* Fix some error handling code paths: release resources on error.
* calculate_read_pyenv(): rename tmpbuffer to filename.
* test.pythoninfo now also logs windows.dll_path</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* search_for_prefix() directly calls reduce() if found is greater
  than 0.
* Add calculate_pybuilddir() subfunction.
* search_for_prefix(): add path string buffer for readability.
* Fix some error handling code paths: release resources on error.
* calculate_read_pyenv(): rename tmpbuffer to filename.
* test.pythoninfo now also logs windows.dll_path</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38234: Add tests for Python init path config (GH-16358)</title>
<updated>2019-09-24T16:21:02+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-09-24T16:21:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bb6bf7d342b4503a6227fd209fac934905b6a1aa'/>
<id>bb6bf7d342b4503a6227fd209fac934905b6a1aa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38234: read_pth_file() now returns PyStatus (GH-16338)</title>
<updated>2019-09-23T22:55:48+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-09-23T22:55:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=85ce0a7178801b538160cbb5cf9ef50a713c45bf'/>
<id>85ce0a7178801b538160cbb5cf9ef50a713c45bf</id>
<content type='text'>
Refactor path configuration code:

* read_pth_file() now returns PyStatus to report errors, rather than
  calling Py_FatalError().
* Move argv0_path and zip_path buffers out of PyCalculatePath
  structures.
* On Windows, _PyPathConfig.home is now preferred over PyConfig.home.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactor path configuration code:

* read_pth_file() now returns PyStatus to report errors, rather than
  calling Py_FatalError().
* Move argv0_path and zip_path buffers out of PyCalculatePath
  structures.
* On Windows, _PyPathConfig.home is now preferred over PyConfig.home.</pre>
</div>
</content>
</entry>
</feed>
