Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Could I override a fully implemented method
Post: RE: Could I override a fully implemented method
What was I thinking?
I tried and it worked
Thanks |
|
zatlas1 |
General Coding Help |
2 |
2,418 |
Jun-06-2019, 02:20 AM |
|
|
Thread: Could I override a fully implemented method
Post: Could I override a fully implemented method
Hi all
I have an abstract class with a mixture of abstract methods and fully implemented methods. The latter are correct for 99.9% of the derived classes. Please refer to snippets
import abc
import ... |
|
zatlas1 |
General Coding Help |
2 |
2,418 |
Jun-05-2019, 09:57 PM |
|
|
Thread: Boto 3 and Mongo DB
Post: RE: Boto 3 and Mongo DB
Yep, that helped
We have a universal connect for PEP 249 objects and thought about similar stuff for boto3 compatible databases |
|
zatlas1 |
General Coding Help |
2 |
2,959 |
May-23-2019, 07:32 PM |
|
|
Thread: Boto 3 and Mongo DB
Post: Boto 3 and Mongo DB
Is MongoDB supported by Boto 3? |
|
zatlas1 |
General Coding Help |
2 |
2,959 |
May-23-2019, 05:40 PM |
|
|
Thread: httplib to http.client conversion issue
Post: httplib to http.client conversion issue
I am a relatively newbie, dealing with python 2.7 code that needs to go to python 3.6 or 3.7
In the code I have 'import httplib' that I dutifully changed to 'import http.client as httplib'
Later in ... |
|
zatlas1 |
General Coding Help |
1 |
2,586 |
Apr-12-2019, 05:07 PM |
|
|
Thread: Is there a standard for autocommit In PEP 249
Post: RE: Is there a standard for autocommit In PEP 249
Don't misunderstand me, I will follow all my vendors' documentation, deal with it, and hide that from my users' (I am writing a common connect/interface class), but I still think that there should hav... |
|
zatlas1 |
General Coding Help |
10 |
5,269 |
Feb-06-2019, 03:55 PM |
|
|
Thread: Is there a standard for autocommit In PEP 249
Post: RE: Is there a standard for autocommit In PEP 249
There is a fundamental issue with PEP 249 regarding this common feature. I truly expected without any prejudice, that I would find a reference to autocommit in the PEP. Something like this imaginary... |
|
zatlas1 |
General Coding Help |
10 |
5,269 |
Feb-06-2019, 02:56 PM |
|
|
Thread: Is there a standard for autocommit In PEP 249
Post: RE: Is there a standard for autocommit In PEP 249
This DOES NOT answer the question!
1. The description of 'commit()' in my original post is the second item in the 'connection objects' section, so obviously, I read PEP 249 and specifically, the reco... |
|
zatlas1 |
General Coding Help |
10 |
5,269 |
Feb-06-2019, 04:08 AM |
|
|
Thread: Is there a standard for autocommit In PEP 249
Post: Is there a standard for autocommit In PEP 249
I tried reading PEP 249 and I could not locate any mentioning as a parameter to the connect() except in the commit method:
----------------------------
.commit()
Commit any pending transaction to the ... |
|
zatlas1 |
General Coding Help |
10 |
5,269 |
Feb-05-2019, 06:38 PM |
|
|
Thread: accessing Sybase (ASE and/or Anywhere) via ODBC... on Linux
Post: accessing Sybase (ASE and/or Anywhere) via ODBC......
We have many Sybase databases of both flavors (ASE and Anywhere). For some reason, my boss insists on accessing them via ODBC (on Linux). I am able to access them via the native sybpydb and sqlanydb... |
|
zatlas1 |
General Coding Help |
0 |
2,900 |
Jan-31-2019, 06:48 PM |
|
|
Thread: Does Python sqlite3 detect connection errors
Post: RE: Does Python sqlite3 detect connection errors
|
zatlas1 |
General Coding Help |
6 |
3,971 |
Jan-18-2019, 06:02 AM |
|
|
Thread: Does Python sqlite3 detect connection errors
Post: RE: Does Python sqlite3 detect connection errors
OK, let me explain it clearly!
I do NOT get any exception! despite the fact that the file 'a_real_sqlite3_file' (for example) does not exist. Therefore, there is nothing to show!
I run it on Window... |
|
zatlas1 |
General Coding Help |
6 |
3,971 |
Jan-18-2019, 04:39 AM |
|
|
Thread: Does Python sqlite3 detect connection errors
Post: RE: Does Python sqlite3 detect connection errors
My code clearly tries to capture the exception and there are other places in my code that actually capture exceptions for object.execute('sql statement')
It looks like the people who'd developed the s... |
|
zatlas1 |
General Coding Help |
6 |
3,971 |
Jan-17-2019, 11:10 PM |
|
|
Thread: Does Python sqlite3 detect connection errors
Post: Does Python sqlite3 detect connection errors
Hi all
try:
dbconn = sqlite3.connect('a_real_sqlite3_file')
return dbconn
except (sqlite3.Error, sqlite3.Warning) as e:
common_func.eprint(common_fu... |
|
zatlas1 |
General Coding Help |
6 |
3,971 |
Jan-17-2019, 08:54 PM |
|
|
Thread: why is my dictionary not recognized as such
Post: RE: Dictionnaries - Equality
I must admit that Python comparisons and matches begin to drive me nuts:
self.driver_id = supported_drivers[self.driver] if self.driver in supported_drivers else None
print (self.driver... |
|
zatlas1 |
General Coding Help |
5 |
3,780 |
Jan-13-2019, 04:59 PM |
|
|
Thread: why is my dictionary not recognized as such
Post: RE: why is my dictionary not recognized as such
|
zatlas1 |
General Coding Help |
5 |
3,780 |
Jan-13-2019, 06:10 AM |
|
|
Thread: why is my dictionary not recognized as such
Post: why is my dictionary not recognized as such
I am still a newbie but learning fast. However, Python is still surprising me in strange ways. Here is my code
supported_drivers = {"SQLite" : 1,
"Sybase" : 3,
... |
|
zatlas1 |
General Coding Help |
5 |
3,780 |
Jan-13-2019, 04:33 AM |
|
|
Thread: 1 == 1 seems to yield false
Post: RE: 1 == 1 seems to yield false
Thank you so much
I am a newbie in Python; in Perl it would work... I have to eradicate the Perl maven in me :) |
|
zatlas1 |
General Coding Help |
3 |
2,602 |
Jan-07-2019, 01:32 PM |
|
|
Thread: 1 == 1 seems to yield false
Post: 1 == 1 seems to yield false
I am a Python newbie. I plucked some code from the internet and trying to build something that resemble the class I am supposed o build
Here is the code:
def _factory_method(self, name = 'Concre... |
|
zatlas1 |
General Coding Help |
3 |
2,602 |
Jan-07-2019, 01:08 PM |