[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread STINNER Victor
STINNER Victor added the comment: Antti Haapala: > However what I'd prefer here as the size of the type is important, to use > `uint16_t` or typedef instead of just `unsigned short`, which is a statemeent > that the value must be at least "2 bytes wide". I'm not aware of a platform where sizeo

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread STINNER Victor
STINNER Victor added the comment: ushort2.patch LGTM, but I added many small comments on the review ;-) -- ___ Python tracker ___ ___

[issue27112] tokenize.__all__ list is incomplete

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: * White list consists mostly from token.__all__. * All names in black list are implementation details. Names in white list are stable and already repeated in docs. * test.support.check__all__ shouldn't be used in this case. See other tests for public API that

[issue27119] `compile` doesn't compile into an AST object as specified

2016-05-24 Thread Franklin? Lee
New submission from Franklin? Lee: >From `compile`'s doc: "Compile the source into a code or AST object." The docs don't say how to compile into an AST object with `compile`, though. As it says later: "If you want to parse Python code into its AST representation, see ast.parse()." I c

[issue27118] Several Py_XDE/INCREFs in typeobject.c are not necessary

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: patch review -> commit review type: behavior -> enhancement ___ Python tracker ___ ___

[issue27118] Several Py_XDE/INCREFs in typeobject.c are not necessary

2016-05-24 Thread SilentGhost
Changes by SilentGhost : -- components: +Interpreter Core nosy: +serhiy.storchaka stage: -> patch review type: enhancement -> behavior ___ Python tracker ___ ___

[issue27112] tokenize.__all__ list is incomplete

2016-05-24 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: I disagree: * blacklist has 48 entries now, whitelist would have 72 ones * whitelisting requires adding new public names to two places instead of one * test.support.check__all__ currently don't support whitelisting, it would need to be added -- __

[issue27105] cgi.__all__ is incomplete

2016-05-24 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: Well, but it is documented in public docs: cgi.test() Robust test CGI script, usable as main program. Writes minimal HTTP headers and formats all information provided to the script in HTML form. Should I remove it from __all__ and probably from the

[issue27118] Several Py_XDE/INCREFs in typeobject.c are not necessary

2016-05-24 Thread Xiang Zhang
Changes by Xiang Zhang : -- title: Several Py_XDECREFs in typeobject.c are not necessary -> Several Py_XDE/INCREFs in typeobject.c are not necessary ___ Python tracker ___ _

[issue27118] Several Py_XDECREFs in typeobject.c are not necessary

2016-05-24 Thread Xiang Zhang
Changes by Xiang Zhang : -- title: Several Py_XDECREFs are not necessary -> Several Py_XDECREFs in typeobject.c are not necessary type: -> enhancement versions: +Python 3.6 ___ Python tracker

[issue27118] Several Py_XDECREFs are not necessary

2016-05-24 Thread Xiang Zhang
New submission from Xiang Zhang: Several Py_XDECREFs are not necessary since the pointers they handle cannot be NULL. -- files: Py_XDECREF_in_typeobject.diff keywords: patch messages: 266307 nosy: xiang.zhang priority: normal severity: normal status: open title: Several Py_XDECREFs are

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is separate issue (see issue17884). -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Antti Haapala
Antti Haapala added the comment: Casting the pointer is OK, explicitly typing the pointer is even better; then the arithmetic is even clearer and it is easy to add offsets in words! However what I'd prefer here as the size of the type is important, to use `uint16_t` or typedef instead of just

[issue27106] configparser.__all__ is incomplete

2016-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27112] tokenize.__all__ list is incomplete

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The blacklist is too long. I think it would be better to use white list. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue27105] cgi.__all__ is incomplete

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think test() should be exposed as public API. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue27083] PYTHONCASEOK is ignored on Windows

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Did you forgot to upload a patch? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bug

