473,378 Members | 1,407 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,378 software developers and data experts.

Backslash frowned upon?

Why is the \ backslash character frowned upon? Can I still use it in
Python 3.0 to achieve the same thing it was designed to do?
Jun 27 '08 #1
5 936
En Tue, 13 May 2008 07:25:06 -0300, <wx********@gmail.comescribió:
Why is the \ backslash character frowned upon? Can I still use it in
Python 3.0 to achieve the same thing it was designed to do?
Uh... where do you get your (mis)information about 3.0?
See http://docs.python.org/dev/3.0/whatsnew/3.0.html

--
Gabriel Genellina

Jun 27 '08 #2
wx********@gmail.com wrote:
Why is the \ backslash character frowned upon? Can I still use it in
Python 3.0 to achieve the same thing it was designed to do?
Yes, it's still valid to use in a script.

See http://docs.python.org/dev/3.0/whatsnew/3.0.html for the big changes
coming with 3.0

Paul
Jun 27 '08 #3
On May 13, 5:54*am, Paul Melis <p...@science.uva.nlwrote:
wxPytho...@gmail.com wrote:
Why is the *\ *backslash character frowned upon? Can I still use it in
Python 3.0 to achieve the same thing it was designed to do?

Yes, it's still valid to use in a script.

Seehttp://docs.python.org/dev/3.0/whatsnew/3.0.htmlfor the big changes
coming with 3.0

Paul
I have just discovered the escape key. Do you honor it?
Jun 27 '08 #4
On Tue, 13 May 2008 03:25:06 -0700, wxPythoner wrote:
Why is the \ backslash character frowned upon?
Is it frowned upon?

Ciao,
Marc 'BlackJack' Rintsch
Jun 27 '08 #5
On Tue, 2008-05-13 at 03:25 -0700, wx********@gmail.com wrote:
Why is the \ backslash character frowned upon? Can I still use it in
Python 3.0 to achieve the same thing it was designed to do?
--
http://mail.python.org/mailman/listinfo/python-list
Many people think it looks ugly, but it still works, and there are times
when nothing else will do, so it should continue to work for the
foreseeable future.

Cheers,
Cliff

Jun 27 '08 #6

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

Similar topics

5
by: Aloysio Figueiredo | last post by:
I need to replace every ocurrence of '/' in s by '\/' in order to create a file named s. My first attempt was: s = '\/'.join(s.split('/')) but it doesn't work: >>> s = 'a/b' >>> s =...
34
by: s c o t t | last post by:
I know Jakob Neilsen and a bunch of other usability advocates and critics usually frown on usage frames. However, most people probably seem to have at least version 5 of IE or newer and I am...
19
by: Alan J. Flavell | last post by:
The story so far: on somewhat unrelated newsgroup, my attention fell upon the URL: http://www.speedtouchdsl.com/prod706.htm which contains a link to the purported URL:...
2
by: John Dann | last post by:
I guess there must be some convention or Windows specification for whether the backslash immediately preceding the file name in a full path string to a file is formally part of the path string or...
3
by: Stef Mientki | last post by:
It looks like sometimes a single backslash is replaced by a double backslash, but sometimes it's not ??? See the error message below, the first backslash is somewhere (not explicitly in my code)...
2
by: Tobiah | last post by:
>>"'" "'" "'" "\\'" "\\'" This is quite different than any other language that I am used to. Normally, a double backslash takes away the special meaning of the last backslash, and so you...
5
by: vlsidesign | last post by:
The printf function returns "warning: unknown escape sequence: \040" for a backslash-space combination. If the ascii decimal number for space is 32 and the backslash is 92, why this particular...
4
by: Razzbar | last post by:
I'm working on a bookmarklet that grabs information from a page and submits it to a server. Yet another social bookmarking application. I'm having trouble with page titles that include an...
4
nithinpes
by: nithinpes | last post by:
I will boil down my exact requirement to this: I should print out lines that do not contain semi-colon, backslash and closing parentheses. The following one -liner works fine. perl -ne "unless(//)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.