[issue28409] test.regrtest does not support multiple -x flags

2016-10-10 Thread Xiang Zhang
Xiang Zhang added the comment: > ./python -m test.regrtest test_unary -v test_binop > ./python -m test.regrtest test_unary -u all test_binop These also fail in 3.6.0a4. You can only specify options after args now. test_binop is not valid option. Isn't this the expected behaviour?

[issue28409] test.regrtest does not support multiple -x flags

2016-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue is not specific to -x, but affects all options. Following lines work: ./python -m test.regrtest -v test_unary test_binop ./python -m test.regrtest -u all test_unary test_binop ./python -m test.regrtest test_unary test_binop -v

[issue28409] test.regrtest does not support multiple -x flags

2016-10-10 Thread Xiang Zhang
Xiang Zhang added the comment: So should we still consider this a regression? Actually -x is used as a hint flag and should not be used as -x arg pair. The right usage could still work now. -- ___ Python tracker

[issue28409] test.regrtest does not support multiple -x flags

2016-10-10 Thread Xiang Zhang
Xiang Zhang added the comment: This regression is introduced in 4df2d43e995d. And actually to skip multiple tests, you should use python3 -m test.regrtest -x test_venv test_gdb. Although Charalampos's example could work, it actually treats -x as a test. -- nosy: +xiang.zhang

Re: How to process syntax errors

2016-10-10 Thread Terry Reedy
On 10/10/2016 11:24 AM, Chris Angelico wrote: On Tue, Oct 11, 2016 at 1:13 AM, wrote: Is there any way to capture syntax errors and process them ? I want to write a function which calls every time whenever there is syntax error in the program. However, you can

Re: Free Python e-books from O'Reilly

2016-10-10 Thread John Gordon
In Martin =?UTF-8?Q?Sch=C3=B6=C3=B6n?= writes: > http://www.oreilly.com/programming/free/ > Any of these good enough to bother getting? Yes, I know, they > are for no pay but if not worth reading still a waste of time > and memory

[issue28411] Eliminate PyInterpreterState.modules.

2016-10-10 Thread Graham Dumpleton
Graham Dumpleton added the comment: I always use PyImport_GetModuleDict(). So long as that isn't going away I should be good. -- ___ Python tracker ___

[issue28411] Eliminate PyInterpreterState.modules.

2016-10-10 Thread Nick Coghlan
Nick Coghlan added the comment: (added Graham Dumpleton to the nosy list to ask if this change may impact mod_wsgi for 3.7) +1 on the general idea, but given that the current field is a public part of the interpreter state, the replacement access API should really be public as well - we

[issue28208] update sqlite to 3.14.2

2016-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset b7e068d6c53f by Zachary Ware in branch '3.6': Issue #28208: Update Windows build to use SQLite 3.14.2.0 https://hg.python.org/cpython/rev/b7e068d6c53f New changeset 3e329b553567 by Zachary Ware in branch 'default': Issue #28208: Merge with 3.6

[issue28248] Upgrade installers to OpenSSL 1.0.2j

2016-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset c29045efd25e by Zachary Ware in branch '2.7': Issue #28248: Update Windows build to use OpenSSL 1.0.2j https://hg.python.org/cpython/rev/c29045efd25e New changeset d7b9ce8ae79b by Zachary Ware in branch '3.4': Issue #28248: Update Windows build to

[issue28248] Upgrade installers to OpenSSL 1.0.2j

2016-10-10 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Hi, I updated the openssl version from 1.0.2h to 1.0.2j in build-installer.py Please let me know if this works. Thanks :) -- keywords: +patch nosy: +Mariatta Added file: http://bugs.python.org/file45054/issue28248.patch

[issue28208] update sqlite to 3.14.2

2016-10-10 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Hello, Attached is the patch for updating sqlite version to 3.14.2. Please review, and let me know if this works. Thanks :) -- keywords: +patch nosy: +Mariatta Added file: http://bugs.python.org/file45053/issue28208.patch

[issue28410] Add convenient C API for "raise ... from ..."

2016-10-10 Thread Nick Coghlan
Nick Coghlan added the comment: Serhiy, how does this version compare/relate to the previous discussion in http://bugs.python.org/issue23188 ? -- nosy: +ncoghlan ___ Python tracker

