[Python-bugs-list] [ python-Bugs-568269 ] Misleading string constant.
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 24 Jun 2002 21:56:16 -0700
Bugs item #568269, was opened at 2002-06-12 17:59
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=568269&group_id=5470
Category: Documentation
Group: Python 2.2.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Bjorn Pettersen (bpettersen)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Misleading string constant.
Initial Comment:
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 :-)
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2002-06-24 23:56
Message:
Logged In: YES
user_id=80475
Fixed.
See libwinreg.tex 1.8.and 1.7.18.1
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2002-06-23 21:43
Message:
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>.
----------------------------------------------------------------------
Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-06-13 07:36
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=568269&group_id=5470