[issue28128] Improve the warning message for invalid escape sequences

2016-10-28 Thread Nick Coghlan
Nick Coghlan added the comment: Petr, is there any chance you or someone from your team could take a look at this and the other issue Emanuel referenced? These warnings are likely to pose a usability problem when upgrading Python in Fedora in their current state, so it would be good to see

Re: How to execute "gksudo umount VirtualDVD"

2016-10-28 Thread Demosthenes Koptsis
The code is ok, i need to provide the absolute path to umount. def umount(self): '''unmounts VirtualDVD''' #get virtualdvd folder home = QtCore.QDir.homePath() vpath = home + "/VirtualDVD" cmd = 'gksudo umount ' + vpath

Re: distributed development methodology

2016-10-28 Thread Adam Jensen
On 10/28/2016 11:59 PM, Cameron Simpson wrote: > Sync the virtualenv prerequisites file with your DVCS. Have a tiny > script to update the local virtualenv prereq file and run its update > command to honour any new prereqs. Cool. I didn't mention that I am a python n00b, did I? What/where is the

[issue28552] Distutils fail if sys.executable is None

2016-10-28 Thread R. David Murray
R. David Murray added the comment: I'm not sure it is reasonable to expect distutils to work if sys.executable is not valid. What do you think distutils could do instead? -- nosy: +r.david.murray ___ Python tracker

Re: distributed development methodology

2016-10-28 Thread Cameron Simpson
On 28Oct2016 23:02, Adam Jensen wrote: If one were to develop a Python application on multiple machines, what are some good methods for keeping them synchronized? For example, I develop on a FreeBSD machine and a CentOS machine, each with python2.7 and differing sets of site

[issue25660] tabs don't work correctly in python repl

2016-10-28 Thread Martin Panter
Martin Panter added the comment: Clément: Yes, that sounds like the intended behaviour, at least when using Readline. Originally discussed in Issue 23441 and Issue 22086. (Though I think the change in behaviour when completion is called outside of Readline is a bug.) --

[issue28028] Convert warnings to SyntaxWarning in parser

2016-10-28 Thread Emanuel Barry
Emanuel Barry added the comment: Cross-ping from #28128 I think it would be best to solve this issue, solving both #28128 and any future warning-introducing feature or deprecation. I've marked this issue as a dependency for #28128 as well as upping the priority. There are less than 7 weeks

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-28 Thread Martin Panter
Martin Panter added the comment: Looks good to me :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28128] Improve the warning message for invalid escape sequences

2016-10-28 Thread Emanuel Barry
Emanuel Barry added the comment: Following Ned's email to Python-Dev, I'm upping the priority of this issue to "deferred blocker". I haven't had a lot of time to work on this, but I had time to think about it, and I think that resolving #28028 would be the best way to solved this. I pinged

[issue28542] document cross compilation

