Re: Simple graphic library for beginners

2018-01-11 Thread Steven D'Aprano
On Fri, 12 Jan 2018 12:45:04 +1300, Gregory Ewing wrote: > Seems to me it would help if pip were to announce which version of > Python it's installing things into. And instead of just saying "not > compatible with this version of Python", say "not compatible with Python > X.Y.Z". That would make

Re: Simple graphic library for beginners

2018-01-11 Thread Jan Erik Moström
On 10 Jan 2018, at 13:40, Jan Erik Moström wrote: I'm looking for a really easy to use graphic library. The target users are teachers who have never programmed before and is taking a first (and possible last) programming course. Thanks for all the suggestions, I'm going to take a look at

Re: Simple graphic library for beginners

2018-01-11 Thread Steven D'Aprano
On Fri, 12 Jan 2018 12:14:03 +1100, Chris Angelico wrote: > On Fri, Jan 12, 2018 at 11:57 AM, Steven D'Aprano > wrote: [...] >> Recent Pythons include "ensure pip" by default, which is a private >> version of pip which is intended to do nothing but install

[issue31145] PriorityQueue.put() fails with TypeError if priority_number in tuples of (priority_number, data) are the same.

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

[issue31145] PriorityQueue.put() fails with TypeError if priority_number in tuples of (priority_number, data) are the same.

2018-01-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 0c3be9651f4f149f4a78bb7043d26db9e75cabc0 by Raymond Hettinger in branch 'master': bpo-31145: Use dataclasses to create a prioritization wrapper (#5153)

[issue32533] SSLSocket read/write thread-unsafety

2018-01-11 Thread Alexey Baldin
Alexey Baldin added the comment: I'd gather errno and win error into local variables (or struct) just after SSL call and then pass them to PySSL_SetError. -- ___ Python tracker

Re: PSF grant for "Shed Skin" to python 3.x?

2018-01-11 Thread Terry Reedy
On 1/11/2018 4:49 PM, Dan Stromberg wrote: Hi folks. Is anyone on the list familiar with the process of getting a Python Software Foundation grant awarded to a worthy project? And with what's generally considered "worthy"? The best people to answer that are the grants committee. Is there

[issue32467] dict_values isn't considered a Collection nor a Container

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

[issue32449] MappingView must inherit from Collection instead of Sized

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

[issue32467] dict_values isn't considered a Collection nor a Container

2018-01-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 02556fbade5e1e864dd09d5768a8dbbf5b3a0dac by Raymond Hettinger in branch 'master': bpo-32467: Let collections.abc.ValuesView inherit from Collection (#5152)

Re: Simple graphic library for beginners

2018-01-11 Thread Terry Reedy
On 1/11/2018 6:35 PM, Gregory Ewing wrote: bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). I suspect some of your problems might have been caused by 'pip'

Re: Simple graphic library for beginners

2018-01-11 Thread Terry Reedy
On 1/11/2018 3:34 PM, Dietmar Schwertberger wrote: On 1/11/2018 8:51 PM, bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). You can't expect that people

Re: Simple graphic library for beginners

2018-01-11 Thread Terry Reedy
On 1/11/2018 2:51 PM, bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). The recommended way to run pip and similar python code is -m pip install xyz where

Re: Simple graphic library for beginners

2018-01-11 Thread Ned Batchelder
On 1/11/18 8:21 PM, bartc wrote: On 11/01/2018 23:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: I'm almost ready to plonk you, but I think there is still SOME value in your posts. But please, stop denigrating what you don't understand. And

[issue32535] msvcr140.dll has been replaced with vcruntime140.dll

