Re: Hide my query about covariance matrix syntax from google

2023-04-14 Thread Keith Thompson
Chris Angelico writes: > On Fri, 14 Apr 2023 at 03:11, Meghna Karkera wrote: >> >> Respected Sir >> >> I kindly request you to hide my query about covariance matrix syntax from >> google which was emailed to you a few years back as it appears on google >

Re: Hide my query about covariance matrix syntax from google

2023-04-13 Thread Chris Angelico
On Fri, 14 Apr 2023 at 03:11, Meghna Karkera wrote: > > Respected Sir > > I kindly request you to hide my query about covariance matrix syntax from > google which was emailed to you a few years back as it appears on google > page. > > Hoping that you do the needful. These

Hide my query about covariance matrix syntax from google

2023-04-13 Thread Meghna Karkera
Respected Sir I kindly request you to hide my query about covariance matrix syntax from google which was emailed to you a few years back as it appears on google page. Hoping that you do the needful. Dr. Meghna Raviraj Karkera -- https://mail.python.org/mailman/listinfo/python-list

Re: Obtain the query interface url of BCS server.

2022-09-14 Thread DFS
On 9/13/2022 7:29 PM, hongy...@gmail.com wrote: On Tuesday, September 13, 2022 at 9:33:20 PM UTC+8, DFS wrote: On 9/13/2022 3:46 AM, hongy...@gmail.com wrote: On Tuesday, September 13, 2022 at 4:20:12 AM UTC+8, DFS wrote: On 9/12/2022 5:00 AM, hongy...@gmail.com wrote: I want to do the query

Re: Obtain the query interface url of BCS server.

2022-09-14 Thread hongy...@gmail.com
r 13, 2022 at 4:20:12 AM UTC+8, DFS wrote: > >>>> On 9/12/2022 5:00 AM, hongy...@gmail.com wrote: > >>>>> I want to do the query from with in script based on the interface here > >>>>> [1]. For this purpose, the underlying posting URL must be obta

Re: Obtain the query interface url of BCS server.

2022-09-13 Thread hongy...@gmail.com
On Tuesday, September 13, 2022 at 9:33:20 PM UTC+8, DFS wrote: > On 9/13/2022 3:46 AM, hongy...@gmail.com wrote: > > On Tuesday, September 13, 2022 at 4:20:12 AM UTC+8, DFS wrote: > >> On 9/12/2022 5:00 AM, hongy...@gmail.com wrote: > >>> I want to do the query fr

Re: Obtain the query interface url of BCS server.

2022-09-13 Thread DFS
On 9/13/2022 3:46 AM, hongy...@gmail.com wrote: On Tuesday, September 13, 2022 at 4:20:12 AM UTC+8, DFS wrote: On 9/12/2022 5:00 AM, hongy...@gmail.com wrote: I want to do the query from with in script based on the interface here [1]. For this purpose, the underlying posting URL must be

Re: Obtain the query interface url of BCS server.

2022-09-13 Thread hongy...@gmail.com
On Tuesday, September 13, 2022 at 4:20:12 AM UTC+8, DFS wrote: > On 9/12/2022 5:00 AM, hongy...@gmail.com wrote: > > I want to do the query from with in script based on the interface here [1]. > > For this purpose, the underlying posting URL must be obtained, say, the URL >

Re: DoesNotExist at /admin/blog/blog/add/: blog matching query does not exist

2022-09-13 Thread mailinglists
Sorry, the wrong list. Op 2022-09-12T20:35:46+ schreef mailingli...@vanwingerde.nl in bericht , inzake: het volgende. > Suddenly I can no longer add blogs to Django. Django says 'blog > matching query does not exist'. That seems strange to me because I > want to a

Re: DoesNotExist at /admin/blog/blog/add/: blog matching query does not exist

2022-09-12 Thread Enerel Amgalan via Python-list
unsubscribe -Bat > On Sep 12, 2022, at 14:32, mailingli...@vanwingerde.nl wrote: > > Suddenly I can no longer add blogs to Django. Django says 'blog > matching query does not exist'. That seems strange to me because I want > to add something to the database and not r

Re: Obtain the query interface url of BCS server.

2022-09-12 Thread DFS
On 9/12/2022 5:00 AM, hongy...@gmail.com wrote: I want to do the query from with in script based on the interface here [1]. For this purpose, the underlying posting URL must be obtained, say, the URL corresponding to "ITA Settings" button, so that I can make the corresponding que