[issue13646] Document poor interaction between multiprocessing and -m on Windows

2016-10-10 Thread Nick Coghlan
Nick Coghlan added the comment: These interactions were fixed in the release where *nix multiprocessing gained the ability to mimic the Windows behaviour. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue28208] update sqlite to 3.14.2

2016-10-10 Thread Ned Deily
Ned Deily added the comment: I'd like to see this in 3.6.0b3. -- ___ Python tracker ___ ___ Python-bugs-list

[issue28248] Upgrade installers to OpenSSL 1.0.2j

2016-10-10 Thread Ned Deily
Ned Deily added the comment: We didn't get this into 3.6.0b2; needs to be in 3.6.0b3. -- ___ Python tracker ___

[RELEASE] Python 3.6.0b2 is now available

2016-10-10 Thread Ned Deily
On behalf of the Python development community and the Python 3.6 release team, I'm happy to announce the availability of Python 3.6.0b2. 3.6.0b2 is the second of four planned beta releases of Python 3.6, the next major release of Python, and marks the end of the feature development phase for 3.6.

[issue28410] Add convenient C API for "raise ... from ..."

2016-10-10 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: +ebarry ___ Python tracker ___ ___ Python-bugs-list

[issue28334] netrc does not work if $HOME is not set

2016-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, some history: The $HOME lookup was in Guido's original 1998-12-22 patch: if not file: file = os.path.join(os.environ['HOME'], ".netrc") The lookup was wrapped in try-except 4 years later to give a 'consistent error message'. Module

[issue28412] os.path.splitdrive documentation out of date

2016-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___

[issue28412] os.path.splitdrive documentation out of date

2016-10-10 Thread Michael Partridge
New submission from Michael Partridge: ntpath.splitdrive was updated in patch 26ec6248ee8b. (I think this was released in 2.7.8.) This changes the behaviour of splitdrive for UNC style paths. Previously: >>> ntpath.splitdrive(r'\\nancy\foo\bar') ('', 'nancy\\foo\\bar')

[issue28411] Eliminate PyInterpreterState.modules.

2016-10-10 Thread Eric Snow
New submission from Eric Snow: tl;dr PyInterpreterState does not need a "modules" field. Attached is a patch that removes it. During interpreter startup [1] the sys module is imported using the same C API [2] as any other builtin module. That API only requires one bit of import state,

Re: Free Python e-books from O'Reilly

2016-10-10 Thread Uri Even-Chen
I think it's good that so many free books are about Python, more than any other specific programming language. But I haven't read any of them yet. *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

Raster top and lowe x,y how ca i get

2016-10-10 Thread Xristos Xristoou
How can i get left lower X,Y left top X,Y right lower X,Y and right Top X,Y from a raster image like dem(digital elevation model). I am nembie sorry if i have stupid quest -- https://mail.python.org/mailman/listinfo/python-list

Free Python e-books from O'Reilly

2016-10-10 Thread Martin Schöön
http://www.oreilly.com/programming/free/ Any of these good enough to bother getting? Yes, I know, they are for no pay but if not worth reading still a waste of time and memory space. /Martin -- https://mail.python.org/mailman/listinfo/python-list

[issue28230] tarfile does not support pathlib

2016-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It seems to me that tarfile already supports path protocol for all external patches and no changes for tarfile are needed. Proposed patch adds tests for (already implemented) support of pathlike protocol in tarfile. -- Added file:

[issue28404] Logging SyslogHandler not appending '\n' to the end

2016-10-10 Thread Vinay Sajip
Vinay Sajip added the comment: > So I think it must be a Fluentd error. So I'll close this. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread breamoreboy
On Monday, October 10, 2016 at 5:25:46 PM UTC+1, Nuen9 wrote: > > Hi! > > > > Could it be, "Nuen9", that you would like to find a split where the > > split sums are close to each other? In other words, you define the > > number of splits (in your example: 3) and the algortihm should test all >

Re: How to process syntax errors

