Mistakes in documentation

2013-06-06 Thread Paul Volkov
Where can I submit little mistakes in Python documantation? I found one while browsing tutorial.pdf (Python 3.3.2): Section 3.1 says (on page 12): >>> word[2:5] # characters from position 2 (included) to 4 (excluded) ’tho’ Shouldn't the comment say "5 (excluded)" or "4 (included)" instead? -- ht

error executing "import html.parser" from a script

2012-10-19 Thread Paul Volkov
What is this madness? I have Python 3.3.0 installed on Windows XP. I do not have Python 2 (but I had it before). I do the following steps: 1. Import from an interactive session (no problems) >python Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32 Typ

Compiling extension module (linker error)

2012-10-22 Thread Paul Volkov
I am trying to compile an extension module with C++ Builder 6 for Python 3.3. I converted python33.lib using coff2omf.exe and added this library into my project. I wonder why I get this error message while building: [Linker Error] Unresolved external '_PyModule_Create2TraceRefs' referenced from 'D

Re: Compiling extension module (linker error)

2012-10-23 Thread Paul Volkov
2012/10/22 MRAB : > By the way, the recommendation is for module names to be lowercase with > underscores, so "fund_rose" instead of "FundRose". > > Try this code: > I tried as you suggested, but the linker error (unresolved external) is still there. I'm sure python33.lib is properly added because

Re: Insert comma in number?

2013-03-07 Thread Paul Volkov
2013/3/7 Peter Otten <__pete...@web.de>: > Last not least there's the option to employ locale-aware formatting: > import locale locale.setlocale(locale.LC_ALL, "en_US.UTF-8") > 'en_US.UTF-8' locale.format("%d", 12345, grouping=True) > '12,345' > > In German usage of "." and "," is re