This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Misleading string constant.
Type: Stage:
Components: Documentation Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: bpettersen, fdrake, rhettinger, tim.peters
Priority: normal Keywords:

Created on 2002-06-12 22:59 by bpettersen, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (4)
msg11184 - (view) Author: Bjorn Pettersen (bpettersen) Date: 2002-06-12 22:59
In _winreg.ConnectRegistry() it says:

computer_name is the name of the remote computer, of 
the form "\\computername". If None, the local computer 
is used. 

Could it be changed to use r"\\computername"? (it just 
took me half an hour to figure out why it couldn't find the 
computer on the network, and I really should know 
better :-)
msg11185 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-06-13 12:36
Logged In: YES 
user_id=3066

Tim, can you tell me what the right thing is?  I don't have
enough Windows Registry Zen to know.  Feel free to assign
back to me for action.
msg11186 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-06-24 02:43
Logged In: YES 
user_id=31435

Ya, this is just the usual business of "how do you spell a 
string that's supposed to have two adjacent backslashes"?  
Using an r-string is indeed easiest.  Using a regular string 
literal with 4 adjacent backslashes would also work.  It's 
really got nothing to do with Windows, except that MS has 
this irritating convention of using backslashes in assorted 
network names.  Back to you, Fred -- happy to be of 
service <wink>.
msg11187 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-06-25 04:56
Logged In: YES 
user_id=80475

Fixed.
See libwinreg.tex 1.8.and 1.7.18.1
History
Date User Action Args
2022-04-10 16:05:24adminsetgithub: 36741
2002-06-12 22:59:17bpettersencreate