[issue28769] Make PyUnicode_AsUTF8 returning "const char *" rather of "char *"

2016-11-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() return a reference to cached readonly UTF-8 representation of a string. Changing the content of the UTF-8 representation is an error. Proposed patch makes these functions returning "const char *" rather of

[RELEASE] Python 3.6.0b4 is now available

2016-11-21 Thread Ned Deily
On behalf of the Python development community and the Python 3.6 release team, I'm pleased to announce the availability of Python 3.6.0b4. 3.6.0b4 is the last planned beta release of Python 3.6, the next major release of Python. Among the new major new features in Python 3.6 are: * PEP 468 -

[issue28766] Remove the semicolon in source code

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Yuwei, but this is irrelevant and not appropriate for a Python 2.7 backport at this time. -- nosy: +rhettinger status: open -> closed ___ Python tracker

[issue28573] Python 3.6.0b4 64-bit has no sys._mercurial info

2016-11-21 Thread Steve Dower
Steve Dower added the comment: Wasn't fixed as well as I'd like, so I clearly need a better approach here. -- resolution: fixed -> stage: resolved -> status: closed -> open title: Python 3.6.0b3 64-bit has no sys._mercurial info -> Python 3.6.0b4 64-bit has no sys._mercurial info

[issue28761] Add the const qualifier to fields name and doc of public structs

2016-11-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28761] Add the const qualifier to fields name and doc of public structs

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Nick. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5830] heapq item comparison problematic with sched's events

2016-11-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> resolved ___ Python tracker ___ ___

[issue5830] heapq item comparison problematic with sched's events

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agreed, "seq" is better name. Thanks Raymond. -- ___ Python tracker ___

[issue28761] Add the const qualifier to fields name and doc of public structs

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42b0ba372ec2 by Serhiy Storchaka in branch 'default': Issue #28761: The fields name and doc of structures PyMemberDef, PyGetSetDef, https://hg.python.org/cpython/rev/42b0ba372ec2 -- nosy: +python-dev ___

Re: Numpy slow at vector cross product?

2016-11-21 Thread Paul Rubin
Steven D'Aprano writes: > if we knew we should be doing it, and if we could be bothered to run > multiple trials and gather statistics and keep a close eye on the > deviation between measurements. But who wants to do that by hand? You might like this, for

Re: Can somebody tell me what's wrong wrong with my code? I don't understand

2016-11-21 Thread Steven D'Aprano
On Tuesday 22 November 2016 14:10, rmjbr...@gmail.com wrote: > Hi! This is my first post! I'm having trouble understanding my code. I get > "SyntaxError:invalid syntax" on line 49. Sometimes a syntax error can only be reported on the line *following* the line with the actual error. So you may

[issue28766] Remove the semicolon in source code

2016-11-21 Thread Yuwei Ba
Yuwei Ba added the comment: I know this is not a functional 'fix', though it's the fact that there should not be a semicolon. It can make user confusing. There might be another user who found this semicolon and create an issue again since there are still lots of Python27 codes running on tons

Re: Numpy slow at vector cross product?

2016-11-21 Thread Steven D'Aprano
On Tuesday 22 November 2016 14:00, Steve D'Aprano wrote: > Running a whole lot of loops can, sometimes, mitigate some of that > variation, but not always. Even when running in a loop, you can easily get > variation of 10% or more just at random. I think that needs to be emphasised: there's a lot

[issue28635] Update What's New for 3.6

2016-11-21 Thread INADA Naoki
INADA Naoki added the comment: I added ``-VV`` option to python command (issue28532). Which section should I add the entry about it? -- nosy: +inada.naoki ___ Python tracker

Re: Can somebody tell me what's wrong wrong with my code? I don't understand

2016-11-21 Thread Chris Angelico
On Tue, Nov 22, 2016 at 2:10 PM, wrote: > Hi! This is my first post! I'm having trouble understanding my code. I get > "SyntaxError:invalid syntax" on line 49. I'm trying to code a simple > text-based rpg on repl.it. Thank you for reading. > > > elif raceNum==3: >

