|
by: Edward C. Jones |
last post by:
On 2003-09-04, Rasmus Fogh said:
> I need a way of writing strings or arbitrary Python code that will
>
> a) allow the strings to be read again unchanged (like repr)
> b) write multiline strings as multiline strings instead of escaping
> the \n's.
>
> A repr function that output triple-quoted strings with explicit
> (non-escaped) linebreaks would be perfect.
|
by: Noam Raphael |
last post by:
Hello,
repr(0.1) is '0.10000000000000001', in my Python 2.3.
From reading the article "Floating Point Arithmetic: Issues and
Limitations", I understand that it's the closest 17-digit decimal
representation of the binary floating-point number actually stored.
However, I don't understand why this should be what repr of floats
returns. repr should, if possible, return a string that evaluating it
will be == to the original object. But...
|
by: John Bailo |
last post by:
Funny, how Bill Gate uses the Deutsches Bank and Barron's to defraud
people and try to wreck his competitors ( he can't ).
For example,
http://www.reuters.com/financeNewsArticle.jhtml?type=hotStocksNews&storyID=4262964
Oh, but see how Barron's and MS are in bed together...
|
by: nummertolv |
last post by:
Hi,
My application is receiving strings, representing windows paths, from
an external source. When using these paths, by for instance printing
them using str() (print path), the backslashes are naturally
interpreted as escape characters.
>>> print "d:\thedir"
d: hedir
|
by: Matthew Wilson |
last post by:
I understand that idea of an object's __repr__ method is to return a
string representation that can then be eval()'d back to life, but it
seems to me that it doesn't always work.
For example it doesn't work for instances of the object class:
In : eval(repr(object()))
------------------------------------------------------------
File "<string>", line 1
<object object at 0xf233e8>
|
|
by: adima |
last post by:
Hi All!
Sorry, my English isnt good, but get a try to describe my problem.
Today we wrote next script:
import os, glob, time, string
files_to_test = ( "J:\\BWNEW\\!Unerase\\test.test", "L:\\Temp\Nick\
\test.test", "F:\\TRANSIT\\nick\\test.test")
outfile="c:\\temp\\statistic"
|
by: Raymond Hettinger |
last post by:
I'm considering deprecating these two functions and would like some
feedback from the community or from people who have a background in
functional programming.
* I'm concerned that use cases for the two functions are uncommon and
can obscure code rather than clarify it.
* I originally added them to itertools because they were found in
other functional languages and because it seemed like they would serve
basic building blocks in...
|
by: Daniel Fetchinson |
last post by:
Was looking at PEP 3108, http://www.python.org/dev/peps/pep-3108/ ,
Is it just me or others also think that it would be a major loss to
remove tkinter from the python core? PEP 3108 starts off with:
Each module to be removed needs to have a justification as to why it
should no longer be distributed with Python.
then goes on with,
|
by: Mark Tolonen |
last post by:
I don't understand the behavior of the interpreter in Python 3.0. I am
working at a command prompt in Windows (US English), which has a terminal
encoding of cp437.
In Python 2.5:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) on win
32
Type "help", "copyright", "credits" or "license" for more information.
u'\u5000'
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|