[issue22906] PEP 479: Change StopIteration handling inside generators

2015-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: Unfortunately we didn't find the time to review the currently flagged release blockers at the sprints :( Chris, for the mechanics of testing the future flag, it's potentially worth looking at the 2.7 branch, as that should have tests for the print_function and

[issue24057] trivial typo in datetime.rst: needing a preceding dot

2015-04-24 Thread Novice Live
New submission from Novice Live: a non-trivial dot is needed for the hyperlink to make sense, or the link will jump to the start of the documentation, which doesn't make sense. the same typo as in http://bugs.python.org/issue23561. -- assignee: docs@python components: Documentation fi

[issue16405] Explain how to set up the whitespace commit hook locally

2015-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: Oh, so *that's* why my local hook isn't aborting commits when the whitespace check fails :) -- ___ Python tracker ___ ___

[issue19543] Add -3 warnings for codec convenience method changes

2015-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: For the warnings, it's actually bytes.decode() (et al) that are expected to return str, and str.encode() that's expected to return bytes. The codecs themselves remain free to do what they want (hence the recommendation to use codecs.encode() and codecs.decode()

[issue24056] Expose closure & generator status in function repr()

2015-04-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue24035] When Caps Locked, + alpha-character still displayed as uppercase

2015-04-24 Thread James
Changes by James : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue24035] When Caps Locked, + alpha-character still displayed as uppercase

2015-04-24 Thread James
James added the comment: When I start the interpreter with the -S switch, the problem goes away. Thanks for looking into it, and I apologize for the false alarm! -- ___ Python tracker _

[issue24056] Expose closure & generator status in function repr()

2015-04-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue24056] Expose closure & generator status in function repr()

2015-04-24 Thread Nick Coghlan
New submission from Nick Coghlan: >From https://mail.python.org/pipermail/python-ideas/2015-April/033177.html, >there are some additional details about functions that could be usefully >exposed in the function repr, specifically whether or not it's a closure, and >whether or not it's a generat

[issue24018] add a Generator ABC

2015-04-24 Thread Stefan Behnel
Stefan Behnel added the comment: FYI, here's the patch implementation for Cython: https://github.com/cython/cython/blob/cf63ff71c06b16c3a30facdc7859743f4cd495f6/Cython/Utility/Generator.c#L849 The only difference is that it takes care of changing "__next__" to "next" in Py2.x. -- ___

[issue24035] When Caps Locked, + alpha-character still displayed as uppercase

2015-04-24 Thread James Edwards
James Edwards added the comment: It looks like this is a bug in pyreadlines as suggested by eryksun, but for a different reason. Even though the Caps Lock + Shift combination is recognized correctly (as lower case), the logic in the pyreadlines module forces it to upper case. See lines 44-45

[issue24050] Segmentation fault (core dumped)

2015-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The link appears to be about a bug in the C code of mopidy-spotify, which was properly reported to the github mopidy site. This tracker is only for bugs in the Python-CPython docs and CPython implmentation, as maintained in the cpython repository at hg.python

[issue23840] tokenize.open() leaks an open binary file on TextIOWrapper error

2015-04-24 Thread Matt Chung
Matt Chung added the comment: Hey Haypo, I'm working on submitting the new patch now. Still getting used to the workflow and tools here. Thanks for being patient. You should see the new file in the next 30 minutes. -- ___ Python tracker

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Tal Einat
Tal Einat added the comment: Here's a patch just for Modules/selectmodule.c (and related files), based on Georg's patch, updated to apply against current default, including fixes thanks to Serhiy's review. It took a while since I had to get a Linux VM up to run the epoll tests. And it was goo

[issue23840] tokenize.open() leaks an open binary file on TextIOWrapper error

2015-04-24 Thread STINNER Victor
STINNER Victor added the comment: tokenizeV2.patch and tokenize.patch have issues, I reviewed them. Can someone please write a new patch taking my comments in account? -- ___ Python tracker ___

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-24 Thread STINNER Victor
STINNER Victor added the comment: > We don't have the same definition of the unit "seconds" :-) Or, please forget my comment, I watched the first 4 items of os.times(). I didn't notice the difference of the 5th item, os.times()[4]. The bad news is that only the first two items of os.times() ar

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-24 Thread STINNER Victor
STINNER Victor added the comment: > diverging discussion: Go re-read the documentation on os.times(). We don't have the same definition of the unit "seconds" :-) >>> print(os.times()); time.sleep(1); print(os.times()) (0.04, 0.01, 0.0, 0.0, 4731691.68) (0.04, 0.01, 0.0, 0.0, 4731692.68) My wat