Re: Can somebody tell me what's wrong wrong with my code? I don't understand

2016-11-21 Thread Larry Martell
On Mon, Nov 21, 2016 at 10:10 PM, wrote: > Hi! This is my first post! I'm having trouble understanding my code. I get > "SyntaxError:invalid syntax" on line 49. I'm trying to code a simple > text-based rpg on repl.it. Thank you for reading. > > > > print("Welcome to

Can somebody tell me what's wrong wrong with my code? I don't understand

2016-11-21 Thread rmjbros3
Hi! This is my first post! I'm having trouble understanding my code. I get "SyntaxError:invalid syntax" on line 49. I'm trying to code a simple text-based rpg on repl.it. Thank you for reading. print("Welcome to Gladiator Game! Choose your character race, class, and starting equipment!")

Re: Numpy slow at vector cross product?

2016-11-21 Thread Steve D'Aprano
On Tue, 22 Nov 2016 12:45 pm, BartC wrote: > On 21/11/2016 14:50, Steve D'Aprano wrote: >> On Mon, 21 Nov 2016 11:09 pm, BartC wrote: > >> Modern machines run multi-tasking operating systems, where there can be >> other processes running. Depending on what you use as your timer, you may >> be

Re: Numpy slow at vector cross product?

2016-11-21 Thread Steve D'Aprano
On Tue, 22 Nov 2016 05:43 am, BartC wrote: > The fastest I can get compiled, native code to do this is at 250 million > cross-products per second. Yes, yes, you're awfully clever, and your secret private language is so much more efficient than even C that the entire IT industry ought to hang

[issue28763] Use en-dashes for ranges in docs

2016-11-21 Thread Martin Panter
Martin Panter added the comment: Sure, I was just saying that for whatever reason, 50% of the documentation uses hyphens for number ranges, and 50% uses en dashes. -- ___ Python tracker

[issue28763] Use en-dashes for ranges in docs

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The rest single hyphens between digits are meaningful hypens in iso-8859-1, ISDNs, sample outputs, etc. -- ___ Python tracker

[issue28702] Confusing error message when None used in expressions, eg. "'NoneType' object has no attribute 'foo'"

2016-11-21 Thread Greg Ward
Greg Ward added the comment: > Is it worth changing about 800 places in CPython code? Not counting > third-party code. Definitely not. My aim is not to fix every possible reference to "instance of 'NoneType'", just the handful of cases that are most frequently encountered, especially if we

Re: Numpy slow at vector cross product?

2016-11-21 Thread BartC
On 21/11/2016 14:50, Steve D'Aprano wrote: On Mon, 21 Nov 2016 11:09 pm, BartC wrote: Modern machines run multi-tasking operating systems, where there can be other processes running. Depending on what you use as your timer, you may be measuring the time that those other processes run. The OS

Re: MemoryError and Pickle

2016-11-21 Thread Steve D'Aprano
On Tue, 22 Nov 2016 10:27 am, Fillmore wrote: > > Hi there, Python newbie here. > > I am working with large files. For this reason I figured that I would > capture the large input into a list and serialize it with pickle for > later (faster) usage. > Everything has worked beautifully until

[issue28738] Document SIGBREAK as argument for signal() under Windows.

2016-11-21 Thread Eryk Sun
Changes by Eryk Sun : -- keywords: +easy priority: normal -> low stage: -> patch review versions: +Python 3.6 ___ Python tracker

[issue23106] Remove smalltable from set objects

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Based on the performance hit, I am retracting this. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch Jonathan. Nick, thanks for chiming in. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3aafb232f2db by Raymond Hettinger in branch '3.6': Issue #27100: With statement reports missing __enter__ before __exit__. (Contributed by Jonathan Ellington.) https://hg.python.org/cpython/rev/3aafb232f2db -- nosy: +python-dev

Re: Enigma 1140 - link problem

2016-11-21 Thread Terry Reedy
On 11/21/2016 5:45 PM, BlindAnagram wrote: Hi Jim, ... thanks Brian 'Brian', you sent this to python-list instead of Jim. If this is not spam, try again with a different 'To:' -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

[issue28766] Remove the semicolon in source code

2016-11-21 Thread Martin Panter
Martin Panter added the comment: This was added to 2.7 in r68532 (Issue 4879), but the semicolon never made it to the Python 3 branch that I can see, so I don’t think there is anything to fix there. Your patch is against the 2.7 branch, which is only open for bug fixes now, and I don’t think

[issue28688] Warning -- warnings.filters was modified by test_warnings

2016-11-21 Thread Martin Panter
Changes by Martin Panter : -- superseder: Warning -- warnings.filters was modified by test_warnings -> Implement comparison (x==y and x!=y) for _sre.SRE_Pattern ___ Python tracker

[issue28688] Warning -- warnings.filters was modified by test_warnings

2016-11-21 Thread Martin Panter
Martin Panter added the comment: As long as we are restricted by backwards compatibility, it will be hard to find a hack-free solution. The ideal solution IMO is to re-create _warnings.filters from scratch when _warnings is reloaded, but such a change would be safer only for 3.7. So I am

Re: MemoryError and Pickle

2016-11-21 Thread Steve D'Aprano
On Tue, 22 Nov 2016 11:40 am, Peter Otten wrote: > Fillmore wrote: > >> Hi there, Python newbie here. >> >> I am working with large files. For this reason I figured that I would >> capture the large input into a list and serialize it with pickle for >> later (faster) usage. > > But is it

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset e0f0211d314d by Raymond Hettinger in branch '3.6': Issue #26163: Disable periodically failing test which was overly demanding of the frozenset hash function effectiveness https://hg.python.org/cpython/rev/e0f0211d314d -- nosy: +python-dev

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Rather than making futile further attempts to scramble the bits in the final hash to hide the effect of weak upstream hash inputs, I'm inclined to disable this particular test which was already a crazily harsh torture test. I suspect that even the tuple

[issue28763] Use en-dashes for ranges in docs

2016-11-21 Thread Martin Panter
Martin Panter added the comment: Personally I prefer en dashes where practical, but I fear the change may conflict with other people’s styles and preferences. I quickly counted 22 single hyphens (obviously I missed a few that your patch caught) and also 22 existing en dashes. --

Re: MemoryError and Pickle

2016-11-21 Thread Chris Kaynor
On Mon, Nov 21, 2016 at 3:43 PM, John Gordon wrote: > In Fillmore > writes: > > >> Question for experts: is there a way to refactor this so that data may >> be filled/written/released as the scripts go and avoid

[issue5830] heapq item comparison problematic with sched's events

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Serhiy. FWIW, I changed the variable name from "l" to "seq" for readability. -- status: open -> closed ___ Python tracker

[issue5830] heapq item comparison problematic with sched's events

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset ecc6f7940e02 by Raymond Hettinger in branch '3.6': Issue #5830: Add test for ee476248a74a. (Contributed by Serhiy Storchaka.) https://hg.python.org/cpython/rev/ecc6f7940e02 -- ___ Python tracker

Re: MemoryError and Pickle

2016-11-21 Thread Peter Otten
Fillmore wrote: > Hi there, Python newbie here. > > I am working with large files. For this reason I figured that I would > capture the large input into a list and serialize it with pickle for > later (faster) usage. But is it really faster? If the pickle is, let's say, twice as large as the

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

2016-11-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Sounds good. Thanks, Raymond :) -- ___ Python tracker ___ ___

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, applied. -- status: open -> closed ___ Python tracker ___ ___

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

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Mariatta. As discussed in chat, I dropped the extra fractions examples because they didn't seem to add value. -- nosy: +rhettinger resolution: -> fixed status: open -> closed ___ Python tracker

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset efac7ac53933 by Raymond Hettinger in branch '3.6': Issue #28587: Improve list examples in the tutorial https://hg.python.org/cpython/rev/efac7ac53933 -- ___ Python tracker

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

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71dd21a3b9cc by Raymond Hettinger in branch '3.6': Issue #27825: Improve for statistics data arguments. (Contributed by Mariatta Wijaya.) https://hg.python.org/cpython/rev/71dd21a3b9cc -- nosy: +python-dev

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Martin Panter
Martin Panter added the comment: Thanks Raymond, now the test is noticeably faster and fine with my memory situation :) -- stage: -> resolved ___ Python tracker

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks Raymond. The new set of examples is much better than the previous one. +1 -- ___ Python tracker ___

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching an improved list example: * Replaced abstract and hard to follow numerical example with fruits * Demonstrate the non-mutating methods first -- Added file: http://bugs.python.org/file45595/new_list_example.diff

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for noticing. I tested against the original list rather than the subsequently modified version. I'm starting to think that this whole example section is annoyingly hard to follow and uninformative. --

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks, Raymond and Martin :) Not sure what the procedure is for fixing this. Do I upload another patch? -- ___ Python tracker