2016-10-28 Thread Martin Panter
Martin Panter added the comment: Thanks, this looks like a decent start. I’m not that familiar with cross-compiling Python, but here are a couple questions: $(cd /path/to/source && pwd)/configure Why do you use $(pwd) here? I have mainly seen relative paths used (my own experiments, and

distributed development methodology

2016-10-28 Thread Adam Jensen
If one were to develop a Python application on multiple machines, what are some good methods for keeping them synchronized? For example, I develop on a FreeBSD machine and a CentOS machine, each with python2.7 and differing sets of site packages. On each machine, I can use virtualenv. But if I

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Chris Angelico
On Sat, Oct 29, 2016 at 11:13 AM, Steve D'Aprano wrote: > On Sat, 29 Oct 2016 02:03 am, Chris Angelico wrote: > >> born in those lackadaisical days when "Extended ASCII" was a single >> thing, because the rest of the world didn't exist > > I know you're being

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-28 Thread Martin Panter
Martin Panter added the comment: In general, I would be against stripping square brackets if the host and port have already been separated, e.g. in the address tuple used with socket.create_connection() etc. It feels like unnecessary double processing, which should already have been done at a

[issue28548] http.server parse_request() bug and error reporting

2016-10-28 Thread Martin Panter
Martin Panter added the comment: Here is a patch to parse the version from the request in more cases. Since it is more of a cosmetic improvement for handling erroneous requests, I would probably only apply it to the next Python version (3.7 atm). Or do you think it should go into bug fix

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread Yury Selivanov
Yury Selivanov added the comment: Looks like that Windows buildbot is green now. Closing. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-28 Thread Yutao Yuan
Yutao Yuan added the comment: It fails to compile for me. setcchar should take a cchar_t* and a const wchar_t* instead. -- ___ Python tracker ___

[issue10721] Remove HTTP 0.9 server support

2016-10-28 Thread Martin Panter
Martin Panter added the comment: Here is a slightly updated patch I have been sitting on. I think the main difference was tweaks to the documentation. Issue 28548 would also benefit if the HTTP 0.9 code was removed. The presence of the HTTP 0.9 code means a suboptimal response is sent in some

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Steve D'Aprano
On Fri, 28 Oct 2016 05:09 am, BartC wrote: > And I've seen things like 'import msvcrt', 'import winapi' in Python > code, and then there's all that stuff with ctypes. Right. Not everything needs to be a feature of the language itself, especially if it is operating system dependent and can be

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-10-28 Thread Martin Panter
Martin Panter added the comment: Since my last comment, I have become more confident that Python’s request parsing never supported proper HTTP 0.9. So I would prefer to remove it in the next version of Python, and not bother fixing Xiang’s bug in existing versions (unless someone offers a

Re: Doubled backslashes in Windows paths

2016-10-28 Thread eryk sun
On Fri, Oct 28, 2016 at 8:04 PM, Gilmeh Serda wrote: > > You can use forward slash to avoid the messy problem. There are cases in which you need to use backslash, such as extended paths and command lines. Python 3's pathlib automatically normalizes a Windows

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Steve D'Aprano
On Sat, 29 Oct 2016 02:28 am, BartC wrote: >> By using the name of a Unix system call, one might think so. > > Python is cross-platform, isn't it? The os module isn't. It is specifically designed for OS-specific functions. There's lots of OS-specific functionality in Python. In general, Python

Re: After import, some submodules are accessible and some aren't

2016-10-28 Thread Steve D'Aprano
On Sat, 29 Oct 2016 08:24 am, John Gordon wrote: > After importing a module, I can access some of its submodules directly > but others require an explicit import of the submodule. [...] > Why the difference? Ask the author of the package. Try this experiment: create a package called "imptest"

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Steve D'Aprano
On Sat, 29 Oct 2016 02:03 am, Chris Angelico wrote: > born in those lackadaisical days when "Extended ASCII" was a single > thing, because the rest of the world didn't exist I know you're being sarcastic, but "extended ASCII" *never* was a single thing, even for Americans who ignored the rest of

[issue28553] int.to_bytes docs logic error

2016-10-28 Thread Ofek Lev
New submission from Ofek Lev: https://docs.python.org/3/library/stdtypes.html#int.to_bytes To convert an int to the exact number of bytes required, the docs recommend "x.to_bytes((x.bit_length() // 8) + 1, ...)". This is incorrect when length is a multiple of 8, e.g. 296. The correct way is

[issue28548] http.server parse_request() bug and error reporting

2016-10-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 28, 2016, at 10:57 PM, Martin Panter wrote: >Parsing the version from words[-1] rather than words[2] may be a minor >improvement however. Indeed; I thought about that too. -- ___ Python tracker

[issue28548] http.server parse_request() bug and error reporting

2016-10-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 28, 2016, at 10:42 PM, Martin Panter wrote: >I think you should be able to reproduce this without Mailman or tox, by just >running “python -m http.server”. Yep, indeed. >The problem is the “HTTP/0.9” protocol that Python is assuming does not >include

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset db7bcd92cf85 by Yury Selivanov in branch '3.6': Issue #28544: Pass `PyObject*` to _PyDict_Pop, not `PyDictObject*` https://hg.python.org/cpython/rev/db7bcd92cf85 New changeset 60b6e820abe5 by Yury Selivanov in branch 'default': Merge 3.6 (issue

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-10-28 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue10721] Remove HTTP 0.9 server support

2016-10-28 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue28548] http.server parse_request() bug and error reporting