[issue9246] os.getcwd() hardcodes max path len

2015-04-24 Thread STINNER Victor
STINNER Victor added the comment: > I've updated the patch with the comments from the review Thanks William for your contribution, I commited your fix. I just made a minor change on "if (cwd && use_bytes) {": you forgot to remove test now useless test on cwd, and I dropped { and } to make to s

[issue9246] os.getcwd() hardcodes max path len

2015-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset abf1f3ae4fa8 by Victor Stinner in branch '3.4': Issue #9246: On POSIX, os.getcwd() now supports paths longer than 1025 bytes https://hg.python.org/cpython/rev/abf1f3ae4fa8 New changeset b871ace5c58f by Victor Stinner in branch 'default': (Merge 3.4)

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-04-24 Thread Robert Collins
Robert Collins added the comment: Thanks, I shall look at this Monday. -- nosy: +rbcollins ___ Python tracker ___ ___ Python-bugs-list

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-24 Thread William Orr
Changes by William Orr : Removed file: http://bugs.python.org/file39097/max_fd.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-24 Thread William Orr
William Orr added the comment: Updated the patch based on review -- Added file: http://bugs.python.org/file39200/max_fd.patch ___ Python tracker ___ _

[issue24055] unittest package-level set up & tear down module

2015-04-24 Thread Demian Brecht
New submission from Demian Brecht: There's a feature available via nose that might be nice to have in unittest: package-level setup and teardown functions. Using nose, I can define a setUpModule() method in a test package's __init__.py and it will execute it during the test run. This is helpfu

[issue24039] Idle: some modal dialogs maximize, don't minimize

2015-04-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed the title to generalize this issue. The modal Options => Configure IDLE box does not have minimize or maximize buttons and cannot be resized. (Ditto for About Idle.) This is typical of Windows dialogs, even though horizontal expansion would often be

[issue23723] Provide a way to disable bytecode staleness checks

2015-04-24 Thread Brett Cannon
Brett Cannon added the comment: Skipping the source stat makes no difference in startup time even if you import django.http as part of the work. This would definitely be mostly for people who launch so many processes that they actually gain from collecting microseconds worth of benefit from ea

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-04-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would say, they are there to support *humans*. I am not aware of any human language where "success" is spelled 0. (1 is a failing mark in some schools - so there is a precedent for that. :-) -- ___ Python

[issue24043] Implement mac_romanian and mac_croatian encodings

2015-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 24.04.2015 21:25, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Guido's time machine strikes back. > 'π–∆'.encode('mac_romanian') > b'\xb9\xd0\xc6' 'π–∆'.encode('mac_croatian') > b'\xf9\xe0\xb4' Ah, I should have looked

[issue24043] Implement mac_romanian and mac_croatian encodings

2015-04-24 Thread Behdad Esfahbod
Behdad Esfahbod added the comment: Similar encodings have an alias that removes the underscore: https://github.com/python/cpython/blob/master/Lib/encodings/aliases.py#L435 -- ___ Python tracker ___

[issue24043] Implement mac_romanian and mac_croatian encodings

2015-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What aliases have these encodings? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue24043] Implement mac_romanian and mac_croatian encodings

2015-04-24 Thread Behdad Esfahbod
Behdad Esfahbod added the comment: Huh. So they are implemented, even though they are not in aliases.py. Sorry about the noise! Please add them to aliases.py. -- ___ Python tracker _

[issue24043] Implement mac_romanian and mac_croatian encodings

2015-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Guido's time machine strikes back. >>> 'π–∆'.encode('mac_romanian') b'\xb9\xd0\xc6' >>> 'π–∆'.encode('mac_croatian') b'\xf9\xe0\xb4' -- nosy: +serhiy.storchaka ___ Python tracker

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Aren't EXIT_SUCCESS and EXIT_FAILURE needed only for support VMS? -- ___ Python tracker ___ ___ Py

[issue24043] Implement mac_romanian and mac_croatian encodings

