[issue2613] inconsistency with bare * in parameter list

2016-08-23 Thread Guido van Rossum
Guido van Rossum added the comment: I promise you it's not necessary in that example. Leaving out the '*' has the same effect as what you intend there. -- ___ Python tracker

[issue27842] Order CSV header fields

2016-08-23 Thread Steve Holden
Steve Holden added the comment: Sorry, deleted the originally submitted (incorrect) patch file. -- Added file: http://bugs.python.org/file44203/csv.patch ___ Python tracker

[issue27843] Spaces in filenames in setuptools

2016-08-23 Thread Eric N. Vander Weele
Changes by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___

[issue26040] Improve coverage and rigour of test.test_math

2016-08-23 Thread Ned Deily
Ned Deily added the comment: Mark, many buildbots are unhappy. For example: == FAIL: test_testfile (test.test_math.MathTests) -- Traceback (most recent call

[issue26040] Improve coverage and rigour of test.test_math

2016-08-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___

[issue27841] Use fast call in method_call() and slot_tp_new()

2016-08-23 Thread STINNER Victor
STINNER Victor added the comment: > It uses a small buffer allocated on the stack C if the function is called > with 4 arguments or less, or it allocates a buffer in the heap memory. Maybe 4 is too small. On 64 bit, it's just 5*8=40 bytes. Maybe we can use a buffer of 10 pointers: 80 bytes?

[issue27832] fractions.Fraction with 3 arguments: error passes silently

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea495a5ded9b by Mark Dickinson in branch 'default': Issue #27832: Make _normalize parameter to Fraction.__init__ keyword-only. https://hg.python.org/cpython/rev/ea495a5ded9b -- nosy: +python-dev ___

[issue27598] Add SizedIterable to collections.abc and typing

2016-08-23 Thread Guido van Rossum
Guido van Rossum added the comment: ReIterable and Collection are different concepts. - ReIterable just implements __iter__ but promises certain semantics. - Collection implements __iter__, __contains__ and __len__. If we had ReIterable I would probably decree that Collection inherits from it

[issue26040] Improve coverage and rigour of test.test_math

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1017215f5492 by Mark Dickinson in branch 'default': Issue #26040 (part 1): add new testcases to cmath_testcases.txt. Thanks Jeff Allen. https://hg.python.org/cpython/rev/1017215f5492 -- nosy: +python-dev

[issue27842] Order CSV header fields

2016-08-23 Thread Steve Holden
New submission from Steve Holden: It's sometimes annoying that a csv.DictReader doesn't retain the field ordering given in the first line of the file. Sometimes it matters. This patch converts the reader so that it returns an OrderedDict rather than a plain dict, thereby retaining the

[issue27832] fractions.Fraction with 3 arguments: error passes silently

2016-08-23 Thread Vedran Čačić
Vedran Čačić added the comment: As much as Steven's proposal would give me what I want in Py3.6, I must say I'm -1 on it. The assumption of every Fraction being reduced to lowest terms is really an important invariant that provides numerous opportunities for optimization (look at __eq__ for

[issue27832] fractions.Fraction with 3 arguments: error passes silently

2016-08-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___

[issue27837] Logging Cookbook Improvement

2016-08-23 Thread Niko Yasui
Niko Yasui added the comment: Thank you both for the helpful comments. Vinay, since you want to illustrate a listener process in the multiprocessing example, why not include a shorter, simpler example beforehand? This is my first time using logging, and it took me multiple hours to figure out

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-08-23 Thread R. David Murray
Changes by R. David Murray : -- hgrepos: -352 ___ Python tracker ___ ___

[issue27837] Logging Cookbook Improvement

2016-08-23 Thread Vinay Sajip
Vinay Sajip added the comment: > Since a queue isn't necessary for logging with multiprocessing IMO a queue with QueueHandler/QueueListener is best practice when working with multiprocessing and logging. If you don't use them, things may seem to work some of the time but could fail in certain

[issue27842] Order CSV header fields

2016-08-23 Thread Steve Holden
Changes by Steve Holden : Removed file: http://bugs.python.org/file44202/csv.patch ___ Python tracker ___

[issue21085] compile error Python3.3 on Cygwin

2016-08-23 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: Hello, I'm writer for past patch. 3.4-issue21085-struct_siginfo.patch removes si_band field from struct_siginfo if the C siginfo_t doesn't have si_band field. This modification raises a incompatibility between platforms having struct_siginfo. Now, I wrote

[issue26040] Improve coverage and rigour of test.test_math

2016-08-23 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list

[issue23229] add inf, nan, infj, nanj to cmath module

2016-08-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: -> commit review versions: +Python 3.6 -Python 3.5 ___ Python tracker ___

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Chris Wood
Chris Wood added the comment: https://www.python.org/downloads/ -- ___ Python tracker ___ ___

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Steve Dower
Steve Dower added the comment: Nothing in Python 2.7 depends on vcruntime140.dll, so you shouldn't be seeing that error from there. My guess is that you have an extension module that requires it, or possibly your PATH or PYTHONPATH variables were mixed up. It sounds like everything is

[issue27598] Add Collection to collections.abc and typing

2016-08-23 Thread Guido van Rossum
Changes by Guido van Rossum : -- title: Add SizedIterable to collections.abc and typing -> Add Collection to collections.abc and typing ___ Python tracker

[issue27363] Complex numbers with negative zero parts do not roundtrip properly

2016-08-23 Thread Vedran Čačić
Vedran Čačić added the comment: Since I'm so happy with Fraction being fixed, I'll agree here. :-) -- ___ Python tracker ___

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75111791110b by R David Murray in branch '2.7': # 2466: ismount now recognizes mount points user can't access. https://hg.python.org/cpython/rev/75111791110b -- ___ Python tracker

[issue27573] code.interact() should print an exit message

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4863530cfd6 by Steven D'Aprano in branch 'default': Issue #27573 make the exit message configurable. https://hg.python.org/cpython/rev/c4863530cfd6 -- ___ Python tracker

[issue12029] Catching virtual subclasses in except clauses

2016-08-23 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue27844] Python-3.6a4 build messages to stderr (on AIX and xlc compiler)