2016-10-10 Thread breamoreboy
On Monday, October 10, 2016 at 3:15:40 PM UTC+1, mr.pune...@gmail.com wrote: > Hi > > Is there any way to capture syntax errors and process them ? I want to write > a function which calls every time whenever there is syntax error in the > program. > > For example, > > inside example.py >

Re: Newbie Need Help On Regex!

2016-10-10 Thread breamoreboy
On Monday, October 10, 2016 at 3:58:56 PM UTC+1, infos...@gmail.com wrote: > Hey guys! > > I am new to learning regex in python and I'm wondering how do I use regex in > python to store the integers(positive and negative) i want into a list! > > For e.g. > > This is the data in a list. >

[issue26869] unittest longMessage docs

2016-10-10 Thread Thomas Guettler
Thomas Guettler added the comment: @Mariatta thank you very much. This update makes the docs easy to read and understand. Thank you :-) -- ___ Python tracker

[issue28214] Improve exception reporting for problematic __set_name__ attributes

2016-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Add convenient C API for "raise ... from ..." ___ Python tracker ___

[issue28410] Add convenient C API for "raise ... from ..."

2016-10-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Sometimes after catching an exception we need to raise new exception of specific type, but save the information about current exception. In Python the syntax "raise ... from ..." serves this purpose (PEP 3134). But in C the code that implements this is

[issue28404] Logging SyslogHandler not appending '\n' to the end

2016-10-10 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___

[issue2897] Deprecate structmember.h

2016-10-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: docs@python -> belopolsky stage: patch review -> commit review ___ Python tracker

[issue28314] ElementTree: Element.getiterator(tag) broken in 3.6

2016-10-10 Thread Ned Deily
Changes by Ned Deily : -- stage: needs patch -> patch review ___ Python tracker ___ ___

[issue28230] tarfile does not support pathlib

2016-10-10 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list

[issue28409] test.regrtest does not support multiple -x flags

2016-10-10 Thread R. David Murray
R. David Murray added the comment: That sounds like a regression in argparse that we'd better track down. -- nosy: +larry, ned.deily, r.david.murray priority: normal -> release blocker ___ Python tracker

[issue20215] socketserver.TCPServer can not listen IPv6 address

2016-10-10 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- nosy: +jason.coombs ___ Python tracker ___ ___

[issue28409] test.regrtest does not support multiple -x flags

2016-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems this is related to some changes in argparse. -- nosy: +bethard, serhiy.storchaka versions: +Python 3.5 ___ Python tracker

[issue28334] netrc does not work if $HOME is not set

