How to use feedparpser to gain all RSS contents?

2017-05-16 Thread seraphcj
When using feedparpser object as below, it only contains 25 items, how can i have all contents? for example, d= feedparser.parse('http://newyork.craigslist.org/stp/index.rss') print(len(d['entries'][i]['summary'])) result is 25 -- https://mail.python.org/mailman/listinfo/python-list

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Wed, May 17, 2017 at 4:31 PM, Deborah Swanson wrote: > But the myth that modern Windows users are safe from malware is just > that, a myth. I have plenty of Microsoftie friends who tell me privately > that this is so. Which is why people who care about security use BSD, not Windows. ChrisA --

Re: How to install Python package from source on Windows

2017-05-16 Thread Gregory Ewing
Dennis Lee Bieber wrote: I ended up having to download sources for 4.8, 4.7, and 4.6... And use GCC 4.9 to build 4.8, 4.8 to build 4.7, and 4.7 to build 4.6 -- I was NOW ready to build DragonEgg! Could you not find a suitable binary package of 4.6 anywhere? -- Greg -- https://mail.python.org/m

Referring to a module by a string without using eval()

2017-05-16 Thread jeanbigboute
I am trying to write some recursive code to explore the methods, classes, functions, builtins, etc. of a package all the way down the hierarchy. 1) Preliminaries In [2]: def explore_pkg(pkg): ...: return dir(pkg) ...: In [3]: import numpy as np In [4]: l2 = explore_pkg(np.random)

RE: How to install Python package from source on Windows

2017-05-16 Thread Deborah Swanson
Chris Angelico wrote, on Tuesday, May 16, 2017 9:50 PM > > On Wed, May 17, 2017 at 2:14 PM, Deborah Swanson > wrote: > > So please, all of you, stop beating me up about continuing > to use XP. > > It really is a fine operating system, but everyone else > wants to get > > on with their lives

Re: getting the center of mass of each part of a molecule

2017-05-16 Thread John Ladasky
On Monday, May 15, 2017 at 7:23:52 PM UTC-7, jeanbi...@gmail.com wrote: > What may make this tricky is that the vinyl group can rotate at the point > where it attaches to the benzene ring so the full molecule may not lie in a > plane. But the OP has coordinates for each atom which are used in th

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Wed, May 17, 2017 at 2:14 PM, Deborah Swanson wrote: > So please, all of you, stop beating me up about continuing to use XP. It > really is a fine operating system, but everyone else wants to get on > with their lives and stop supporting it. Not my fault, nor is it > something I should be conti

RE: How to install Python package from source on Windows

2017-05-16 Thread Deborah Swanson
Nathan Ernst wrote, on Tuesday, May 16, 2017 8:33 PM > Deborah, long term, you have to realize that if you insist on > sticking to WinXP, the rest of the world will, eventually, > leave you behind.Software vendors want to support the fewest > platforms/configurations as possible. XP is not sup

Re: How to install Python package from source on Windows

2017-05-16 Thread Nathan Ernst
MS used to, I'm not sure if they still do, provide a separate C++ SDK that included the compiler, but not the full IDE. It was still quite a large download at ~128MB. But, it included only the command-line compiler, linker & std lib. Starting with VS2017, the ABI is supposedly stable going foward

Re: How to install Python package from source on Windows

2017-05-16 Thread Terry Reedy
On 5/16/2017 5:30 AM, Mark Summerfield via Python-list wrote: I think the problem that Deborah has encountered is a more general one on Windows: many pip-installable packages assume that a C compiler is available. Now an "obvious" solution is for pip to recognise that a C compiler is needed and

Re: How to install Python package from source on Windows

2017-05-16 Thread Terry Reedy
On 5/16/2017 5:14 PM, bartc wrote: On 16/05/2017 21:18, breamore...@gmail.com wrote: On Tuesday, May 16, 2017 at 5:09:34 PM UTC+1, bartc wrote: I can't test with Python because it's too complicated to compile, especially on Windows. What is the problem with the documentation given here htt

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Wed, May 17, 2017 at 10:41 AM, bartc wrote: > On 17/05/2017 00:24, Chris Angelico wrote: >> >> On Wed, May 17, 2017 at 9:01 AM, bartc wrote: > > >> You mean like wheel files? Yeah, whodathunk. They don't need a C >> compiler or anything. > > > I don't know if that's the same kind of thing. I'm

Re: How to install Python package from source on Windows

2017-05-16 Thread bartc
On 17/05/2017 00:24, Chris Angelico wrote: On Wed, May 17, 2017 at 9:01 AM, bartc wrote: You mean like wheel files? Yeah, whodathunk. They don't need a C compiler or anything. I don't know if that's the same kind of thing. I'm not talking about something like a binary distribution or somet