2018-01-11 Thread Steve Dower
Steve Dower added the comment: The CRT isn't a simple DLL anymore, and MinGW isn't a fully supported compiler either. You're going to be best to work with the people behind mingwpy to get it working, as there really isn't anything we can do on our end (though I do

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 12:21 PM, bartc wrote: > On 11/01/2018 23:23, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: > > >> I'm almost ready to plonk you, but I think there is still SOME value >> in your posts. But please, stop

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 23:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: I'm almost ready to plonk you, but I think there is still SOME value in your posts. But please, stop denigrating what you don't understand. And please try to see things from the

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 11:57 AM, Steven D'Aprano wrote: > On Fri, 12 Jan 2018 05:42:03 +1100, Chris Angelico wrote: > >> On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: > [...] >>> Except my Python 3.6 doesn't have pip. There is a however a

Re: Simple graphic library for beginners

2018-01-11 Thread Steven D'Aprano
On Fri, 12 Jan 2018 05:42:03 +1100, Chris Angelico wrote: > On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: [...] >> Except my Python 3.6 doesn't have pip. There is a however a copy in my >> Python 3.4. But that gives me the message: > > Why doesn't it? Recent Pythons should

[issue32535] msvcr140.dll has been replaced with vcruntime140.dll

2018-01-11 Thread Bruno Abreu Calfa
Bruno Abreu Calfa added the comment: Correct. I installed the x86_64 version from mingw32-w64 (https://mingw-w64.org, v5.0.3). I found this post https://mingwpy.github.io/ucrt.html, which actually references a post of yours. I honestly don't know if UCRT is supported by

[issue32535] msvcr140.dll has been replaced with vcruntime140.dll

2018-01-11 Thread Steve Dower
Steve Dower added the comment: A little bit. You're trying to build with mingw32? Do they support linking against the UCRT? -- ___ Python tracker

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-11 Thread Gregory Ewing
Robert O'Shea wrote: I wrote a little bytecode interpreter in C (maybe should have upgrade to C++ but not yet) Don't feel bad about that -- IMO, C is perfectly fine for tnis kind of thing, and "upgrading" to C++ would gain you nothing while introducing extra headaches. -- Greg --

Re: Simple graphic library for beginners

2018-01-11 Thread Gregory Ewing
Ned Batchelder wrote: so "pip install pygame" should work. Some people seem so determined to dislike a thing, they cannot be convinced there are solutions to their problems. But it clearly didn't work for bartc at first, and the error messages he got didn't make it at all clear why. You

Re: Simple graphic library for beginners

2018-01-11 Thread Gregory Ewing
bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). I suspect some of your problems might have been caused by 'pip' not using the Python you thought it was

Re: Simple graphic library for beginners

2018-01-11 Thread MRAB
On 2018-01-11 23:11, bartc wrote: On 11/01/2018 22:32, Chris Angelico wrote: On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: As I understand it, pygame is just another add-on, which doesn't inherently need to use .whl format, and which doesn't inherently need to use 'pip'

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 10:11 AM, bartc wrote: > On 11/01/2018 22:32, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: > > >>> As I understand it, pygame is just another add-on, which doesn't >>> inherently >>> need to use .whl format,

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 22:32, Chris Angelico wrote: On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: As I understand it, pygame is just another add-on, which doesn't inherently need to use .whl format, and which doesn't inherently need to use 'pip' package installer. I even saw

[issue32535] msvcr140.dll has been replaced with vcruntime140.dll

2018-01-11 Thread Bruno Abreu Calfa
Bruno Abreu Calfa added the comment: Steve, I tried building the pyhsmm project (https://github.com/mattjj/pyhsmm) using: python setup.py build -c mingw32 I got a link error saying that -lmsvcr140 could not be found. Then I realized that msvcr140.dlll doesn't exist.

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 9:52 AM, Skip Montanaro wrote: >> So besides just grabbing a chunk of CPython source code and digesting it, I >> was wondering if those of you have read and understood the source code, do >> you have any tips or good starting points? > > Not

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-11 Thread Skip Montanaro
> So besides just grabbing a chunk of CPython source code and digesting it, I > was wondering if those of you have read and understood the source code, do > you have any tips or good starting points? Not mentioned yet, but maybe worth considering, might be to dip into the way back machine and

[issue32533] SSLSocket read/write thread-unsafety

2018-01-11 Thread Steve Dower
Steve Dower added the comment: Almost seems like an unwinnable race here. We need to collect the error numbers before reacquiring the GIL (which could change some of them), but then if we update the object after getting the lock back we could still have raced with

[issue32535] msvcr140.dll has been replaced with vcruntime140.dll

2018-01-11 Thread Steve Dower
Steve Dower added the comment: Where is that code? Presumably in distutils, and yet distutils has worked just fine for the 3.5 and 3.6 releases. Perhaps you can clarify the bug report into something we can understand and investigate? That only thing in that thread I

[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-11 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Serhiy, I am sorry for a delay, I have recently moved to another country, this is why I have not much time. I will try to work on this weekend. Here are some points where you can be helpful: * Make a short documentation PR for

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 9:21 AM, bartc wrote: > On 11/01/2018 20:53, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 7:34 AM, bartc wrote: > > >>> It failed on my 3.6, it failed on 3.4, it failed on 3.7 (is what 'pip' >>> does >>> really so leading edge?),

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 20:53, Chris Angelico wrote: On Fri, Jan 12, 2018 at 7:34 AM, bartc wrote: It failed on my 3.6, it failed on 3.4, it failed on 3.7 (is what 'pip' does really so leading edge?), and finally worked on a brand-new 3.6. In case you haven't figured it out by now,

PSF grant for "Shed Skin" to python 3.x?

2018-01-11 Thread Dan Stromberg
Hi folks. Is anyone on the list familiar with the process of getting a Python Software Foundation grant awarded to a worthy project? And with what's generally considered "worthy"? I found https://www.python.org/psf/records/board/resolutions/ , but almost all of the grants seem to be for

Re: Simple graphic library for beginners

2018-01-11 Thread breamoreboy
On Thursday, January 11, 2018 at 8:34:30 PM UTC, bartc wrote: > On 11/01/2018 20:12, Chris Angelico wrote: > > On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: > >> On 11/01/2018 19:41, Paul Moore wrote: > >>> > >>> On 11 January 2018 at 18:33, bartc wrote: > >> >

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 7:34 AM, bartc wrote: > On 11/01/2018 20:12, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: >>> >>> On 11/01/2018 19:41, Paul Moore wrote: On 11 January 2018 at 18:33, bartc

Re: Simple graphic library for beginners

2018-01-11 Thread Dietmar Schwertberger
On 1/11/2018 8:51 PM, bartc wrote: I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, this time with the 'set environment variables' option (to allow 'pip' to be typed from anywhere). You can't expect that people provide binary installers for Python versions that are

Re: Simple graphic library for beginners

2018-01-11 Thread Oivvio Polite
On ons, jan 10, 2018 at 01:40:28 +0100, Jan Erik Moström wrote: > I'm looking for a really easy to use graphic library. The target users are > teachers who have never programmed before and is taking a first (and > possible last) programming course. > I do a two day workshop for design and

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 20:12, Chris Angelico wrote: On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: On 11/01/2018 19:41, Paul Moore wrote: On 11 January 2018 at 18:33, bartc wrote: python -m pip install XXX just works, for 99% of things anyone wants. In

[issue32535] msvcr140.dll has been replaced with vcruntime140.dll

2018-01-11 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can I help? I'm implementing the feature related to pickling classes, and want to implement pickling generic types as an example. But since PEP 560 will change all here, I need to wait this change. --

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 7:02 AM, bartc wrote: > On 11/01/2018 19:41, Paul Moore wrote: >> >> On 11 January 2018 at 18:33, bartc wrote: > > >> python -m pip install XXX >> >> just works, for 99% of things anyone wants. In particular it works for >> pygame.

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 19:41, Paul Moore wrote: On 11 January 2018 at 18:33, bartc wrote: python -m pip install XXX just works, for 99% of things anyone wants. In particular it works for pygame. Continuing to complain about a situation that has been resolved for a year or more

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 6:51 AM, bartc wrote: > On 11/01/2018 18:42, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: > > >>> Well, that seemed to do something, and it didn't need me to download any >>> .whl files. But then I noticed a

Re: Simple graphic library for beginners

2018-01-11 Thread Paul Moore
On 11 January 2018 at 19:51, bartc wrote: > I downloaded Python 3.7. It didn't work. I uninstalled and reinstalled it, > this time with the 'set environment variables' option (to allow 'pip' to be > typed from anywhere). Stop trolling. Python 3.7 final hasn't been released yet.

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 18:42, Chris Angelico wrote: On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: Well, that seemed to do something, and it didn't need me to download any .whl files. But then I noticed a bunch of errors culminating with: "Command python setup.py egg_info failed with

[issue32346] Speed up slot lookup for class creation

2018-01-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 11/01/2018 à 20:25, Serhiy Storchaka a écrit : > > I'm not sure how this caching works when change the parent class after > creating the child class. The caching is invalidated at the same place the method cache is invalidated. > Without

[issue27643] test_ctypes fails on AIX with xlc

2018-01-11 Thread Michael Felt
Michael Felt added the comment: On 04/08/2016 10:58, Martin Panter wrote: > Martin Panter added the comment: > > Okay, so to be clear, I am assuming XLC supports all of the following fields, > and uses unsigned bit fields by default: > > struct UNSIGNED_BITS { >

Re: Simple graphic library for beginners

2018-01-11 Thread Paul Moore
On 11 January 2018 at 18:33, bartc wrote: >> Go. Fetch. Stop fudding. > > And you know this link, how? Because googling for 'download pygame', it > doesn't appear on the first page (or in any of the next half dozen). Using your search phrase, the first results I get are: 1.

[issue30698] asyncio sslproto do not shutdown ssl layer cleanly

2018-01-11 Thread Grzegorz Grzywacz
Grzegorz Grzywacz added the comment: No, this PR originally fix similar but different issue. However it also fix issue29406 as a side effect. -- ___ Python tracker

[issue31113] Stack overflow with large program

2018-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Antoine. I have merged the PR since resolving issue24340 allowed to simplify the code for the stack depth calculation. -- resolution: -> fixed stage: patch review -> resolved status: open ->

[issue24340] co_stacksize estimate can be highly off

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

[issue32346] Speed up slot lookup for class creation

2018-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The relative speed up looks nice. But it is just few microseconds per class. You have to create many thousands of classes to gain a significant fraction of second. And the complexity added by this patch is not tiny. I'm not

[issue27643] test_ctypes fails on AIX with xlc

2018-01-11 Thread Michael Felt
Michael Felt added the comment: On 30/07/2016 02:51, Martin Panter wrote: > Martin Panter added the comment: > > > ./python -m unittest -v ctypes.test.test_bitfields > > What I am suggesting as a fix is to change line 381 from plain “int” to > “signed int”, and 382 to

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2018-01-11 Thread Alexander Mohr
Alexander Mohr added the comment: my understanding is that the PR in https://bugs.python.org/issue30698 fixes this issue no? If so can we get it merged? -- ___ Python tracker

[issue30698] asyncio sslproto do not shutdown ssl layer cleanly

2018-01-11 Thread Alexander Mohr
Alexander Mohr added the comment: @grzgrzgrz3, does this resolve the issue in https://bugs.python.org/issue29406 ? I'm guessing you based this PR on that issue. If so I'd like it merged ASAP as otherwise our prod services will be incompatible with all future python

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 5:33 AM, bartc wrote: > On 11/01/2018 15:23, Chris Angelico wrote: >> >> On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: > > >>> Although I can't run it because 'pygame' is not available. I think >>> installing this library is likely to be

[issue31096] asyncio.stream.FlowControlMixin._drain_helper may lead to a blocking behavior

2018-01-11 Thread Greg Lindahl
Change by Greg Lindahl : -- nosy: +wumpus ___ Python tracker ___ ___ Python-bugs-list

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 15:23, Chris Angelico wrote: On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: Although I can't run it because 'pygame' is not available. I think installing this library is likely to be a bigger obstacle than programming any graphics! (If I try and download it as

[issue29992] Expose parse_string in JSONDecoder

2018-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Bob. -- ___ Python tracker ___

[issue29992] Expose parse_string in JSONDecoder

2018-01-11 Thread Bob Ippolito
Bob Ippolito added the comment: Generally speaking, parsing some things as decimal or datetime are schema dependent. It's unlikely that you would want to parse every string that looks enough like a decimal as a decimal, or that you would want to pay the cost of checking

[issue31113] Stack overflow with large program

2018-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 782d6fe4434381c50e0c7ec94a1ef9c6debbc333 by Serhiy Storchaka in branch 'master': bpo-31113: Get rid of recursion in the compiler for normal control flow. (#3015)

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
YoSTEALTH added the comment: here is the links to benchmark: https://repl.it/@altendky/timeit-of-proposed-shutilfileobjcopy https://gist.github.com/altendky/ff5ccee2baf9822dce69ae8aa66a0fdf https://paste.pound-python.org/show/urORPXztcbDlqXKTORAj/ # time

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2018-01-11 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- assignee: belopolsky -> ___ Python tracker ___

[issue32535] msvcr140.dll has been replaced with vcruntime140.dll

2018-01-11 Thread Bruno Abreu Calfa
New submission from Bruno Abreu Calfa : File msvcr140.dll does not exist after installing Microsoft Visual C++ 2015 Redistributable or Visual Studio 2015. It has been replaced with vcruntime140.dll. See discussion here:

Re: Simple graphic library for beginners

2018-01-11 Thread Ned Batchelder
On 1/11/18 10:23 AM, Chris Angelico wrote: On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: On 11/01/2018 05:16, Michael Torrie wrote: On 01/10/2018 01:13 PM, bartc wrote: Yes the link didn't have the simple examples I hoped for. How's this: -

[issue12178] csv writer doesn't escape escapechar

2018-01-11 Thread Sebastian Bank
Sebastian Bank added the comment: Hi, is there something we can do to get this going? As the issue breaks round-trip, it currently requires work-arounds like this: https://github.com/cldf/csvw/blob/1324550266c821ef32d1e79c124191e93aefbfa8/csvw/dsv.py#L67-L71

Re: PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Harriett Xing
Thanks for the info. I found two copies of pip.exe. One of them was left from a previous installation. Removed the extra copy. Now pip is working. Thank you very much for your help. On Thu, Jan 11, 2018 at 10:46 AM, Harriett Xing wrote: > Thanks for the info. >

Re: PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Harriett Xing
Thanks for the info. "python -m pip " works. Python Path: C:\Users\harriett.xing-adm\AppData\Local\Programs\Python\Python36 C:\Users\harriett.xing-adm\Documents\Learning\python>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",

Re: PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Paul Moore
Glad it's working for you. You don't say where your pip.exe command is located, but I suspect what's happening is that you're picking up a pip.exe from an old and since uninstalled copy of Python. But at least you can use pip now which is the main thing :-) Paul On 11 January 2018 at 15:46,

Re: Simple graphic library for beginners

2018-01-11 Thread Michael Torrie
On 01/11/2018 06:38 AM, bartc wrote: > Although I can't run it because 'pygame' is not available. I think > installing this library is likely to be a bigger obstacle than > programming any graphics! > > (If I try and download it as a ready-built library for Windows, it has a > range of .msi

Re: Simple graphic library for beginners

2018-01-11 Thread Chris Angelico
On Fri, Jan 12, 2018 at 12:38 AM, bartc wrote: > On 11/01/2018 05:16, Michael Torrie wrote: >> >> On 01/10/2018 01:13 PM, bartc wrote: > > >> Yes the link didn't have the simple examples I hoped for. How's this: >> - >> import pygame >> import time >>

[issue31590] CSV module incorrectly treats escaped newlines as new records if unquoted

2018-01-11 Thread Sebastian Bank
Sebastian Bank added the comment: https://bugs.python.org/issue15927#msg309811 gives sme code examples illustrating why I think this should be backported (and also the documentation should be changed for both Python 2 and 3). -- nosy: +xflr6

[issue32467] dict_values isn't considered a Collection nor a Container

2018-01-11 Thread Yahya Abou Imran
Yahya Abou Imran added the comment: Perfect for me. I was about to submit about the same patch as yours after your acceptation; but it's better that way, it's your module! Thanks Raymond. -- ___ Python tracker

Re: PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Paul Moore
Have you done any research (google, for example) and tried any of the suggested solutions on the web? >From a quick search, I'd suggest: 1. Can you confirm if "python -m pip " has the same error? 2. What is the exact path of the pip executable you're running, and if you go into the Python prompt

[issue32534] Speed-up list.insert

2018-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In your benchmarks the difference between thresholds is only 4%. It would be not worth to keep a special case for such small benefit. But note that in your benchmarks you inserted in a list with the size up to 5 elements.

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2018-01-11 Thread Sebastian Bank
Sebastian Bank added the comment: I am not sure about the design vs. code bug distinction, but what makes me think this should be fixed is primarily the broken round-trip (already mentioned above): >>> import io, csv >>> def roundtrip(value, **fmtparams):

PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Harriett Xing
I am getting the message: Fatal error in launcher: Unable to create process using '"' for all pip commands. I tried uninstalling and installing different versions of python, but the pip is still not work, getting the same error message. Has anyone encountered this? Any ideas? Thanks. --

PIP message: Fatal error in launcher: Unable to create process using '"'

2018-01-11 Thread Harriett Xing
I am getting the message: Fatal error in launcher: Unable to create process using '"' for all pip commands. I tried uninstalling and installing different versions of python, but the pip is still not work, getting the same error message. Has anyone encountered this? Any ideas? Thanks. --

[issue32534] Speed-up list.insert

2018-01-11 Thread Jeethu Rao
Jeethu Rao added the comment: I tried it with a couple of different thresholds, twice each, ignoring the results of the first run. 16 seems to be the sweet spot. THRESHOLD = 0 jeethu@dev:cpython (3.7_list_insert_memmove)$ ./python -m timeit -s "l = []" "for _ in

[issue32534] Speed-up list.insert

2018-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What are results when set the threshold to 0 or 1? -- nosy: +serhiy.storchaka ___ Python tracker

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread Christian Heimes
Christian Heimes added the comment: I already blocked the PR with a request for benchmarks and proper tests. -- nosy: +christian.heimes ___ Python tracker

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please provide benchmark results to demonstrate the benefits of this change. -- nosy: +serhiy.storchaka ___ Python tracker

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-11 Thread Robert O'Shea
Thanks all for the links and suggestions, they are greatly appreciated. I might be programming for a long time (relative to my age) but I haven't touched much on compilers or interpreters. Inspired a but by Python's interpreter I wrote a little bytecode interpreter in C (maybe should have upgrade

[issue32534] Speed-up list.insert

2018-01-11 Thread Jeethu Rao
Change by Jeethu Rao : -- keywords: +patch pull_requests: +5017 stage: -> patch review ___ Python tracker ___

[issue32534] Speed-up list.insert

2018-01-11 Thread Jeethu Rao
New submission from Jeethu Rao : I've noticed that replacing the for loop in the ins1 function in listobject.c with a memmove when the number of pointers to move is greater than 16 seems to speed up list.insert by about 3 to 4x on a contrived benchmark. # Before

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-11 Thread bbayles
Change by bbayles : -- pull_requests: +5016 ___ Python tracker ___ ___ Python-bugs-list

[issue32102] Add "capture_output=True" option to subprocess.run

2018-01-11 Thread bbayles
Change by bbayles : -- keywords: +patch pull_requests: +5015 stage: needs patch -> patch review ___ Python tracker ___

[issue32533] SSLSocket read/write thread-unsafety

2018-01-11 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +steve.dower ___ Python tracker ___ ___

Re: Simple graphic library for beginners

2018-01-11 Thread bartc
On 11/01/2018 05:16, Michael Torrie wrote: On 01/10/2018 01:13 PM, bartc wrote: Yes the link didn't have the simple examples I hoped for. How's this: - import pygame import time pygame.init() screen = pygame.display.set_mode((1024, 768) ) red = (255,0,0) green =

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
Change by YoSTEALTH : -- pull_requests: +5014 ___ Python tracker ___ ___

[issue32533] SSLSocket read/write thread-unsafety

2018-01-11 Thread Alexey Baldin
New submission from Alexey Baldin : _ssl.c has thread-usafe code in implementation of read, write and other methods. E.g. 'write' method: 2099PySSL_BEGIN_ALLOW_THREADS 2100len = SSL_write(self->ssl, b->buf, (int)b->len); 2101

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
YoSTEALTH added the comment: Ok, updated the patch to account for: - improved memory usage for bytes io using readinto - still supporting negative length - potential encoding mismatch bug fix while using text io did i miss anything? --

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
Change by YoSTEALTH : -- pull_requests: -5004 ___ Python tracker ___ ___

ANN: Python Meeting Düsseldorf - 17.01.2018

2018-01-11 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
Change by YoSTEALTH : -- keywords: +patch pull_requests: +5013 stage: -> patch review ___ Python tracker ___

[issue27435] ctypes library loading and AIX - also for 2.7.X (and later)

2018-01-11 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +5012 stage: -> patch review ___ Python tracker ___

Re: Pandas printing in jupyter

2018-01-11 Thread Rustom Mody
On Thursday, January 11, 2018 at 2:49:27 PM UTC+5:30, Thomas Jollans wrote: > On 2018-01-11 09:59, Rustom Mody wrote: > > On Thursday, January 11, 2018 at 2:13:46 PM UTC+5:30, Paul Moore wrote: > >> The HTML representation is supplied by the object's _repr_html_ > >> method. See

  1   2   >