[issue15237] Add capsule API to _decimal

2014-09-03 Thread Stefan Behnel
Stefan Behnel added the comment: Is this superseded by issue 22194 now or the other way round? -- nosy: +scoder versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15237

[issue22324] Use PyUnicode_AsWideCharString() instead of PyUnicode_AsUnicode()

2014-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Will not this cause performance regression? When we hardly work with wchar_t-based API, it looks good to cache encoded value. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

[issue7946] Convoy effect with I/O bound threads and New GIL

2014-09-03 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: -- nosy: +scoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___

[issue22271] Deprecate PyUnicode_AsUnicode(): emit a DeprecationWarning

2014-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be better to emit a warning only at compile time. End user of compiled extension can't do anything with a warning emitted at run time, only its author can avoid it. -- nosy: +serhiy.storchaka ___ Python

[issue22271] Deprecate PyUnicode_AsUnicode(): emit a DeprecationWarning

2014-09-03 Thread STINNER Victor
STINNER Victor added the comment: It would be better to emit a warning only at compile time. End user of compiled extension can't do anything with a warning emitted at run time, only its author can avoid it. DeprecatedWarning warnings are silent by default. So it will not annoy users.

[issue22324] Use PyUnicode_AsWideCharString() instead of PyUnicode_AsUnicode()

2014-09-03 Thread STINNER Victor
STINNER Victor added the comment: Will not this cause performance regression? When we hardly work with wchar_t-based API, it looks good to cache encoded value. Yes, it will be slower. But I prefer slower code with a lower memory footprint. On UNIX, I don't think that anyone will notice the

[issue15237] Add capsule API to _decimal

2014-09-03 Thread Larry Hastings
Larry Hastings added the comment: I think #22194 is a duplicate issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15237 ___ ___

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Larry Hastings
Larry Hastings added the comment: I think this is a duplicate of #15237. -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22194 ___

[issue22043] Use a monotonic clock to compute timeouts

2014-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9deef14393d5 by Victor Stinner in branch 'default': Issue #22043: Fix pymonotonic(), use tv_usec=-1 as a marker to skip http://hg.python.org/cpython/rev/9deef14393d5 -- ___ Python tracker

[issue22043] Use a monotonic clock to compute timeouts

2014-09-03 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the review Antoine. I pushed the new version pymonotonic-4.patch with a minor change: in debug mode, pymonotonic() also ensures that the clock never goes backward! -- ___ Python tracker

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread Masahiro Konishi
New submission from Masahiro Konishi: int x = PyOS_mystricmp(foo, none); expected: x 0 actual: x == 0 while (*s1 (tolower((unsigned)*s1++) == tolower((unsigned)*s2++))) { ; } return (tolower((unsigned)*s1) - tolower((unsigned)*s2)); The while-loop is finished when *s1

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Stefan Krah
Stefan Krah added the comment: Well, we have two issues now: 1) Make the _decimal API available via capsule. 2) Make the libmpdec symbols public (i.e. remove GCC visibility push(hidden) from Modules/_decimal/libmpdec/mpdecimal.h. The question here is now whether 2) is safe. Note

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread STINNER Victor
STINNER Victor added the comment: I didn't know PyOS_mystrnicmp() and PyOS_mystricmp() functions! They are not used in Python source code. They are not documented, but they are exported in pystrcmp.h which is included in the main Python.h header. -- nosy: +haypo

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread Stefan Krah
Stefan Krah added the comment: Also, they aren't safe with the Turkish i. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22330 ___

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread Masahiro Konishi
Masahiro Konishi added the comment: You can find PyOS_stricmp from here: https://docs.python.org/3/c-api/conversion.html And PyOS_stricmp is PyOS_mystricmp when MS_WINDOWS is not defined. Include/pystrcmp.h: #ifdef MS_WINDOWS #define PyOS_strnicmp strnicmp #define PyOS_stricmp stricmp #else

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread Stefan Krah
Stefan Krah added the comment: Unfortunately they seem to be part of the stable ABI (#18603). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22330 ___

[issue15451] PATH is not honored in subprocess.Popen in win32

2014-09-03 Thread Geoffrey Bache
Changes by Geoffrey Bache gjb1...@users.sourceforge.net: -- nosy: +gjb1002 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15451 ___ ___

[issue16038] ftplib: unlimited readline() from connection

2014-09-03 Thread Radu Voicilas
Radu Voicilas added the comment: I'm a little confused about this patch. Please correct me if I'm wrong, but fp.readline([size + 1]) should return a line of length at most size + 1. This means that the check len(line) size will always be true when reading a line that has a length greater

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: large parts of the cdecimal on PyPI (which uses the incompatible libmpdec-2.3) would need to be rewritten. Ah, so it has an incompatible ABI? That will complicate things a bit :-) -- ___ Python tracker

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that active symbol hiding has always only worked for gcc (but I think on Windows and AIX the symbols are hidden by default anyway). Does it mean a separate Windows and AIX solution should be found? I think if we can't make the mpd symbols available in a

