[issue32876] HTMLParser raises exception on some inputs

2018-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: The HTMLParser has been updated to handle HTML5 and should never fail parsing a document, so if it raises an error it's probably a bug. -- ___ Python tracker

Re: Python 2 to 3 Conversion

2018-02-19 Thread Wildman via Python-list
On Tue, 20 Feb 2018 05:31:27 +1100, Chris Angelico wrote: > On Tue, Feb 20, 2018 at 3:49 AM, Wildman via Python-list > wrote: >> On Mon, 19 Feb 2018 12:32:49 +, Rhodri James wrote: >> >>> On 18/02/18 16:18, Wildman via Python-list wrote: > But that's only going to

Re: Python 2 to 3 Conversion

2018-02-19 Thread Wildman via Python-list
On Tue, 20 Feb 2018 10:55:28 +1100, Chris Angelico wrote: > The given homepage URL is > http://alastairs-place.net/projects/netifaces/ - is that the right > one? > > ChrisA Yes, that is the right one. Now I'm feeling a little stupid. I should have remembered that many python library package

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Richard Damon
On 2/19/18 10:35 AM, Chris Angelico wrote: On Tue, Feb 20, 2018 at 12:34 AM, Steven D'Aprano wrote: On Mon, 19 Feb 2018 20:14:32 +1100, Chris Angelico wrote: As an integer, 3.141590 is 107853 $ Looks to me like C is perfectly happy to interpret a

Re: Python 2 to 3 Conversion

2018-02-19 Thread Chris Angelico
On Tue, Feb 20, 2018 at 12:05 PM, Wildman via Python-list wrote: > On Tue, 20 Feb 2018 10:55:28 +1100, Chris Angelico wrote: > >> The given homepage URL is >> http://alastairs-place.net/projects/netifaces/ - is that the right >> one? >> >> ChrisA > > Yes, that is the right

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-19 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +5546 stage: -> patch review ___ Python tracker ___

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-19 Thread Steve Dower
Steve Dower added the comment: Sounds good to me -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Windows: subprocess debug assertion on failure to execute the process ___

[issue32879] Race condition in multiprocessing Queue

2018-02-19 Thread Tim Peters
Tim Peters added the comment: The docs could be clearer about this: the argument to .put() is _not_ pickled at the time .put() is called. The object is remembered (by reference, not by value), and a feeder thread pickles the value and puts the pickle on the queue when the

Re: How to link to python 3.6.4 library on linux ?

2018-02-19 Thread Jason Qian via Python-list
Thanks Chris, I think I figured it out that when build python on Linux, we need to enable-shared. Thanks again, On Mon, Feb 19, 2018 at 5:04 PM, Chris Angelico wrote: > On Tue, Feb 20, 2018 at 8:07 AM, Jason Qian via Python-list > wrote: > > Hi, >

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Let's consider the todo questions at the end of the class Parser code. --- # XXX - is this used? lastopenbracketpos = None def get_last_open_bracket_pos(self): "Return index of last open bracket or None."

could use some help with this problem! I've been working on it for days but cant seem to get it right !

2018-02-19 Thread Marc Cohen
USING PYTHON 2: Write a program to play this game. This may seem tricky, so break it down into parts. Like many programs, we have to use nested loops (one loop inside another). In the outermost loop, we want to keep playing until we are out of stones. Inside that, we want to keep alternating

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Rick Johnson
On Saturday, February 17, 2018 at 12:58:49 AM UTC-6, Paul Rubin wrote: [...] > Beyond that, the Python community (with some exceptions) seems to have a > widespread hatred of threads. It instead prefers to handle concurrent > i/o with in-thread async schemes that the rest of the world left behind

Re: Python 2 to 3 Conversion

2018-02-19 Thread Wildman via Python-list
On Tue, 20 Feb 2018 05:39:15 +1100, Chris Angelico wrote: > On Tue, Feb 20, 2018 at 3:53 AM, Wildman via Python-list > wrote: >> On Tue, 20 Feb 2018 02:26:19 +1100, Chris Angelico wrote: >> >>> * Opaque IOCTLs >> >> Would you mind to elaborate a little about your >>

[issue32878] Document value of st_ino on Windows

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +5542 stage: -> patch review ___ Python tracker ___

