<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Στις 19/8/2010 2:32 μμ, ο/η Tim Chase έγραψε:
<blockquote cite="mid:4C6D1667.7090904@tim.thechases.com"
type="cite">So Python needs a way to express that you <b
class="moz-txt-star"><span class="moz-txt-tag">*</span>explicitly<span
class="moz-txt-tag">*</span></b> mean "this is one of those
rare one-element tuples, not an order of operations
prioritization":
<br>
<br>
(1,) + (2,)
<br>
</blockquote>
<blockquote cite="mid:4C6D1667.7090904@tim.thechases.com"
type="cite">
to return "(1,2)"
<br>
</blockquote>
Yes i can see the difference now!! I just had to look at the big
picture here! There is no other way of seperating this for that.<br>
<br>
<blockquote cite="mid:4C6D1667.7090904@tim.thechases.com"
type="cite">
You can also prefix any of them with "r" such as
<br>
<br>
file_path = r"c:\path\to\file.txt"
<br>
file_path = r'c:\path\to\file.txt
<br>
file_path = r"""c:\path\to\file.txt"""
<br>
file_path = r'''c:\path\to\file.txt'''
</blockquote>
<br>
'r' is to avoid escaping backslashes only or other special
charcaters as well?<br>
<br>
As for the string i noticed that if i'am to mix single quotes and
double quotes(any number of them not just always pairs)<br>
and backslashes and other special stuff in them then i'm best off
using 3-sinlge-quotes like<br>
<br>
name='''My name is "Nikos" and i'am from Thessaloniki\Greece'''<br>
<br>
The above example can only be written by using 3-single quoting
right? Not by pairs of single or double quotes, correct?<br>
<br>
And i dont have to use the 'r' in fornt of it too.<br>
<br>
=======================<br>
<br>
Also if you please comment on my mysql string substitution example
i've posted in my previous post just to make it work.<br>
I want it to be able to delete my data but it fails when i try to<br>
<br>
<a
href="http://webville.gr/index.html?page=%22100%20;%20DELETE%20FROM%20visitors;%20SELECT%20*%20FROM%20visitors%22">http://webville.gr/index.html?page="100
; DELETE FROM visitors; SELECT * FROM visitors"</a><br>
<br>
please try it yourself, i dont mind lossign the data i just want to
see if this mysql in jection can actually work.<br>
<br>
Thank you.<br>
</body>
</html>