2015-04-24 Thread Behdad Esfahbod
Behdad Esfahbod added the comment: Very valid question. Let me ask and get back to you. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue24041] Implement Mac East Asian encodings properly

2015-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 24.04.2015 20:34, Behdad Esfahbod wrote: > > They are a rather minor change on top of the existing Asian encodings. So > implementing them in Python might be easier. I have a half-done version of > those. I can try finishing and post it back here. I

[issue24041] Implement Mac East Asian encodings properly

2015-04-24 Thread Behdad Esfahbod
Behdad Esfahbod added the comment: They are a rather minor change on top of the existing Asian encodings. So implementing them in Python might be easier. I have a half-done version of those. I can try finishing and post it back here. -- ___ Pytho

[issue23810] Suboptimal stacklevel of deprecation warnings for formatter and imp modules

2015-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unfortunately this will not help for re, because the trace passes through three files: Lib/sre_parse.py, Lib/sre_compile.py and Lib/re.py. -- ___ Python tracker

[issue24052] sys.exit(code) returns "success" to the OS for some nonzero values of code

2015-04-24 Thread eryksun
eryksun added the comment: > --> import sys > --> sys.exit(2**63) > 9223372036854775808 The above is only Python 2.x behavior. On Windows, sys.maxint is 2147483647 (even for 64-bit Windows), so 2**63 is a Python long. Thus handle_system_exit takes the PyFile_WriteObject branch, with the actual

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-04-24 Thread Ethan Furman
Ethan Furman added the comment: Sounds good, I have no objections. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue24052] sys.exit(code) returns "success" to the OS for some nonzero values of code

2015-04-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: --> sys.exit(2**63) 9223372036854775808 Interesting. So it is probably not unheard of in the Windows world to use errors codes like 1000,1001,..1024,.. to avoid conflicts with "system" codes. Maybe on POSIX systems, sys.code(code) should print code and

[issue24052] sys.exit(code) returns "success" to the OS for some nonzero values of code

2015-04-24 Thread Ethan Furman
Ethan Furman added the comment: Windows 7 C:\Python27>python Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. --> import sys --> sys.exit(2**63) 9223372036854775808 C:\Python27>python Pytho

[issue24035] When Caps Locked, + alpha-character still displayed as uppercase

2015-04-24 Thread James Edwards
James Edwards added the comment: If you start the interactive interpreter with the -S switch, e.g. >python.exe -S Do you still see this behavior? -- nosy: +jedwards ___ Python tracker

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-04-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Where are EXIT_FAILURE and EXIT_SUCCESS defined? In C stdlib: $ grep EXIT_ /usr/include/stdlib.h #define EXIT_FAILURE1 #define EXIT_SUCCESS0 > we should probably call them EX_FAILURE and EX_SUCESS to match what's already > there. No. EX_ macr

[issue24052] sys.exit(code) returns "success" to the OS for some nonzero values of code

2015-04-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I agree that the truncation limits should be OS dependent and preserve the values to the extent possible on a given platform. I just want to avoid a situation when sys.exit(code) returns zero for a non-zero code. BTW, what does sys.exit(2**63) return on

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-04-24 Thread Ethan Furman
Ethan Furman added the comment: Where are EXIT_FAILURE and EXIT_SUCCESS defined? And we should probably call them EX_FAILURE and EX_SUCESS to match what's already there. -- ___ Python tracker

[issue9246] os.getcwd() hardcodes max path len

2015-04-24 Thread William Orr
William Orr added the comment: I've updated the patch with the comments from the review -- Added file: http://bugs.python.org/file39199/max_getcwd.patch ___ Python tracker ___ ___

[issue24052] sys.exit(code) returns "success" to the OS for some nonzero values of code

2015-04-24 Thread eryksun
eryksun added the comment: > I believe a better behavior for sys.exit() would be to truncate > the code values to 8-bit range so that non-zero status would > always be returned as non-zero, but possibly different value. OK, so long as it's just for POSIX systems. Windows ExitProcess, ExitThrea

[issue9246] os.getcwd() hardcodes max path len

2015-04-24 Thread William Orr
Changes by William Orr : Removed file: http://bugs.python.org/file39154/max_getcwd.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9246] os.getcwd() hardcodes max path len