2016-08-23 Thread Michael Felt
New submission from Michael Felt: FYI: Compiler warnings that appear on stderr (skipping any messages sent to stdout) - xlc V11 as the reporting compiler. Two that may need attention are the redefines of _POSIX_C_SOURCE and _XOPEN_SOURCE in pyconfig.h Also surprised by the message: Could not

[issue27832] fractions.Fraction with 3 arguments: error passes silently

2016-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26040] Improve coverage and rigour of test.test_math

2016-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: I finally have some time to look at this. I've double-checked all the new cmath testcases against MPFR (via bigfloat), and they all look good. I plan to apply this in two stages: (1) apply the new cmath testcases, (2) apply the test_math changes, and (1.5)

[issue27832] fractions.Fraction with 3 arguments: error passes silently

2016-08-23 Thread Vedran Čačić
Vedran Čačić added the comment: Thank you very much! Not only for this fix, but also for restoring my faith in Python community. :-) -- ___ Python tracker

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-08-23 Thread Erik Bray
Erik Bray added the comment: The good news about this (in the pthread case) is that it does not need to be seen as some workaround for unusual platforms, but rather making the existing code more POSIX-compliant (and hence correct). The Win32 side I'm a little less worried about because the

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Steve Dower
Steve Dower added the comment: Where did you install Python from? -- ___ Python tracker ___ ___

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2016-08-23 Thread R. David Murray
R. David Murray added the comment: Thanks, Xiang. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue2613] inconsistency with bare * in parameter list

2016-08-23 Thread vitorg
vitorg added the comment: Here is example where it's necessary, but still raising an error: >>> def my_method(self, *, **kwargs): ... pass ... File "", line 1 SyntaxError: named arguments must follow bare * -- nosy: +vitorg ___ Python tracker

[issue27842] Order CSV header fields

2016-08-23 Thread R. David Murray
Changes by R. David Murray : -- hgrepos: -353 ___ Python tracker ___ ___

[issue27843] Spaces in filenames in setuptools

2016-08-23 Thread Michael Felt
New submission from Michael Felt: p.s. - guessing on the component - this is after make install + make install DESTDIR=/var/aixtools/aixtools/python/3.6.0.164 > .buildaix/install.out + mkinstallp.ksh /var/aixtools/aixtools/python/3.6.0.164 > .buildaix/mkinstallp.out +

[issue27598] Add SizedIterable to collections.abc and typing