[issue18577] lru_cache enhancement: lru_timestamp helper function

2014-09-03 Thread Ben Hoyt
Ben Hoyt added the comment: I really like this idea (and am needing this functionality), but I don't think this API (or implementation) is very nice: 1) It means you have to change your function signature to use the timeout feature. 2) Specifying the interval in minutes seems odd (most

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou rep...@bugs.python.org wrote: large parts of the cdecimal on PyPI (which uses the incompatible libmpdec-2.3) would need to be rewritten. Ah, so it has an incompatible ABI? That will complicate things a bit :-) Yes, cdecimal on PyPI is slower,

[issue15451] PATH is not honored in subprocess.Popen in win32

2014-09-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15451 ___

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 03/09/2014 18:33, Stefan Krah a écrit : Yes, cdecimal on PyPI is slower, has a different ABI, uses libmpdec-2.3, has subtle differences in the context handling, cannot subclass the context, ... ;) I think a common C API for 2.7 is only possible with

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2014-09-03 Thread leonard gerard
leonard gerard added the comment: In my opinion this is a bug or it should be explicitly stated in the generated usage help string. -- nosy: +leonard.gerard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15112

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2014-09-03 Thread leonard gerard
leonard gerard added the comment: It seems that delaying positional argument parsing after all optional arguments are parsed would be clean and robust. My understanding is that optional arguments aren't ambiguous and should be processed first and removed from the arguments. Then the current

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Stefan Krah
Stefan Krah added the comment: Sure, if there are people who write python3-only C modules (I can't think of one right now). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22194 ___

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: If there aren't today, there will be in a few years time, and they'll be glad they can support Python 3.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22194

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce14092430b6 by Terry Jan Reedy in branch '3.4': Issue #21933: Users can now change the font size for example code. http://hg.python.org/cpython/rev/ce14092430b6 New changeset e2e0c9f90a81 by Terry Jan Reedy in branch 'default': Issue #21933: Merge

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2014-09-03 Thread paul j3
paul j3 added the comment: http://bugs.python.org/issue14191 'argparse doesn't allow optionals within positionals' implements a 'parse_intermixed_args()' method, which parses all of the optionals with one pass, followed by a second pass that handles the positionals. It does this by

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I refactored the callbacks to eliminate duplication. I had to redo the menu addition to work with the new menu. This works great on Windows. I am confident I did not change the logic, but it would still be good if someone tried font changing again on linux

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Larry Hastings
Larry Hastings added the comment: Are there any other modules where the capsule API works in both CPython and PyPy? I thought capsule APIs were decidedly implementation-specific. Not that I'm not for it in theory. But this is some crazy uncharted hyper-compatibility territory we're talking

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Stefan Krah
Stefan Krah added the comment: The compatibility discussion was for the cdecimal-2.3 package that's hosted on PyPI and used for Python 2.7. IOW, will people use a capsule API that's Python-3 only? Compatibility with pypy would be esoteric indeed. :) --

[issue11588] Add necessarily inclusive groups to argparse