[issue32556] support bytes paths in nt _getdiskusage, _getvolumepathname, and _getfinalpathname

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- stage: needs patch -> patch review ___ Python tracker ___

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread Steve Dower
Steve Dower added the comment: New changeset 8e149ff481acbb3889c825b8bf7b10aa191f09a7 by Steve Dower (Miss Islington (bot)) in branch '3.6': bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5766)

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-19 Thread Terry J. Reedy
New submission from Terry J. Reedy : Pyparse was mostly written in the early 2000s, with the only one code change since 2007 in 2014. #32874 will add tests for pyparse 'as is' (though with some docstring and comment changes). This issue will change pyparse code, and change

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: set_str sets self.str and self.study_level. After the first call, attempts to access unset instance parse attributes from other modules will raise AttributeError. Removing the unneeded class setting will just add 2 more names to the list

[issue32881] pycapsule:PyObject * is NULL pointer

2018-02-19 Thread zhaoya
New submission from zhaoya : i have question:call,c-->python-->c. 1.the c pointer void* abc="123" by pycapsule in the c code. .. void* lpContext = "abc"; PyObject * lpPyContext = PyCapsule_New(lpContext, "Context",NULL); .. PyTuple_SetItem(pArgs, 1, lpPyContext);

[issue32870] Documentation typo (2.x only) for deque.remove

2018-02-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +5541 stage: -> patch review ___ Python tracker ___

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

2018-02-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: I had also noticed that the `after` commands didn't have tests. Did you want me to add tests in a separate issue before this one is merged or did you want me to add tests under this PR? Thanks! --

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2018-02-19 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > I think that we can even drop dup-based validation from is_valid_fd() For POSIX, that is. There is no fstat on Windows, and dup is probably OK there (or, even better, dup2(fd, fd) -- no need to close). --

[issue32879] Race condition in multiprocessing Queue

2018-02-19 Thread Simon Bouchard
New submission from Simon Bouchard : The clear list function call in made after the put(data) on the queue. But the data is sometime clear in the queue (randomly). Since both function are call within the same process, a race condition is not expected. --

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-19 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 ___ Python tracker ___

Re: Gmane seems to be gone

2018-02-19 Thread breamoreboy
On Sunday, February 18, 2018 at 8:23:03 PM UTC, Mark Lawrence wrote: > On 18/02/18 18:03, Grant Edwards wrote: > > On 2018-02-18, Dennis Lee Bieber wrote: > >> On Sun, 18 Feb 2018 17:26:54 + (UTC), Grant Edwards > >> declaimed the following: > >> > >>> > >>> It was

Re: could use some help with this problem! I've been working on it for days but cant seem to get it right !

2018-02-19 Thread breamoreboy
On Tuesday, February 20, 2018 at 5:08:49 AM UTC, Marc Cohen wrote: > USING PYTHON 2: > > Write a program to play this game. This may seem tricky, so break it down > into parts. Like many programs, we have to use nested loops (one loop inside > another). In the outermost loop, we want to keep

[issue32840] Must install python 3.6.3 when 3.6.4 already installed

2018-02-19 Thread Steve Dower
Steve Dower added the comment: We confirmed offline that it's not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue32870] Documentation typo (2.x only) for deque.remove

2018-02-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Python 2 to 3 Conversion

2018-02-19 Thread Chris Angelico
On Tue, Feb 20, 2018 at 10:09 AM, Wildman via Python-list wrote: > Yes, you are correct. Third-party pip packages are always > a no-no. > > Speaking of which, there is a library called Netifaces that > will easily do exactly what I want with a few lines of code. > But, it

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-19 Thread Zachary Ware
Zachary Ware added the comment: I fixed this independently earlier today, tied to bpo-30121 (the issue that introduced the test bug) because I didn't find this one. See PR5758, PR5759 (3.7), and PR5760 (3.6). -- ___ Python

[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2018-02-19 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: OK, never mind with the test. I've finally got to a FreeBSD box and reproduced the problem. It has to do with 'revoke' feature of *BSD. When revoke is called on a terminal device (as part of logout process, for example), all descriptors

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread Steve Dower
Steve Dower added the comment: New changeset a3d6c1b23b8a49b5003fdbd115d3598fe3d4c4bf by Steve Dower (Miss Islington (bot)) in branch '3.7': bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5765)