[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov
Petr Ovtchenkov added the comment: for 2.7 branch -- Added file: http://bugs.python.org/file42984/0002-Compilation-ssl-module-for-foreign-target-platform.patch ___ Python tracker __

[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov
Petr Ovtchenkov added the comment: for 2.7 branch -- versions: +Python 2.7 Added file: http://bugs.python.org/file42983/0001-Compilation-modules-for-foreign-target-platform.patch ___ Python tracker ___

[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov
Petr Ovtchenkov added the comment: for 3.5 branch -- Added file: http://bugs.python.org/file42982/0002-Compilation-ssl-module-for-foreign-target-platform.patch ___ Python tracker __

[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov
Petr Ovtchenkov added the comment: for 3.5 branch -- Added file: http://bugs.python.org/file42981/0001-Compilation-modules-for-foreign-target-platform.patch ___ Python tracker _

[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov
Changes by Petr Ovtchenkov : Removed file: http://bugs.python.org/file42963/cpython.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27109] plistlib.__all__ list is incomplete

2016-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue27107] mailbox.__all__ list is incomplete

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the reap_children call is the culprit. I think resolving this problem is out of the scope of this simple issue (there is separate issue for this). -- nosy: +serhiy.storchaka ___ Python tracker

[issue27111] redundant variables in long_add and long_sub

2016-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue27117] turtledemo does not work with IDLE's new dark theme.

2016-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Hmm, don't know why my patch was not uploaded first time. It contained exactly what Victor said. Yes, we need to multiply or divide by 2 when convert from pointer difference to byte offset, but this doesn't affect performance. I think the next step is the ch

[issue24235] ABCs don't fail metaclass instantiation

2016-05-24 Thread Luiz Poleto
Luiz Poleto added the comment: This seems to be related to issues #5996 and #26306. -- nosy: +luiz.poleto ___ Python tracker ___ ___ P

[issue26306] Can't create abstract tuple

2016-05-24 Thread Luiz Poleto
Luiz Poleto added the comment: Same as reported on issue #5996. Apparently this happens not only with tuple but with any builtin type. There is a patch on that issue but there hasn't been any activity since 2011. -- nosy: +luiz.poleto ___ Python tra

[issue27117] turtledemo does not work with IDLE's new dark theme.

2016-05-24 Thread Terry J. Reedy
New submission from Terry J. Reedy: turtledemo imports IDLE's Percolator, ColorDelegator, and read-only text viewer and uses the first two to colorize demo text it loads into the text viewer. This works fine for traditional dark on white text color themes but not for IDLE's new white, etc, on

[issue27116] Documentation for regular expression alphanumeric matching are swapped. https://docs.python.org/2/library/re.html#regular-expression-syntax

2016-05-24 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue27116] Documentation for regular expression alphanumeric matching are swapped. https://docs.python.org/2/library/re.html#regular-expression-syntax

2016-05-24 Thread Xiang Zhang
Xiang Zhang added the comment: I don't think no need to swap. The current doc is right. >>> re.findall(r'\W+', 'abcd123_#') ['#'] >>> re.findall(r'\w+', 'abcd123_#') ['abcd123_'] It's apparent that \w match alphanumeric and \W vice versa. -- nosy: +xiang.zhang

[issue27116] Documentation for regular expression alphanumeric matching are swapped. https://docs.python.org/2/library/re.html#regular-expression-syntax

2016-05-24 Thread dananntang
New submission from dananntang: https://docs.python.org/2/library/re.html#regular-expression-syntax Section 7.2.1. Regular Expression Syntax Documentation for \w and \W are wrong. To be specific: \w is to match any non-alphanumeric character, while \W is to match alphanumeric character Fix: sw

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Demur Rumed
Demur Rumed added the comment: There's some difficulty in changing next_instr to an unsigned short* unless pointer arithmetic converts it back to unsigned char*. Code relies on f_lasti to be a byte index more than it relies on f_lasti to be -1 at first. Should this change include converting ju

[issue27115] IDLE/tkinter: in simpledialog, != [OK] click

2016-05-24 Thread Terry J. Reedy
New submission from Terry J. Reedy: On Win 10, Python 3.5 or 3.6, IDLE Shell or Editor with at least a few lines of text: hit Alt-G to open 'Goto' window. Enter a line # other than the current one. Hit . Cursor moves to line enter, though it shrinks to one pixel wide from two pixels. Line:

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Steve Dower
Steve Dower added the comment: I'd appreciate at least one other person looking over my commit before I close this, just to confirm that the notes I added to the docs are fine. -- stage: -> commit review ___ Python tracker

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ac2a2534f793 by Steve Dower in branch 'default': Issue #23026: winreg.QueryValueEx() now return an integer for REG_QWORD type. (Patch by hakril) https://hg.python.org/cpython/rev/ac2a2534f793 -- nosy: +python-dev __

[issue27114] SSLContext._load_windows_store_certs fails with PermissionError

2016-05-24 Thread Steve Dower
Steve Dower added the comment: Added a patch against 3.5 that handles PermissionError and warns about the failure. I think this should be applied against 2.7, 3.5 and 3.6, and that it's unfortunately untestable (without adding extra API to force it to fail). Any concerns? -- keywords

[issue27114] SSLContext._load_windows_store_certs fails with PermissionError

2016-05-24 Thread Steve Dower
New submission from Steve Dower: In some restricted server scenarios, it is not possible to enumerate the Windows machine certificate store. A PermissionError is raised and the operation aborted. Instead, we should simply return no certificates from _load_windows_store_certs. This will most l

[issue27110] smtpd.__all__ list is incomplete

2016-05-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 24, 2016, at 08:48 PM, R. David Murray wrote: >Maybe we should blacklist MailmanProxy? I think we are planning to deprecate >it but just haven't yet done the work. Looks fine otherwise. It's probably not used much TBH. aiosmtpd has a generic Proxy cl

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread STINNER Victor
STINNER Victor added the comment: > +#define NEXTOPARG() (oparg = *(unsigned short*)next_instr, opcode = > OPOF(oparg), oparg = ARGOF(oparg), next_instr += 2) I dislike this approach. I would prefer to use the unsigned short* type for next_instr, and put an assertion when next_instr is fir

[issue27113] sqlite3 connect parameter "check_same_thread" not documented

2016-05-24 Thread Dave Sawyer
Changes by Dave Sawyer : -- title: sqlite3 open parameter "check_same_thread" not documented -> sqlite3 connect parameter "check_same_thread" not documented ___ Python tracker _

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread STINNER Victor
STINNER Victor added the comment: > I'm pretty sure this is undefined behavior. Are you talking about the exact C implementation, or the risk of unaligned memory accesses? I suggest to add an assertion to ensure that the pointer is aligned to 16-bits. -- nosy: +haypo

[issue27113] sqlite3 open parameter "check_same_thread" not documented

2016-05-24 Thread Dave Sawyer
New submission from Dave Sawyer: The sqlite3.connect method has 6 parameters. 5 of them are documented. See below and search for "check_same_thread". Patch adds documentation for this parameter. sqlite3.connect(database[, timeout, detect_types, isolation_level, check_same_thread, factory, c

[issue27107] mailbox.__all__ list is incomplete

2016-05-24 Thread R. David Murray
R. David Murray added the comment: Look at your mimetypes patch, for example. That if __name__='__main__' clause is all that is needed. The test_main stuff can be dropped. The question, I suppose, is the reap_children call, and that may be why it hasn't been converted yet. --

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Demur Rumed
Demur Rumed added the comment: There is no strict aliasing issues because aliasing is explicitly allowed for char buffers. The only issue is unaligned memory reads, but allocations are well aligned, so there'd have to be explicit work to allocate & then put code at an uneven offset. CPython ne

[issue27107] mailbox.__all__ list is incomplete

2016-05-24 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: David, what do you mean by "new format"? Can you point me to some existing code? -- ___ Python tracker ___

[issue27096] Ability to get random bytes from random.Random (as with os.urandom)

2016-05-24 Thread Campbell Barton
Campbell Barton added the comment: @serhiy.storchaka, while a properly working function that uses getrandbits isn't so complex, its not trivial either. It needs to create smaller chunks and join them (also check zero size case which raises an error if passed). eg: ``` def urandom_from_ra

[issue23883] __all__ lists are incomplete

2016-05-24 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: Per Martin's request, I've created a few new issues for next batch of module's __all__ list updates: * cgi: #27105 * configparser: #27106 * mailbox: #27107 * mimetypes: #27108 * plistlib: #27109 * smtpd: #27110 * tokenize: #27112 I've also looked at pydoc modu

[issue27110] smtpd.__all__ list is incomplete

2016-05-24 Thread Jacek Kołodziej
Changes by Jacek Kołodziej : Removed file: http://bugs.python.org/file42972/smtpd_all.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue27112] tokenize.__all__ list is incomplete

2016-05-24 Thread Jacek Kołodziej
New submission from Jacek Kołodziej: That's a child issue of #23883, created to propose a patch fixing tokenize module's __all__ list. Changes in tests go farther: I've changed import from from tokenize import ... to import tokenize and adjusted all its usages accordingly. The modu

[issue27110] smtpd.__all__ list is incomplete

2016-05-24 Thread Jacek Kołodziej
Changes by Jacek Kołodziej : Added file: http://bugs.python.org/file42977/smtpd_all.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27108] mimetypes.__all__ list is incomplete

2016-05-24 Thread R. David Murray
R. David Murray added the comment: LGTM -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27107] mailbox.__all__ list is incomplete

2016-05-24 Thread R. David Murray
R. David Murray added the comment: Rather than adding the new class to the list of tests, we could take this opportunity to convert this test file to the new format, unless there's some reason that doesn't work (I don't expect there to be). -- nosy: +r.david.murray ___

[issue27110] smtpd.__all__ list is incomplete

2016-05-24 Thread R. David Murray
R. David Murray added the comment: Maybe we should blacklist MailmanProxy? I think we are planning to deprecate it but just haven't yet done the work. Looks fine otherwise. -- components: +email nosy: +barry, r.david.murray ___ Python tracker

[issue27111] redundant variables in long_add and long_sub

2016-05-24 Thread Oren Milman
Changes by Oren Milman : Added file: http://bugs.python.org/file42975/CPythonTestOutput.txt ___ Python tracker ___ ___ Python-bugs-list mailin

[issue27111] redundant variables in long_add and long_sub

2016-05-24 Thread Oren Milman
Changes by Oren Milman : Added file: http://bugs.python.org/file42974/patchedCPythonTestOutput.txt ___ Python tracker ___ ___ Python-bugs-list

[issue27111] redundant variables in long_add and long_sub

2016-05-24 Thread Oren Milman
New submission from Oren Milman: the proposed changes In Objects/longobject.c in long_add and long_sub, the variables 'result' and 'r' (respectively), are used only once, and don't seem to make the code any clearer. It seems the 'result' and 'r' variables were added i

[issue27110] smtpd.__all__ list is incomplete

2016-05-24 Thread Jacek Kołodziej
New submission from Jacek Kołodziej: That's a child issue of #23883, created to propose a patch fixing smtpd module's __all__ list. -- components: Library (Lib) files: smtpd_all.patch keywords: patch messages: 266270 nosy: Unit03 priority: normal severity: normal status: open title: smt

[issue27109] plistlib.__all__ list is incomplete

2016-05-24 Thread Jacek Kołodziej
New submission from Jacek Kołodziej: That's a child issue of #23883, created to propose a patch fixing plistlib module's __all__ list. -- components: Library (Lib) files: plistlib_all.patch keywords: patch messages: 266269 nosy: Unit03 priority: normal severity: normal status: open titl

[issue27108] mimetypes.__all__ list is incomplete

2016-05-24 Thread Jacek Kołodziej
New submission from Jacek Kołodziej: That's a child issue of #23883, created to propose a patch fixing mimetypes module's __all__ list. -- components: Library (Lib) files: mimetypes_all.patch keywords: patch messages: 266268 nosy: Unit03 priority: normal severity: normal status: open ti

[issue27107] mailbox.__all__ list is incomplete

2016-05-24 Thread Jacek Kołodziej
New submission from Jacek Kołodziej: That's a child issue of #23883, created to propose a patch fixing mailbox module's __all__ list. -- components: Library (Lib) files: mailbox_all.patch keywords: patch messages: 266267 nosy: Unit03 priority: normal severity: normal status: open title:

[issue27106] configparser.__all__ is incomplete

2016-05-24 Thread Jacek Kołodziej
New submission from Jacek Kołodziej: That's a child issue of #23883, created to propose a patch fixing configparser module's __all__ list. -- components: Library (Lib) files: configparser_all.patch keywords: patch messages: 266266 nosy: Unit03 priority: normal severity: normal status: o

[issue27105] cgi.__all__ is incomplete

2016-05-24 Thread Jacek Kołodziej
New submission from Jacek Kołodziej: That's a child issue of #23883, created to propose a patch fixing cgi module's __all__ list. -- components: Library (Lib) files: cgi_all.patch keywords: patch messages: 266265 nosy: Unit03 priority: normal severity: normal status: open title: cgi.__a

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I hope following patch is free from undefined behavior. -- ___ Python tracker ___ ___ Python-bugs-

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Adrian Wielgosik
Adrian Wielgosik added the comment: I'm pretty sure this is undefined behavior. Here's how similar code was fixed in Chromium: https://codereview.chromium.org/9117014/patch/1/2 -- nosy: +Adrian Wielgosik ___ Python tracker

[issue27104] enable-framework

2016-05-24 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: rejected -> not a bug stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailin

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Using Raymond's microbenchmark from issue25823: $ ./python.exe exercise_oparg.py Unpatched: 0.8331978429996525 Patched:0.7600522060020012 Pybench exposes 7% speed up (detailed report is attached). -- Added file: http://bugs.python.org/file42966/

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if change the type of next_instr to unsigned short*? This would guarantee that the read is aligned since the start of code data is aligned. I have small doubt about PREDICT(). I doubt that the compiler is smart enough to infer that *next_instr and *(uns

[issue14196] Unhandled exceptions in pdb return value display

2016-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Georg, if you agree that Xavier's analysis is correct, we can close this as not a bug. -- nosy: +georg.brandl, terry.reedy ___ Python tracker _

[issue24511] Add methods for async protocols

2016-05-24 Thread mdcb
Changes by mdcb : -- nosy: +mdcb...@gmail.com ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue24510] Make _PyCoro_GetAwaitableIter a public API

2016-05-24 Thread mdcb
Changes by mdcb : -- nosy: +mdcb...@gmail.com ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue27083] PYTHONCASEOK is ignored on Windows

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

[issue27059] find_spec and find_loader ignore package/path argument

2016-05-24 Thread Brett Cannon
Brett Cannon added the comment: https://docs.python.org/3.6/library/importlib.html#examples has an Examples section that's new to the Python 3.6 docs which covers your use-case. -- ___ Python tracker _

[issue27104] enable-framework

2016-05-24 Thread Alexandra Beebe
Alexandra Beebe added the comment: Never mind... User error. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: > has undefined behaviour, according to the C standards. I retract this; I'm no longer convinced this is true. Sorry for the noise. -- ___ Python tracker _

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: This assignment: oparg = *(unsigned short*)next_instr has undefined behaviour, according to the C standards. I'm not sure it's a good idea to introduce this into the core. -- nosy: +mark.dickinson ___ Python tr

[issue27104] enable-framework

2016-05-24 Thread Alexandra Beebe
New submission from Alexandra Beebe: When trying to build a framework on osx getting this error during install. Mage:Python-3.4.4 alexandra$ sudo make install Password: Creating directory /Library/Frameworks/Python.framework/Versions/3.4/Resources/English.lproj Creating directory /Library/Frame

[issue7159] Urllib2 authentication memory.

2016-05-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2016-05-24 Thread STINNER Victor
New submission from STINNER Victor: The -R option of regrtest replaces sys.stdout with a io.StringIO object. Problem: the refleak are hunted after stdout is replaced, and so each print() increaes the total reference counter which is seen as a leak. Example: $ cat Lib/test/test_noop.py "noop"

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Zachary Ware
Zachary Ware added the comment: Clement Rouault added the comment: > Stated as you did, it makes sens. Should the change of return type be > acknowledged somewhere in the documentation ? Yes, it should be mentioned in Doc/whatsnew/3.6.rst and probably also somewhere in Doc/library/winreg.rst -

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Clement Rouault
Clement Rouault added the comment: Stated as you did, it makes sens. Should the change of return type be acknowledged somewhere in the documentation ? -- ___ Python tracker ___

[issue27102] Spam

2016-05-24 Thread Zachary Ware
Changes by Zachary Ware : -- Removed message: http://bugs.python.org/msg266251 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue27102] Spam

2016-05-24 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: -cerberos resolution: -> not a bug stage: -> resolved status: open -> closed title: nice story -> Spam ___ Python tracker ___ __

[issue27051] Create PIP gui

2016-05-24 Thread Upendra Kumar
Upendra Kumar added the comment: 3. Detecting Virtual Environment Virtual environment can be detected using pip module : from pip.locations import running_under_virtualenv if running_under_virtualenv(): #If user provided path for virtual environment, evrything okay else: #Prompt fo

[issue27051] Create PIP gui

2016-05-24 Thread Upendra Kumar
Upendra Kumar added the comment: 2. Detecting different versions of Python installed : For Windows : It is explained in PEP 514 by Steve Dower. Windows has registry keys which can be accessed by winreg or _winreg module. Priority of registry keys : HKEY_CURRENT_USER > HKEY_LOCAL_MACHINE On

[issue27051] Create PIP gui

2016-05-24 Thread Upendra Kumar
Upendra Kumar added the comment: These are some of the code parts which may be necessary : 1. Code for identification of OS from sys import platform if platform.startswith("linux"): #linux elif platform == "darwin": #mac os x else platform == "win32": # Windows -- ___

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Steve Dower
Steve Dower added the comment: Changing a return value type without notice certainly can't go into a maintenance release. I'd assumed an extra import too, but since it's transparent this is 3.6 only (definitely not a security fix, so 2.7 isn't up for discussion). -- versions: -Python

[issue7159] Urllib2 authentication memory.

2016-05-24 Thread Brad Olson
Brad Olson added the comment: Yes, Go ahead. Thanks. On Tue, May 24, 2016 at 1:56 AM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > Should this be closed? A substantial patch was pushed year ago and I see > no indication of further issue. > > -- > nosy: +terry.reedy

[issue27095] Simplify MAKE_FUNCTION

2016-05-24 Thread Demur Rumed
Demur Rumed added the comment: May've been best to wait on posting a patch, but long weekend yesterday made time available mkfu3 updates mkfu2 with wordcode. Includes fix to EXTENDED_ARG documentation -- Added file: http://bugs.python.org/file42965/mkfu3.patch

[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2016-05-24 Thread R. David Murray
R. David Murray added the comment: Agreed. Time to close the issue. If someone wants to do actual testing as Raymond suggests, and finds a name that actually works, they can either reopen this with a report or open a new issue. -- resolution: -> rejected stage: -> resolved status:

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Paul Moore
Paul Moore added the comment: Hmm, OK. So code that currently needs to access QWORD values and decodes the bytes returned would be broken by this change. Equally it is possible (albeit not ideal) to get the data out with the current behaviour. I can't judge how likely it is that anyone has wri

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Clement Rouault
Clement Rouault added the comment: My comment was about the behavior of `winreg.QueryValueEx`. The current behavior is: >>> import winreg >>> tstkey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, "TestKey") >>> winreg.QueryValueEx(tstkey, "MYDWORD") # a REG_DWORD value (16909060, 4) >>> winreg.Quer

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Paul Moore
Paul Moore added the comment: I'm not sure I follow your comment. In Python 3.5, >>> from winreg import REG_QWORD Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'REG_QWORD' So exposing REG_QWORD from the winreg module would be a change in behaviour, n

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-24 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 3a57eafd8401 by Serhiy Storchaka in branch 'default': > Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode. > https://hg.python.org/cpython/rev/3a57eafd8401 Yeah, congrats Demur! -- ___

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Clement Rouault
Clement Rouault added the comment: I would like to discuss the fact that this patch is a new feature. In the current state, CPython handles the `REG_QWORD` type as an unkown type and returns the raw registry value: a string of size 8. In my opinion this behavior does not match the Windows docum

[issue27091] Python IDLE doesn't like 💙

2016-05-24 Thread Eryk Sun
Changes by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE crashes when pasting non-BMP unicode char on Py3 ___ Python tracker ___

[issue27091] Python IDLE doesn't like 💙

2016-05-24 Thread Christian Kleineidam
Christian Kleineidam added the comment: My version is: Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) [MSC v.1900 32 bit (Intel)] on win32 Yes, I think the issue is likely a dublicate of http://bugs.python.org/issue13153 -- ___ Python tr

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-05-24 Thread Johannes S.
Johannes S. added the comment: I tried it again and I also tried 3.6.0a1 now. 3.6.0a1 has the issue as well. I have downloaded the tarballs from https://www.python.org/downloads/release/python-351/ and https://www.python.org/downloads/release/python-360a1/. I have run it on my Laptop (Arch Li

  1   2   >