2016-08-23 Thread Bar Harel
Bar Harel added the comment: I still believe "Reiterable" better demonstrates the concept. When you request a Reiterable as a function parameter or assert if something is a Reiterable the other side knows exactly what you mean. A "Collection" is way more ambiguous - if you create an object

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Chris Wood
Chris Wood added the comment: Apologies, there are typos in my final paragraph - 3.5.11 should just be 3.5, and 3.5.12 should be 3.5.2 -- ___ Python tracker

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-08-23 Thread Erik Bray
Erik Bray added the comment: FWIW I've created an initial patch for this. Seems to work fine, but it's a bit of a mess and I have a few small implementation concerns. I'll try to get it cleaned up sometime in the next few days and I'll post it. --

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Chris Wood
Chris Wood added the comment: Ah, in that case: - I guess the issue would have been that the python 3.5 installation I tried (which was 3.5.0a1) had the vcruntime140.dll issue - I've realised that the 3.5* installation puts Python on the beginning of the PATH - whereas I was putting the

[issue27842] Order CSV header fields

2016-08-23 Thread R. David Murray
R. David Murray added the comment: I think this seems reasonable, now that OrderedDict is in C. -- nosy: +r.david.murray type: -> enhancement ___ Python tracker

[issue27843] Spaces in filenames in setuptools

2016-08-23 Thread R. David Murray
R. David Murray added the comment: setuptools is not part of CPython or the standard library, though it is currently distributed with CPython via ensurepip. You should report this issue to the setuptools and/or pip bug tracker. -- nosy: +dstufft, r.david.murray

[issue27598] Add Collection to collections.abc and typing

2016-08-23 Thread Guido van Rossum
Guido van Rossum added the comment: I'll keep this open until I've also merged typing.py. -- ___ Python tracker ___

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-23 Thread koobs
Changes by koobs : -- nosy: +koobs versions: +Python 3.5, Python 3.6 ___ Python tracker ___

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-08-23 Thread Michael Felt
Michael Felt added the comment: patch to include RTLD_MEMBER in Modules/_ctypes and also "document", or not document, RTLD_NOW -- Added file: http://bugs.python.org/file44206/Python3.6.Modules._ctypes.160823.patch ___ Python tracker

[issue27598] Add Collection to collections.abc and typing

2016-08-23 Thread Guido van Rossum
Changes by Guido van Rossum : -- stage: test needed -> resolved ___ Python tracker ___ ___

[issue27598] Add Collection to collections.abc and typing

2016-08-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Guido, thank you for committing! There are also some other omissions in docs, Type[C], @overload, there is #26141 to track this. I will submit a patch later. Until 3.6beta1 I would like to focus on PEP 526. -- ___

[issue27841] Use fast call in method_call() and slot_tp_new()

2016-08-23 Thread Stefan Behnel
Stefan Behnel added the comment: If you care so much about C stack space, you could also try to create two or three entry point functions that keep (say) a 4, 8 and 16 items array on the stack respectively, and then pass the pointer (and the overall length if you need it) of that array on

[issue26040] Improve coverage and rigour of test.test_math

2016-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: Reverted in https://hg.python.org/cpython/rev/4389aa3507c5 -- ___ Python tracker ___

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-23 Thread geeknik
geeknik added the comment: Sure, 3.5 and/or 3.6 has memory leaks during compilation: https://bugs.python.org/issue27780 And I just compiled 3.5.2 and running that version of python against a non-existent file returns this from LeakSanitizer:

[issue27598] Add Collection to collections.abc and typing

2016-08-23 Thread Guido van Rossum
Guido van Rossum added the comment: changeset: 102867:355fa8bd8d9d branch: 3.5 parent: 102860:e3466a556d81 user:Guido van Rossum date:Tue Aug 23 11:01:50 2016 -0700 summary: A new version of typing.py from https://github.com/python/typing.

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue27643] test_ctypes fails on AIX with xlc

