473,383 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

this must be a stupid question ...

but I can;t find the answer ;-)

As searching for the '$' sign doesn't work well in the help files,
I can not find out, where is the '$' sign used for.

If I try to use it in names,
I get a compiler error,
so it probably has some special meaning.

thanks,
Stef Mientki
Jul 28 '07 #1
3 902
On 2007-07-28, Stef Mientki <S.**************@mailbox.kun.nlwrote:
but I can;t find the answer ;-)

As searching for the '$' sign doesn't work well in the help
files, I can not find out, where is the '$' sign used for.

If I try to use it in names, I get a compiler error, so it
probably has some special meaning.
It means something in regular expressions, namely, the end of the
string/line.

--
Neil Cerutti
Jul 28 '07 #2
On 28/07/07, Stef Mientki <S.**************@mailbox.kun.nlwrote:
but I can;t find the answer ;-)

As searching for the '$' sign doesn't work well in the help files,
I can not find out, where is the '$' sign used for.

If I try to use it in names,
I get a compiler error,
so it probably has some special meaning.
Hi Stef,

It has no special meaning in the Python language, beyond being invalid
for use in identifiers. I believe there is a new string formatting
module which interprets it when it is part of a format string, but
nothing in the core language.

If you look at the language grammar, you can see why this is an error

http://docs.python.org/ref/identifiers.html
David.

>
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
Jul 28 '07 #3
Stef Mientki wrote:
but I can;t find the answer ;-)

As searching for the '$' sign doesn't work well in the help files,
I can not find out, where is the '$' sign used for.

If I try to use it in names,
I get a compiler error,
so it probably has some special meaning.

thanks,
Stef Mientki
The $ is not used in any Python syntax. Neither in variable names nor
any syntactical construct.

Of course, like any character, it can be used in strings. (And some
packages, like re, will make special use of a $ in a string.)

Gary Herron

Jul 28 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Thomas G. Marshall | last post by:
This message is sent to these newsgroups because they are no longer valid: comp.lang.java comp.lang.java.api comp.lang.java.bugs comp.lang.java.misc comp.lang.java.setup comp.lang.java.tech
8
by: sebb | last post by:
I'm kind of newbie to programming, but I thought of something and I want some opinions on that. It's about a new instruction block to do some cycles. I thought about that because it's not very...
119
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see,...
26
by: JKop | last post by:
Why the hell did they make "this" a pointer and not a reference?!! It's so stupid! -JKop
11
by: Steve Jorgensen | last post by:
Now, I don't mean that it's stupid in general. I'm actually pretty impressed with the whole MS Networking thing, but there's one stupid thing that keeps getting in my way, and I can't believe no...
28
by: Madhur | last post by:
Hello what about this nice way to open a file in single line rather than using if and else. #include<stdio.h> void main() { FILE *nd; clrscr();...
3
by: rroman | last post by:
I have a very simple form, takes information from the user, updates a SQL database, now I just want to redirect to a "Thank You For Your Time" web page within the same bowser. ASP. NET VB
28
by: Diodeus | last post by:
I would like to set up an event observer outside of an object, so I can't use this.bindAsEventListener. How can I pass the correct object reference? I tried something like this, and various...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.