2014-09-03 Thread paul j3
paul j3 added the comment: http://stackoverflow.com/questions/25626109/python-argparse-conditionally-required-arguments asks about implementing a 'conditionally-required-arguments' case in `argparse`. The post-parsing test is simple enough: if args.argument and (args.a is None or args.b

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lita, thank you for sticking with this. #17642 is about doing something similar for Idle. The issue is necessarily more complicated, but what we learned here about system difference and tk behavior oddities will be needed for Idle too. I am making 'what we

[issue22331] test_io.test_interrupted_write_text() hangs on the buildbot FreeBSD 7.2

2014-09-03 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20FreeBSD%207.2%203.4/builds/332/steps/test/logs/stdio Log: --- [157/389/1] test_io Timeout (1:00:00)! Thread 0x2a4f0790 (most recent call first): File

[issue22331] test_io.test_interrupted_write_text() hangs on the buildbot FreeBSD 7.2

2014-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset baa372eb731c by Victor Stinner in branch '3.4': Issue #22331: Skip test_interrupted_write_text() on FreeBSD older than 8.0 http://hg.python.org/cpython/rev/baa372eb731c New changeset 340d48347295 by Victor Stinner in branch 'default': (Merge 3.4)

[issue17642] IDLE add font resizing hot keys

2014-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: #21933 added font resizing hotkeys to turtle demo: Control/Command minus, underscore, equal, minus. The OS difference was handled by defining the prefix for the system. shortcut = 'Command' if darwin else 'Control' widget.bind_all('%s-minus' %

[issue22332] test_multiprocessing_main_handling fail on buildbot x86 FreeBSD 6.4 3.x

2014-09-03 Thread STINNER Victor
New submission from STINNER Victor: The test requires SemLock which is not supported on FreeBSD 6.4. The whole test_multiprocessing_main_handling should be skipped on this platform. http://buildbot.python.org/all/builders/x86%20FreeBSD%206.4%203.x/builds/5010/steps/test/logs/stdio

[issue22332] test_multiprocessing_main_handling fail on buildbot x86 FreeBSD 6.4 3.x

2014-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset db9eb9cba1ec by Victor Stinner in branch '3.4': Issue #22332: test_multiprocessing_main_handling is now skipped if sem_open http://hg.python.org/cpython/rev/db9eb9cba1ec New changeset 2f21d920d00d by Victor Stinner in branch 'default': (Merge 3.4)

[issue20957] test_smptnet Fail instead of Skip if SSL-port is unavailable

2014-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset b7200cde1b68 by Victor Stinner in branch '3.4': Issue #20957: test_smtpnet now uses support.transient_internet() to call http://hg.python.org/cpython/rev/b7200cde1b68 New changeset 85511d4a846e by Victor Stinner in branch 'default': (Merge 3.4)

[issue20957] test_smptnet Fail instead of Skip if SSL-port is unavailable

2014-09-03 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report. I wrote a different patch to rely on support.transient_internet() instead. -- nosy: +haypo resolution: - fixed status: open - closed versions: +Python 3.5 ___ Python tracker

[issue21440] Use support.rmtree in test_zipfile

2014-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 706ec07100d6 by Victor Stinner in branch '3.4': Issue #21440: Backport changeset 4ebf97299b18 to branch 3.4, use http://hg.python.org/cpython/rev/706ec07100d6 New changeset 6b4d31641109 by Victor Stinner in branch '3.4': Issue #21440: test_zipfile:

[issue19690] test_logging test_race failed with PermissionError

2014-09-03 Thread STINNER Victor
STINNER Victor added the comment: What is the status of this issue? The failure is still common on the buildbot: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.4/builds/458/steps/test/logs/stdio == ERROR:

[issue22051] Turtledemo: stop reloading demos

2014-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset b76d854f580e by Terry Jan Reedy in branch '2.7': Issue #22051: remove unneeded reload that allowed bad code. http://hg.python.org/cpython/rev/b76d854f580e New changeset 55d4f6c2be2d by Terry Jan Reedy in branch '3.4': Issue #22051: remove unneeded