2016-08-23 Thread Michael Felt
Michael Felt added the comment: Using: root@x064:[/data/prj/aixtools/python/tests]cat -n bits.c 1 struct BITS { 2 signed int A: 1, B:2, C:3, D:4, E: 5, F: 6, G: 7, H: 8, I: 9; 3 signed short M: 1, N: 2, O: 3, P: 4, Q: 5, R: 6, S: 7; 4 signed char T: 1,

[issue27834] test_datetime fails on "x86 Gentoo Non-Debug with X 3.x" buildbot

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset a13c51bde2b4 by Alexander Belopolsky in branch 'default': Issue #27834: Avoid overflow error in ZoneInfo.invert(). https://hg.python.org/cpython/rev/a13c51bde2b4 -- nosy: +python-dev ___ Python tracker

[issue26040] Improve coverage and rigour of test.test_math

2016-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Ned. (And apologies.) The test_math tests are too strict in this case, which is one of the issues that Jeff's full patch fixes. It looks like my strategy of applying the patch in two pieces isn't going to work. I'll revert the change for now, and have

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2016-08-23 Thread R. David Murray
R. David Murray added the comment: This is causing a test failure on the windows 8 bot. Can you fix it Xiang? Otherwise I'll have to revert. http://buildbot.python.org/all/builders/AMD64%20Windows8%202.7/builds/870 ==

[issue27598] Add Collection to collections.abc and typing

2016-08-23 Thread Guido van Rossum
Guido van Rossum added the comment: Actually there's one TODO left: the docs for typing (at least in 3.6) should mention Collection. -- ___ Python tracker

[issue27834] test_datetime fails on "x86 Gentoo Non-Debug with X 3.x" buildbot

2016-08-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is related to issue 24773. -- assignee: -> belopolsky stage: -> needs patch type: -> behavior ___ Python tracker

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-08-23 Thread Michael Felt
Michael Felt added the comment: New patch (diff) - that I hope address the comments made in the previous submission -- Added file: http://bugs.python.org/file44205/Python3.6.Lib.ctypes.160823.patch ___ Python tracker

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___

[issue27834] test_datetime fails on "x86 Gentoo Non-Debug with X 3.x" buildbot

2016-08-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The build succeeded. http://buildbot.python.org/all/builders/x86%20Gentoo%20Non-Debug%20with%20X%203.x/builds/1292 Closing. Thanks for the report, Victor. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed

[issue27841] Use fast call in method_call() and slot_tp_new()

2016-08-23 Thread STINNER Victor
STINNER Victor added the comment: Stefan Behnel added the comment: > If you care so much about C stack space, you could also try to create two or > three entry point functions that keep (say) a 4, 8 and 16 items array on the > stack respectively, (...) I should compute statistics, but I'm

[issue27821] IDLE custom keymaps don't work anymore (Windows, Python 3.6.0a3)

2016-08-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I can't make any sense of this report. In configdialog.py, the DynOptionMenu self.optMenuKeysCuston is set in LoadKeyConfig (line 1066) by itemList = idleConf.GetSectionList('user', 'keys') itemList.sort() if not itemList:

[issue27643] test_ctypes fails on AIX with xlc

2016-08-23 Thread Eric N. Vander Weele
Eric N. Vander Weele added the comment: I am able to replicate what Michael has provided (i.e., xlc does not support signed short). Sorry for the confusion: I overlooked that the compiler is emitting the error with may patch and assuming 'unsigned'. So it seems like there are two things to

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-08-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As far as I can tell, the buildbots are happy now. Closing. Please open new issues if missed anything. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue27809] _PyObject_FastCall(): add support for keyword arguments

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 70f88b097f60 by Victor Stinner in branch 'default': Issue #27809: map_next() uses fast call https://hg.python.org/cpython/rev/70f88b097f60 New changeset 0e4f26083bbb by Victor Stinner in branch 'default': PyObject_CallMethodObjArgs() now uses fast

[issue27845] Optimize update_keyword_args() function

2016-08-23 Thread STINNER Victor
New submission from STINNER Victor: In the review of my issue #27830 "Add _PyObject_FastCallKeywords(): pass keyword arguments as (key, value) pairs", Antoine Pitrou wrote about _PyStack_AsDict(): "It's a pity that you're doing two dict lookups per keyword argument. Another strategy would be

Re: Python non blocking multi-client service

2016-08-23 Thread Zentrader
I don't know anything about asyncio, but multiprocessing would be my tool of choice. The first example should be enough for what you want to do at https://pymotw.com/2/multiprocessing/basics.html -- https://mail.python.org/mailman/listinfo/python-list

[issue27834] test_datetime fails on "x86 Gentoo Non-Debug with X 3.x" buildbot

2016-08-23 Thread STINNER Victor
STINNER Victor added the comment: Oh cool, thanks for the quick fix ;-) -- ___ Python tracker ___ ___

[issue27842] Order CSV header fields

2016-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks like a nice improvement. The patch needs a test and the docs need a versionchanged entry. -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker

Re: Python non blocking multi-client service

2016-08-23 Thread INADA Naoki
> > I did that only for the debug reasons :-) That's bad for debugging too. Real Exception and Stacktrace are far better than print('Error') on all time. Never do it even for debugging. -- https://mail.python.org/mailman/listinfo/python-list