Re: MemoryError and Pickle

2016-11-21 Thread John Gordon
In Fillmore writes: > Question for experts: is there a way to refactor this so that data may > be filled/written/released as the scripts go and avoid the problem? > code below. That depends on how the data will be read. Here is

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Martin Panter
Martin Panter added the comment: The committed change looks wrong in the new example. I think Mariatta’s patch was right; it the index found is 3, not 2: >>> a [66.25, 333, -1, 333, 1, 1234.5, 333] >>> a.index(333) 1 >>> a.index(333, 2) # search for 333 starting at index 2 3 -- nosy:

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2016-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: A smaller value suffices for this test. It was trying to make sure the underlying algorithms are as in-sync as possible without going to extremes. -- resolution: -> fixed status: open -> closed ___ Python

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3551fca2c6ae by Raymond Hettinger in branch '3.6': Issue #28743: Reduce memory consumption for random module tests https://hg.python.org/cpython/rev/3551fca2c6ae -- nosy: +python-dev ___ Python tracker

MemoryError and Pickle

2016-11-21 Thread Fillmore
Hi there, Python newbie here. I am working with large files. For this reason I figured that I would capture the large input into a list and serialize it with pickle for later (faster) usage. Everything has worked beautifully until today when the large data (1GB) file caused a MemoryError :(

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___

[issue28743] test_choices_algorithms() in test_random uses lots of memory

2016-11-21 Thread Martin Panter
Martin Panter added the comment: Gareth, are you sure that fixes the main memory problem? Did you see Serhiy’s cum_weights list? Looking at the code, a list of every number from one to 13 million will use more memory (to hold each unique integer) than the initial list of repeated ones. I

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Mariatta, thank you for the patch. And Chris, thanks for the observant bug report. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue28587] list.index documentation missing start and stop arguments

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62c16fafa7d4 by Raymond Hettinger in branch '3.6': Issue 28587: list.index documentation missing start and stop arguments. (Contributed by Mariatta Wijaya.) https://hg.python.org/cpython/rev/62c16fafa7d4 -- nosy: +python-dev