2016-10-10 Thread Dimitri Merejkowsky
Dimitri Merejkowsky added the comment: > if it make sense to run this on Windows I found this issue while running cross-platform code. I needed to store some credentials, did not mind having them in plain-text and I thought .netrc was a good place for this. (did not need to re-invent the

[issue28409] test.regrtest does not support multiple -x flags

2016-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo stage: -> needs patch type: -> behavior versions: +Python 3.7 ___ Python tracker

[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2016-10-10 Thread Aviv Palivoda
Aviv Palivoda added the comment: Attached is patch with a fix for this issue. This is not as comprehensive as the solution in apsw but I think this should cover most of the cases. The result for Ronny dump after this fix is: BEGIN TRANSACTION; PRAGMA writable_schema=ON; INSERT INTO

Re: How to process syntax errors

2016-10-10 Thread BartC
On 10/10/2016 16:44, Pierre-Alain Dorange wrote: Chris Angelico wrote: Yes and no. Syntax errors are detected when the script is compiled, so you can't do something like this: You're right, except that Python is never compiled, it was just checked for syntax error before

[issue28179] Segfault in test_recursionlimit_fatalerror

2016-10-10 Thread Ned Deily
Ned Deily added the comment: Since this is also reproducible on some 3.5.2 platforms, I don't think it qualifies as a release blocker for 3.6.0. But it still should be addressed. -- priority: release blocker -> high ___ Python tracker

[issue28409] test.regrtest does not support multiple -x flags

2016-10-10 Thread Charalampos Stratakis
New submission from Charalampos Stratakis: Until python3.6.0a04 it was possible to pass multiple times the -x option at regrtest. However since the 3.6.0b1 when trying the same thing I get an error. Test names are random. python3 -m test.regrtest -x test_venv -x test_gdb usage: python -m

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread K. Elo
Hi! Here one possible solution: --- snip --- land = [10,20,30,40,110,50,18,32,5] landlength=len(land) winnersplit=[] for i in range(landlength-2): for j in range(landlength-1-i): splitsums=[sum(land[0:(i+1)]), sum(land[(i+1):(i+j+2)]), sum(land[(i+j+2):landlength])]

[issue28328] statistics.geometric_mean has no tests. Defer to 3.7?

2016-10-10 Thread Ned Deily
Changes by Ned Deily : -- priority: release blocker -> normal ___ Python tracker ___ ___

[issue28408] Fix redundant code and memory leak in _PyUnicodeWriter_Finish

2016-10-10 Thread Xiang Zhang
New submission from Xiang Zhang: _PyUnicodeWriter_Finish gets 2 problems now: 1. It has two same branches handling empty strings which is redundant. 2. It may leak the inner buffer object when resize_compact fails. When resize_compact fails, the buffer object is left untouched. Then the

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a8dd18e375c8 by INADA Naoki in branch '3.6': Issue #28405: Fix compile error for _futuresmodule.c on Cygwin. https://hg.python.org/cpython/rev/a8dd18e375c8 New changeset d2a313d13542 by INADA Naoki in branch 'default': Issue #28405: Fix compile

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread Ned Deily
Ned Deily added the comment: revised patch LGTM -- nosy: +ned.deily ___ Python tracker ___ ___

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread INADA Naoki
INADA Naoki added the comment: Oh! Thanks, While I ran make, I had missed error message somehow. -- ___ Python tracker ___

[issue28407] Improve coverage of email.utils.make_msgid()

2016-10-10 Thread Dillon Brock
New submission from Dillon Brock: There were 2 lines of email.utils.make_msgid() that were not covered (lines 202 and 204 of Lib/email/utils.py), so I wrote a quick patch to cover them. -- components: Tests, email files: make_msgid_coverage.patch keywords: patch messages: 278430 nosy:

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: Thanks, INADA. I confirmed your solution, and has succeeded to build _futures extension. Your patch has a little misspell. I fixed it. -- Added file: http://bugs.python.org/file45046/gc_track-2.patch ___ Python

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread Emile van Sebille
On 10/10/2016 09:25 AM, Nuen9 wrote: Hi! Could it be, "Nuen9", that you would like to find a split where the split sums are close to each other? In other words, you define the number of splits (in your example: 3) and the algortihm should test all possible combinations and select the split

[issue28230] tarfile does not support pathlib

2016-10-10 Thread Ethan Furman
Ethan Furman added the comment: As Serhiy was alluding to, if the incoming path is for the actual tar file and is only passed along to Python itself then we probably don't need to worry about os.fspath(). For names that will be interally stored, or are for accessing internal files, then the

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread Nuen9
> Hi! > > Could it be, "Nuen9", that you would like to find a split where the > split sums are close to each other? In other words, you define the > number of splits (in your example: 3) and the algortihm should test all > possible combinations and select the split where the sum differences

[issue28406] Possible PyUnicode_InternInPlace() edge-case bug

2016-10-10 Thread INADA Naoki
INADA Naoki added the comment: I think the comment described "Why Py_ALLOW_RECURSION is required", not "t may be NULL even if s is in the intern dict". > If PyDict_GetItem fails due to stack overflow, perhaps the Python process is > doomed to fail soon anyway. When I changed the code to use

Re: PyQT - Signals and Slots?

2016-10-10 Thread Michael Torrie
On 10/10/2016 07:32 AM, Veek M wrote: > Whaaa...t?? Could someone explain what exactly is his grand design > besides being awfully circuitous? So he has some other Form thingy.. and > in that he sets up another mapping from ZeroSpinBox.atzero --> > ZeroSpinBox.announce where's announce and

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread Nuen9
เมื่อ วันจันทร์ที่ 10 ตุลาคม ค.ศ. 2016 22 นาฬิกา 46 นาที 33 วินาที UTC+7, K. Elo เขียนว่า: > Hi! > > Could it be, "Nuen9", that you would like to find a split where the > split sums are close to each other? In other words, you define the > number of splits (in your example: 3) and the

Re: How to process syntax errors

2016-10-10 Thread Chris Angelico
On Tue, Oct 11, 2016 at 2:44 AM, Pierre-Alain Dorange wrote: > Chris Angelico wrote: > >> Yes and no. Syntax errors are detected when the script is compiled, so >> you can't do something like this: > > You're right, except that Python is never

[issue28406] Possible PyUnicode_InternInPlace() edge-case bug

2016-10-10 Thread Larry Hastings
Larry Hastings added the comment: Ah, indeed. My mistake--I'm working in the Gilectomy branch, which is hilariously out of date. (It's stuck in February 2016.) The new version using PyDict_SetDefault() won't have *this* specific problem. Perhaps later I'll read the new code and see if I

[issue27761] Private _nth_root function loses accuracy

2016-10-10 Thread Ned Deily
Changes by Ned Deily : -- priority: release blocker -> normal ___ Python tracker ___ ___

[issue28406] Possible PyUnicode_InternInPlace() edge-case bug

2016-10-10 Thread Xiang Zhang
Xiang Zhang added the comment: The code has already been changed in #27454. -- nosy: +xiang.zhang ___ Python tracker ___

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-10-10 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Thanks for reviewing Mariatta I have made a new patch that has those typos corrected. -- Added file: http://bugs.python.org/file45045/correctedRebasedAddMissingEnvironmentalVariables.patch ___ Python tracker

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread INADA Naoki
INADA Naoki added the comment: I need another LGTM from core developer before committing. Yury, could you see it? This is one line patch. -- ___ Python tracker

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread INADA Naoki
INADA Naoki added the comment: Thank you for reporting. C-API doc [https://docs.python.org/3.7/c-api/gcsupport.html#c._PyObject_GC_TRACK] says: > A macro version of PyObject_GC_Track(). It should not be used for extension > modules. So simply replacing it to PyObject_GC_Track() may solve

Re: PyQT - Signals and Slots?

2016-10-10 Thread Veek M
Mark Summerfield wrote: > > The ZeroSpinBox is a tiny example designed to show how the signal/slot > mechanism works. It is just a QSpinBox with the addition of > remembering how many times (all the) ZeroSpinBox(es) have had a 0 > value. > > Nowadays the connections would be made with a new

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread K. Elo
Hi! Could it be, "Nuen9", that you would like to find a split where the split sums are close to each other? In other words, you define the number of splits (in your example: 3) and the algortihm should test all possible combinations and select the split where the sum differences are

Re: How to process syntax errors

2016-10-10 Thread Pierre-Alain Dorange
Chris Angelico wrote: > Yes and no. Syntax errors are detected when the script is compiled, so > you can't do something like this: You're right, except that Python is never compiled, it was just checked for syntax error before interpreting code. > > However, you can catch

[issue28406] Possible PyUnicode_InternInPlace() edge-case bug

2016-10-10 Thread Larry Hastings
New submission from Larry Hastings: A visual inspection of PyUnicode_InternInPlace() suggests there might be a rare edge-case bug lurking there. Specifically, the bug has to do with "interned mortal" strings. Interned mortal strings are stored in the static "interned" dictionary, with their

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread Nuen9
เมื่อ วันจันทร์ที่ 10 ตุลาคม ค.ศ. 2016 21 นาฬิกา 31 นาที 25 วินาที UTC+7, Steve D'Aprano เขียนว่า: > On Tue, 11 Oct 2016 12:38 am, amornsak@gmail.com wrote: > > > I have a list is > > > > land = [10,20,30,40,110,50,18,32,5] > > > > and I want to find each values of summation (don't sorted

Re: How to process syntax errors

2016-10-10 Thread Chris Angelico
On Tue, Oct 11, 2016 at 1:13 AM, wrote: > Is there any way to capture syntax errors and process them ? I want to write > a function which calls every time whenever there is syntax error in the > program. > > For example, > > inside example.py > > I just mention below

[issue28403] Porting guide: disabling & warning on implicit unicode conversions

2016-10-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 10.10.2016 15:08, Petr Viktorin wrote: > If sys.setdefaultencoding('undefined') breaks parts of the standard library, > it might be OK for smaller scripts but I fear it won't help big projects much. That's true. It does break the stdlib (the codec was

Newbie Need Help On Regex!

2016-10-10 Thread infosecflag
Hey guys! I am new to learning regex in python and I'm wondering how do I use regex in python to store the integers(positive and negative) i want into a list! For e.g. This is the data in a list. [u'\x1b[0m[\x1b[1m\x1b[0m\xbb\x1b[0m\x1b[36m]\x1b[0m (A=-5,B=5)',

Newbie Need Help On Regex!

2016-10-10 Thread infosecflag
Hey guys! I am new to learning regex in python and I'm wondering how do I use regex in python to store the integers(positive and negative) i want into a list! For e.g. This is the data in a list. [u'\x1b[0m[\x1b[1m\x1b[0m\xbb\x1b[0m\x1b[36m]\x1b[0m (A=-5,B=5)',

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +inada.naoki, yselivanov ___ Python tracker ___ ___

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread Masayuki Yamamoto
New submission from Masayuki Yamamoto: I tried to build cpython on cygwin (vista x86). Core interpretor has built to success, but '_futures' extension module has failed (compile error on Modules/_futuresmodule.c:946 ). It has occured since f8815001a390 part of build log: $ uname -a

Re: PyQT - Signals and Slots?

2016-10-10 Thread Mark Summerfield
The ZeroSpinBox is a tiny example designed to show how the signal/slot mechanism works. It is just a QSpinBox with the addition of remembering how many times (all the) ZeroSpinBox(es) have had a 0 value. Nowadays the connections would be made with a new improved syntax: self.connect(self,

[issue28405] Compile error on Modules/_futuresmodule.c

2016-10-10 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: I searched declaration for _PyGC_generation0, And it has be found at Include/objimpl.h:259 The found declaration hasn't used PyAPI_DATA macro. Hence, I wrote a patch to wrap declaration by the macro. I has succeeded to build _futures module using the

[issue28404] Logging SyslogHandler not appending '\n' to the end

2016-10-10 Thread José Manuel
José Manuel added the comment: After reading the RFC5424 it seems that there is no such "new line message delimiter": 4.3.1. Message Length The message length is the octet count of the SYSLOG-MSG in the SYSLOG-FRAME. A transport receiver MUST use the

Re: Deviding N(1, 2, 3, .., N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread Steve D'Aprano
On Tue, 11 Oct 2016 12:38 am, amornsak@gmail.com wrote: > I have a list is > > land = [10,20,30,40,110,50,18,32,5] > > and I want to find each values of summation (don't sorted values in list) > as It has highest as possible > > example. > > I want to dividing N=3 part from list as above

How to process syntax errors

2016-10-10 Thread mr . puneet . goyal
Hi Is there any way to capture syntax errors and process them ? I want to write a function which calls every time whenever there is syntax error in the program. For example, inside example.py I just mention below line Obj = myClass() Obj xyz Obj is instance of a class. But there is

Re: Function to take the minimum of 3 numbers

2016-10-10 Thread Steve D'Aprano
On Mon, 10 Oct 2016 10:56 am, Ian Kelly wrote: > On Oct 9, 2016 2:57 PM, alleged: > The Pythonic way > > if b >= a <= c: > ... I doubt that would be considered Pythonic by many people. Chained comparisons are Pythonic, but not legal but weird combinations like `a

Re: Deviding N(1, 2, 3, .., N) part from numeric list as summation of each values(don't sorted) has highest possible.

2016-10-10 Thread Ben Bacarisse
Nune9 writes: > I have a list is > > land = [10,20,30,40,110,50,18,32,5] > > and I want to find each values of summation (don't sorted values in > list) as It has highest possible > > example. > > I want to dividing N=3 part from list as above and divieded each part > has

Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread Nuen9
Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible. The first I'm sorry for my English language. I have a list is land = [10,20,30,40,110,50,18,32,5] and I want to find each values of summation (don't sorted values in list) as It

[issue28230] tarfile does not support pathlib

2016-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are two kinds of paths in tarinfo: 1) External paths that correspond to filesystem paths. The path of the tar file itself, patches of added files and target directory for extraction. Supporting path protocol looks reasonable for them. 1) Internal

Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread amornsak . nak
Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible. The first I'm sorry for my English language. I have a list is land = [10,20,30,40,110,50,18,32,5] and I want to find each values of summation (don't sorted values in list) as It

PyQT - Signals and Slots?

2016-10-10 Thread Veek M
I'm reading Rapid GUI Programming - Mark Summerfield with Python and QT pg 131. Basically the mechanism is an event table which maps a 'signal' to a 'function/slot' -correct? self.connect(dial, SIGNAL("valueChanged(int)"), spinbox.setValue) Here, dial.valueChanged -> spinbox.setValue

Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest possible.

2016-10-10 Thread Nune9
Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest possible. The first I'm sorry for my English language. I have a list is land = [10,20,30,40,110,50,18,32,5] and I want to find each values of summation (don't sorted values in list) as It has

Re: segfault using shutil.make_archive

2016-10-10 Thread Tim
On Friday, October 7, 2016 at 1:05:43 PM UTC-4, Michael Torrie wrote: > On 10/06/2016 10:46 AM, Tim wrote: > > I need to zip up a directory that's about 400mb. > > I'm using shutil.make_archive and I'm getting this response: > > > > Segmentation fault: 11 (core dumped) > > > > The code is

[issue28403] Porting guide: disabling & warning on implicit unicode conversions

2016-10-10 Thread Petr Viktorin
Petr Viktorin added the comment: In portingguide [0] I could only recommend sitecustomize with a (possibly third-party) codec that emits warnings; not 'undefined'. The things that aren't ported yet are generally either Non-Python applications with Python bindings or plugins (Gimp, Samba,

[issue28230] tarfile does not support pathlib

2016-10-10 Thread Berker Peksag
New submission from Berker Peksag: Here's an updated patch with different tests and documentation changes. I simplified Lib/tarfile.py a bit (see my review comments) A slightly off-topic question: I had to update both docstrings and documentation. Should we use this as an opportunity to

[issue28403] Porting guide: disabling & warning on implicit unicode conversions

2016-10-10 Thread Nick Coghlan
Nick Coghlan added the comment: Adding Petr to the nosy list, as I'd like to get his perspective on this once I have a draft docs patch to review. I also realised it made more sense to just repurpose this issue to cover the proposed docs updates. -- assignee: -> docs@python

[issue28404] Logging SyslogHandler not appending '\n' to the end

2016-10-10 Thread José Manuel
New submission from José Manuel: I'm using SyslogHandler from logging.handlers to send syslog messages to a Fluentd input (https://github.com/fluent/fluentd/blob/master/lib/fluent/plugin/in_syslog.rb), both in TCP and UDP. UDP works fine, but TCP does not work. The "problem" is that the

[issue28403] Migration RFE: optional warning for implicit unicode conversions

2016-10-10 Thread Nick Coghlan
Nick Coghlan added the comment: The main problem with the "undefined" encoding is that it actually *fails* the application, rather than allowing it to continue, but providing a warning at each new point where it encounters implicit encoding or decoding. This means the parts of the standard

[issue28397] Faster index range checks

2016-10-10 Thread Stefan Krah
Stefan Krah added the comment: The same applies to memoryview.c and _testbuffer.c -- I doubt that there's any measurable speed benefit and the clarity is reduced (I also don't want macros there). -- ___ Python tracker

[issue28214] Improve exception reporting for problematic __set_name__ attributes

2016-10-10 Thread Nick Coghlan
Nick Coghlan added the comment: You're right, RuntimeError is a more suitable exception type. So +1 for the second version of the patch that uses `__cause__` and the patch itself looks good to me. -- ___ Python tracker

Is there a free graph library to show program flow by tranverse AST tree

2016-10-10 Thread Ho Yeung Lee
can this graph library handle recursive function call this symbol If it recursive call a function 3 times then in the inner loop call another function , can this graph library Show this relationship I find video that viv can show this program flow. --

  1   2   >