2015-04-24 Thread William Orr
Changes by William Orr : Removed file: http://bugs.python.org/file39005/max_getcwd.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue24052] sys.exit(code) returns "success" to the OS for some nonzero values of code

2015-04-24 Thread Ethan Furman
Ethan Furman added the comment: If anything changes here it needs to be O/S dependent. MS Windows can work with DWORD return values, so truncating to 8-bits is wrong for that platform. -- nosy: +ethan.furman ___ Python tracker

[issue24018] add a Generator ABC

2015-04-24 Thread Stefan Behnel
Stefan Behnel added the comment: Searching for Python code that seems to implement the Generator protocol doesn't return much: https://code.openhub.net/search?s=%22def%20throw%28%22%20%22def%20send%28%22%20%22def%20close%28%22&pp=0&fl=Python&mp=1&ml=1&me=1&md=1&ff=1&filterChecked=true But at l

[issue24052] sys.exit(code) returns "success" to the OS for some nonzero values of code

2015-04-24 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- title: sys.exit(code) returns "success" to the OS for some values of code -> sys.exit(code) returns "success" to the OS for some nonzero values of code ___ Python tracker _

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-04-24 Thread David D. Riddle
New submission from David D. Riddle: test_linecache.py reads from three files namely inspect_fodder.py, inspect_fodder2.py, and mapping_tests.py. It reads the py files directly as text files. This patch copies these files to linecache_fodder, linecache_fodder2, and linecache_mapping_fodder res

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-04-24 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24052] sys.exit(code) returns "success" to the OS for some values of code

2015-04-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The value of exit returned to the parent should be status & 0377. Apparently, this is not so on Windows. See msg241903 in #24045. POSIX defines [1] exit to return status & 0377, but that does not mean that sys.exit(256) must return 0 without a warning

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-04-24 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +ethan.furman, mark.dickinson, serhiy.storchaka, terry.reedy ___ Python tracker ___ ___ Pyt

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-04-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch implementing these constants. If this is well-received, I will add documentation. -- assignee: -> belopolsky keywords: +easy, patch stage: -> patch review versions: +Python 3.5 Added file: http://bugs.python.org/file39197

[issue23356] In argparse docs simplify example about argline

2015-04-24 Thread Wolfgang Maier
Changes by Wolfgang Maier : -- nosy: +wolma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue24052] sys.exit(code) returns "success" to the OS for some values of code

2015-04-24 Thread Stefan Krah
Stefan Krah added the comment: At first glance the return values look right to me: The value of exit returned to the parent should be status & 0377. -- nosy: +skrah ___ Python tracker _

[issue24049] Remove unused code in symtable.c and fix docs for import * checking

2015-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 135d5a3e415b by Benjamin Peterson in branch '3.4': remove dead *-import checking code (closes #24049) https://hg.python.org/cpython/rev/135d5a3e415b New changeset 5c0247a6f98a by Benjamin Peterson in branch 'default': merge 3.4 (#24049) https://hg.p

[issue14019] Unify tests for str.format and string.Formatter

2015-04-24 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23893] Forward-port future_builtins

2015-04-24 Thread Brett Cannon
Brett Cannon added the comment: I've decided that having the module exist in Python 2.7 and 3.5 but not 3.0 - 3.4 is just asking for trouble. -- resolution: -> rejected status: open -> closed ___ Python tracker _

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-04-24 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: Python defines some BSDish exit codes in the os module: EX_CANTCREAT = 73 EX_CONFIG = 78 EX_DATAERR = 65 EX_IOERR = 74 EX_NOHOST = 68 EX_NOINPUT = 66 EX_NOPERM = 77 EX_NOUSER = 67 EX_OK = 0 EX_OSERR = 71 EX_OSF

[issue22931] cookies with square brackets in value

