Program, Application, and Software

2010-11-17 Thread Boštjan Mejak
What is the difference between a program, an application, and software? -- http://mail.python.org/mailman/listinfo/python-list

Raw Unicode docstring

2010-11-16 Thread Boštjan Mejak
Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: r"""This is a raw docstring.""" If I have foreign letters in the docstring, I must tuck a 'u' in front of it, like this: u"""This is a Unicode docstring.""" Wh

HTMLWindow or HtmlWindow or perhaps HTMLwindo

2010-11-15 Thread Boštjan Mejak
Hello, I am wondering which of the 3 class names are prefered by PEP-8? class HTMLWindow(...) class HtmlWindow(...) class HTMLwindow(...) Thank you for your answer in advance. -- http://mail.python.org/mailman/listinfo/python-list

The 'n' format specifier

2010-10-21 Thread Boštjan Mejak
The locale.setlocale(category=locale.LC_NUMERIC, locale="Slovenian") works like a charm in my application. Now the 'n format specifier works as I want. But tell me whether the 'n' forma specifier can be forced to round the float to just one decimal place. I know that the 'f' format specifier does