[issue31848] "aifc" module does not always initialize "Aifc_read._ssnd_chunk"

2018-02-19 Thread Zackery Spytz
Change by Zackery Spytz : -- components: -Tests nosy: +ZackerySpytz type: crash -> behavior versions: +Python 2.7, Python 3.7, Python 3.8 ___ Python tracker

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Rick Johnson
On Friday, February 16, 2018 at 10:25:32 PM UTC-6, Chris Angelico wrote: [...] > This is often touted as a necessity for industrial-grade > software. It isn't. There are many things that a type > system, no matter how sophisticated, cannot catch; for some > reason, though, we don't hear people

[issue32872] backport of #32305 causes regressions in various packages

2018-02-19 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me for making the change 3.7.0+ only - 3.6 isn't doing the right thing, but given folks are relying on it doing the wrong thing, then let's leave it alone given where it is in its lifecycle. --

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread breamoreboy
On Monday, February 19, 2018 at 1:07:02 PM UTC, Anders Wegge Keller wrote: > På Mon, 19 Feb 2018 04:39:31 + (UTC) > Steven D'Aprano skrev: > > On Mon, 19 Feb 2018 04:26:32 +0100, Anders Wegge Keller wrote: > > > > > På Mon, 19 Feb 2018 08:47:14 +1100 > > > Tim Delaney skrev: > > >> On 18

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5543, 5544 ___ Python tracker ___

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5543 ___ Python tracker ___

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5545 ___ Python tracker ___

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-02-19 Thread Steve Dower
Steve Dower added the comment: New changeset 6240917b773b52f8883387b9e3a5f327a4372068 by Steve Dower in branch 'master': bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +5540 stage: needs patch -> patch review ___ Python tracker ___

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-19 Thread Steve Dower
Steve Dower added the comment: Turns out this is a trivial typo in the test, so I stole the issue from Greg and pushed a PR. -- assignee: gregory.p.smith -> steve.dower ___ Python tracker

[issue32820] Add bits method to ipaddress

2018-02-19 Thread Nick Coghlan
Nick Coghlan added the comment: The python-ideas discussion didn't turn up any major concerns we hadn't already considered, so you're in "wait for PR review" mode now. If you wanted to do a self-review in the meantime, then

[issue32859] os.dup2() tests dup3() availability on each call

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5547 ___ Python tracker ___

[issue32859] os.dup2() tests dup3() availability on each call

2018-02-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset b3caf388a0418f6c031e4dbdcc0c1ce7e5cc36bd by Benjamin Peterson (Alexey Izbyshev) in branch 'master': closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)

[issue32859] os.dup2() tests dup3() availability on each call

2018-02-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset bab4fe320ad2e24c1084fd57d2059ef342688aa9 by Benjamin Peterson (Miss Islington (bot)) in branch '3.7': closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)

[issue32859] os.dup2() tests dup3() availability on each call

2018-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +5548 ___ Python tracker ___

[issue4921] Object lifetime and inner recursive function

2018-02-19 Thread Eric Wieser
Eric Wieser added the comment: Would it be possible for function self-reference cell vars to be weak references? This wouldn't solve the issue for co-recursive inner functions, but would at least prevent reference cycles for the more common case of simple

Re: How to reset system proxy using pyhton code

2018-02-19 Thread Thomas Jollans
On 2018-02-19 09:57, Sum J wrote: > Hi, > > I am using below python code (Python 2.7) to reset the proxy of my Ubuntu > (Cent OS 6) system, but I am unable to reset the proxy: I'm sure you know this, but CentOS and Ubuntu are two different things. > > Code : > import os > print

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Chris Angelico
On Mon, Feb 19, 2018 at 7:40 PM, Alain Ketterlin wrote: > Tim Delaney writes: >> C is statically and weakly typed. Variables know their types at compile >> time (static typing). It is a feature of the language that you can

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Terry Reedy
On 2/19/2018 4:14 AM, Chris Angelico wrote: On Mon, Feb 19, 2018 at 7:40 PM, Alain Ketterlin wrote: Tim Delaney writes: C is statically and weakly typed. Variables know their types at compile time (static typing). It is

[issue32872] backport of #32305 causes regressions in various packages