2016-10-28 Thread Martin Panter
Martin Panter added the comment: Parsing the version from words[-1] rather than words[2] may be a minor improvement however. -- ___ Python tracker ___

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread Yury Selivanov
Yury Selivanov added the comment: > Python 3.6 & default don't compile on Windows because of the change: Pushed a fix for that. -- ___ Python tracker

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 635f5854cb3e by Yury Selivanov in branch '3.6': Issue #28544: Fix compilation of _asynciomodule.c on Windows https://hg.python.org/cpython/rev/635f5854cb3e New changeset 9d95510dc203 by Yury Selivanov in branch 'default': Merge 3.6 (issue #28544)

[issue28548] http.server parse_request() bug and error reporting

2016-10-28 Thread Martin Panter
Martin Panter added the comment: I think you should be able to reproduce this without Mailman or tox, by just running “python -m http.server”. The problem is the “HTTP/0.9” protocol that Python is assuming does not include a header section, so there is no place to put a 400 status code or

Re: How to execute "gksudo umount VirtualDVD"

2016-10-28 Thread Wildman via Python-list
On Fri, 28 Oct 2016 17:19:17 -0500, Wildman wrote: > On Fri, 28 Oct 2016 11:05:17 +0300, Demosthenes Koptsis wrote: > >> Yes it was pasted wrong... >> >> def umount(self): >> '''unmounts VirtualDVD''' >> cmd = 'gksudo umount VirtualDVD' >> proc =

Re: How to execute "gksudo umount VirtualDVD"

