[issue30624] selectors should use bare except clauses

2017-06-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New changeset ced36a993fcfd1c76637119d31c03156a8772e11 by Giampaolo Rodola in branch 'master': bpo-30624 remaining bare except (#2108) https://github.com/python/cpython/commit/ced36a993fcfd1c76637119d31c03156a8772e11 --

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: yep, I see that, I fix it asap -- ___ Python tracker ___ ___

[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 41af942e57f9a450cf273ef6b72a21380c6ba8d1 by Victor Stinner (Stéphane Wirtel) in branch '2.7': bpo-30615: Fix the leak reference in Modules/_elementtree.c (#2129) https://github.com/python/cpython/commit/41af942e57f9a450cf273ef6b72a21380c6ba8d1

[issue30638] Additional dependencies and rule for `make regen-all`

2017-06-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: `make regen-all` regenerates many generated files. But not all. 1. Argument Clinic files has their own make target, `make clinic`. Perhaps "clinic" should be a dependency for "regen-all". 2. Lib/token.py and Lib/symbols.py are generated from

[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-12 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I want close() to be deterministic. So I guess we have two simple possibilities: 1) close() raises if the process is still alive 2) close() calls join() implicitly if the process is still alive -- ___ Python

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread R. David Murray
R. David Murray added the comment: What is your proposed solution? This doesn't at the moment sound like a bug in Python to me. -- nosy: +r.david.murray ___ Python tracker

[issue30638] Additional dependencies and rule for `make regen-all`

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I don't think that we want `make regen-all` to require internet access. Agree. I mentioned it only because these files also are generated. -- ___ Python tracker

[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

2017-06-12 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić: Our application compiles snippets of user-specified code using the compile built-in with ast.PyCF_ONLY_AST flag. At this stage we catch syntax errors and perform some sanity checks on the AST. The AST is then compiled into actual code using compile() and run

[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Jim Jewett
Jim Jewett added the comment: Could join be called in a background thread, or even asynchronously? That seems like mixing paradigms, but ... On Jun 12, 2017 3:15 AM, "Antoine Pitrou" wrote: > > Antoine Pitrou added the comment: > > That's a good question. close()

Twisted 17.5 Release Announcement

2017-06-12 Thread Amber Hawkie Brown
On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted 17.5! The highlights of this release are: - twisted.python.url has been spun out into the new 'hyperlink' package; importing twisted.python.url is now a compatibility alias - Initial support for OpenSSL

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: Here are benchmark results. Sorry, but I'm not really convinced that this specialization is worth it. The change adds yet another calling convention where we already have METH_NOARG, METH_VARARGS, METH_O, METH_NOARG | METH_KEYWORDS, METH_FASTCALL... I'm ok

[issue23404] 'make touch' does not work with git clones of the source repository

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset e1b690370fd8f93bef1e69eeea2695f95a7cfff5 by Nick Coghlan in branch '3.6': bpo-23404: `make regen-all` What's New entry (#2128) https://github.com/python/cpython/commit/e1b690370fd8f93bef1e69eeea2695f95a7cfff5 --

[issue30624] selectors should use bare except clauses

2017-06-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I see that on 3.6 except BaseException: is used, so the backport should not be necessary. -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed versions: -Python 3.5, Python 3.6 ___

[issue28414] SSL match_hostname fails for internationalized domain names

2017-06-12 Thread Nick Lamb
Nick Lamb added the comment: I endorse njs' recommended fix here. Don't try to get clever, this is a security component, it should be the dumbest it can be possibly be while being correct, because if it's smarter it will probably be wrong. -- nosy: +tialaramex

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___

[issue30640] NULL + 1 in _PyFunction_FastCallDict()

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: Can you please show me the line doing NULL+1? I don't see it. Or do you mean the "k + 1" with k=NULL? _PyEval_EvalCodeWithName() ignores kwnames and kwargs when kwcount is zero. So I don't think that the value of NULL+1 matters here :-) --

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Stefan Krah
Stefan Krah added the comment: To expand on what Mark said: If the proposed format code implicitly gives these results ... >>> format(12 % 2**8, '08b') '1100' >>> format(-12 % 2**8, '08b') '0100' ..., would students not expect that these two operations have the same result? >>>

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: I just noticed that there's a line-wrapping problem in the patch as-merged. The output ends up being: PYTHONCOERCECLOCALE: if this variable is set to 0, it disables the locale coercion behavior It should either match the immediately preceding settings, which

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2185 ___ Python tracker ___ ___

[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset dfd5f34634f9c505945e9348b4b799544680a7cf by Antoine Pitrou in branch 'master': Fix bpo-30589: improve Process.exitcode with forkserver (#1989) https://github.com/python/cpython/commit/dfd5f34634f9c505945e9348b4b799544680a7cf --

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: > Also with that, many implementors will not want to care about keyword > arguments and would thus appreciate it if they didn't have to. Forcing them > to test for keyword arguments and raising the correct error for it (with the > correct and consistent

[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-12 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2183 ___ Python tracker ___ ___

[issue30617] IDLE: Add docstrings and unittests to outwin.py

2017-06-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks! I've added more unittests. They are passing, but I'm getting a callback error that I don't understand. The same _utest flag that's on the textview dialog didn't seem to work and I was just blindly trying things without success. Also, the window is

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-12 Thread Stefan Behnel
Stefan Behnel added the comment: I do not see this as a matter of performance but as a matter of usability. Basically, CPython could do just fine with just a single catch-all calling convention that packs all pos/kw arguments into C arguments and passes them over, leaving it entirely to the

[issue23404] 'make touch' does not work with git clones of the source repository

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: Moving to deferred blocker and taking 3.6 off the affected versions list, since the 3.6 What's New has now been updated appropriately. Items still to be done: - make a similar change to the 3.5 What's New on the 3.5 branch - update the maintenance release

[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've merged a fix for Python 3.7. Since the fix is a bit delicate, I don't want to risk regression by merging it into 3.6 and 3.5. Closing now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5,

[issue28180] sys.getfilesystemencoding() should default to utf-8

2017-06-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- pull_requests: +2184 ___ Python tracker ___ ___

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
New submission from Thomas Kluyver: This came up in IPython & Jedi: several functions in inspect end up calling getfile(). If the object is something for which it can't find the source file, it throws an error, the message for which contains the object's repr. This is problematic for us

Nikola v7.8.8 is out!

2017-06-12 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.8. It fixes some bugs and adds new features. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2 templates, and input in many

Cannot get any Python commands to work

2017-06-12 Thread David Marquand
I am trying to learn Django and cannot get easy_install to work. Python working on PyDev fine. PS C:\Windows\system32> python Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

[issue30640] NULL + 1

2017-06-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In _PyFunction_FastCallDict() if nk == 0, k is set to NULL. After that k + 1 is passed to _PyEval_EvalCodeWithName(). NULL + 1 is an undefined behavior. -- components: Interpreter Core messages: 295786 nosy: haypo, serhiy.storchaka priority: normal

[issue30640] NULL + 1 in _PyFunction_FastCallDict()

2017-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- title: NULL + 1 -> NULL + 1 in _PyFunction_FastCallDict() ___ Python tracker ___

[issue30638] Additional dependencies and rule for `make regen-all`

2017-06-12 Thread Zachary Ware
Zachary Ware added the comment: Agreed with all of the above, with the possible exception of 6; I don't think that we want `make regen-all` to require internet access. Please make sure that the PR for this includes removing the explicit `make clinic` from .travis.yml. -- nosy:

[issue30640] NULL + 1 in _PyFunction_FastCallDict()

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I mean the "k + 1" with k=NULL. Even if _PyEval_EvalCodeWithName() ignores that value, this still is an undefined behavior. For example the compiler can decide that since NULL+1 is not valid, then k never is NULL, and ignore the branch that sets k to

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: Not exactly a bug, but I think that an improvement is possible. My plan is to delay computing the repr until the error is formatted, so that code which catches the TypeError can carry on safely. I think this is more relevant for inspect than for many other

[issue22559] [backport] ssl.MemoryBIO

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: Christian Heimes: "You have to include the changes from #29334, too." Right now, we are only allow to squash a patch serie into an unique patch. I would prefer to keep the fix of bpo-29334 as a separated commit, so merge it after MemoryBIO is merged. The

[issue22559] [backport] ssl.MemoryBIO

2017-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2187 ___ Python tracker ___ ___

[issue22559] [backport] ssl.MemoryBIO

2017-06-12 Thread Christian Heimes
Christian Heimes added the comment: You have to include the changes from #29334, too. -- ___ Python tracker ___

[issue22559] [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546

2017-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- title: [backport] ssl.MemoryBIO -> [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546 ___ Python tracker

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-12 Thread Ned Deily
Ned Deily added the comment: New changeset 8399a177de8bfa860a66e96665488c17199cb9d2 by Ned Deily (Antoine Pietri) in branch '3.6': [3.6] bpo-30177: add NEWS entry (#2134) https://github.com/python/cpython/commit/8399a177de8bfa860a66e96665488c17199cb9d2 --

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-12 Thread Antoine Pietri
Changes by Antoine Pietri : -- pull_requests: +2189 ___ Python tracker ___ ___

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +2190 ___ Python tracker ___ ___

[issue29334] ssl.SSLObject method getpeercert() is buggy, do_handshake() is strange

2017-06-12 Thread Christian Heimes
Christian Heimes added the comment: Also needs backport to 2.7 for #22559 -- versions: +Python 2.7 ___ Python tracker ___

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-12 Thread Antoine Pietri
Changes by Antoine Pietri : -- pull_requests: +2188 ___ Python tracker ___ ___

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-12 Thread Ned Deily
Ned Deily added the comment: New changeset a77a35d70ba8aed047e63d4d9f7d0554e98d4c4b by Ned Deily (Antoine Pietri) in branch 'master': bpo-30177: add NEWS entry (#2135) https://github.com/python/cpython/commit/a77a35d70ba8aed047e63d4d9f7d0554e98d4c4b --

[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've decided it's better to raise a ValueError if the child process hasn't stopped yet. After all, join() alone may have no effect: often you want to send the process a signal (a literal signal in UNIX terms, or a figurative signal such as write something on

[issue22559] [backport] ssl.MemoryBIO

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: I converted issue22559.diff to a pull request. I only had one conflict! --- Lib/ssl.py +++ Lib/ssl.py @@ -727,11 +857,7 @@ class SSLSocket(socket): if not self._sslobj: raise ValueError("Read on closed or unwrapped SSL socket.")

[issue22559] [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546

2017-06-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +2192 ___ Python tracker ___ ___

[issue22559] [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546

2017-06-12 Thread Christian Heimes
Christian Heimes added the comment: Sounds good to me! I'll take care of the other patch after you have committed your PR. -- ___ Python tracker ___

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- pull_requests: +2186 ___ Python tracker ___ ___

Re: Cannot get any Python commands to work

2017-06-12 Thread Richard Moseley
I believe that you need to be using this as a command rather a module from within python, in other words try executing easy_install from the command line, or try using pip which is now preferred method of installing new third-party packages. You may need to add '-3.6' or '-36' if you have multiple

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +2191 ___ Python tracker ___ ___

[issue30632] IDLE: add unittest to test_autocomplete

2017-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue, and in part the patch, appears to be a duplicate of #30348. What am I missing? An issue can have multiple PRs, and one can either replace another one that is closed or augment one that must be applied first. --

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset f59cac4b6458e5c47e24a39ba46fb178c3766577 by Mariatta (Marco Buttu) in branch '3.6': bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2136) https://github.com/python/cpython/commit/f59cac4b6458e5c47e24a39ba46fb178c3766577

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The address of the object is not informative. The possibility of getting a source file is determined by the type of the object. -- ___ Python tracker

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: Sure, I can do that if you want. The other thing I thought of was using object.__repr__, so the repr always shows like . -- ___ Python tracker

Re: Cannot get any Python commands to work

2017-06-12 Thread Viktor Hagström
It seems like you are trying to run easy_install while running the Python interpreter. I am not familiar with easy_install, but my guess would be to run it outside the interpreter, in the command prompt. 2017-06-12 16:47 GMT+02:00 David Marquand

[issue30630] Missing MSI files

2017-06-12 Thread Steve Dower
Steve Dower added the comment: Try installing https://go.microsoft.com/fwlink/?LinkId=746572 separately. This should add the required files, and because it's the "official" installer will provide more details about the underlying error (if any). You may also need to reboot your machine. This

[issue30593] sqlite3 executescript does not respect isolation_level?

2017-06-12 Thread Noah Levitt
Noah Levitt added the comment: Here's a test case -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset bbb335891c2967bd13fbe2da775c0348260d95cb by Mariatta (Marco Buttu) in branch '2.7': bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2137) https://github.com/python/cpython/commit/bbb335891c2967bd13fbe2da775c0348260d95cb

[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.6 no longer compiles for me on Windows. A repeat of pcbuild\build.bat -d gives the same error report as below. My previous build was 25 hours ago. atexitmodule.c is the only C file in the 3.6 merge update, so the backport might be to blame. Git status

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think in that case it is enough to report just type name. -- nosy: +serhiy.storchaka type: behavior -> enhancement versions: +Python 3.7 ___ Python tracker

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +easy ___ Python tracker ___ ___

Re: hello!! i was Installing Tensor flow with gpu support and something went wrong

2017-06-12 Thread jladasky
On Monday, June 12, 2017 at 10:40:25 AM UTC-7, Forsaken uttax wrote: > hello!! >I was trying to install Tensorflow on my laptop with Gpu support > so I Installed python the one in the screenshot below, and I put in pip > Tensorflow Install command and it says syntax error so i try to

Re: How to store some elements from a list into another

2017-06-12 Thread Thomas Jollans
On 12/06/17 20:32, José Manuel Suárez Sierra wrote: > Hello, > I am stuck with a (perhaps) easy problem, I hope someone can help me: > > My problem is: > I have a list of lists like this one: > [[55, 56, 57, 58, 83, 84, 85, 86, 89, 90, 91, 92, 107, 108, 109, 110, 111, > 117, 118, 119, 120, 128,

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: OK, I've updated the PR to do that. -- ___ Python tracker ___ ___

[issue9566] Compilation warnings under x64 Windows

2017-06-12 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: -2171 ___ Python tracker ___ ___

[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Last time Objects/listobject.c was changed 2 months ago. This looks as an error in your workspace. Maybe something wrong happened when you switched from master to 3.6. -- ___ Python tracker

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 37e04153d5e331162608b33639ecd3c9a5ae2432 by Mariatta (Marco Buttu) in branch '3.5': bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2138) https://github.com/python/cpython/commit/37e04153d5e331162608b33639ecd3c9a5ae2432

How to store some elements from a list into another

2017-06-12 Thread José Manuel Suárez Sierra
Hello, I am stuck with a (perhaps) easy problem, I hope someone can help me: My problem is: I have a list of lists like this one: [[55, 56, 57, 58, 83, 84, 85, 86, 89, 90, 91, 92, 107, 108, 109, 110, 111, 117, 118, 119, 120, 128, 129, 130, 131, 135, 136, 137, 138, 184, 185, 186, 187, 216, 217,

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Max Staff
New submission from Max Staff: There are different ways to catch exceptions of the type "OSError": By using "except OSError as e:" and then checking the errno or by using "except FileNotFoundError e:" or "except FileExistsError e:" or whatever error one wants to catch. There's no such way for

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread R. David Murray
R. David Murray added the comment: There appears to be an errno for file name too long, so I presume you are making a feature request for a new exception class. I believe Antoine tried to strike a balance between the utility of the sub-exceptions and their number, so you'll have to make an

[issue30593] sqlite3 executescript does not respect isolation_level?

2017-06-12 Thread Noah Levitt
Changes by Noah Levitt : Added file: http://bugs.python.org/file46943/issue30593-test.diff ___ Python tracker ___

[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Steve Dower
Steve Dower added the comment: I just updated to the latest 3.6 commit and listobject.c doesn't even use clinic in this branch. Serhiy is probably right - this is a workspace issue. -- ___ Python tracker

[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Zachary Ware
Zachary Ware added the comment: Agreed, looks like something went wrong in your checkout, Terry. Just confirmed that a 3.6 build on a fresh checkout on Windows is fine. -- priority: release blocker -> normal ___ Python tracker

[issue30050] Please provide a way to disable the warning printed if the signal module's wakeup fd overflows

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It would be nice if there were a way to disable this; perhaps something like: > signal.set_wakeup_fd(fd, warn_on_full_buffer=False) That's a reasonable idea. Nathaniel, would you like to submit a PR for this? -- nosy: +pitrou

Re: Cannot get any Python commands to work

2017-06-12 Thread Viktor Hagström
It seems like you are trying to run easy_install while running the Python interpreter. I am not familiar with easy_install, but my guess would be to run it outside the interpreter, in the command prompt. 2017-06-12 16:47 GMT+02:00 David Marquand

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Max Staff
Max Staff added the comment: Yes I know about the errno. There would be two ways to resolve this: One way would be by introducing a new exception class which would be nice because it's almost impossible to reliably check the allowed filename length (except for trial and error) and I have

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Max Staff
Max Staff added the comment: ...at least those are the only two ways that I can think of. -- ___ Python tracker ___

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: @akuchling Can you prepare a PR on GitHub? -- nosy: +Mariatta ___ Python tracker ___

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Brett Cannon
Brett Cannon added the comment: What commands did you use to launch this build? (E.g. I noticed you are trying to do a PGO build.) -- nosy: +brett.cannon ___ Python tracker

Re: hello!! i was Installing Tensor flow with gpu support and something went wrong

2017-06-12 Thread Terry Reedy
On 6/12/2017 2:18 PM, jlada...@itu.edu wrote: On Monday, June 12, 2017 at 10:40:25 AM UTC-7, Forsaken uttax wrote: hello!! I was trying to install Tensorflow on my laptop with Gpu support so I Installed python the one in the screenshot below, and I put in pip Tensorflow Install

[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I fetch, merge, and build with a .bat file that has worked fine at least 10 times, with pushes in between, the glitch is a puzzle. Next time I will just revert, as I did, or reclone and rebuild the 3.6 worktree. --

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: On Unix, you can simply check the errno value: >>> fn = "x" * 999 >>> try: open(fn, "r") ... except OSError as e: exc = e ... >>> exc.errno 36 >>> exc.errno == errno.ENAMETOOLONG True I don't know about Windows. --

Re: Cannot get any Python commands to work

2017-06-12 Thread Ian Kelly
On Mon, Jun 12, 2017 at 8:47 AM, David Marquand wrote: > I am trying to learn Django and cannot get easy_install to work. Python > working on PyDev fine. > > > PS C:\Windows\system32> python > Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit >

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't understand what you actually are requesting here. Are you requesting a way to tell whether or not the filename is too long? You've already been told that the way to do that is to check errno, and you say that you already knew that. exc.errno ==

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: The format code space is already crowded, and it isn't immediately obvious that '08B' will format the 2's complement representation of the number, as opposed to '08b' which prepends a sign bit. Not to mention that, as Raymond remarked, we cannot use the same

hello!! i was Installing Tensor flow with gpu support and something went wrong

2017-06-12 Thread Forsaken uttax
hello!! I was trying to install Tensorflow on my laptop with Gpu support so I Installed python the one in the screenshot below, and I put in pip Tensorflow Install command and it says syntax error so i try to update the pip that too doesn't work desperate for solution help me. Regards

Re: Cannot get any Python commands to work

2017-06-12 Thread David
On Monday, June 12, 2017 at 11:34:41 AM UTC-5, Richard Moseley wrote: > I believe that you need to be using this as a command rather a module from > within python, in other words try executing easy_install from the command > line, or try using pip which is now preferred method of installing new >

Re: How to store some elements from a list into another

2017-06-12 Thread MRAB
On 2017-06-12 19:32, José Manuel Suárez Sierra wrote: Hello, I am stuck with a (perhaps) easy problem, I hope someone can help me: My problem is: I have a list of lists like this one: [[55, 56, 57, 58, 83, 84, 85, 86, 89, 90, 91, 92, 107, 108, 109, 110, 111, 117, 118, 119, 120, 128, 129, 130,

[issue30593] sqlite3 executescript does not respect isolation_level?

2017-06-12 Thread Noah Levitt
Noah Levitt added the comment: And here's a fix. Unfortunately I think the change could break people's scripts. If they have isolation_level set (not None) and use executescript(), they will have to issue an explicit call to connection.commit(). executescript() could do the commit itself

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: PR filed against master: https://github.com/python/cpython/pull/2143 -- pull_requests: +2193 ___ Python tracker ___

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks once again! :) -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 81f67b6f48820beed6e138077fd785020bbfd5d6 by Nick Coghlan (Stéphane Wirtel) in branch 'master': bpo-30636: Fix the indentation for the help (#2131) https://github.com/python/cpython/commit/81f67b6f48820beed6e138077fd785020bbfd5d6 --

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-12 Thread Ned Deily
Ned Deily added the comment: New changeset 2997fec01ee7300c6d5940e6c55e4ccf9f56f1b5 by Ned Deily (Dino Viehland) in branch '3.6': [3.6] bpo-30604: Move co_extra_freefuncs to interpreter state to avoid crashes in threads (#2015)

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Andreas Jung
Andreas Jung added the comment: Just the standard ./configure --prefix=... --enable-optimizations dance -- nosy: +ajung ___ Python tracker ___

Customise the virtualenv `activate` script

2017-06-12 Thread Ben Finney
Howdy all, What is the conventional way to customise the changes made by a Python virtualenv bin/activate script? The Python virtualenv is activated by a ‘$VENV/bin/activate script’ [0]. This script works primarily by setting environment variables specific to the virtualenv. (This is different

  1   2   >