2018-02-19 Thread Matthias Klose
New submission from Matthias Klose : The backport of issue #32305 causes regressions in several packaged namespace packages: https://bugs.debian.org/890621 https://bugs.debian.org/890754 while the change is intended, is it appropriate to backport it to 3.6? Please could you

[issue29612] TarFile.extract() suffers from hard links inside tarball

2018-02-19 Thread Joachim Trouverie
Joachim Trouverie added the comment: Is there anybody working on this issue or can I create a branch concerning it ? -- nosy: +jtrouverie ___ Python tracker

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Alain Ketterlin
Tim Delaney writes: [...] > As others have said, typing is about how the underlying memory is treated. No. It is much more than that. Typing is about everything you can say about a given statement. Some type systems are focusing on type labels only (like most

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Antoon Pardon
On 17-02-18 21:11, Chris Angelico wrote: > On Sun, Feb 18, 2018 at 1:47 AM, Ian Kelly wrote: >> On Fri, Feb 16, 2018 at 9:32 PM, Chris Angelico wrote: >>> You'd be surprised how rarely that kind of performance even matters. >>> The author of that article

How to reset system proxy using pyhton code

2018-02-19 Thread Sum J
Hi, I am using below python code (Python 2.7) to reset the proxy of my Ubuntu (Cent OS 6) system, but I am unable to reset the proxy: Code : import os print "Unsetting http..." os.system("unset http_proxy") os.system("echo $http_proxy") print "http is reset"

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Chris Angelico
On Mon, Feb 19, 2018 at 8:36 PM, Antoon Pardon wrote: > On 17-02-18 21:11, Chris Angelico wrote: >> On Sun, Feb 18, 2018 at 1:47 AM, Ian Kelly wrote: >>> On Fri, Feb 16, 2018 at 9:32 PM, Chris Angelico wrote: You'd be surprised

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Alain Ketterlin
Chris Angelico writes: > On Mon, Feb 19, 2018 at 7:40 PM, Alain Ketterlin > wrote: >> No. C has much stronger rules, not on casting, but on accessing the >> pointees, which basically invalidates your argument. Refer to the C >>

[issue24159] Misleading TypeError when pickling bytes to a file opened as text

2018-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

2018-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have noticed that there are no tests for after() and after_cancel(). Maybe first write tests for them and later add a test for this specific issue to them? -- ___ Python tracker

Python with PyDev on Visual Studio Code

2018-02-19 Thread Fabio Zadrozny
Hi All, I'm happy to announce that PyDev (http://www.pydev.org) can now be used for Python development on Visual Studio Code! The first release already provides features such as code analysis, code completion, go to definition, symbols for the workspace and editor, code formatting, find

[issue32872] backport of #32305 causes regressions in various packages

2018-02-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Both of those upstreams should be using `if getattr(module, '__file__', None)` instead. The old behavior was an undocumented quirk. -- ___ Python tracker

Re: Python with PyDev on Visual Studio Code

2018-02-19 Thread Fabio Zadrozny
Sorry, it was a glitch on the template when moved to another folder (just fixed). On Mon, Feb 19, 2018 at 10:08 AM, ElChino wrote: > Fabio Zadrozny wrote: > > See: http://www.pydev.org/vscode/ for more information! >> > > That page includes so many dead links that it looks >

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Steven D'Aprano
On Mon, 19 Feb 2018 12:35:19 +, bartc wrote: > Type systems get rapidly very complicated when you have to deal with > arbitrary sets of values and with arbitrary rules of interaction. > Someone has to devise a programming language to allow all that without > tying itself up in knots. Someone

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Steven D'Aprano
On Mon, 19 Feb 2018 13:28:26 +, Paul Moore wrote: > [1] The most basic question, which people making such claims often can't > answer, is "Do you mean that values are strongly typed, or that names > are? Or did you mean that variables are, because if so Python doesn't > even have variables in

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Ned Batchelder
On 2/19/18 9:54 AM, Steven D'Aprano wrote: On Mon, 19 Feb 2018 13:28:26 +, Paul Moore wrote: [1] The most basic question, which people making such claims often can't answer, is "Do you mean that values are strongly typed, or that names are? Or did you mean that variables are, because if so

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Steven D'Aprano
On Mon, 19 Feb 2018 12:19:14 +0100, Alain Ketterlin wrote: > Steven D'Aprano writes: > >> On Mon, 19 Feb 2018 09:40:09 +0100, Alain Ketterlin wrote: >> >>> Tim Delaney writes: >>> >>> [...] As others have said, typing is

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Steven D'Aprano
On Mon, 19 Feb 2018 14:06:36 +0100, Anders Wegge Keller wrote: > Array is not even close to providing a strongly typed container. That's a mighty powerful claim that goes against the documentation for the array module. Can you back your claims up? Here's an array and a list: import array arr

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Alain Ketterlin
Chris Angelico writes: > On Mon, Feb 19, 2018 at 9:04 PM, Alain Ketterlin > wrote: >> Look at the C11 standard, section 6.3.2.3 ("Pointers"), 6.5.§6-7 >> ("effective types"), and 6.5.3.2 ("Address and indirection operators"). >> It

[issue32873] Pickling of typing types

2018-02-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In 3.6 typing types are pickled by names: >>> import pickle, pickletools, typing >>> pickletools.optimize(pickle.dumps(typing.List)) b'\x80\x03ctyping\nList\n.' >>>

[issue32388] Remove cross-version binary compatibility

2018-02-19 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list

[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2018-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29612] TarFile.extract() suffers from hard links inside tarball

2018-02-19 Thread TROUVERIE Joachim
Change by TROUVERIE Joachim : -- keywords: +patch pull_requests: +5532 stage: -> patch review ___ Python tracker ___

Re: solve_ivp problem (scipy 1.0.0)

2018-02-19 Thread Thomas Jollans
On 2018-02-18 14:39, A.Brozi wrote: > Hello > > In new "scipy" (1.0.0) I've found procedure "solve_ivp", which makes it > possible to use "events" in order to terminate the ode solution when > some condition is satisfied. > The precise moment of termination (the value of independent variable) is

[OT] multicore/cpu history Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Adriaan Renting
Adriaan Renting| Email: rent...@astron.nl Software Engineer Radio Observatory ASTRON | Phone: +31 521 595 100 (797 direct) P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 595 101 The Netherlands| Web:

Python with PyDev on Visual Studio Code

2018-02-19 Thread Fabio Zadrozny
Hi All, I'm happy to announce that PyDev (http://www.pydev.org) can now be used for Python development on Visual Studio Code! The first release already provides features such as code analysis, code completion, go to definition, symbols for the workspace and editor, code formatting, find

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Anders Wegge Keller
På Mon, 19 Feb 2018 04:39:31 + (UTC) Steven D'Aprano skrev: > On Mon, 19 Feb 2018 04:26:32 +0100, Anders Wegge Keller wrote: > > > På Mon, 19 Feb 2018 08:47:14 +1100 > > Tim Delaney skrev: > >> On 18 February 2018 at

Re: Python 2 to 3 Conversion

2018-02-19 Thread Rhodri James
On 18/02/18 16:18, Wildman via Python-list wrote: But that's only going to show one (uplink) address. If I needed to get ALL addresses for ALL network adapters, I'd either look for a library, and if one wasn't easily found, I'd shell out to the "ip" command and parse its output.:) I considered

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Paul Moore
On 19 February 2018 at 13:06, Anders Wegge Keller wrote: > Python isn't particular strong typed. In fact, apart from asking an object > what type it is, types are not that important. It's the interface that > matters. I wonder why this is a sore point for Python developers?

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Chris Angelico
On Mon, Feb 19, 2018 at 9:04 PM, Alain Ketterlin wrote: > Chris Angelico writes: > >> On Mon, Feb 19, 2018 at 7:40 PM, Alain Ketterlin >> wrote: > >>> No. C has much stronger rules, not on

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Chris Angelico
On Mon, Feb 19, 2018 at 9:24 PM, Steven D'Aprano wrote: > On Mon, 19 Feb 2018 09:40:09 +0100, Alain Ketterlin wrote: > >> Tim Delaney writes: >> >> [...] >>> As others have said, typing is about how the underlying memory is >>>

