[issue44189] multiprocessing AF_PIPE name format is slightly confusing in the docs

2021-05-20 Thread Eryk Sun


Eryk Sun  added the comment:

There's a formatting problem in Doc/library/multiprocessing.rst due to 
consumption of the backslashes in multiple steps. The following keeps all of 
the required backslashes in the HTML output:

* An ``'AF_PIPE'`` address is a string of the form
  :samp:`r'\\.\\pipe{PipeName}'`.  To use :func:`Client` to connect 
to a named
  pipe on a remote computer called *ServerName* one should use an address 
of the
  form :samp:`r'{ServerName}\\pipe{PipeName}'` instead.

Or just use a regular literal and rely on the reader to understand that 
"{PipeName}" and "{ServerName}" are parameters:

* An ``'AF_PIPE'`` address is a string of the form
  ``r'\\.\pipe\{PipeName}'``.  To use :func:`Client` to connect to a named
  pipe on a remote computer called *ServerName* one should use an address 
of the
  form ``r'\\{ServerName}\pipe\{PipeName}'`` instead.

--
nosy: +eryksun
type:  -> enhancement
versions: +Python 3.10, Python 3.11, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44189] multiprocessing AF_PIPE name format is slightly confusing in the docs

2021-05-20 Thread Antony Lee


New submission from Antony Lee :

https://docs.python.org/3/library/multiprocessing.html#address-formats 
currently states

> An 'AF_PIPE' address is a string of the form r'\.\pipe{PipeName}'. To use 
> Client() to connect to a named pipe on a remote computer called ServerName 
> one should use an address of the form r'\ServerName\pipe{PipeName}' instead.

which suggests that if the pipe is named "foo", the string should be 
r'\.\pipe{foo}' (especially given that the other substituted string, 
ServerName, is given in italics... but actually the correct format is 
r'\.\pipe\foo'.

Hence I would suggest fixing the markup to give name formats as 
r'\.pipe\PipeName' where PipeName, is in italics, like ServerName.

--
assignee: docs@python
components: Documentation
messages: 394020
nosy: Antony.Lee, docs@python
priority: normal
severity: normal
status: open
title: multiprocessing AF_PIPE name format is slightly confusing in the docs

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com