[issue27825] Make the documentation for statistics' data argument clearer.

2016-08-23 Thread Steven D'Aprano
Changes by Steven D'Aprano : -- assignee: docs@python -> steven.daprano nosy: +steven.daprano ___ Python tracker ___

[issue27795] Cygwin compile errors

2016-08-23 Thread R. David Murray
R. David Murray added the comment: Please deal with specific errors. As I said there are a number of specific reports already, so a generic "it doesn't work" issue is not useful. If you identify a specific issue for which there is not already an open bug report, please open a new issue for

[issue27435] ctypes library loading and AIX - also for 2.7.X (and later)

2016-08-23 Thread Michael Felt
Michael Felt added the comment: On 23-Aug-16 02:01, Martin Panter wrote: > Martin Panter added the comment: Thank you for your reply! > > I had understood that changing find_library() would only be useful in > combination with the automatic RTDL_MEMBER detection. Adding the RTLD_MEMBER to the

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-08-23 Thread R. David Murray
R. David Murray added the comment: I'd say that sounds reasonable, but most likely it will only be someone working with one of the impacted platforms who will have the motivation to come up with a patch. Especially since neither of the impacted platforms is current formally supported

[issue27573] code.interact() should print an exit message

2016-08-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Thu, Aug 18, 2016 at 12:26:56PM +, Armin Rigo wrote: > ...ah, upon closer inspection, we don't use the ``interact()`` method > anyway. We already copied and tweaked this method: one problem was > that it gives no way to run without printing at least

[issue27841] Use fast call in method_call() and slot_tp_new()

2016-08-23 Thread STINNER Victor
New submission from STINNER Victor: Attached patch avoids the creation of a temporary tuple in method_call() and slot_tp_new() by using the new fast call calling convention. It uses a small buffer allocated on the stack C if the function is called with 4 arguments or less, or it allocates a

Re: degrees and radians.

2016-08-23 Thread murdocksgranpa
On Saturday, May 4, 2002 at 3:37:07 AM UTC-4, Jim Richardson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > I am trying to get the math module to deal with degrees rather than > radians. (that it deals with radians for the angular functions like > sin() isn't mentioned in the

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2016-08-23 Thread Xiang Zhang
Xiang Zhang added the comment: Oh, sorry. Upload bot_failure_fix.patch to fix this. -- Added file: http://bugs.python.org/file44207/bot_failure_fix.patch ___ Python tracker

Re: degrees and radians.

2016-08-23 Thread Gary Herron
On 08/23/2016 09:08 PM, murdocksgra...@gmail.com wrote: On Saturday, May 4, 2002 at 3:37:07 AM UTC-4, Jim Richardson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to get the math module to deal with degrees rather than radians. (that it deals with radians for the angular

Re: Python 3: Launch multiple commands(subprocesses) in parallel (but upto 4 any time at same time) AND store each of their outputs into a variable

2016-08-23 Thread Dale Marvin via Python-list
On 8/23/16 8:15 PM, lax.cla...@gmail.com wrote: > I am trying to: > > 1) Use Python 3+ (specifically 3.4 if it matters) > 2) Launch N commands in background (e.g., like subprocess.call would for individual commands) > 3) But only limit P commands to run at same time > 4) Wait until all N

Re: degrees and radians.

2016-08-23 Thread Random832
On Wed, Aug 24, 2016, at 00:26, Gary Herron wrote: > Perhaps I'm not understanding what you mean by "clunky", but this seems > pretty clean and simple to me. The original post is from 2002, I don't know why it got a reply just now. -- https://mail.python.org/mailman/listinfo/python-list

[issue24265] IDLE -s and (-, -c command, or -r file) produces error message

2016-08-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I confirmed the bug on Win10 with 3.5 and 3.6. "python -m idlelibl -s" prints a prompt*, runs the file and prints any output, and prints a prompt. It then accepts user input. When "-c command" is added, it should accept that as user input (and perhaps

[issue25916] wave module readframes now returns bytes not str

2016-08-23 Thread R. David Murray
R. David Murray added the comment: Thanks SilentGhost. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue25916] wave module readframes now returns bytes not str

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ac8e8568da2 by R David Murray in branch '3.5': #25916: fix a few 'string of bytes' references. https://hg.python.org/cpython/rev/7ac8e8568da2 New changeset 089f7d761a9c by R David Murray in branch 'default': Merge: #25916: fix a few 'string of

[issue23183] timeit CLI best of 3: undocumented output format