Re: How to install Python package from source on Windows

2017-05-16 Thread bartc
On 17/05/2017 00:42, Michael Torrie wrote: On 05/16/2017 05:01 PM, bartc wrote: It should be a piece of cake, yes? If TCC implements the standard sufficiently, then yes it's possible. However it won't be easy because the Python build tools are geared towards the dominant compilers (GCC and V

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Wed, May 17, 2017 at 9:31 AM, Michael Torrie wrote: > On 05/16/2017 04:33 PM, Chris Angelico wrote: >> Then you are stuck in your own little bubble. That's fine as long as >> you never try to foist your software OR your system on anyone else. >> The rest of us collaborate with other people. > >

Re: How to install Python package from source on Windows

2017-05-16 Thread Michael Torrie
On 05/16/2017 05:01 PM, bartc wrote: > And it sounds like the CPython developers have never used a compiler > other than gcc or MSVC, and the latter only reluctantly. It's more a matter of choosing the best compiler to support the many different platforms you wish to support. GCC is the defacto

Re: How to install Python package from source on Windows

2017-05-16 Thread Michael Torrie
On 05/16/2017 04:33 PM, Chris Angelico wrote: > Then you are stuck in your own little bubble. That's fine as long as > you never try to foist your software OR your system on anyone else. > The rest of us collaborate with other people. I don't collaborate with other people. However I still use git

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Wed, May 17, 2017 at 9:01 AM, bartc wrote: > On 16/05/2017 23:33, Chris Angelico wrote: >> >> On Wed, May 17, 2017 at 8:17 AM, bartc wrote: > > >> Then you are stuck in your own little bubble. That's fine as long as >> you never try to foist your software OR your system on anyone else. >> The

Re: How to install Python package from source on Windows

2017-05-16 Thread bartc
On 16/05/2017 23:33, Chris Angelico wrote: On Wed, May 17, 2017 at 8:17 AM, bartc wrote: Then you are stuck in your own little bubble. That's fine as long as you never try to foist your software OR your system on anyone else. The rest of us collaborate with other people. Other people who MU

Re: How to install Python package from source on Windows

2017-05-16 Thread bartc
On 16/05/2017 23:15, breamore...@gmail.com wrote: On Tuesday, May 16, 2017 at 10:19:06 PM UTC+1, Chris Angelico wrote: On Wed, May 17, 2017 at 7:14 AM, bartc wrote: That PCbuild line is step 3 of Quick Start. You have to get past steps 1 and 2 first. It talks about something called Git; I don't

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Wed, May 17, 2017 at 8:17 AM, bartc wrote: > On 16/05/2017 22:18, Chris Angelico wrote: >> >> On Wed, May 17, 2017 at 7:14 AM, bartc wrote: >>> >>> That PCbuild line is step 3 of Quick Start. You have to get past steps 1 >>> and >>> 2 first. It talks about something called Git; I don't know wh

Re: How to install Python package from source on Windows

2017-05-16 Thread bartc
On 16/05/2017 22:18, Chris Angelico wrote: On Wed, May 17, 2017 at 7:14 AM, bartc wrote: That PCbuild line is step 3 of Quick Start. You have to get past steps 1 and 2 first. It talks about something called Git; I don't know what that is or what I'm supposed to do with it, but it's a 35MB downl

Re: How to install Python package from source on Windows

2017-05-16 Thread mm0fmf
On 16/05/2017 22:18, Chris Angelico wrote: On Wed, May 17, 2017 at 7:14 AM, bartc wrote: That PCbuild line is step 3 of Quick Start. You have to get past steps 1 and 2 first. It talks about something called Git; I don't know what that is or what I'm supposed to do with it, but it's a 35MB downl

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Wed, May 17, 2017 at 7:14 AM, bartc wrote: > That PCbuild line is step 3 of Quick Start. You have to get past steps 1 and > 2 first. It talks about something called Git; I don't know what that is or > what I'm supposed to do with it, but it's a 35MB download. (Not that that is > very big these

Re: How to install Python package from source on Windows

2017-05-16 Thread bartc
On 16/05/2017 21:18, breamore...@gmail.com wrote: On Tuesday, May 16, 2017 at 5:09:34 PM UTC+1, bartc wrote: I can't test with Python because it's too complicated to compile, especially on Windows. What is the problem with the documentation given here https://docs.python.org/devguide ? Sp

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Wed, May 17, 2017 at 2:09 AM, bartc wrote: > But if I use tcc to compile /my/ byte-code interpreter, and then run the > interpreter on a computationally intensive benchmark (jpeg decoding), I get > these results for a given input file: > > Tiny C 6.7 seconds > gcc -O33.6 seconds > > So

Re: Survey: improving the Python std lib docs

2017-05-16 Thread rzed
On Friday, May 12, 2017 at 6:02:58 AM UTC-4, Steve D'Aprano wrote: > One of the more controversial aspects of the Python ecosystem is the Python > docs. Some people love them, and some people hate them and describe them as > horrible. > [...] One thing I would love to see in any function or class

Re: getting the center of mass of each part of a molecule

2017-05-16 Thread John Ladasky
On Monday, May 15, 2017 at 10:23:12 PM UTC-7, qasi...@gmail.com wrote: > @Cameron: > Thanks, I will try what you suggest. I am not sure that I'll tackle it > because I am new to python. I teach programming to people with varying levels of expertise, from middle-school students to working profess

Re: How to install Python package from source on Windows

2017-05-16 Thread bartc
On 16/05/2017 08:53, Chris Angelico wrote: On Tue, May 16, 2017 at 5:14 PM, Christian Gollwitzer wrote: Am 15.05.17 um 23:58 schrieb Chris Angelico: On Tue, May 16, 2017 at 7:01 AM, Deborah Swanson wrote: But I'm a little more mystified that official Python builds are leaning on Visual C++

Re: Survey: improving the Python std lib docs

2017-05-16 Thread Marco Buttu
On 15/05/2017 13:44, Ned Batchelder wrote: As it is, if I make a suggestion about the itertools docs (why do we need 20-line "equivalent to" Python code, and why don't we have any usage examples?), then I have to debate it with the developer of itertools, who has a different aesthetic and style

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Tue, May 16, 2017 at 11:41 PM, bartc wrote: >> Are you suggesting that a C compiler should be written in Python? >> Because you're dealing with an extension library. It's not written in >> pure Python. That's why it needs a C compiler. While it is certainly >> possible to write a C compiler in

Re: How to install Python package from source on Windows

2017-05-16 Thread Grant Edwards
On 2017-05-16, Deborah Swanson wrote: > Another reason why it's sad that Python hasn't been making its own build > tools, or incorporating and developing open software tools all along. Python uses almost exclusively open-source tools on Linux and whatever MacOS is called this year. Feel free to

Re: How to install Python package from source on Windows

2017-05-16 Thread Grant Edwards
On 2017-05-16, Deborah Swanson wrote: > Well, my naive opinion is that they should be. But it was just one > message back that I learned some Python built-in modules are at least > partially written in C. Many of the are, because there aren't any platforms that provide a native Python API for do

Re: How to install Python package from source on Windows

2017-05-16 Thread bartc
On 15/05/2017 19:21, Chris Angelico wrote: On Tue, May 16, 2017 at 4:12 AM, Deborah Swanson wrote: It continues to amaze me that Anaconda and Python.org, probably the two biggest distributors of official Python builds, are now relying on Visual C++. Why can't Python developers write the entire

Re: How to install Python package from source on Windows

2017-05-16 Thread Mark Summerfield via Python-list
I think the problem that Deborah has encountered is a more general one on Windows: many pip-installable packages assume that a C compiler is available. Now an "obvious" solution is for pip to recognise that a C compiler is needed and give an appropriate error message. But while that may reduce con

Re: How to install Python package from source on Windows

2017-05-16 Thread Gregory Ewing
MRAB wrote: CPython is being developed primarily on Linux. Linux and other Unix-like operating systems come with a C compiler as standard (the histories of Unix and C are closely linked). Also, Linux (and other unix-like systems) don't tend to change the compiler toolsets and libraries in inco

Re: How to install Python package from source on Windows

2017-05-16 Thread breamoreboy
On Sunday, May 14, 2017 at 10:36:37 PM UTC+1, Deborah Swanson wrote: > I want to install the recordclass package: > https://pypi.python.org/pypi/recordclass > > But they've only released wheel files for two platforms, macosx and > win_amd64, neither of which will install on my system. I need win_

Re: How to install Python package from source on Windows

2017-05-16 Thread Chris Angelico
On Tue, May 16, 2017 at 5:14 PM, Christian Gollwitzer wrote: > Am 15.05.17 um 23:58 schrieb Chris Angelico: >> >> On Tue, May 16, 2017 at 7:01 AM, Deborah Swanson >> wrote: >>> >>> But I'm a little more mystified that official Python builds are leaning >>> on Visual C++ (and that's what the crutc

Re: How to install Python package from source on Windows

2017-05-16 Thread Christian Gollwitzer
Am 15.05.17 um 23:58 schrieb Chris Angelico: On Tue, May 16, 2017 at 7:01 AM, Deborah Swanson wrote: But I'm a little more mystified that official Python builds are leaning on Visual C++ (and that's what the crutch comment was primarily aimed at). You seem to be of the opinion that some day,