Enigma 1140 - link problem

2016-11-21 Thread BlindAnagram
Hi Jim, In my comment/solution for this Enigma I tried to post a link to my number theory library but my HTML got removed. Could you please replace the first sentence with: A solution using my http://173.254.28.24/~brgladma/number_theory.py;>number theory library: (without the line wrapping).

[issue28652] Make loop methods reject socket kinds they do not support.

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ee76f3afd70 by Yury Selivanov in branch '3.5': Issue #28652: Partially rollback previous changes https://hg.python.org/cpython/rev/0ee76f3afd70 New changeset a40159071359 by Yury Selivanov in branch '3.6': Merge 3.5 (issue #28652)

[issue28475] Misleading error on random.sample when k < 0

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Franscisco. I ended-up not modifying the docs because I think it clutters that clarity with an irrelevant side issue. The more important part was to make sure the error message wasn't misleading and the test that edge case. I didn't backport to

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like Serhiy has already committed it. Thanks! -- ___ Python tracker ___

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28475] Misleading error on random.sample when k < 0

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 89f95c78e0ab by Raymond Hettinger in branch '3.6': Issue 28475: Improve error message for random.sample() with k < 0. (Contributed by Francisco Couzo). https://hg.python.org/cpython/rev/89f95c78e0ab -- nosy: +python-dev

