[issue28932] Fail compile Python 3.6.0rc1 on OpenBSD 6.0

2016-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f004cc84153 by Benjamin Peterson in branch '3.5': add a specific configure check for sys/random.h (closes #28932) https://hg.python.org/cpython/rev/2f004cc84153 New changeset bfd4140d9c5d by Benjamin Peterson in branch '3.6': merge 3.5 (#28932)

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-19 Thread Chris Angelico
On Tue, Dec 20, 2016 at 5:19 PM, wrote: > Thanks Chris for replying, but it didn't work. The upgrade happened, but > still python can't see numpy! So it seems to be a path problem. The numpy > (and scipy and matplotlib) files are there, so surely in principle it's a

[issue29019] dict.fromkeys overallocates when given a sparse dict

2016-12-19 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29019] dict.fromkeys overallocates when given a sparse dict

2016-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 46e329ef13ae by INADA Naoki in branch '2.7': Issue #29019: Fix dict.fromkeys(x) overallocates when x is sparce dict. https://hg.python.org/cpython/rev/46e329ef13ae -- nosy: +python-dev ___ Python tracker

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-19 Thread David
David added the comment: Thanks for the help Steve, however I cannot find the Python Launcher app anywhere on my computer. Even after repairing/reinstalling. Where might I find this file? What is it called exactly? Much appreciated. -- ___ Python

[issue28968] xml rpc server fails with connection reset by peer error no 104

2016-12-19 Thread Manish Singh
Manish Singh added the comment: Hi Davud Murray, Can you reply to above comments. -- ___ Python tracker ___

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-19 Thread ozpeterballard
Thanks Chris for replying, but it didn't work. The upgrade happened, but still python can't see numpy! So it seems to be a path problem. The numpy (and scipy and matplotlib) files are there, so surely in principle it's a simple matter of pointing my python path at them? Any ideas how? (I

[issue15729] PyStructSequence_NewType enhancement

2016-12-19 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue15729] PyStructSequence_NewType enhancement