2016-08-23 Thread R. David Murray
R. David Murray added the comment: I think the use of "timing loop" is very confusing, since the word 'loop' refers to one execution of the statement body in the actual output text. What about calling it a 'timing run'? It looks like whatever we come up with should be applied to 3.5 and 3.6

[issue27837] Logging Cookbook Improvement

2016-08-23 Thread Niko Yasui
Niko Yasui added the comment: I see, I didn't realize that the simpler code would break under certain conditions. While there are definitely simpler examples in other documents, I haven't been able to find any indication that there is a simpler way to do multiprocessing and logging together,

[issue27809] _PyObject_FastCall(): add support for keyword arguments

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 401f59a7020b by Victor Stinner in branch 'default': PyObject_CallMethodObjArgs() now uses fast call https://hg.python.org/cpython/rev/401f59a7020b -- ___ Python tracker

[issue27809] _PyObject_FastCall(): add support for keyword arguments

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b241e761f8f by Victor Stinner in branch 'default': Issue #27809: map_next() uses fast call https://hg.python.org/cpython/rev/1b241e761f8f -- ___ Python tracker

[issue27837] Logging Cookbook Improvement

2016-08-23 Thread Niko Yasui
Changes by Niko Yasui : Removed file: http://bugs.python.org/file44198/multi_log_cookbook.py ___ Python tracker ___

[issue27643] test_ctypes fails on AIX with xlc

2016-08-23 Thread Martin Panter
Martin Panter added the comment: Michael: When posting to the bug tracker, please trim irrelevant parts of old messages. It makes it hard to see if you actually added anything new. > [Me] If your compiler does not support “signed short” bitfields, maybe we > just have to accept that ctypes

[issue26907] Add missing getsockopt constants

2016-08-23 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue26907] Add missing getsockopt constants

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed5f5d490490 by R David Murray in branch 'default': #26907: add some missing getsockopt constants. https://hg.python.org/cpython/rev/ed5f5d490490 -- nosy: +python-dev ___ Python tracker

[issue27598] Add Collection to collections.abc and typing

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset acd9a465b373 by Guido van Rossum in branch 'default': Issue 27598: Add Collections to collections.abc. https://hg.python.org/cpython/rev/acd9a465b373 -- nosy: +python-dev ___ Python tracker

Python 3: Launch multiple commands(subprocesses) in parallel (but upto 4 any time at same time) AND store each of their outputs into a variable

2016-08-23 Thread lax . clarke
Hi, I've been reading various forums and python documentation on subprocess, multithreading, PIPEs, etc. But I cannot seem to mash together several of my requirements into working code. I am trying to: 1) Use Python 3+ (specifically 3.4 if it matters) 2) Launch N commands in background

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-23 Thread geeknik
geeknik added the comment: Interesting that only Python exhibits this "leaky" behavior that generates a LeakSanitizer error. I don't see similar behavior in Perl, Ruby or PHP. Running a non-ASAN build under Valgrind reports that a leak is still occurring: LEAK SUMMARY: ==15496==

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-23 Thread R. David Murray
R. David Murray added the comment: I'm not saying there isn't a leak, rather I'm trying to understand what you are reporting, without any understanding of ASN. So I'm going to leave this to others to evaluate. Also, do you see the same thing in 3.5 or 3.6? We aren't patching 3.4 anymore

[issue27787] Avoid test_main() in test_httplib; gc.collect() dangling threads

2016-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31e4495a34ce by Terry Jan Reedy in branch 'default': Issue #27787: No longer call deleted test_main(). https://hg.python.org/cpython/rev/31e4495a34ce -- ___ Python tracker

[issue27643] test_ctypes fails on AIX with xlc

2016-08-23 Thread Michael Felt
Michael Felt added the comment: On 23-Aug-16 21:23, Michael Felt wrote: > Michael Felt added the comment: > > Using: > > root@x064:[/data/prj/aixtools/python/tests]cat -n bits.c >1 struct BITS { >2 signed int A: 1, B:2, C:3, D:4, E: 5, F: 6, G: 7, H: 8, I: 9; >3

Re: degrees and radians.

2016-08-23 Thread Steven D'Aprano
On Wednesday 24 August 2016 14:26, Gary Herron wrote: > Do you really need anything more complex than this? > > >>> toRadians = math.pi/180.0 > > >>> math.sin(90*toRadians) > 1.0 > > Perhaps I'm not understanding what you mean by "clunky", but this seems > pretty clean and simple to me.

  1   2   >