2016-10-28 Thread Wildman via Python-list
On Fri, 28 Oct 2016 11:05:17 +0300, Demosthenes Koptsis wrote: > Yes it was pasted wrong... > > def umount(self): > '''unmounts VirtualDVD''' > cmd = 'gksudo umount VirtualDVD' > proc = subprocess.Popen(str(cmd), shell=True, >

[issue28552] Distutils fail if sys.executable is None

2016-10-28 Thread Alexander P
New submission from Alexander P: For example, Jython 2.7. When we try to execute `jython-standalone -m pip`, distutils.sysconfig tries to parse sys.executable as a path and obviously fails: Traceback (most recent call last): File

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread STINNER Victor
STINNER Victor added the comment: Python 3.6 & default don't compile on Windows because of the change: http://buildbot.python.org/all/builders/AMD64%20Windows8%203.x/builds/2795/steps/compile/logs/stdio "D:\buildarea\3.x.bolen-windows8\build\PCbuild\_asyncio.vcxproj" (Build target)

[issue28551] sysconfig.py wrong _PROJECT_BASE for Py2.7 Windows 64bit PC/VS9.0

2016-10-28 Thread Anselm Kruis
New submission from Anselm Kruis: Affected versions: 2.7.11, 2.7.12 Windows amd64 build with Visual Studio 2008 using the files in PC/VS9.0 If you run test_sysconfig using PC/VS9.0/rt.bat the test case test_get_config_h_filename fails.

Re: After import, some submodules are accessible and some aren't

2016-10-28 Thread Chris Angelico
On Sat, Oct 29, 2016 at 8:24 AM, John Gordon wrote: > After importing a module, I can access some of its submodules directly > but others require an explicit import of the submodule. > > As an example, see ldap.dn and ldap.modlist: > > % python > Python 2.7.8 (default, Aug 4

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread Yury Selivanov
Yury Selivanov added the comment: > Can you please do it Yury? Yes, Elvis and I will be the editors of What's New this year anyways ;) -- ___ Python tracker

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread STINNER Victor
STINNER Victor added the comment: Since asyncio becomes popular, IMO it is worth to mention this optimization at: https://docs.python.org/dev/whatsnew/3.6.html#optimizations Can you please do it Yury? -- ___ Python tracker

After import, some submodules are accessible and some aren't

2016-10-28 Thread John Gordon
After importing a module, I can access some of its submodules directly but others require an explicit import of the submodule. As an example, see ldap.dn and ldap.modlist: % python Python 2.7.8 (default, Aug 4 2016, 09:29:33) [GCC 4.4.7 20120313 (Red Hat 4.4.7-9)] on linux2 Type "help",

[issue28541] Improve test coverage for json library - loading bytes

2016-10-28 Thread Eric Appelt
Eric Appelt added the comment: I was able to inspect the review, and implemented your suggestions. This is attached as a new patch. Please let me know if this is not the correct workflow. Thank you for the prompt review and help as I learn the python tracking and review process! --

[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The _curses module uses direct access to cchar_t fields. Proposed patch makes it using setcchar. Does it fixes this issue Yutao? -- keywords: +patch nosy: +serhiy.storchaka, twouters stage: -> patch review versions: +Python 3.6, Python 3.7 -Python

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-28 Thread Eryk Sun
Eryk Sun added the comment: > ignore PYTHONPATH and the current working directory Generally it's the script directory that isolated mode removes from sys.path. It's the working directory when there is no script. -- ___ Python tracker

[issue28199] Compact dict resizing is doing too much work

2016-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the difference is pretty small. The largest difference I got is 7% in following microbenchmark: $ ./python -m perf timeit -s 'x = list(range(1000))' -- 'dict.fromkeys(x)' Unpatched: Median +- std dev: 80.6 us +- 0.5 us dictresize3.patch:

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-28 Thread Steve Dower
Steve Dower added the comment: "Lib\site-packages" is probably unnecessary because of "import site", which likely adds it in anyway. It's very likely that WinPython doesn't actually want to specify this at all, since it also enables isolated mode, which will ignore PYTHONPATH and the current

[issue28550] if inline statement does not work with multiple assignment.

2016-10-28 Thread Eric Snow
Eric Snow added the comment: The syntax is working correctly. Precedence rules are throwing you off. It should be more clear if we use parentheses to demonstrate precedence explicitly. You expected: a, b = (obj.a, obj.b) if obj else [None, None] However, what you wrote is equivalent to:

[issue28550] if inline statement does not work with multiple assignment.

2016-10-28 Thread Levi Velázquez
New submission from Levi Velázquez: Normal "if" inline assignment obj = None a = obj.a if obj else None It assign None to a as expected. obj = None a, b = obj.a, obj.b if obj else [None, None] It raises an error " 'NoneType' object has no attribute 'a'" when it should assign None to both a

[issue28546] Better explain setting pdb breakpoints

2016-10-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker ___ ___ Python-bugs-list

[issue28503] [Patch] '_crypt' module: fix implicit declaration of crypt(), use crypt_r() where available

2016-10-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker ___ ___ Python-bugs-list

[issue25152] venv documentation doesn't tell you how to specify a particular version of python

2016-10-28 Thread Zachary Ware
Zachary Ware added the comment: Ah ha, I thought I'd seen it mentioned in an issue somewhere, but I didn't go looking when I noticed my Docs bots were all red. Thanks for the patch anyway, Mariatta! -- nosy: +zach.ware ___ Python tracker

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Chris Angelico
On Sat, Oct 29, 2016 at 4:50 AM, Terry Reedy wrote: > On 10/28/2016 11:03 AM, Chris Angelico wrote: >> >> On Sat, Oct 29, 2016 at 1:54 AM, Dennis Lee Bieber >> wrote: >>> >>> https://en.wikibooks.org/wiki/QBasic/Advanced_Input >>> indicates that INKEY$

[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-28 Thread Yutao Yuan
New submission from Yutao Yuan: When addch() is called with an 1-length str, it is converted into a cchar_t. Ncurses6 adds a new field ext_color to cchar_t if it is enabled at compile time, and it is not initialized here, which causes various problems like segfaults or wrong display of

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Terry Reedy
On 10/28/2016 11:03 AM, Chris Angelico wrote: On Sat, Oct 29, 2016 at 1:54 AM, Dennis Lee Bieber wrote: https://en.wikibooks.org/wiki/QBasic/Advanced_Input indicates that INKEY$ doesn't even test the keyboard for presses, but is only retrieving the next item from the

[issue25152] venv documentation doesn't tell you how to specify a particular version of python

2016-10-28 Thread Brett Cannon
Brett Cannon added the comment: It looks like Zachary beat me to fixing this: https://hg.python.org/cpython/rev/5d1934c27137. Thanks for the patch, Mariatta, even if Zachary didn't use it. -- stage: commit review -> resolved status: open -> closed

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb7c439103b9 by Victor Stinner in branch '3.6': Issue #28544: Fix _asynciomodule.c on Windows https://hg.python.org/cpython/rev/fb7c439103b9 -- ___ Python tracker

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, see the commit to branch 3.6, which will next be released as .0b3. -- ___ Python tracker ___

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-28 Thread Big Stone
Big Stone added the comment: will it be in python-3.6.0b3 ? what should be in python._pth, in WinPython particular case ? (as Lib\site-packages didn't seem needed, for unknown reason) -- ___ Python tracker

[issue28199] Compact dict resizing is doing too much work

2016-10-28 Thread STINNER Victor
STINNER Victor added the comment: Remark about perf timeout: you can use --compare-to with the patched Python binary to check if the result is significant and compute the "x.xx faster" number. -- ___ Python tracker

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread Yury Selivanov
Yury Selivanov added the comment: I've committed the patch with a few touchups: * Applied code-review feedback. * We now use AC for all methods, including Task._repr_info, Task._step, etc. See [1]. * I fixed the Task to be fully subclassable; users can override Task._step and Task._wakeup

[issue28544] Implement asyncio.Task in C

2016-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset db5ae4f6df8a by Yury Selivanov in branch '3.6': Issue #28544: Implement asyncio.Task in C. https://hg.python.org/cpython/rev/db5ae4f6df8a New changeset 8059289b55c1 by Yury Selivanov in branch 'default': Merge 3.6 (issue #28544)

[issue2943] Distutils should generate a better error message when the SDK is not installed

2016-10-28 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: What's wrong with the Python wiki link in msg263206 above? It is supposed to be _the_ guide for setting up compilers in Windows, isn't it? Ideally, this should be a link to `distutils' docs - because, you know, the wiki isn't carved in stone, either, while the

Re: Installing Python on Windows 7

2016-10-28 Thread eryk sun
On Fri, Oct 28, 2016 at 2:39 PM, Jens Janzen wrote: > 1. Download C runtime Libraries from Microsoft > https://support.microsoft.com/de-de/kb/2999226 > for Windows 7 The more recent update is here [1], but don't use this. Use Windows Update to get the latest updates. [1]:

[issue28548] http.server parse_request() bug and error reporting

2016-10-28 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: This might also affect other Python version; I haven't checked, but I know it affects Python 3.5. In Mailman 3, we have a subclass of WSGIRequestHandler for our REST API, and we got a bug report about an error condition returning a 400 in the body of the

[issue26862] android: SYS_getdents64 does not need to be defined on android API 21

2016-10-28 Thread cschramm
cschramm added the comment: Well, the 3.5 code checks __ANDROID__ as well and works pretty fine on Android, but if it's not supposed to be supported, we'll have to upgrade to 3.6 then. Thanks for your work! :) -- ___ Python tracker

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread BartC
On 28/10/2016 15:28, Grant Edwards wrote: On 2016-10-27, BartC wrote: On 27/10/2016 23:31, Chris Angelico wrote: When you exec to a process, you provide multiple arguments, not a single combined string. Really, there could be dozens of arguments? Windows' CreateProcess()

[issue27683] ipaddress subnet slicing iterator malfunction

2016-10-28 Thread Xiang Zhang
Xiang Zhang added the comment: Ping. ;-) -- nosy: +pmoody ___ Python tracker ___ ___ Python-bugs-list mailing

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Michael Torrie
On 10/28/2016 06:28 AM, Chris Angelico wrote: > On Fri, Oct 28, 2016 at 11:12 PM, Terry Reedy wrote: >> The only specification he has given is reference to the BASIC INKEY$ >> variable. I don't know how consistent this was across different BASICs. I >> looked in Microsoft's

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Chris Angelico
On Sat, Oct 29, 2016 at 1:54 AM, Dennis Lee Bieber wrote: > https://en.wikibooks.org/wiki/QBasic/Advanced_Input > indicates that INKEY$ doesn't even test the keyboard for presses, but is > only retrieving the next item from the keyboard input /buffer/ (which that > article

Re: __prepare__ metaclass's method

2016-10-28 Thread ast
"Peter Otten" <__pete...@web.de> a écrit dans le message de news:mailman.34.1477663877.31204.python-l...@python.org... ast wrote: class T(type): ... def __new__(*args, **kw): return type.__new__(*args) ... def __prepare__(*args, **kw): ... print(kw) ... return {}

[issue27860] Improvements to ipaddress module

2016-10-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

Re: Installing Python on Windows 7

2016-10-28 Thread Jens Janzen
Am Freitag, 28. Oktober 2016 01:24:18 UTC+2 schrieb Karen Hermann: > I just downloaded Python 3.5.2 for Windows, which I installed on a Windows 7 > laptop. Disclaimer up front, I am a former lapsed programmer that has been > away from it and all things Windows since Windows XP. :)I’m back

[issue26862] android: SYS_getdents64 does not need to be defined on android API 21

2016-10-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: Sorry, AFAIK there is no plan to retrofit the Android changes to 3.5. Note that Python 3.6 is expected to be released in few weeks, by next mid-december. -- ___ Python tracker

[issue27860] Improvements to ipaddress module

2016-10-28 Thread Nick Coghlan
Nick Coghlan added the comment: Peter, are you able to take a look at this or indicate you're happy for someone else to take it? (I relinquished my co-maintainer role for the ipaddress module a while back, so you're the only currently listed maintainer) --

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Grant Edwards
On 2016-10-27, BartC wrote: > On 27/10/2016 23:31, Chris Angelico wrote: >> When you exec to a process, you provide multiple arguments, not a >> single combined string. > > Really, there could be dozens of arguments? Windows' CreateProcess() (if > that's the same thing) has ten

[issue26862] android: SYS_getdents64 does not need to be defined on android API 21

2016-10-28 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: cschramm: AFAIK only Python 3.6+ has experimental Android support. 3.5 or below are not supported. -- nosy: +Chi Hsuan Yen ___ Python tracker

Re: __prepare__ metaclass's method

2016-10-28 Thread Peter Otten
ast wrote: > Hi > > On python doc here: > > https://docs.python.org/3.4/reference/datamodel.html > > it is said about __prepare__ metaclass's method: > > If the metaclass has a __prepare__ attribute, it is called as > namespace = metaclass.__prepare__(name, bases, **kwds) > where the

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Christian Gollwitzer
Am 28.10.16 um 12:30 schrieb Marko Rauhamaa: Christian Gollwitzer : Am 28.10.16 um 10:59 schrieb Marko Rauhamaa: I don't know. How would you implement "less" in Python? How would you implement "nethack" in Python? On my system: Apfelkiste:~ chris$ otool -L /usr/bin/less

__prepare__ metaclass's method

2016-10-28 Thread ast
Hi On python doc here: https://docs.python.org/3.4/reference/datamodel.html it is said about __prepare__ metaclass's method: If the metaclass has a __prepare__ attribute, it is called as namespace = metaclass.__prepare__(name, bases, **kwds) where the additional keyword arguments, if any,

[issue28199] Compact dict resizing is doing too much work

2016-10-28 Thread Xiang Zhang
Xiang Zhang added the comment: I doubt how many memcpy could benefit. Two pass does not necessarily make faster. I make a simple test: With dictresize3, (I make insert_index inline): [bin]$ ./python3 -m perf timeit -s 'd = {i:i for i in range(6)}' 'dict(d)' Median +- std

[issue26862] android: SYS_getdents64 does not need to be defined on android API 21

2016-10-28 Thread cschramm
cschramm added the comment: Any plans to fix this in 3.5 as well? -- nosy: +cschramm ___ Python tracker ___

[issue28547] Python to use Windows Certificate Store

2016-10-28 Thread Christian Heimes
Christian Heimes added the comment: Python's ssl library has used Windows' cert store since 3.4 / 2.7.9. Some third party applications like requests or pip rather use their own cert store instead. This decision is beyond control of Python.

[issue28547] Python to use Windows Certificate Store

2016-10-28 Thread Jean-Philippe Landry
New submission from Jean-Philippe Landry: Hello, Would it be possible for Python to use the Certificate Store in windows instead of a predetermined list of certificates. The use case is as follows: Multiple machines being on a corporate network where there is a man in the middle packet

[issue28546] Better explain setting pdb breakpoints

2016-10-28 Thread Ian Kelling
New submission from Ian Kelling: https://docs.python.org/3.7/library/pdb.html: "The typical usage to break into the debugger from a running program is to insert import pdb; pdb.set_trace() at the location you want to break into the debugger." A plain read of this says: insert code into a

[issue27860] Improvements to ipaddress module

2016-10-28 Thread Moritz Sichert
Moritz Sichert added the comment: Any updates? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Chris Angelico
On Fri, Oct 28, 2016 at 11:12 PM, Terry Reedy wrote: > The only specification he has given is reference to the BASIC INKEY$ > variable. I don't know how consistent this was across different BASICs. I > looked in Microsoft's GW-BASIC reference and it says that it returns '', >

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Terry Reedy
On 10/28/2016 1:05 AM, Michael Torrie wrote: Sure you can't get a keyboard scancode when you're in terminal. As you note in your followup, Marko and Bart want to be able to respond, for instance, to left and right shift, separately and differently. Ascii terminals only send and receive

[issue28199] Compact dict resizing is doing too much work

2016-10-28 Thread INADA Naoki
INADA Naoki added the comment: Current code and my patch called insertdict_clean() or insert_index() for each entry. On the other hand, Serhiy's patch calls build_indices() once. This may be faster when compiler doesn't inlining the helper function. As a bonus, we can use memcpy to copy

[issue28199] Compact dict resizing is doing too much work

2016-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The advantage is using memcpy in case of combined table without deletions. This is common case of creating dict without pre-resizing: dict(list), dict(iterator), etc. In future, when will be possible to reuse old entries array, this also could help in case

[issue28199] Compact dict resizing is doing too much work

2016-10-28 Thread INADA Naoki
INADA Naoki added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27838] test_os.test_chown() failure on koobs-freebsd-current

2016-10-28 Thread Kubilay Kocak
Kubilay Kocak added the comment: Serhiy, ah I thought the patch would be applied to say the 'custom' builder for this buildbot or the branch in general :) If not, I can test this in ~<= 2 days locally, though its worth noting that the issue quite likely not be reproducible outside of the

[issue28199] Compact dict resizing is doing too much work

2016-10-28 Thread Xiang Zhang
Xiang Zhang added the comment: Hmm, what's the advantage? -- ___ Python tracker ___ ___ Python-bugs-list

[issue27838] test_os.test_chown() failure on koobs-freebsd-current

2016-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Kubilay, could you please run tests with my patch? -- ___ Python tracker ___

[issue28199] Compact dict resizing is doing too much work

2016-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if split copying entries from inserting indices? First fill a continuous array of entries (could use memcpy if there were not deletions), then build a hashtable of continuous indices. Following patch implements this idea. -- Added file:

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Steve D'Aprano
On Fri, 28 Oct 2016 09:02 am, BartC wrote: > I notice that when it comes to reading command-line arguments, then > Python's sys.argv presents them as a list, not one long string. Yes, just like the shell presents it to Python. It would be silly for Python to take the list of strings it receives,

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread BartC
On 28/10/2016 11:35, Marko Rauhamaa wrote: BartC : On 28/10/2016 10:22, Christian Gollwitzer wrote: So "less" in C uses ncurses. You can do the same in Python, "import curses" - instead of fiddling with terminal escape characters you leave that to a library, just like less

[issue26856] android does not have pwd.getpwall()

2016-10-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: -> xdegaye components: +Tests stage: -> patch review versions: +Python 3.7 ___ Python tracker

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Marko Rauhamaa
BartC : > On 28/10/2016 10:22, Christian Gollwitzer wrote: >> So "less" in C uses ncurses. You can do the same in Python, "import >> curses" - instead of fiddling with terminal escape characters you >> leave that to a library, just like less does it. > > As I commented further up

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-28 Thread Marko Rauhamaa
Christian Gollwitzer : > Am 28.10.16 um 10:59 schrieb Marko Rauhamaa: >> I don't know. How would you implement "less" in Python? How would you >> implement "nethack" in Python? > > On my system: > > Apfelkiste:~ chris$ otool -L /usr/bin/less > /usr/bin/less: >

  1   2   >