3 examples of 'comment in py' in Python

Every line of 'comment in py' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
182def reindentComment(self, stc, ln, dedent_only):
183 cursor = stc.GetCurrentPos()
184 fc = stc.PositionFromLine(ln)
185 lc = stc.GetLineEndPosition(ln)
186 text = stc.GetTextRange(fc, lc)
187 count = len(text)
188 pos = 0
189 while pos < count and text[pos] == ' ':
190 pos += 1
191 stc.SetTargetStart(fc)
192 stc.SetTargetEnd(lc)
193 stc.ReplaceTarget(text[pos:count])
194 cursor -= pos
195 return cursor
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

339def c_comment(s):
340 indent()
341 out('/* ')
342 out_Str(s)
343 out(' */\n')
5def get_comment(self):
6 return ("# ", "")

Related snippets