2016-12-19 Thread elemental
Changes by elemental : -- nosy: +elemental ___ Python tracker ___ ___

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-19 Thread Chris Angelico
On Tue, Dec 20, 2016 at 4:08 PM, wrote: > I use Python on Ubuntu 12.04. Recently I upgraded Python from 2.7.3 to > 2.7.12. I did the upgrade via the source, i.e. download (from > https://www.python.org/downloads/release/python-2712/ ), tar, ./config, sudo > make

[issue29019] dict.fromkeys overallocates when given a sparse dict

2016-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-19 Thread Steve Dower
Steve Dower added the comment: The Python launcher is the right app to select. Double-clicking .py files has always run them with the interpreter, but you will also get the right-click menu once they are associated with the launcher (this is what I meant by it being the single integration

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread woo yoo
woo yoo added the comment: I agree with you -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Can't see numpy etc after upgrading Python on Ubuntu

2016-12-19 Thread ozpeterballard
Hi all. I hope this is the right place. It seems more like a Python problem than an Ubuntu problem. I use Python on Ubuntu 12.04. Recently I upgraded Python from 2.7.3 to 2.7.12. I did the upgrade via the source, i.e. download (from https://www.python.org/downloads/release/python-2712/ ), tar,

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread Brendan Donegan
Brendan Donegan added the comment: IMO there's no actual bug in Python. Perhaps documentation can be clarified in a short simple way. I would reiterate the point that restating facts of the language all over the documentation is not a great idea, but maybe here the benefits outweigh the

[issue29019] dict.fromkeys overallocates when given a sparse dict

2016-12-19 Thread INADA Naoki
INADA Naoki added the comment: While the patch is trivial, I need LGTM from another comitter. -- stage: -> patch review Added file: http://bugs.python.org/file45974/fromkeys2.patch ___ Python tracker

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-19 Thread David
David added the comment: I'm going to tackle the questions one-by-one: I would like these ".py" files to be IDLE files in the sense that they have the IDLE icon and they open up directly into an idle file with a shell in the background. For context: on my other Windows 10 machine, I've been

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread woo yoo
woo yoo added the comment: If i was wrong about this issue, please tell me. -- ___ Python tracker ___ ___

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-12-19 Thread INADA Naoki
INADA Naoki added the comment: > Actually, if you don't mind, I'd like to update the patch myself. I have a > few ideas how to restructure it and add support for LOAD_ATTR. Sounds interesting. I'll wait to touch this patch. There are enough time by Python 3.7 and enough other issues I can

[issue29019] dict.fromkeys overallocates when given a sparse dict

2016-12-19 Thread INADA Naoki
INADA Naoki added the comment: Since `seq` is checked by PyDict_CheckExact(seq) already, ((PyDictObject*)seq)->ma_used may be better. -- ___ Python tracker

[issue29019] dict.fromkeys overallocates when given a sparse dict

2016-12-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-19 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc40470c10f8 by INADA Naoki in branch '3.5': Issue #28147: Fix a memory leak in split-table dictionaries https://hg.python.org/cpython/rev/cc40470c10f8 -- ___ Python tracker

[issue29011] No entry Deque in typing.py

2016-12-19 Thread Guido van Rossum
Guido van Rossum added the comment: I don't recall exactly what happened here, but I think it was left out during formulation of PEP 484 because it's not an ABC. IIRC originally we only wanted to include builtins and ABCs. But we changed that subsequently to include e.g. DefaultDict. I

Re: python list index - an easy question

2016-12-19 Thread Steve D'Aprano
On Mon, 19 Dec 2016 03:21 am, BartC wrote: > On 18/12/2016 10:59, Paul Götze wrote: >> Hi John, >> >> there is a nice short article by E. W. Dijkstra about why it makes sense >> to start numbering at zero (and exclude the upper given bound) while >> slicing a list. Might give a bit of additional

Re: Best attack order for groups of numbers trying to destroy each other, given a victory chance for number to number attack.

2016-12-19 Thread skybuck2000
I first explored the possibility of a lookup table to speed up calculations, this possibility would probably give wrong results. I am interested in calculating all possibilities to see which one is truely best, I am also interested in trying to speed up calculations to be able to handle larger

[issue29020] collapse_rfc2231_value has inconsistent unquoting

2016-12-19 Thread bpoaugust
New submission from bpoaugust: collapse_rfc2231_value unquotes the value before returning it except here: rawbytes = bytes(text, 'raw-unicode-escape') return str(rawbytes, charset, errors) Why is the text not unquoted in this case? Actually I wonder whether the function should do any

[issue29020] collapse_rfc2231_value has inconsistent unquoting

2016-12-19 Thread bpoaugust
Changes by bpoaugust : -- type: -> behavior ___ Python tracker ___ ___

[issue26467] Add async magic method support to unittest.mock.Mock

2016-12-19 Thread Javier Domingo
Javier Domingo added the comment: I found this while trying to test an async context manager. This is a critical feature to enable migrations to async code, as the impossibility to test something properly is not acceptable in many environments. Implementing it in a way that __call__ returns

[issue28945] get_boundary invokes unquote twice

2016-12-19 Thread bpoaugust
bpoaugust added the comment: I agree that strictly speaking the boundary is invalid. However: 'Be strict in what you generate, be liberal in what you accept' The mail package should never create such boundaries. However it should process them if possible. If the boundary definition is mangled

[issue29018] Misinformation when showing how slices work in The Tutorial

2016-12-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: You haven't given any reason to explain why you think the existing docs are wrong, nor any reason why you think your version is better. Just stating that the docs give "misinformation" is not good enough. By your matrix, 'Python'[0:-1] should take a slice

[issue29019] dict.fromkeys overallocates when given a sparse dict

2016-12-19 Thread Rasmus Villemoes
New submission from Rasmus Villemoes: Somewhat related to #23971, but with the opposite sign: Using Py_SIZE on a PyDictObject gives the ma_fill member in 2.7 (and until 3.2 AFAICT), not the ma_used member. So calling dict.fromkeys(d) overallocates significantly if a lot of elements have been

[issue21150] Add quick links table to argparse docs

2016-12-19 Thread Gaurav Tatke
Gaurav Tatke added the comment: Hello All, I would like to help with this issue. I am a beginner. I am attaching a 'SampleOfSummaryTable.PNG' file which I think is one way of organizing summary table. I think if we put quick links of function parameters in summary table then it will make

[issue20486] msilib: can't close opened database

2016-12-19 Thread 12345 67890
Changes by 12345 67890 : -- keywords: +patch Added file: http://bugs.python.org/file45971/Add_ability_to_close_MSI_database_.patch ___ Python tracker

[issue20486] msilib: can't close opened database

2016-12-19 Thread 12345 67890
Changes by 12345 67890 : Removed file: http://bugs.python.org/file45970/_msi.c ___ Python tracker ___

[issue20486] msilib: can't close opened database

2016-12-19 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

Re: OT - "Soft" ESC key on the new MacBook Pro

2016-12-19 Thread Gregory Ewing
Random832 wrote: Except for the fact that the actual keyboard that Emacs was originally developed for [the Knight Keyboard, and the later Symbolics "Space Cadet" Keyboards] had the control key more or less where it is on modern PC keyboards [slightly further to the right, so easier to reach with

[issue29018] Misinformation when showing how slices work in The Tutorial

2016-12-19 Thread R. David Murray
R. David Murray added the comment: If your version was correct, 'python'[-2:] would produce 'n', which is not what it produces. Perhaps you being confused by the fact that the diagram is pointing the indexes *between* the characters? That's the point of the mnemonic and I find it very

Re: python list index - an easy question

2016-12-19 Thread Gregory Ewing
BartC wrote: But if you needed a table of the frequencies of letters A to Z... An N-based array can simply have bounds of ord('A') to ord('Z') inclusive. That's fine if your language lets you have arrays with arbitrary lower bounds. But if the language only allows a fixed lower bound, and

[issue28945] get_boundary invokes unquote twice

2016-12-19 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, I believe this is the right behavior and what ever generated the boundary "<<>>" is the problem ; RFC 2046 page 22: _ The only mandatory global parameter for the "multipart" media type is the boundary parameter, which consists

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Here is another possible reason (and cure) for intentionally installed python to not work. Just posted to Python list. "Turns out that another instance of Python *was* installed, not as part of OEM software, but by a digital camera (Califone) that is being

[issue29018] Misinformation when showing how slices work in The Tutorial

2016-12-19 Thread issuefinder
New submission from issuefinder: In this page: https://docs.python.org/3/tutorial/introduction.html#strings When showing how slices work: +---+---+---+---+---+---+ | P | y | t | h | o | n | +---+---+---+---+---+---+ 0 1 2 3 4 5 6 -6 -5 -4 -3 -2 -1 The accurate matrix is:

Re: python list index - an easy question

2016-12-19 Thread Ben Bacarisse
Jussi Piitulainen writes: > Ben Bacarisse writes: > >> BartC writes: >> >>> You need to take your C hat off, I think. >> >> It's a computing hat. Indexes are best seen as offsets (i.e. as a >> measured distances from some origin or base). It's a model that grew

[issue25677] Syntax error caret confused by indentation

2016-12-19 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue20486] msilib: can't close opened database

2016-12-19 Thread 12345 67890
12345 67890 added the comment: I will prefix this by saying that I have not contributed to the Python source before and this patch is probably wrong, but here is my attempt at a fix. -- Added file: http://bugs.python.org/file45970/_msi.c ___ Python

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-19 Thread R. David Murray
R. David Murray added the comment: The documentation is all in the Doc subdirectory of the checkout. So, this should teach me to rely on vague memory instead of reading the code. I've probably still missed something because I don't have enough time to read it properly. Yes, you are correct,

[issue29017] Docs: PySide is provided by 'The Qt Company' and not by 'Nokia'

2016-12-19 Thread Ettore Atalan
New submission from Ettore Atalan: Regarding URL: http://docs.python.org/3/library/othergui.html Section: PySide PySide is provided by 'The Qt Company' and no longer by 'Nokia' like mentioned in the documentation. -- assignee: docs@python components: Documentation messages: 283646

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-19 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, @David, the "Resent-" block should be added by the user and he needs to know what he's doing. Hell, I work with emails all the time and never knew about this. The Worse part of it is that I have to communicate with the IETF just to know how we can

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-19 Thread STINNER Victor
STINNER Victor added the comment: The 3.5 patch LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-19 Thread eryk sun
eryk sun added the comment: It looks like you've accidentally created and selected an auto-generated association between .py and python.exe. You should be able to restore the original file association to get the "Edit with IDLE" menu back. In Windows 10 the "open with" menu has an option to

[issue25617] Installing local installation of Python

2016-12-19 Thread Ned Deily
Ned Deily added the comment: Perhaps the issue here is that you are installing a local version of Python with the same configured prefix as a system installed Python of the same major version. This is a primary use of the --prefix option to the ./configure script of Python. You should

[issue20486] msilib: can't close opened database

2016-12-19 Thread Steve Dower
Steve Dower added the comment: Guessing the msiobj_close function in PC/_msi.c ought to be exposed. Patches welcome. -- keywords: +easy priority: normal -> low stage: -> needs patch versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-19 Thread Steve Dower
Steve Dower added the comment: I'm not familiar with any of the other proposed solutions - could you link to a few? One important factor is that you need to install the Python Launcher to get the context menus (this is the default in 3.5 and later). Associating directly to the Python

[issue28927] bytes.fromhex should ignore all whitespace

2016-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think non-ASCII whitespace and digits are YAGNI until we are convinced otherwise by evidence from the field that people are routinely mixing other decimal digits with 'abcdef' as hex numerals. Anyone who does try such a thing can write a wrapper that first

[issue20486] msilib: can't close opened database

2016-12-19 Thread 12345 67890
12345 67890 added the comment: This is still present in Python 3.5. There is no way to unlock the MSI file without killing the Python process first. -- nosy: +12345 67890 versions: +Python 3.5 ___ Python tracker

[issue29016] negative numbers raised to power zero should be 1, not -1

2016-12-19 Thread Robin W Gambill
Robin W Gambill added the comment: I see my error now. I'm sorry for my ignorance. I will google how to delete the bugs item, but I guess is permanent, se la vie. Thank you. Robin On Mon, 12/19/16, Tim Peters wrote:

[issue29016] negative numbers raised to power zero should be 1, not -1

2016-12-19 Thread Tim Peters
New submission from Tim Peters: They already are. >>> (-2)**0 1 You're probably doing this instead: >>> -2**0 -1 Exponentiation has higher precedence than unary minus, so that last example groups as -(2**0), and -1 is correct. -- nosy: +tim.peters resolution: -> not a bug stage:

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-19 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file45968/fix-28147-py35-2.patch ___ Python tracker ___

[issue29016] negative numbers raised to power zero should be 1, not -1

2016-12-19 Thread Robin W Gambill
Changes by Robin W Gambill : -- components: Interpreter Core nosy: rwgambill priority: normal severity: normal status: open title: negative numbers raised to power zero should be 1, not -1 type: behavior versions: Python 3.5

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: .py files are not 'IDLE based', even if edited with IDLE. They are Python files and should normally be registered to run with Python directly, and not via IDLE. The right click context menu *should* include "Edit with IDLE". I have re-marked this issue for

[issue28927] bytes.fromhex should ignore all whitespace

2016-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Robert. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28927] bytes.fromhex should ignore all whitespace

2016-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset fcc09d9ee7d4 by Serhiy Storchaka in branch 'default': Issue #28927: bytes.fromhex() and bytearray.fromhex() now ignore all ASCII https://hg.python.org/cpython/rev/fcc09d9ee7d4 -- nosy: +python-dev ___

[issue28927] bytes.fromhex should ignore all whitespace

2016-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: -> serhiy.storchaka components: +Interpreter Core stage: patch review -> commit review ___ Python tracker

[issue28927] bytes.fromhex should ignore all whitespace

2016-12-19 Thread Robert Xiao
Robert Xiao added the comment: New patch with proper line lengths in documentation. -- Added file: http://bugs.python.org/file45967/fromhex.patch ___ Python tracker

Re: Problem running Python 3.5.2 on school network PC

2016-12-19 Thread Jed Mack
This problem has been solved. Thanks to all of you for your suggestions. Below is a summary I sent to Tim Golden, whose reply led us to the solution in this case. Tim, Thank you for your help - your suggestions led us to the problem. Turns out that another instance of Python *was* installed,

[issue28950] regrtest: -j0 fails the check -j is not allowed together with -T/-l

2016-12-19 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks Victor. 2.7 is not affected since in 2.7 -j0 does not spawn processes. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker

how to run github codes on qpython?

2016-12-19 Thread brostype
hello im Android user and i was learning python programming language from a month ago with qpython and i have a question is it possible to run this github scripts on qpython? https://github.com/rmmh/skybot thnx. -- https://mail.python.org/mailman/listinfo/python-list

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-12-19 Thread Yury Selivanov
Yury Selivanov added the comment: > As far as I look quickly, #10401 uses namei as cache key and this patch uses opcode index as cache key, am I right? Correct. Actually, if you don't mind, I'd like to update the patch myself. I have a few ideas how to restructure it and add support for

[issue29015] re slashes

2016-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is a problem with your replacement template. Python string literal '\\' is Python string containing a single backslash character. But backslash has special meaning in a replacement template, it starts escapes and backreferences. For using a literal

[issue28927] bytes.fromhex should ignore all whitespace

2016-12-19 Thread Robert Xiao
Robert Xiao added the comment: OK, I've attached a new version of the patch with the requested documentation changes (versionchanged and whatsnew). -- Added file: http://bugs.python.org/file45966/fromhex.patch ___ Python tracker

Re: python list index - an easy question

2016-12-19 Thread BartC
On 19/12/2016 13:48, Ben Bacarisse wrote: BartC writes: You need to take your C hat off, I think. It's a computing hat. Indexes are best seen as offsets (i.e. as a measured distances from some origin or base). A 1-based or N-based index can still be seen as an offset

[issue29015] re slashes

2016-12-19 Thread Сергей Снегирёв
New submission from Сергей Снегирёв: >>> path 'd:/\\temp' >>> pat = '[{}]+'.format(re.escape('\\/')) >>> re.sub(pat, '\\', path) Traceback (most recent call last): File "", line 1, in re.sub(pat, '\\', path) File

Re: just started

2016-12-19 Thread Matt Wheeler
On Mon, 19 Dec 2016 at 13:20 wrote: > thanks! very clarifying. One more question though: after installing > python3.5 I only have pip3 and pip3.5 from the command line. However, I > issued the command > > python3.5 -m pip install matplotlib > > and it all went like a

[issue28427] WeakValueDictionary next bug (with multithreading)

2016-12-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The dict implementation in 3.6 has become very complicated, so I'd like someone to review the attached 3.6 patch. Serhiy, Inada? -- nosy: +inada.naoki Added file: http://bugs.python.org/file45965/issue28427-3.6.patch

Re: Best attack order for groups of numbers trying to destroy each other, given a victory chance for number to number attack.

2016-12-19 Thread skybuck2000
Hmmm now I think the lookup table cannot work... at least not for the dynamic one... where health is subtracted... The ships have a certain health... and not just an alive/dead status... The way they and the enemy attack each other will probably influence the outcome of battle... and for the

Re: The right way to 'call' a class attribute inside the same class

2016-12-19 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Mon, Dec 19, 2016 at 9:52 AM, Erik wrote: >> 1) Method call: >>"obj.foo(1, 2, 3)" is syntactic sugar for "obj.foo(obj, 1, 2, 3)". > > And the bit you have to be REALLY careful of when working with both > Python and JS is that you have to

[issue28950] regrtest: -j0 fails the check -j is not allowed together with -T/-l

2016-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf564121f9f0 by Xiang Zhang in branch '3.5': Issue #28950: Disallow -j0 combined with -T/-l/-M in regrtest. https://hg.python.org/cpython/rev/cf564121f9f0 New changeset 692834062e80 by Xiang Zhang in branch '3.6': Issue #28950: Disallow -j0

Re: python list index - an easy question

2016-12-19 Thread Jussi Piitulainen
Ben Bacarisse writes: > BartC writes: > >> You need to take your C hat off, I think. > > It's a computing hat. Indexes are best seen as offsets (i.e. as a > measured distances from some origin or base). It's a model that grew > out of machine addressing and assembler address modes many, many >

Re: Best attack order for groups of numbers trying to destroy each other, given a victory chance for number to number attack.

2016-12-19 Thread skybuck2000
Hmmm I see that I have made an old mistake of mine ;) 2x2x2x2 is not 8, it's deceptive... it looks like 4x2 = 8 but nope ! :) This is 2x2=4x2=8x2=16. and then the next 4 = 16x2 = 32x2 = 64x2 = 128 x 2=256 so it's roughly 24^4 x 256 = 84934656 --

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread woo yoo
woo yoo added the comment: The previous description about scope classify it into 3 types explicitly, which means the scope containing the current module's global names is not same as the scope containing built-in names. -- ___ Python tracker