[issue27414] http.server.BaseHTTPRequestHandler inconsistence with Content-Length value

2016-11-21 Thread STINNER Victor
STINNER Victor added the comment: issue27414.patch is not good: see my review. -- nosy: +haypo ___ Python tracker ___

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a2a0061e425 by Serhiy Storchaka in branch '3.6': Issue #28752: Restored the __reduce__() methods of datetime objects. https://hg.python.org/cpython/rev/0a2a0061e425 New changeset 23140bd66d86 by Serhiy Storchaka in branch 'default': Issue #28752:

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > If you can push this in the next hour or two ... I'll do it now. -- ___ Python tracker ___

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Ned Deily
Ned Deily added the comment: If you can push this in the next hour or two, it can still make b4. -- ___ Python tracker ___

[issue28751] Fix comments in code.h

2016-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Ned. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue28751] Fix comments in code.h

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a916174 by Raymond Hettinger in branch '3.6': Issue 28751: Fix comments in code.h. (Contributed by Ned Batchelder). https://hg.python.org/cpython/rev/0a916174 -- nosy: +python-dev ___ Python

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2016-11-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue28751] Fix comments in code.h

2016-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue28532] Show sys.version when -V option is supplied twice.

2016-11-21 Thread Martin Panter
Martin Panter added the comment: The text looks okay. I’m not sure about putting it in the “Porting to Python 3.6” section, but there doesn’t seem to be a more appropriate existing heading. Perhaps we need a new heading, say “Other Improvement”, near “Optimizations” and “Build and C API

[issue28689] OpenSSL 1.1.0c test failures

2016-11-21 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Fixed upstream: https://github.com/openssl/openssl/commit/beacb0f0c1ae7b0542fe053b95307f515b578eb7 -- nosy: +cstratak ___ Python tracker

Re: Working around multiple files in a folder

2016-11-21 Thread Emile van Sebille
On 11/21/2016 11:27 AM, subhabangal...@gmail.com wrote: I have a python script where I am trying to read from a list of files in a folder and trying to process something. As I try to take out the output I am presently appending to a list. But I am trying to write the result of individual files

[issue28747] Expose SSL_CTX_set_cert_verify_callback

2016-11-21 Thread Steve Dower
Steve Dower added the comment: For the sake of review, I fixed the patch and rebased it on default. -- Added file: http://bugs.python.org/file45594/28747_3.patch ___ Python tracker

[issue28768] Warning: implicit declaration of function '_setmode'

2016-11-21 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : Added file: http://bugs.python.org/file45593/2.7-include-io.h.patch ___ Python tracker ___

[issue28768] Warning: implicit declaration of function '_setmode'

2016-11-21 Thread Masayuki Yamamoto
New submission from Masayuki Yamamoto: Platform that appeared warning is Vista Cygwin x86. Interpreter execution doesn't crash because _setmode function is supplied from cygwin1.dll that always linked. Warning reason is header io.h [*] doesn't include to source file. Therefore I wrote two

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ned.deily ___ Python tracker ___ ___

Working around multiple files in a folder

2016-11-21 Thread subhabangalore
I have a python script where I am trying to read from a list of files in a folder and trying to process something. As I try to take out the output I am presently appending to a list. But I am trying to write the result of individual files in individual list or files. The script is as follows:

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch LGTM. I'll commit it tonight unless Serhiy beats me to it. -- nosy: +alexandre.vassalotti, haypo, tim.peters ___ Python tracker

[issue28752] datetime object fails to restore from reduction

2016-11-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky stage: patch review -> commit review ___ Python tracker ___

[issue4347] Circular dependency causes SystemError when adding new syntax

2016-11-21 Thread Brett Cannon
Brett Cannon added the comment: So what does having the tokenizer not depend on pgen accomplish? Does it break a circular dependency where the tokenizer will get rebuilt with pgen before a full build starts? -- ___ Python tracker