DoesNotExist at /admin/blog/blog/add/: blog matching query does not exist

2022-09-12 Thread mailinglists
Suddenly I can no longer add blogs to Django. Django says 'blog matching query does not exist'. That seems strange to me because I want to add something to the database and not request a blog. What could be going on here? admin.py: class blogadmin(admin.ModelAdmin): def save_

Re: flask app convert sql query to python plotly.

2022-04-04 Thread Albert-Jan Roskam
On Apr 2, 2022 20:50, Abdellah ALAOUI ISMAILI wrote: i would like to convert in my flask app an SQL query to an plotly pie chart using pandas. this is my code : def query_tickets_status() :     query_result = pd.read_sql ("""  

Re: flask app convert sql query to python plotly

2022-04-02 Thread Python
Abdellah ALAOUI ISMAILI wrote: def query_tickets_status() : query_result = pd.read_sql (""" SELECT COUNT(*)count_status, status FROM tickets GROUP BY status""", con = mydc_db) return query_result labels_statut = query_tickets_status['status'] la

flask app convert sql query to python plotly.

2022-04-02 Thread Abdellah ALAOUI ISMAILI
i would like to convert in my flask app an SQL query to an plotly pie chart using pandas. this is my code : def query_tickets_status() : query_result = pd.read_sql (""" SELECT COUNT(*)count_status, status FROM tickets GROUP BY status&qu

Re: query

2021-09-19 Thread MRAB
On 2021-09-19 13:42, Shashwat Pandey wrote: -- Forwarded message - From: Date: Sun, Sep 19, 2021, 13:20 Subject: query To: Hello! I see you want to post a message to the Python List. We would be happy to help, but you must subscribe first: https://mail.python.org

Re: query

2021-09-19 Thread Mats Wichmann
On 9/19/21 06:42, Shashwat Pandey wrote: How to Fix Installation Error of PyAudio in VS Code ( Windows 32 Bit ) ?? Please Answer Me It's very essential to complete my concept digitalization system project. This comes up somewhat often - pyaudio has not released new binary installer pack

query

2021-09-19 Thread Shashwat Pandey
-- Forwarded message - From: Date: Sun, Sep 19, 2021, 13:20 Subject: query To: Hello! I see you want to post a message to the Python List. We would be happy to help, but you must subscribe first: https://mail.python.org/mailman/listinfo/python-list After you have

Re: Ad-hoc SQL query builder for Python3?

2021-04-27 Thread Rich Shepard
On Mon, 27 Apr 2021, Robert Latest via Python-list wrote: In case nobody mentioned it before, don't forget to take a look at SQLAlchemy. The object-relational-mapper (ORM) creates a 1:1 mapping of Python objects to SQL table rows. Robert, Yes, I've known of SA for years. I want something that

Re: Ad-hoc SQL query builder for Python3?

2021-04-26 Thread Robert Latest via Python-list
Rich Shepard wrote: > For those interested I've found a couple of possibilities: PyPika and > SQLbuilder. I'll be looking deeply into them to learn their capabilities. In case nobody mentioned it before, don't forget to take a look at SQLAlchemy. The object-relational-mapper (ORM) creates a 1:1 ma

Re: Ad-hoc SQL query builder for Python3?

2021-04-26 Thread Rich Shepard
On Sat, 24 Apr 2021, Rich Shepard wrote: My web searches are not finding what I need to include in an application I'm building: an ad-hoc sql query builder. For those interested I've found a couple of possibilities: PyPika and SQLbuilder. I'll be looking deeply into them

Re: Ad-hoc SQL query builder for Python3?

2021-04-26 Thread Peter J. Holzer
On 2021-04-25 15:23:57 -0700, Rich Shepard wrote: > On Sun, 25 Apr 2021, Peter J. Holzer wrote: > > What should that sql query builder build the queries from? Or in other > > words what is the user supposed to input? > > Peter, > > From the dialog box offering tab

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread dn via Python-list
This message is not meant as a personal attack. The intention is to offer criticism of the way a vague question and its apparently non-specific replies, have produced less than satisfying 'results' - for everyone. A broad question can be good. I ask them too(!) 'Good', in the sense that its open

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Rich Shepard
On Sun, 25 Apr 2021, Peter J. Holzer wrote: What should that sql query builder build the queries from? Or in other words what is the user supposed to input? Peter, From the dialog box offering tables, columns, and rows from which a SELECT statement will be constructed. This is not a

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Peter J. Holzer
On 2021-04-25 00:05:44 +0100, Alan Gauld via Python-list wrote: > On 24/04/2021 15:24, Rich Shepard wrote: > > My web searches are not finding what I need to include in an application I'm > > building: an ad-hoc sql query builder. What should that sql query builder build the

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Rich Shepard
On Sun, 25 Apr 2021, Alan Gauld via Python-list wrote: I assume you understand the huge risks involved in such a tool. Letting users loose on their own data (and possibly other peoples) allows for huge potential damage/data loss etc. Alan, I disagree about the risk. Regardless of the form of

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Alan Gauld via Python-list
On 24/04/2021 15:24, Rich Shepard wrote: > My web searches are not finding what I need to include in an application I'm > building: an ad-hoc sql query builder. > > End users will want to query their data for reports not included in the > built-in queries. I assume you under

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread dn via Python-list
On 25/04/2021 02.24, Rich Shepard wrote: > My web searches are not finding what I need to include in an application > I'm > building: an ad-hoc sql query builder. > > End users will want to query their data for reports not included in the > built-in queries. My searches f

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread Rich Shepard
On Sat, 24 Apr 2021, J. Pic wrote: Maybe search or ask dba stackexchange for more, meanwhile, here's a popular one: https://github.com/dbeaver/dbeaver J., I use dbeaver-ce now and then as an admin tool. I didn't consider it as an included component in a desktop application. I'll look at it fr

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread J. Pic
Maybe search or ask dba stackexchange for more, meanwhile, here's a popular one: https://github.com/dbeaver/dbeaver -- https://mail.python.org/mailman/listinfo/python-list

Ad-hoc SQL query builder for Python3?

2021-04-24 Thread Rich Shepard
My web searches are not finding what I need to include in an application I'm building: an ad-hoc sql query builder. End users will want to query their data for reports not included in the built-in queries. My searches find a windows-only tool that apparently costs developers for the versi

Re: [Python-authors] Query

2021-01-11 Thread Chris Angelico
On Mon, Jan 11, 2021 at 10:36 PM George Fischhof wrote: > > Eduardo Emén Muñoz ezt írta (időpont: 2021. jan. 8., > P, 17:23): > > > Dear Srs, > > > > I apologize if this is not the right place to ask this question, I am > > Biologist teaching Python language (in spanish) focused in Molecula

Re: [Python-authors] Query

2021-01-11 Thread George Fischhof
Eduardo Emén Muñoz ezt írta (időpont: 2021. jan. 8., P, 17:23): > Dear Srs, > > I apologize if this is not the right place to ask this question, I am > Biologist teaching Python language (in spanish) focused in Molecular > Biology. > > People interested often ask me if my classes/cours

How to translate this SQL query to Pandas query

2020-05-10 Thread facerias
I need to translate this SQL query to Pandas: SELECT * FROM df_dicodes AS di LEFT OUTER JOIN df_2 AS h2 ON di.Dicode = h2.NM_code AND (datetime(julianday(datetime(di.LastResolDate))) - datetime(julianday(datetime(h2.FechaLectura))) < 180) AND ((di.Oficina=h2.Centro

Re: python socket dns query will get the correct result while the dig will not.

2019-10-02 Thread Manfred Lotz
On Wed, 2 Oct 2019 04:27:14 + (UTC) Hongyi Zhao wrote: > Hi, > > See my following test: > > With ipython: > > In [1]: import > socket > > In [2]: socket.gethostbyname > ('www.vpngate.net') > Out[2

Re: python socket dns query will get the correct result while the dig will not.

2019-10-01 Thread Chris Angelico
On Wed, Oct 2, 2019 at 4:41 PM Hongyi Zhao wrote: > > On Wed, 02 Oct 2019 16:28:40 +1000, Chris Angelico wrote: > > > When you ask dig, you are always asking for a DNS lookup. But > > gethostbyname does a lot of other things too. > > What other things, could you please give more detailed hints? S

Re: python socket dns query will get the correct result while the dig will not.

2019-10-01 Thread Hongyi Zhao
On Wed, 02 Oct 2019 16:28:40 +1000, Chris Angelico wrote: > When you ask dig, you are always asking for a DNS lookup. But > gethostbyname does a lot of other things too. What other things, could you please give more detailed hints? > My guess is that your > /etc/hosts has an entry for that doma

Re: python socket dns query will get the correct result while the dig will not.

2019-10-01 Thread Chris Angelico
On Wed, Oct 2, 2019 at 2:31 PM Hongyi Zhao wrote: > > Hi, > > See my following test: > > With ipython: > > In [1]: import > socket > > In [2]: socket.gethostbyname > ('www.vpngate.net') > Out[2]: '130.158.75.44' > > > With dig: > > $ dig www.vpngate.net @114.114.114.114 +short > 31.13.65.1 > $ dig

python socket dns query will get the correct result while the dig will not.

2019-10-01 Thread Hongyi Zhao
Hi, See my following test: With ipython: In [1]: import socket In [2]: socket.gethostbyname ('www.vpngate.net') Out[2]: '130.158.75.44' With dig: $ dig www.vpngate.net @114.114.114.114 +short 31.13.6

Re: itertools query

2019-09-27 Thread Peter Otten
> Pradeep Patra wrote: > My idea is to include the last element of array a and first element of second array b in the final array. fr.append((a[-1], b[0])) -- https://mail.python.org/mailman/listinfo/python-list

Re: itertools query

2019-09-27 Thread Pradeep Patra
I don't need other combination except 6,7 On Saturday, September 28, 2019, Piet van Oostrum wrote: > Pradeep Patra writes: > > > Hi all, > > > > I have written a small program to generate all the combinations of a and > b > > of the array. I want (6,7) tuple also included. Can anybody suggest w

Re: itertools query

2019-09-27 Thread Piet van Oostrum
Pradeep Patra writes: > Hi all, > > I have written a small program to generate all the combinations of a and b > of the array. I want (6,7) tuple also included. Can anybody suggest what > change I should make to get 6,7 included in my output? Any suggestions > Why (6,7)? What about (5,7), (5,8)

Re: itertools query

2019-09-27 Thread Peter Otten
Pradeep Patra wrote: > Hi all, > > I have written a small program to generate all the combinations of a and b > of the array. I want (6,7) tuple also included. Can anybody suggest what > change I should make to get 6,7 included in my output? Any suggestions The spec is not clear to me. If you do

itertools query

2019-09-27 Thread Pradeep Patra
Hi all, I have written a small program to generate all the combinations of a and b of the array. I want (6,7) tuple also included. Can anybody suggest what change I should make to get 6,7 included in my output? Any suggestions Output: [(5,), (6,), (5, 6), (7,), (8,), (7, 8)] from itertools imp

Re: Query windows event log with python

2019-03-29 Thread mons . sidus
lol cheeky as. server = 'x' # name of the target computer to get event logs source = 'x' # 'Application' # 'Security' hand = win32evtlog.OpenEventLog(server, source) flags = win32evtlog.EVENTLOG_BACKWARDS_READ | win32evtlog.EVENTLOG_SEQUENTIAL_READ total = win32evtlog.GetNumberOfEventLogRecords

Re: Fetch data from two dates query in python and mongoengine

2018-08-24 Thread mahesh d
;> Hii >> My model like this >> class ProcessedEmails(Document): >> subject = StringField(max_length=200) >> fromaddress =StringField(max_length=200) >> dateofprocessing = StringField(max_length=25) >> How can find out the records between two dates

Re: Fetch data from two dates query in python and mongoengine

2018-08-24 Thread Kunal Jamdade
(max_length=200) > dateofprocessing = StringField(max_length=25) > How can find out the records between two dates ?? > Note: date of processing is string field > Mongodb database using . > How to write the query in python by using mongoengine > > Thanks > Mahesh D. > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Fetch data from two dates query in python and mongoengine

2018-08-23 Thread mahesh d
. How to write the query in python by using mongoengine Thanks Mahesh D. -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: QUERY

2018-06-02 Thread Ned Batchelder
On 6/2/18 9:08 AM, S Srihari wrote: To: python-list@python.org I AM UNABLE TO INSTALL PYTHON. KINDLY HELP ME. Put yourself in our shoes: how can we help you with so little information?  We don't know what operating system you are on, we don't know what you have tried, we don't know what has

Re: Fwd: QUERY

2018-06-02 Thread Grant Edwards
On 2018-06-02, S Srihari wrote: > I AM UNABLE TO INSTALL PYTHON. > KINDLY HELP ME. You're not doing it wrong. To fix this, do it right instead. -- https://mail.python.org/mailman/listinfo/python-list

Fwd: QUERY

2018-06-02 Thread S Srihari
To: python-list@python.org I AM UNABLE TO INSTALL PYTHON. KINDLY HELP ME. -- https://mail.python.org/mailman/listinfo/python-list

Re: Regex for changing :variable to ${variable} in sql query

2018-04-18 Thread zljubisic
On Wednesday, 18 April 2018 19:34:37 UTC+2, MRAB wrote: > > Hi, > > > > I have a sql query in which all variables declared as :variable should be > > changed to ${variable}. > > > > for example this sql: > > > > select * > > from table >

Re: Regex for changing :variable to ${variable} in sql query

2018-04-18 Thread MRAB
On 2018-04-18 08:25, zljubi...@gmail.com wrote: Hi, I have a sql query in which all variables declared as :variable should be changed to ${variable}. for example this sql: select * from table where ":x" = "1" and :y=2 and field in (:string) and time between :from

Regex for changing :variable to ${variable} in sql query

2018-04-18 Thread zljubisic
Hi, I have a sql query in which all variables declared as :variable should be changed to ${variable}. for example this sql: select * from table where ":x" = "1" and :y=2 and field in (:string) and time between :from and :to should be translated to: select * fr

Re: Automation query... Plz help

2018-01-30 Thread Prahallad Achar
Thank you. Indeed I did a search but couldn't find a right approach. Jython! Yes.. It supports to call jar file. As you said... Application support team has to modify few things on application side where object creation should be public rather protected On 31 Jan 2018 7:12 am, "Steven D'Aprano"

Re: Automation query... Plz help

2018-01-30 Thread Steven D'Aprano
On Tue, 30 Jan 2018 16:00:43 +0530, Prahallad Achar wrote: > Luckily application supports headless automation now question is how to > invoke those jar using python. I can see two approaches: (1) Calling the jar directly from Python. I don't think you can do that from CPython, but you might be

Re: Automation query... Plz help

2018-01-30 Thread Prahallad Achar
Luckily application supports headless automation now question is how to > invoke those jar using python. On 29 Jan 2018 10:45 pm, "Prahallad Achar" wrote: Thanks for the kind response. Sure.. Definitely I shall ask development team for the same. Regards Prahallad On 29 Jan 2018 7:48 pm, "Steve

Re: Automation query... Plz help

2018-01-29 Thread Prahallad Achar
Thanks for the kind response. Sure.. Definitely I shall ask development team for the same. Regards Prahallad On 29 Jan 2018 7:48 pm, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > On Mon, 29 Jan 2018 17:50:46 +0530, Prahallad Achar wrote: > > > No.. Not at all. > > > > Its CT

Re: Automation query... Plz help

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 17:50:46 +0530, Prahallad Achar wrote: > No.. Not at all. > > Its CTP application.. Which is basically transport planner for networks If you want to know whether CTP can be run headless, you should ask the CTP support team or software maintainer, not Python forums. Do you h

Re: Automation query... Plz help

2018-01-29 Thread Prahallad Achar
No.. Not at all. Its CTP application.. Which is basically transport planner for networks On 29 Jan 2018 5:38 pm, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > On Mon, 29 Jan 2018 16:23:23 +0530, Prahallad Achar wrote: > > > Hello friends, > > > > There is an desktop applicat

Re: Automation query... Plz help

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 16:23:23 +0530, Prahallad Achar wrote: > Hello friends, > > There is an desktop application which runs on Windows and written in > java [...] > Is there a way to run this automation without launching the application > (headless) Is the name of the application a secret? --

Automation query... Plz help

2018-01-29 Thread Prahallad Achar
Hello friends, There is an desktop application which runs on Windows and written in java There is a requirement to automate that application. Am trying with pyautogui but it is very slow and lengthy code to compete. Is there a way to run this automation without launching the application (headle

RE: [Python-ideas] Proposal: Query language extension to Python (PythonQL)

2017-03-26 Thread Gerald Britton
e: > *>* > No, the current solution is temporary because we just don’t have the > *>* > manpower to > *>* > implement the full thing: a real system that will rewrite parts of > PythonQL > *>* > queries and > *>* > ship them to underlying databases.

Re: Regular expression query

2017-03-12 Thread Vlastimil Brom
2017-03-12 17:22 GMT+01:00 : > Hi All, > > I have a string which looks like > > a,b,c "4873898374", d, ee "3343,23,23,5,,5,45", f > "5546,3434,345,34,34,5,34,543,7" > > It is comma saperated string, but some of the fields have a double quoted > string as part of it (and t

Re: Regular expression query

2017-03-12 Thread Tim Chase
On 2017-03-12 09:22, rahulra...@gmail.com wrote: > a,b,c "4873898374", d, ee "3343,23,23,5,,5,45", > f "5546,3434,345,34,34,5,34,543,7" > > It is comma saperated string, but some of the fields have a double > quoted string as part of it (and that double quoted string can ha

Re: Regular expression query

2017-03-12 Thread Jussi Piitulainen
rahulra...@gmail.com writes: > Hi All, > > I have a string which looks like > > a,b,c "4873898374", d, ee "3343,23,23,5,,5,45", f > "5546,3434,345,34,34,5,34,543,7" > > It is comma saperated string, but some of the fields have a double > quoted string as part of it (and th

Re: Regular expression query

2017-03-12 Thread Larry Martell
On Sun, Mar 12, 2017 at 12:22 PM, wrote: > Hi All, > > I have a string which looks like > > a,b,c "4873898374", d, ee "3343,23,23,5,,5,45", f > "5546,3434,345,34,34,5,34,543,7" > > It is comma saperated string, but some of the fields have a double quoted > string as part

Regular expression query

2017-03-12 Thread rahulrasal
Hi All, I have a string which looks like a,b,c "4873898374", d, ee "3343,23,23,5,,5,45", f "5546,3434,345,34,34,5,34,543,7" It is comma saperated string, but some of the fields have a double quoted string as part of it (and that double quoted string can have commas). Ab

Re: Is there a way to insert hooks into a native dictionary type to see when a query arrives and what's looked up?

2016-12-16 Thread Chris Angelico
On Sat, Dec 17, 2016 at 3:42 PM, Veek M wrote: > If it walks like a duck and talks like a duck, it’s a duck, right? So if > this duck is not giving you the noise that you want, you’ve got to just > punch that duck until it returns what you expect. -Patrick Ewing on > Monkey/Duck patching in RailsC

Re: Is there a way to insert hooks into a native dictionary type to see when a query arrives and what's looked up?

2016-12-16 Thread Veek M
Steven D'Aprano wrote: > On Wednesday 14 December 2016 17:11, Veek M wrote: > >> I know that with user classes one can define getattr, setattr to >> handle dictionary lookup. Is there a way to hook into the native >> dict() type and see in real time what's being queried. > > Not easily, and mayb

Re: Is there a way to insert hooks into a native dictionary type to see when a query arrives and what's looked up?

2016-12-14 Thread Steven D'Aprano
On Wednesday 14 December 2016 17:11, Veek M wrote: > I know that with user classes one can define getattr, setattr to handle > dictionary lookup. Is there a way to hook into the native dict() type > and see in real time what's being queried. Not easily, and maybe not at all. There are two obviou

Re: Is there a way to insert hooks into a native dictionary type to see when a query arrives and what's looked up?

2016-12-13 Thread Chris Angelico
On Wed, Dec 14, 2016 at 5:11 PM, Veek M wrote: > I know that with user classes one can define getattr, setattr to handle > dictionary lookup. Is there a way to hook into the native dict() type > and see in real time what's being queried. > > I wanted to check if when one does: > > x.sin() > > if t

Is there a way to insert hooks into a native dictionary type to see when a query arrives and what's looked up?

2016-12-13 Thread Veek M
I know that with user classes one can define getattr, setattr to handle dictionary lookup. Is there a way to hook into the native dict() type and see in real time what's being queried. I wanted to check if when one does: x.sin() if the x.__dict__ was queried or if the Foo.__dict__ was queried.

Re: PonyORM: generators as a query syntax

2016-12-08 Thread Michael Torrie
sk the database to delete dependent, related records from the related table. https://en.wikipedia.org/wiki/Object-relational_mapping Some people think ORM is pointless and would rather just work directly with the databases using purpose query languages like SQL. One reason Django and other web fra

PonyORM: generators as a query syntax

2016-12-07 Thread Michael Torrie
I was just made aware of a very interesting ORM project that has been around since about 2013, while listening to a recent episode of the Talk Python To Me podcast. The idea of using generators to build queries is really cool. I'm sure PonyORM has its limitations and drawbacks, as all ORM models

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Michael Torrie
On 11/01/2016 12:46 PM, Pavel Velikhov wrote: > Thanks for the feedback, will try to make the examples easier to find, > definitely! > Not too happy with the site layout myself... Was it obvious that you can play > around > with the examples - i.e. edit them and run modified versions? After I cl

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Pavel Velikhov
On Tuesday, 1 November 2016 20:09:14 UTC+3, Peter Otten wrote: > Pavel Velikhov wrote: > > > On Tuesday, 1 November 2016 12:50:37 UTC+3, Peter Otten wrote: > >> Pavel Velikhov wrote: > >> > >> > We have released PythonQL, a query language extension to

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Pavel Velikhov
On Tuesday, 1 November 2016 20:16:43 UTC+3, Michael Torrie wrote: > On 11/01/2016 02:56 AM, Pavel Velikhov wrote: > > Hi Folks, > > > > We have released PythonQL, a query language extension to Python (we > > have extended Python’s comprehensions with a full-fledged

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Michael Torrie
On 11/01/2016 02:56 AM, Pavel Velikhov wrote: > Hi Folks, > > We have released PythonQL, a query language extension to Python (we > have extended Python’s comprehensions with a full-fledged query > language, drawing from the useful features of SQL, XQuery and > JSONiq). Take a l

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Peter Otten
Pavel Velikhov wrote: > On Tuesday, 1 November 2016 12:50:37 UTC+3, Peter Otten wrote: >> Pavel Velikhov wrote: >> >> > We have released PythonQL, a query language extension to Python (we >> > have extended Python’s comprehensions with a full-fledged query

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Pavel Velikhov
On Tuesday, 1 November 2016 12:50:37 UTC+3, Peter Otten wrote: > Pavel Velikhov wrote: > > > We have released PythonQL, a query language extension to Python (we have > > extended Python’s comprehensions with a full-fledged query language, > > drawing from the useful fea

Re: Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Peter Otten
Pavel Velikhov wrote: > We have released PythonQL, a query language extension to Python (we have > extended Python’s comprehensions with a full-fledged query language, > drawing from the useful features of SQL, XQuery and JSONiq). Take a look > at the project here: http://www.pyth

Announcement: PythonQL - An integrated query language for Python

2016-11-01 Thread Pavel Velikhov
Hi Folks, We have released PythonQL, a query language extension to Python (we have extended Python’s comprehensions with a full-fledged query language, drawing from the useful features of SQL, XQuery and JSONiq). Take a look at the project here: http://www.pythonql.org and lets us know what

Re: Dynamic query in mongodb and variable

2016-07-11 Thread Chris Angelico
On Mon, Jul 11, 2016 at 10:52 PM, MG wrote: > Ciao, > I have this function: > > > def lockup_info(refer): > info = [] > amb = CONN.db..find({"reference": refer} > for a in amb: > print a > > > > How can I pass this value { "$exists": False } and tell pyt

Dynamic query in mongodb and variable

2016-07-11 Thread MG
Ciao, I have this function: def lockup_info(refer): info = [] amb = CONN.db..find({"reference": refer} for a in amb: print a How can I pass this value { "$exists": False } and tell python to not consider it as a string? var = '{ "$exists": Fals

Re: Query regarding python 2.7.11 release

2016-04-29 Thread Michael Selik
>From searching bugs.python.org, I see that issues referencing CVE-2014-7185, CVE-2013-1752, and CVE-2014-1912 have all been marked as closed. I don't see any issues referencing CVE-2014-4650 via Python's bug tracker, but did spot it on Red Hat's. It appears to be related to issue 21766 ( http://b

Query regarding python 2.7.11 release

2016-04-14 Thread Gaurav Rastogi -X (garastog - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco)
Hi, We are currently using Python 2.6.7 in our product. We have received below vulnerabilities from field: CVE-2014-7185 Integer overflow in bufferobject.c in Python before 2.7.8 allows context-dependent attackers to obtain sensitive information from process memory via a large size and offset i

Re: Simple tkinter query about creating a tk,StringVar() failure

2016-02-06 Thread boB Stepp
On Sat, Feb 6, 2016 at 6:38 PM, wrote: > Why does this interactive instantiation fail when it seems to work > when run in a script? You have to establish your root window first: Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyrigh

Re: Simple tkinter query about creating a tk,StringVar() failure

2016-02-06 Thread MRAB
On 2016-02-07 00:38:14, paul.hermeneu...@gmail.com wrote: I know this may be more suited to the tutor list. I tried to subscribe, but no response yet. Why does this interactive instantiation fail when it seems to work when run in a script? (py35-64) C:\src\pygui>python Python 3.5.1 (v3.5.1:37a

Simple tkinter query about creating a tk,StringVar() failure

2016-02-06 Thread paul . hermeneutic
I know this may be more suited to the tutor list. I tried to subscribe, but no response yet. Why does this interactive instantiation fail when it seems to work when run in a script? (py35-64) C:\src\pygui>python Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)]

Re: Logical Query JSON

2015-07-31 Thread Denis McMahon
ce) *BUT* these are not the > operators you are looking for. > You will need a special "jsonquery" extension (search > "http://pypi.python.org"; to find out whether there is something like > this) > which would provide appropriate support. Actually it's not

Re: Logical Query JSON

2015-07-30 Thread dieter
subhabrata.bane...@gmail.com writes: > ... > I am trying to quote some of my exercises below, and my objective. A general remark. Python errror messages are quite good (unlike e.g. many Microsoft or Oracle error messages). You can almost always trust them. Thus, if you get a "SyntaxError", someth

Re: Logical Query in Python

2015-07-30 Thread subhabrata . banerji
On Thursday, July 30, 2015 at 8:35:08 PM UTC+5:30, Steven D'Aprano wrote: > On Thu, 30 Jul 2015 11:28 pm, wrote: > > > Dear Group, > > > > I am trying to query JSON with Logical operators. > > What does that mean? > > > I tried to experiment lot wit

Re: Logical Query JSON

2015-07-30 Thread subhabrata . banerji
On Thursday, July 30, 2015 at 9:20:35 PM UTC+5:30, Denis McMahon wrote: > On Thu, 30 Jul 2015 06:32:01 -0700, subhabrata.banerji wrote: > > > I am trying to query JSON with Logical operators. > > Your post was an excellent example of asking for help without explaining > wha

Re: Logical Query JSON

2015-07-30 Thread Denis McMahon
On Thu, 30 Jul 2015 06:32:01 -0700, subhabrata.banerji wrote: > I am trying to query JSON with Logical operators. Your post was an excellent example of asking for help without explaining what your problem was at all. Please: - show an example of what you tried; - give the results

Re: Logical Query in Python

2015-07-30 Thread Steven D'Aprano
On Thu, 30 Jul 2015 11:28 pm, subhabrata.bane...@gmail.com wrote: > Dear Group, > > I am trying to query JSON with Logical operators. What does that mean? > I tried to experiment lot with it, but could not do much. > I came many times pretty close but missed it almost. Ple

Logical Query JSON

2015-07-30 Thread subhabrata . banerji
Dear Group, I am trying to query JSON with Logical operators. I tried to experiment lot with it, but could not do much. I came many times pretty close but missed it almost. I tried to experiment with json, jsonquery, jsonschema, jsonpipe, objectpath, requests. I got a good example from

Logical Query in Python

2015-07-30 Thread subhabrata . banerji
Dear Group, I am trying to query JSON with Logical operators. I tried to experiment lot with it, but could not do much. I came many times pretty close but missed it almost. I tried to experiment with json, jsonquery, jsonschema, jsonpipe, objectpath, requests. I got a good example from

Re: Issuing a sqilte query, picking a random result, and copying to the system clipboard

2015-06-23 Thread Felix Yan
On 06/22/2015 07:51 PM, Tim Chase wrote: > On Win32, you'd need the Win32 add-on libraries to shove things onto > the clipboard, while under X, you'd need other facilities (either > using Tkinter or piping to something like xclip(1)), and yet another > way of doing things on MacOS. Or you may want

Re: Issuing a sqilte query, picking a random result, and copying to the system clipboard

2015-06-22 Thread Tim Chase
On 2015-06-21 17:08, John T. Haggerty wrote: > I'm looking to just have a simple program that will do a SQLite > query pull a random record and then copy that record too the > clipboard the system. I'm not quite seeing how to do this perhaps > this is already been done elsew

  1   2   3   4   5   6   7   8   9   >