Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

About Python

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


kalite.lab at feka

Sep 11, 2009, 4:44 AM

Post #1 of 2 (409 views)
Permalink
About Python

Dear authorized,
I have a question about Python programming language can help you glad you
do. User as a decimal point "." Instead of character "," we can use that
character? For example, 10.7 instead of 10,7

Thanks in advance ...

Best Regards...
Feyyaz OZEN


fuzzyman at voidspace

Sep 12, 2009, 2:51 AM

Post #2 of 2 (368 views)
Permalink
Re: About Python [In reply to]

Kalite LAB. wrote:
> Dear authorized,
> I have a question about Python programming language can help you glad
> you do. User as a decimal point "." Instead of character "," we can
> use that character? For example, 10.7 instead of 10,7

This mailing list is for the development of Python, not development with
Python. For general questions about how to do things the python-list
(comp.lang.python.newsgroup) and python-tutor-list are appropriate
places to ask.

That aside I *think* that Python is always culture invariant in its
syntax (you always use the '.' point for floating point literals in
source code) and *also* for how the float type converts strings to
numbers (float('10.7') and not float('10,7')).

I assume there is a way of turning strings to floats honoring the
locale, but off the top of my head I don't know what it is.

All the best,

Michael Foord

>
> Thanks in advance ...
>
> Best Regards...
> Feyyaz OZEN
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev [at] python
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
>


--
http://www.ironpythoninaction.com/

_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.