Re: Which of two variants of code is better?

2016-11-21 Thread Victor Porton
Ned Batchelder wrote: > On Monday, November 21, 2016 at 12:48:25 PM UTC-5, Victor Porton wrote: >> Which of two variants of code to construct an "issue comment" object >> (about BitBucket issue comments) is better? >> >> 1. >> >> obj = IssueComment(Issue(IssueGroup(repository, 'issues'), id1),

[issue28751] Fix comments in code.h

2016-11-21 Thread Brett Cannon
Brett Cannon added the comment: Patch LGTM. -- stage: -> commit review ___ Python tracker ___ ___

Re: Numpy slow at vector cross product?

2016-11-21 Thread BartC
On 21/11/2016 17:04, Nobody wrote: On Mon, 21 Nov 2016 14:53:35 +, BartC wrote: Also that the critical bits were not implemented in Python? That is correct. You'll notice that there aren't any loops in numpy.cross. It's just a wrapper around a bunch of vectorised operations (*, -, []).

Re: Which of two variants of code is better?

2016-11-21 Thread Ned Batchelder
On Monday, November 21, 2016 at 12:48:25 PM UTC-5, Victor Porton wrote: > Which of two variants of code to construct an "issue comment" object (about > BitBucket issue comments) is better? > > 1. > > obj = IssueComment(Issue(IssueGroup(repository, 'issues'), id1), id2) > > or > > 2. > > list

[issue28767] Readd __index__ support on ipaddress objects

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why __index__ support is needed? -- nosy: +serhiy.storchaka ___ Python tracker ___

Which of two variants of code is better?

2016-11-21 Thread Victor Porton
Which of two variants of code to construct an "issue comment" object (about BitBucket issue comments) is better? 1. obj = IssueComment(Issue(IssueGroup(repository, 'issues'), id1), id2) or 2. list = [('issues', IssueGroup), (id1, Issue), (id2, IssueComment)] obj =

[issue28767] Readd __index__ support on ipaddress objects

2016-11-21 Thread Josh Rosenberg
New submission from Josh Rosenberg: It looks like, due to #16722, in #15559, __index__ was removed from ipaddress objects. #16722 was fixed a few months later, but the comments asking for it to be readded were put on a closed issue, so no one noticed. Can __index__ support be readded now?

[issue28172] Upper-case all example enum members

2016-11-21 Thread Ethan Furman
Changes by Ethan Furman : -- versions: -Python 3.5 ___ Python tracker ___ ___

[issue28172] Upper-case all example enum members

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9801dab214a by Ethan Furman in branch '3.6': close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico. https://hg.python.org/cpython/rev/b9801dab214a New changeset 5ec8d4c51363 by Ethan Furman in

Re: Numpy slow at vector cross product?

2016-11-21 Thread Nobody
On Mon, 21 Nov 2016 14:53:35 +, BartC wrote: > Also that the critical bits were not implemented in Python? That is correct. You'll notice that there aren't any loops in numpy.cross. It's just a wrapper around a bunch of vectorised operations (*, -, []). If you aren't taking advantage of

[issue28747] Expose SSL_CTX_set_cert_verify_callback

2016-11-21 Thread Steve Dower
Steve Dower added the comment: Whoops, that's what I get for renaming something. Easily fixed, but I'm happy to aim for 3.7. -- ___ Python tracker ___

[issue28764] test_mailbox fails when run as a non-root user on Android API 24

2016-11-21 Thread R. David Murray
R. David Murray added the comment: LGTM. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue28765] _sre.compile(): be more strict on types of indexgroup and groupindex

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If make groupindex and indexgroup a dict and a tuple, we could use concrete dict and tuple API instead of generic mapping and sequence APIs. Note that groups, groupindex and indexgroup are not independent. Actually indexgroup is derived from groups and

[issue28082] re: convert re flags to (much friendlier) IntFlag constants

2016-11-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 493359386360 by Ethan Furman in branch '3.6': issue28082: actually include NEWS entry https://hg.python.org/cpython/rev/493359386360 -- ___ Python tracker

  1   2   >