[issue32387] Disallow untagged C extension import on major platforms

2018-02-19 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list

locstacktrace 1.0.0 - More precise stack traces

2018-02-19 Thread Rocky Bernstein
Want to see more precisely where you are or were at in a traceback or callstack your Python code has several places in a line it could have errored ? Even if the code was something created at runtime with say `eval` or `exec` or there is otherwise no source code? Then this package is for you.

[issue32846] Deletion of large sets of strings is extra slow

2018-02-19 Thread INADA Naoki
INADA Naoki added the comment: @Luis, would you try dict instead of set? It's little larger than set, but delete elements by insertion order. But I don't think builtin data structure can be optimized for such workload. Maybe, LMBD[1] or some other KVS can help you.

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Steven D'Aprano
On Mon, 19 Feb 2018 09:40:09 +0100, Alain Ketterlin wrote: > Tim Delaney writes: > > [...] >> As others have said, typing is about how the underlying memory is >> treated. > > No. It is much more than that. Typing is about everything you can say > about a given

Re: [OT] multicore/cpu history Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Chris Angelico
On Mon, Feb 19, 2018 at 10:39 PM, Adriaan Renting wrote: > I remember running 2 Mendocino 300 MHz Celerons on a Pentium II Xeon > motherboard to get a > multi-cpu machine for running multiple virtual machines for testing > purposes around 1998. > This was not as Intel intended,

