Project

General

Profile

Feature #24976

The string conversion is a bit abused, when for "machine consumption" should be repr(), not str()

Added by Marco Mambelli about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
09/17/2020
Due date:
% Done:

0%

Estimated time:
Stakeholders:
Duration:

Description

There are several parts of the program where data is converted to string to send it via ClassAds or to have a representation that other functions will use. E.g.
glidein_params_to_encrypt['ProjectId'] = str(credential_el.project_id)
in glideinFrontendInterface.py

repr(VARNAME) is preferred to str(VARNAME) is more suited (it is for machine consumption.
This is not causing problems at the moment.
The code should be reviewed and the str() uses reduced

History

#1 Updated by Marco Mambelli about 1 month ago

  • Target version changed from v3_9_0 to v3_9_1


Also available in: Atom PDF