Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
c as parameter
#1
Say I want to use c as a parameter to function f, like f( c ). If I do it without the spaces, you get f©, which is a little confusing. inline doesn't help, f(c).

def f(c):
    pass
I guess full code markup works, but that would have been excessive in the post I was writing. Is there any way to block this for a particular post? Disable smileys doesn't do it.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#2
First time i have seen this behavior,i don't know a way other than using code tag not inline.
Have to look at regex for inline,but as this is the first time this behavior show up and only character c inside () maybe can let it pass.
Maybe a good time to explain that single character as function name and parameter is not best way Wink
Reply
#3
(Jun-26-2018, 08:07 AM)snippsat Wrote: Maybe a good time to explain that single character as function name and parameter is not best way Wink

It was a sort of abstract example of nested functions, so it didn't seem to be worth it. Cry
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#4
Try adding a space before the c. It is not PEP-8 compliant but eliminates the little c.
def f( c):
    #NOTE: Space added before the 'c' due to Bulletin Board limitations (space should not be there)
    pass
Lewis
To paraphrase: 'Throw out your dead' code. https://www.youtube.com/watch?v=grbSQ6O6kbs Forward to 1:00
Reply
#5
There is no problem inside python tag.
def f(c):    
    pass
For inline a extra space can be used ( c) no space (c).
Reply
#6
Huh
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#7
Test should be okay now,for now in inline is named icode.
f(c) (c).
@stranac made a plugin a long time ago for code tags,there is inline named icode and it do not have this behavior.
So i think edit the php file and rename should do it,so we have same inline name.
Outside code tags © i don't care about,then have to into source of Rin Editor had a bad run there a while back before i removed WYSIWYG mode Undecided
Reply
#8
f(c). Awesome. Thanks snippsat. Now I just have to remember it.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#9
At one point we disabled copyright symbol. I would vote for that option again. I would think the coding issue would occur more than someone needing the copyright symbol.
Recommended Tutorials:
Reply
#10
If there is a option to turn copyright symbol off,then just turn it off.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020