Re: python list index - an easy question

2016-12-19 Thread Ben Bacarisse
BartC writes: > On 19/12/2016 01:10, Ben Bacarisse wrote: >> BartC writes: >> >>> On 18/12/2016 10:59, Paul Götze wrote: there is a nice short article by E. W. Dijkstra about why it makes sense to start numbering at zero (and exclude the upper given

Re: just started

2016-12-19 Thread metal . suomi
> In theory, "pip3" will install into the default "python3", whichever > that is. However, in practice, it's entirely possible that it installs > into a very different Python from the one you're expecting. The most > reliable form is the latter; whatever command you use to start Python, > add "-m

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread R. David Murray
R. David Murray added the comment: It is part of the global scope, which contains all other scopes. (I'm not 100% sure I'm comfortable with that language, but it doesn't seem obviously wrong.) -- nosy: +r.david.murray ___ Python tracker

NumPy 1.11.3 release.

2016-12-19 Thread Charles R Harris
Hi All, I'm please to annouce the release of NumPy 1.11.3. This is a one bug fix release to take care of a bug that could corrupt large files opened in append mode and then used as an argument to ndarray.tofile. Thanks to Pavel Potocek for the fix. Cheers, Chuck -BEGIN PGP SIGNED

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread woo yoo
woo yoo added the comment: Code: >class A(object): pass 'object' is not in the same scope as 'A' -- ___ Python tracker ___

[issue24165] Free list for single-digits ints

2016-12-19 Thread INADA Naoki
Changes by INADA Naoki : -- nosy: +inada.naoki versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue27584] New addition of vSockets to the python socket module

2016-12-19 Thread Cathy Avery
Cathy Avery added the comment: First make sure the driver is in your kernel. It will be with RHEL. Look in /lib/modeles/"your kernel name"/kernel/net/vmw_vsock/vmw_vsock_vmci_transport. I have never tried it on vmware fusion. I have tested it on ESX. See if there is a VMCI option to enable on

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: Martin in response to your last review, I still hold to my opinion stated in msg283294 but this should not prevent this high priority issue to progress. Can you propose another patch. -- ___ Python tracker

[issue25617] Installing local installation of Python

2016-12-19 Thread R. David Murray
R. David Murray added the comment: If you build and install a "local python", you will be installing the library locally as well, and python will not look to the lib dir of the system installed python. So yes, please explain your problem with more specifics. In any case the problem of python

Re: OT - "Soft" ESC key on the new MacBook Pro

2016-12-19 Thread Random832
On Sun, Dec 18, 2016, at 17:03, Gregory Ewing wrote: > mm0fmf wrote: > > +1 for knowing where CTRL should be. > > Bonus +1 for having used an ASR33. > > And it's quite remarkable that the designers of the ASR33 > knew exactly where it would need to be for Emacs users > years later! I think

[issue25617] Installing local installation of Python

2016-12-19 Thread INADA Naoki
INADA Naoki added the comment: I can't understand what's your problem. > The inherent behaviour of python installations (local or global) is such that > it expects to source system wide modules from the global python installation. What local installation means? What global installation means?

Re: python list index - an easy question

2016-12-19 Thread Ned Batchelder
On Sunday, December 18, 2016 at 11:21:38 AM UTC-5, BartC wrote: > On 18/12/2016 10:59, Paul Götze wrote: > > Hi John, > > > > there is a nice short article by E. W. Dijkstra about why it makes sense > > to start numbering at zero (and exclude the upper given bound) while > > slicing a list. Might

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-12-19 Thread INADA Naoki
INADA Naoki added the comment: I'll update this patch and #10401 and then run benchmark suite when I have time. As far as I look quickly, #10401 uses namei as cache key and this patch uses opcode index as cache key, am I right? -- nosy: +inada.naoki priority: critical -> normal

[issue28383] __hash__ documentation recommends naive XOR to combine but this is suboptimal

2016-12-19 Thread STINNER Victor
STINNER Victor added the comment: I updated the doc of Python 2.7, 3.5, 3.6 and default (3.7). Thanks for the suggestion Kevin, thanks for the review Naoki. -- resolution: -> fixed status: open -> closed versions: -Python 3.3, Python 3.4 ___

[issue28383] __hash__ documentation recommends naive XOR to combine but this is suboptimal

2016-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset fac2362f248c by Victor Stinner in branch '2.7': doc: Suggest to hash(tuple of attr) rather than XOR https://hg.python.org/cpython/rev/fac2362f248c -- ___ Python tracker

[issue28838] Using consistent naming for arguments of "call" functions (C API)

2016-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ab0a6692e25 by Victor Stinner in branch 'default': abstract.h: remove long outdated comment https://hg.python.org/cpython/rev/3ab0a6692e25 -- ___ Python tracker

[issue27584] New addition of vSockets to the python socket module

2016-12-19 Thread R. David Murray
R. David Murray added the comment: 'make patchcheck' will do whitespace checking because that's hard to eyeball (although many editors/IDEs do support making it visible nowadays). We don't use any other checking tools other than eyeballs, since not all of the existing code conforms to PEP7/8

[issue28383] __hash__ documentation recommends naive XOR to combine but this is suboptimal

2016-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb802a78ceea by Victor Stinner in branch '3.5': doc: Suggest to hash(tuple of attr) rather than XOR https://hg.python.org/cpython/rev/cb802a78ceea -- nosy: +python-dev ___ Python tracker

[issue28383] __hash__ documentation recommends naive XOR to combine but this is suboptimal

2016-12-19 Thread INADA Naoki
INADA Naoki added the comment: LGTM -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29012] __bases__ is a tuple (possibly empty or a singleton)

2016-12-19 Thread R. David Murray
R. David Murray added the comment: Most likely it just slipped through. In 2.7 the section is just called 'classes', not 'custom classes', and covered both classic classes and the new style classes that are all that python3 has. -- nosy: +r.david.murray

  1   2   >