[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5531 stage: needs patch -> patch review ___ Python tracker

[issue32858] Improve OpenSSL ECDH support

2018-02-19 Thread Christian Heimes
Christian Heimes added the comment: Please split this issue into multiple issues, a bug report for the curve configuration bug and a feature request for kxinfo. The bug fix may land in 2.7, 3.6 and 3.7 while the new feature can only land in 3.8. Before you start coding,

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Marko Rauhamaa
Alain Ketterlin : > Your claim essentially is: since we cannot prove everything, let's not > even try to prove anything. Go on if you think this is the right way to > think about typing. This discussion is far too metaphysical. Static type declarations

Re: Python with PyDev on Visual Studio Code

2018-02-19 Thread ElChino
Fabio Zadrozny wrote: See: http://www.pydev.org/vscode/ for more information! That page includes so many dead links that it looks like a joke. -- https://mail.python.org/mailman/listinfo/python-list

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Alain Ketterlin
Steven D'Aprano writes: > On Mon, 19 Feb 2018 09:40:09 +0100, Alain Ketterlin wrote: > >> Tim Delaney writes: >> >> [...] >>> As others have said, typing is about how the underlying memory is >>> treated. >> >> No. It is much

[issue32858] Improve OpenSSL ECDH support

2018-02-19 Thread sruester
sruester added the comment: AppVeyor build failed for pull request 5707. It looks like there was a problem with the build environment. -- ___ Python tracker

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread bartc
On 19/02/2018 02:59, Chris Angelico wrote: On Mon, Feb 19, 2018 at 1:14 PM, bartc wrote: How would even a type for the odd numbers from 1 to 10 inclusive work? (That, a type consisting of one of the values in {1,3,5,7,9}.) Would they be ordered or unordered? Can I do

python-can v2.1.0 has been released

2018-02-19 Thread Brian Thorne
Hi all, I'm happy to announce a new version of python-can - version 2.1.0 The last few months have had plenty of changes and bug fixes while we stabalised version 2.0 (which was released in mid Jan). Highlights from the changelog: Support for out of tree can interfaces with pluggy.

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Steven D'Aprano
On Mon, 19 Feb 2018 20:14:32 +1100, Chris Angelico wrote: > As an integer, 3.141590 is 107853 $ > > Looks to me like C is perfectly happy to interpret a float as an int. Yes, but that's not an *automatic* coercion. To count as weakly typed, the compiler has to do it automatically, without

[issue32873] Pickling of typing types

2018-02-19 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Here is the situation for 3.6 and before: Generic classes are all actual class objects, so they are pickled as immutable. However this creates a problem, parameterized generics, such as `List[int]` _cannot_ be pickled in 3.6 and

[issue32873] Pickling of typing types

2018-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it would be better to pickle `typing.List[int]` as `operator.getitem(typing.List, int)`. def __reduce__(self): if self._special: return self._name # __module__ = 'typing' index =

[issue23462] All os.exec*e variants crash on Windows

2018-02-19 Thread Steve Dower
Change by Steve Dower : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

  1   2   >