2015-04-24 Thread Tim Pierce
Tim Pierce added the comment: Adding Python 2.7 to the affected versions (from #23341 which was closed as a duplicate of this bug). We are very interested to know whether this will be fixed in a Python 2.7 patch as well. -- nosy: +twpierce versions: +Python 2.7 ___

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2015-04-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Alexander, create a new issue for the problem of converting non-zero values > to zero. See #24052. -- ___ Python tracker ___ _

[issue24052] sys.exit(code) returns "success" to the OS for some values of code

2015-04-24 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: $ python3 Python 3.4.3 (default, Mar 2 2015, 11:08:35) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> import subprocess >>> subprocess.call([sys.executable, '-c',

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2015-04-24 Thread Ethan Furman
Ethan Furman added the comment: I previously wrote: -- > Gareth, please ignore my comments about adding guards on the return value -- > it is up > to the O/S to use or adjust whatever Python returns. Let me clarify that a bit: we need to protect against overflow from to ; prot

[issue23810] Suboptimal stacklevel of deprecation warnings for formatter and imp modules

2015-04-24 Thread Brett Cannon
Brett Cannon added the comment: Here is a private function in warnings for calculating the stack depth to the first frame not referencing some key string. Can someone look at it to make sure it looks reasonable? I'm starting with it being private since it uses sys._getframe() and I don't know

[issue24048] remove_module() needs to save/restore exception state

2015-04-24 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue24049] Remove unused code in symtable.c and fix docs for import * checking

2015-04-24 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue24050] Segmentation fault (core dumped)

2015-04-24 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Argument Clinic no longer works with single optional argument ___ Python tracker ___ _

[issue24051] Argument Clinic no longer works with single optional argument

2015-04-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Argument Clinic no longer works single optional argument. For example see _tkinter.tkapp.wantobjects in the patch in issue20168. /*[clinic input] _tkinter.tkapp.wantobjects [ value: int ] / [clinic start generated code]*/ It is converted

[issue24050] Segmentation fault (core dumped)

2015-04-24 Thread Shinto Peter
Shinto Peter added the comment: check this this link : http://jodal.no/post/5779178001/log-from-the-debugging-of-a-segfault/ tells about Segfault -- nosy: +shinto ___ Python tracker __

[issue24050] Segmentation fault (core dumped)

2015-04-24 Thread Skip Montanaro
Skip Montanaro added the comment: Can you provide a trimmed down example which provokes the segmentation fault? -- nosy: +skip.montanaro ___ Python tracker ___ __

[issue24050] Segmentation fault (core dumped)

2015-04-24 Thread nivin
New submission from nivin: Got an error as Segmentation fault (core dumped) when executed a python script . Error getting only for a specific python script only -- components: Interpreter Core messages: 241940 nosy: nivin priority: normal severity: normal status: open title: Segmentatio

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-24 Thread Thomas Wouters
Thomas Wouters added the comment: Rewriting the tests shouldn't block this specific issue, no. Also, don't use multiprocessing for it. I would just use subprocess to start a separate process (which might after all be OOM-killed,) check the exitcode, and record its stderr in case of failure. Gi

[issue24036] GB2312 codec is using a wrong covert table

2015-04-24 Thread Ma Lin
Ma Lin added the comment: Andre Lemburg, We don't need any modify, A844 is in GBK but not in GB2312, so no need to add it into GB2312. Your logic is right, it's hard to judge which one is wrong. But U+30FB (· KATAKANA MIDDLE DOT) and U+2015 (— HORIZONTAL BAR) have no reason among these Chines

[issue24049] Remove unused code in symtable.c and fix docs for import * checking

2015-04-24 Thread Nick Craig-Wood
New submission from Nick Craig-Wood: Here is a patch to remove some unused code in `symtable.c` In Python3 `from x import *` was banned from use in functions completely. This is detected by `symtable_visit_alias` if (st->st_cur->ste_type != ModuleBlock) { int lineno = st->

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Tal Einat
Tal Einat added the comment: Here's a patch just for Modules/signalmodule.c (and related files), based on Georg's patch, updated to apply against current default, including fixes thanks to Serhiy's review. This include one minor doc change, since I changed the name of the second parameter to

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file39192/tkinter_getxxx_tclobj-3.4.patch ___ Python tracker ___ ___ Python-b

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file39193/tkinter_getxxx_tclobj-2.7.patch ___ Python tracker ___ ___ Python-b

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >> 2. Does the change break existing code? > > Usually not. I meant that the only difference (except that now Tkinter can work in cases where it failed before) is that that some exceptions can change its type from ValueError to TclError. But first, these ex

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2015-04-24 Thread Stefan Krah
Stefan Krah added the comment: > Sadly, for political reasons, it's best that we not convert collections, > itertools, or random for now. Well, there are also technical reasons. For example, when reviewing a huge patch at the beginning of this year, the sections that touched AC took me 10 ti

[issue24043] Implement mac_romanian and mac_croatian encodings

2015-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 23.04.2015 21:02, Behdad Esfahbod wrote: > > They are used in OpenType fonts, but not implemented by Python at this time. > Here's are the Unicode mappings for them: > > http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/ROMANIAN.TXT > http://unicode.org

[issue23356] In argparse docs simplify example about argline

2015-04-24 Thread Berker Peksag
Berker Peksag added the comment: LGTM -- assignee: docs@python -> berker.peksag nosy: +berker.peksag stage: -> commit review type: performance -> enhancement versions: +Python 3.5 ___ Python tracker __

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2015-04-24 Thread Tal Einat
Tal Einat added the comment: Hurrah! And that seems to be it for this group, since collections, itertools and random are not to be converted at this point, as well as the Modules/xx*.c files, and the stringlib files probably require overly extensive changes for conversion. -- ___

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2015-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: unicodeobject.c.v5.patch LGTM. -- stage: needs patch -> commit review ___ Python tracker ___ ___ P

[issue24026] Python hangs forever in wait() of threading.py

2015-04-24 Thread appidman
appidman added the comment: I created a issue for paramiko: https://github.com/paramiko/paramiko/issues/515 I'm trying to create a script which reproduces the bug, but it might be a bit tough, because as I said it's not happening all the time. -- __

[issue24041] Implement Mac East Asian encodings properly

2015-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 24.04.2015 10:34, Behdad Esfahbod wrote: > > Thanks Marc-Andre. If the x_ was indeed added for that reason, it's quite a > coincidence, because the MIME name of these encodings also starts with > x-mac-..., so I assumed that's where the x_ comes from.

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2015-04-24 Thread Tal Einat
Tal Einat added the comment: Version of patch with PyUnicodeObject * warnings fixed. -- Added file: http://bugs.python.org/file39191/unicodeobject.c.v5.patch ___ Python tracker _

[issue24039] Minimize option doesn't work on Search Dialog box for idle

2015-04-24 Thread Prince
Changes by Prince : -- nosy: +roger.serwy, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue24041] Implement Mac East Asian encodings properly

2015-04-24 Thread Behdad Esfahbod
Behdad Esfahbod added the comment: Thanks Marc-Andre. If the x_ was indeed added for that reason, it's quite a coincidence, because the MIME name of these encodings also starts with x-mac-..., so I assumed that's where the x_ comes from. The mappings are available at the Unicode website: http

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2015-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch causes a lot of warnings like Objects/unicodeobject.c: In function ‘unicode_title_impl’: Objects/unicodeobject.c:10581:5: warning: passing argument 1 of ‘_PyUnicode_Ready’ from incompatible pointer type [enabled by default] if (PyUnicode_READY(

[issue24041] Implement Mac East Asian encodings properly

2015-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The "x_" prefix was added as reminder and way to document the desire to look into this at some point: https://github.com/python/cpython/commit/c696b47b10db1fa22b77ecfe1af392b3d62aab61 Before adding more codecs, we always ask whether these are in actual use

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2015-04-24 Thread Tal Einat
Tal Einat added the comment: Here's a new patch for Objects/unicodeobject.c with all of Serhiy's suggestions integrated. -- Added file: http://bugs.python.org/file39190/unicodeobject.c.v4.patch ___ Python tracker

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I already have reviewed changes to select and signal. -- ___ Python tracker ___ ___ Python-bugs-li

[issue24046] Incomplete build on AIX

2015-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 24.04.2015 04:54, aixtools wrote: > Rather than wait for that to happen I decided to experiment with LibreSSL. If > you are not familiar with LibreSSL - I shall be quick - openbsd (who also > maintains openssh) has been cutting out insecure and/or superf

[issue24036] GB2312 codec is using a wrong covert table

2015-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Hi Ma Lin, thank you for your investigation. In order to fix these tables, we'd need an official reference which shows that there is in fact an error. If most programming languages you have tested use the "wrong" version, then maybe it's not wrong after a

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-04-24 Thread Tal Einat
Tal Einat added the comment: Serhiy, I agree on both points. I can easily replace all of the converters and upload it as three separate patches. If you haven't started reviewing the patch yet, let me know and I'll do these things ASAP. -- ___ Python

  1   2   >