ajax with pyside webview

2019-02-18 Thread Abdur-Rahmaan Janhangeer
greetings, i'm using pyside webview to view a localhost app, all works fine, just ajax via jquery does not work. other requests work fine. ajax works fine in web browser though. any ideas? Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- h

Re: What's the address for?

2019-02-18 Thread Gregory Ewing
Stefan Ram wrote: What's so important about the (presumed) address of a function that it is shown on every stringification of each function? Its value isn't important at all. It's just a way of distinguishing different objects in debugging output. -- Greg -- https://mail.python.org/mailm

trying to begin a code for web scraping

2019-02-18 Thread Drake Gossi
Hi everyone, I'm trying to write code to scrape this website ( regulations.gov) of its comments, but I'm having trouble figuring out what to link onto in the inspect page (like when I right click on inspect with the mouse). Although I

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Terry Reedy
On 2/18/2019 3:35 PM, Marcin G wrote: Hmm. From looking at your full log (THANK YOU for posting that, btw - so many people don't), it looks like an issue with certificate checking. Might be a bug in the test itself. Does the same thing happen with a more recent Python build? It could be a weirdne

Re: Multiprocessing performance question

2019-02-18 Thread Israel Brewster
> On Feb 18, 2019, at 6:37 PM, Ben Finney wrote: > > I don't have anything to add regarding your experiments with > multiprocessing, but: > > Israel Brewster writes: > >> Which creates and populates an 800x1000 “grid” (represented as a flat >> list at this point) of “boxes”, where a box is a

Re: Multiprocessing performance question

2019-02-18 Thread Ben Finney
I don't have anything to add regarding your experiments with multiprocessing, but: Israel Brewster writes: > Which creates and populates an 800x1000 “grid” (represented as a flat > list at this point) of “boxes”, where a box is a > shapely.geometry.box(). This takes about 10 seconds to run. Thi

Multiprocessing performance question

2019-02-18 Thread Israel Brewster
I have the following code running in python 3.7: def create_box(x_y): return geometry.box(x_y[0] - 1, x_y[1], x_y[0], x_y[1] - 1) x_range = range(1, 1001) y_range = range(1, 801) x_y_range = list(itertools.product(x_range, y_range)) grid = list(map(create_box, x_y_range)) Which creates and

Re: What's the address for?

2019-02-18 Thread Ben Finney
"Avi Gross" writes: > I hear that [the ‘id(foo)’ return value] is implementation dependent. > But are there any requirements on the implementation that allow it to > have meaning? The requirements are that `id(foo)` should satisfy the documented API for that function https://docs.python.org/3/li

WebScrapping

2019-02-18 Thread Adrian Ordona
Hi, I’m learning how to code and interested in web scrapping to gather data. I’m running on Mac OS X 10.9.5 and python 3.7 terminal. I’m trying to capture the name of the brand and price but i keep getting an error (see below). Traceback (most recent call last): File "", line 1, in File "/an

RE: The NaNny State

2019-02-18 Thread Avi Gross
[DISCLAIMER: I can read documentation and have. The following is more of a demo showing step by step what I find experimentally along with some discussion.] Ben asked: > Who says that the “correct spelling in python is all lower case "nan"”? Fair enough. Except for reserved words in the languag

Re: The NaNny State

2019-02-18 Thread Ben Finney
"Avi Gross" writes: > It is about the recent discussion about the concept and word "nan" as used > in python and elsewhere. As noted, the correct spelling in python is all > lower case as in "nan" with a minor exception that creating a nan using > float(string) allows any combination of cases suc

Re: New rules for scope in a function?

2019-02-18 Thread Ben Bacarisse
"Steve" writes: > OK, I wrote: > > x = "A" > print("x = " + x) > > def f(y): > print("x= " + x + " y= "+ y) > > f(x) > > and it worked, inspite of what I was seeing in my own program. > How quick I am to blame Python. (: > When I isolate my function that stumped me, I will post it. T

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 7:55 AM Grant Edwards wrote: > > On 2019-02-18, Chris Angelico wrote: > > > Hmm. From looking at your full log (THANK YOU for posting that, btw - > > so many people don't), it looks like an issue with certificate > > checking. Might be a bug in the test itself. Does the sa

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Grant Edwards
On 2019-02-18, Chris Angelico wrote: > Hmm. From looking at your full log (THANK YOU for posting that, btw - > so many people don't), it looks like an issue with certificate > checking. Might be a bug in the test itself. Does the same thing > happen with a more recent Python build? It could be a

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 7:36 AM Marcin G wrote: > > Hmm. From looking at your full log (THANK YOU for posting that, btw - > so many people don't), it looks like an issue with certificate > checking. Might be a bug in the test itself. Does the same thing > happen with a more recent Python build? It

RE: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Marcin G
Hmm. From looking at your full log (THANK YOU for posting that, btw - so many people don't), it looks like an issue with certificate checking. Might be a bug in the test itself. Does the same thing happen with a more recent Python build? It could be a weirdness with specific versions of OpenSSL. H

Re: What's the address for?

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 7:04 AM Avi Gross wrote: > How about functions? > > Even more confusing: > > >>> def a(): pass > > >>> def b(): pass > > >>> id(a), id(b) > (13123280, 13201816) > >>> b=a > >>> id(a), id(b) > (13123280, 13123280) > >>> def a(): return True > > >>> id(a), id(b) > (13201816,

Re: What's the address for?

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 7:04 AM Avi Gross wrote: > > Alister wrote about the meaning of the id number often displayed about a > python object: > > > it is the internal id of the function - Not necessarily an address, that > is an implementation detail. > > > it is not intended for use within a pro

RE: What's the address for?

2019-02-18 Thread Avi Gross
Alister wrote about the meaning of the id number often displayed about a python object: > it is the internal id of the function - Not necessarily an address, that is an implementation detail. > it is not intended for use within a program & has (almost) no practical use. I hear that it is impleme

Re: Scraping multiple web pages help

2019-02-18 Thread Sivan Grünberg
Hi there Drake, A quick google search revealed: - https://regulationsgov.github.io/developers/ This seems particulriy useful: - https://regulationsgov.github.io/developers/console/ And to fetch stuff from the API, there's Python requests that has a rather wonderful doc: - http://docs.pytho

The NaNny State

2019-02-18 Thread Avi Gross
This is not a complaint about python. It is about the recent discussion about the concept and word "nan" as used in python and elsewhere. As noted, the correct spelling in python is all lower case as in "nan" with a minor exception that creating a nan using float(string) allows any combination

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 5:23 AM Marcin G wrote: > > My boss wants my code to run on Python 3.5, so I thought I'd install 3.5 to > be able to ascertain this. > > But Linux Mint 19 ships with Python 3.6 and python.org only provides source > code for 3.5.6

(yet another) PEP idea to tackle binary wheels problem efficiently

2019-02-18 Thread Alexander Revin
Hi all, I've been thoroughly reading various discussions, such as [1], [2] and related ones regarding PEP 425, PEP 491 and PEP 513. I also happen to use musl sometimes, so as discussed here [3] I thought it would be a good idea to submit a new PEP regarding musl compatibility. It's not a secret t

Re: (yet another) PEP idea to tackle binary wheels problem efficiently

2019-02-18 Thread Alexander Revin
Two minor typos: platform tag should be separated by "-", not "_". Also it makes sense to use "amd64" instead of "x86_64", so platform can be just split by "_" On Sat, Feb 16, 2019 at 9:29 PM Alexander Revin wrote: > > Hi all, > > I've been thoroughly reading various discussions, such as [1], [2]

Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Marcin G
My boss wants my code to run on Python 3.5, so I thought I'd install 3.5 to be able to ascertain this. But Linux Mint 19 ships with Python 3.6 and python.org only provides source code for 3.5.6. So I thought I'd try compiling 3.5.6 myself.

Scraping multiple web pages help

2019-02-18 Thread Drake Gossi
Hello everyone, For a research project, I need to scrape a lot of comments from regulations.gov https://www.regulations.gov/docketBrowser?rpp=25&so=DESC&sb=commentDueDate&po=0&dct=PS&D=ED-2018-OCR-0064 But partly what's throwing me is the url addresses of the comments. They aren't consistent. I

RE: New rules for scope in a function?

2019-02-18 Thread Steve
OK, I wrote: x = "A" print("x = " + x) def f(y): print("x= " + x + " y= "+ y) f(x) and it worked, inspite of what I was seeing in my own program. How quick I am to blame Python. (: When I isolate my function that stumped me, I will post it. Thanks. Steve Footnote: Ultrasound Tech

Re: New rules for scope in a function?

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 4:36 AM Steve wrote: > > I have been programming for more years than I want to admit and believe that > I have a good understanding when it comes to the Scope of Variables when > using functions. Are the rules different when using python? > > It looks as if I have to pass

New rules for scope in a function?

2019-02-18 Thread Steve
I have been programming for more years than I want to admit and believe that I have a good understanding when it comes to the Scope of Variables when using functions. Are the rules different when using python? It looks as if I have to pass all variables to and from the function before it works.

Re: What's the address for?

2019-02-18 Thread Alister via Python-list
On Mon, 18 Feb 2019 11:59:18 +, Stefan Ram wrote: > When one prints a function, one might get something like: > > > > . The participants of my basic course asked me what the address is > for. I did not know. > > What's so important about the (presumed) address of a function that it >

Re: What's up with Activestate Python?

2019-02-18 Thread Thomas Jollans
On 18/02/2019 10.21, Barry Scott wrote: > > >> On 18 Feb 2019, at 08:49, Thomas Jollans wrote: >> >> Anaconda also has its moments, and has some packages that PyPI doesn't >> (for my use case, this is primarily PyQt5). > > Odd I use PyQt5 from PyPI all the time and have for a few years now. It

Re: What's up with Activestate Python?

2019-02-18 Thread Thomas Jollans
On 18/02/2019 10.21, Barry Scott wrote: > > >> On 18 Feb 2019, at 08:49, Thomas Jollans wrote: >> >> Anaconda also has its moments, and has some packages that PyPI doesn't >> (for my use case, this is primarily PyQt5). > > Odd I use PyQt5 from PyPI all the time and have for a few years now. It

Re: What's up with Activestate Python?

2019-02-18 Thread Barry Scott
> On 18 Feb 2019, at 08:49, Thomas Jollans wrote: > > Anaconda also has its moments, and has some packages that PyPI doesn't > (for my use case, this is primarily PyQt5). Odd I use PyQt5 from PyPI all the time and have for a few years now. Barry -- https://mail.python.org/mailman/listinfo/

Re: What's up with Activestate Python?

2019-02-18 Thread Thomas Jollans
On 14/02/2019 19:10, Grant Edwards wrote: > On 2019-02-14, Liste guru wrote: >> Il 14/02/2019 00:06, Grant Edwards ha scritto: >>> For many, many years I've always installed ActiveState's ActivePython >>> Community edition when forced to use Windows. It has always included >>> ... >>> I guess it'