[issue8969] Windows: use (mbcs in) strict mode to encode/decode filenames, and enable os.fsencode()

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Patch commited as r81927 (3.2). -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue850997] mbcs encoding ignores errors

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Tim: are you interested in testing this patch? -- nosy: +tim.golden ___ Python tracker ___ ___ Pyt

[issue850997] mbcs encoding ignores errors

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Update the patch (I commited the patch on tarfile module): version 3. -- Added file: http://bugs.python.org/file17635/mbcs_errors-py3k-3.patch ___ Python tracker

[issue850997] mbcs encoding ignores errors

2010-06-11 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file17456/mbcs_errors-py3k.patch ___ Python tracker ___ ___ Python-bugs-list

[issue850997] mbcs encoding ignores errors

2010-06-11 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file17622/mbcs_errors-py3k-2.patch ___ Python tracker ___ ___ Python-bugs-li

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-11 Thread Michael Curran
Michael Curran added the comment: Tested on Windows 7 x64, with Python 2.7 rc1 [amd64]: both examples work fine. So it seems the issue is specific to x86. -- ___ Python tracker _

[issue7739] time.strftime may hung while trying to open /etc/localtime but does not release GIL

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: > I understand your last comment as wanting to keep the GIL while calling > tzset(), but release it around the strftime() call. Yes > You still want to apply your patch, right? http://sourceware.org/bugzilla/show_bug.cgi?id=4350 describes a crash. This issue

[issue5115] Extend subprocess.kill to be able to kill process groups

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: erickt: can you fix your patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue8592] 'y' does not check for embedded NUL bytes

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Attached patch fixes the initial problem: raise an error if the byte strings embeds a NUL-byte. -- keywords: +patch Added file: http://bugs.python.org/file17636/y_format.patch ___ Python tracker

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Reopen the issue: the test fails on Sparc. http://www.python.org/dev/buildbot/builders/sparc%20Ubuntu%203.x/builds/222 == FAIL: CheckInTransaction (sqlite3.test.dbapi.ConnectionTests)

[issue8142] libffi update to 3.0.9

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Reopen the issue: libffi compilation fails on "x86 FreeBSD 3.x" buildbot. http://www.python.org/dev/buildbot/builders/x86%20FreeBSD%203.x/builds/349/steps/compile/logs/stdio gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -O0 -Wall -Wstrict-prototypes -Ibui

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Same error on builder "PPC Leopard 3.x". http://www.python.org/dev/buildbot/builders/PPC%20Leopard%203.x/builds/87/steps/test/logs/stdio test_sqlite test test_sqlite failed -- Traceback (most recent call last): File "/Users/buildbot/buildarea/3.x.parc-leopa

[issue8979] OptParse __getitem__

2010-06-11 Thread Bryan Ward
New submission from Bryan Ward : It would be convenient to be able to access the resultant options from optparse using the syntax options['some_option'] instead of options.some_option Or additionally it would be nice to have a way to produce a dictionary of the options. This would be nice t

[issue5845] rlcompleter should be enabled automatically

2010-06-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8887] “pydoc str” works but not “ pydoc str.translate”

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that >>> help(str.translate) Help on method_descriptor: translate(...) S.translate(table) -> str Return a copy of the string S, where all characters have been mapped .. but >>> help('str.translate') no Python documentation found for 's

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8947] Provide as_integer_ratio() method to Decimal

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Nice implementation. I wonder if the /5 loop can be eliminated by noting that /5 is *2 followed by decimal shift. (Probably not without fast decimal arithmetics.) A few documentation nits: 1. In Decimal methods there is no consistency in referring to

[issue8980] distutils.tests.test_register.RegisterTestCase.test_strict fails

2010-06-11 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : $ python3.2 -m distutils.tests.test_register ...E == ERROR: test_strict (__main__.RegisterTestCase) --

[issue8980] distutils.tests.test_register.RegisterTestCase.test_strict fails

2010-06-11 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I noticed that register_module.raw_input also should be renamed to register_module.input. The test passes with the new patch. -- Added file: http://bugs.python.org/file17638/distutils.patch ___

[issue8980] distutils.tests.test_register.RegisterTestCase.test_strict fails

2010-06-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file17637/distutils.patch ___ Python tracker ___ ___ Pyth

[issue8142] libffi update to 3.0.9

2010-06-11 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: -ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8502] proposal: encourage xgettext rather than pygettext.py in gettext docs

2010-06-11 Thread jhg
jhg added the comment: Since the GNU tools work fine I had no reason to look into pygettext.py. Now I did it anyway... I added ngettext to the default keywords. Any function that is keyworded and supplied more than 2 keywords is treated like ngettext. Also simple constructs like _("foo" + 10*"

[issue8502] proposal: encourage xgettext rather than pygettext.py in gettext docs

2010-06-11 Thread jhg
jhg added the comment: A simple test case for the earlier changes. run pygettext.py and msgfmt.py and move the .mo file to ./locale/de/LC_MESSAGES/helloworld.mo to see that it prints the localized strings. -- Added file: http://bugs.python.org/file17640/helloworld.py ___

[issue8981] _struct.__version__ should be string, not bytes

2010-06-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : >>> import _struct >>> _struct.__version__ b'0.3' I would rather simply remove this since it is no longer exposed in struct. Yes, it does cause problems in real life code: I have applications that keep track of versions of modules that they use and ex

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There is a separate issue #5288 asking to support sub-minute offsets. This is not hard, but the C code still has a few interfaces left from the time when offset was an integer # of minutes. I am +1 to fix that, but not as a part of this issue. On str

[issue8968] token type constants are not documented

2010-06-11 Thread Ilya Sandler
Ilya Sandler added the comment: I'm attaching a documentation patch. Do note that there is also a bit of code-level inconsistency: a few tokens (COMMENT, NL) are defined in tokenize module which is strange and inconvenient. Should that be fixed too? (by moving token definitions into token mod

[issue5907] repr of time.struct_time type does not eval

2010-06-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky nosy: +belopolsky versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ __

[issue4086] support %z format in time.strftime and _strptime?

2010-06-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky dependencies: +No obvious and correct way to get the time zone offset nosy: +belopolsky ___ Python tracker ___ __

[issue1520662] support all of strftime(3)

2010-06-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file13373/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: %O is used by POSIX spec to indicate alternative locale format. Gnu date uses %:z %:z+hh:mm numeric timezone (e.g., -04:00) %::z +hh:mm:ss numeric time zone (e.g., -04:00:00) %:::z numeric time zone with : to ne

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Mark, reassigning this to you for commit review. -- assignee: belopolsky -> mark.dickinson ___ Python tracker ___

[issue8968] token type constants are not documented

2010-06-11 Thread Georg Brandl
Georg Brandl added the comment: Five comments: * I would list them all in one directive, like this: .. data:: FOO BAR BAZ which makes the display more compact. * There is no description in that directive. Best move part of the description above them in it. * NL and

[issue8904] quick example how to fix docs

2010-06-11 Thread Georg Brandl
Georg Brandl added the comment: Hmm, I thought the Doc/README covered this? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-b

[issue7463] PyDateTime_IMPORT() causes compiler warnings

2010-06-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue8960] 2.6 README

2010-06-11 Thread Georg Brandl
Georg Brandl added the comment: Fixed in 2.7 r81933, 2.6 r81934. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

<    1   2