On 10/02/2016 23:05, Mike S wrote:
> On 2/10/2016 5:05 AM, Mark Lawrence wrote:
[snip]
>>> Have you seen this?
>>> http://www.davidbaumgold.com/tutorials/set-up-python-windows/
>>>
>>
>> I have now, but I'm perfectly happy with the free versions of Visual
>> Studio.
[snip]
> I don't see any refer
On Thu, Feb 11, 2016 at 5:36 PM, Frank Millman wrote:
> "Chris Angelico" wrote in message
> news:CAPTjJmrVCkKAEevc9TW8FYYTnZgRUMPHectz+bD=dqrphxy...@mail.gmail.com...
>>
>>
>> Something worth checking would be real-world database performance metrics
>
>
> [snip lots of valid questions]
>
> My app
"Chris Angelico" wrote in message
news:CAPTjJmrVCkKAEevc9TW8FYYTnZgRUMPHectz+bD=dqrphxy...@mail.gmail.com...
Something worth checking would be real-world database performance metrics
[snip lots of valid questions]
My approach is guided by something I read a long time ago, and I don't know
h
On Thu, Feb 11, 2016 at 4:45 PM, Frank Millman wrote:
> I have come up with a plan that seems to provide a solution.
>
> Instead of 'putting' one row at a time, let the database handler build up a
> block of rows, and then 'put' the block.
>
> I tried a block of 10, and it ran a lot faster. I incr
"Frank Millman" wrote in message news:n9c4p3$gmp$1...@ger.gmane.org...
Some of you may have been following my attempts to modify my asyncio app
so that it does not block when accessing the database. Here is an update.
Here is an update to my update ...
I came up with what felt like a good
On Thu, Feb 11, 2016 at 4:28 PM, Frank Millman wrote:
> "Chris Angelico" wrote in message
> news:captjjmphjvtckub6qr-vp_1epewxbgqxmfkepmohqp3papg...@mail.gmail.com...
>>
>>
>> When I advise my students on basic databasing concepts, I recommend
>> this structure:
>>
>> conn = psycopg2.connect(...)
"Chris Angelico" wrote in message
news:captjjmphjvtckub6qr-vp_1epewxbgqxmfkepmohqp3papg...@mail.gmail.com...
When I advise my students on basic databasing concepts, I recommend
this structure:
conn = psycopg2.connect(...)
with conn, conn.cursor() as cur:
cur.execute(...)
Does this auto
On Thu, Feb 11, 2016 at 4:06 PM, Frank Millman wrote:
> A connection has 2 possible states - 'in transaction', or 'not in
> transaction'. When you create the connection it starts off as 'not'.
>
> When you call cur.execute(), it checks to see what state it is in. If the
> state is 'not', it silent
"Israel Brewster" wrote in message
news:92d3c964-0323-46ee-b770-b89e7e7e6...@ravnalaska.net...
I am working on implementing a Python DB API module, and am hoping I can
get some help with figuring out the workflow of handling transactions. In
my experience (primarily with
psycopg2) the workfl
On 2016-02-11 03:09, Larry Martell wrote:
On Wed, Feb 10, 2016 at 10:00 PM, MRAB wrote:
On 2016-02-11 02:48, Larry Martell wrote:
Given this string:
s = """|Type=Foo
... |Side=Left"""
print s
|Type=Foo
|Side=Left
I can match with this:
m = re.search(r'^\|Type=(.*)$\n^\|Side=(.*)$',
On Wed, Feb 10, 2016 at 10:00 PM, MRAB wrote:
> On 2016-02-11 02:48, Larry Martell wrote:
>>
>> Given this string:
>>
> s = """|Type=Foo
>>
>> ... |Side=Left"""
>
> print s
>>
>> |Type=Foo
>> |Side=Left
>>
>> I can match with this:
>>
> m = re.search(r'^\|Type=(.*)$\n^\|Side=(.*)$'
On 2016-02-11 02:48, Larry Martell wrote:
Given this string:
s = """|Type=Foo
... |Side=Left"""
print s
|Type=Foo
|Side=Left
I can match with this:
m = re.search(r'^\|Type=(.*)$\n^\|Side=(.*)$',s,re.MULTILINE)
print m.group(0)
|Type=Foo
|Side=Left
print m.group(1)
Foo
print m.group(2)
Given this string:
>>> s = """|Type=Foo
... |Side=Left"""
>>> print s
|Type=Foo
|Side=Left
I can match with this:
>>> m = re.search(r'^\|Type=(.*)$\n^\|Side=(.*)$',s,re.MULTILINE)
>>> print m.group(0)
|Type=Foo
|Side=Left
>>> print m.group(1)
Foo
>>> print m.group(2)
Left
But when I try and sub
I am working on implementing a Python DB API module, and am hoping I can get
some help with figuring out the workflow of handling transactions. In my
experience (primarily with psycopg2) the workflow goes like this:
- When you open a connection (or is it when you get a cursor? I *think* it is
o
On Wed, Feb 10, 2016 at 6:07 AM, Martin Phillips
wrote:
>
> Several functions in the C library return pointers to dynamically allocated
> w_char null
> terminated strings. I need to copy the string to a Python variable and call
> an existing
> library function that will free the dynamically allo
On 2/10/2016 5:05 AM, Mark Lawrence wrote:
On 10/02/2016 03:39, Mike S via Python-list wrote:
On 2/9/2016 7:26 PM, Larry Hudson wrote:
On 02/09/2016 08:41 AM, Fillmore wrote:
Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python
2.7 for that matter).
The command will hang and
On Wed, Feb 10, 2016 at 5:12 PM, Andra-Irina Vasile <
andra.irina.vas...@gmail.com> wrote:
> Thank you for your quick answer! These are my errors... i just followed
> the basic stepts to pip twitter and the other libraries... I just started
> to learn about python..:
>
> AttributeError: module 'tw
On 2/10/2016 4:26 PM, Benoit Izac wrote:
Larry Hudson writes:
Since Python runs natively in Windows, why are you trying to run it
with Cygwin? I'm not implying that you shouldn't, just offhand I don't
see a reason for it.
I do it because it's easier to install third party packages, those th
Larry Hudson writes:
>> Hi, I am having a hard time making my Cygwin run Python 3.5 (or
>> Python 2.7 for that matter).
>> The command will hang and nothing happens.
>
> Just curious...
>
> Since Python runs natively in Windows, why are you trying to run it
> with Cygwin? I'm not implying that yo
On 10/02/2016 19:05, Sivan Greenberg wrote:
not entirely on-topic here, but is distutils still being in active use "in
the wild" ?
-Sivan
Given that there was distutils2 which took the same course as the
Norwegian Blue, I would say no, distutils is not active. I'll happily
stand corrected.
* dieter [160209 23:03]:
> Carl Meyer writes:
> > ...
> > If you omit the future-import in Python 2.7, `import config` will import
> > the neighboring app/config.py by default, and there is no way to import
> > the top-level config.py.
>
> There is the "__import__" builtin function which allows
not entirely on-topic here, but is distutils still being in active use "in
the wild" ?
-Sivan
On Wed, Feb 10, 2016 at 2:31 AM, Oscar Benjamin
wrote:
> On 8 February 2016 at 00:38, wrote:
> > Running python setup.py develop doesn't work, it gives me this error:
> error: invalid command 'develo
Hi Cem,
On 08.02.2016 02:37, Cem Karan wrote:
My apologies for not writing sooner, but work has been quite busy lately (and
likely will be for some time to come).
no problem here. :)
I read your approach, and it looks pretty good, but there may be one issue with
it; how do you handle the s
On 08.02.2016 23:13, Marko Rauhamaa wrote:
As I stated in an earlier post, a normal subroutine may turn out to be
blocking. To make it well-behaved under asyncio, you then dutifully tag
the subroutine with "async" and adorn the blocking statement with
"await". Consequently, you put "await" in fro
Peter Otten wrote:
> Michael Ströder wrote:
>
>> HI!
>>
>> Hmm, I've used pylint before but my current installation gives me an
>> ImportError:
>>
>> $ pylint
>> [..]
>> ImportError: No module named lazy_object_proxy
>>
>> Can anybody here give me a hint what's missing?
>> six, astroid and tk modu
On Wed, Feb 10, 2016 at 11:31 AM, Andra-Irina Vasile <
andra.irina.vas...@gmail.com> wrote:
> Hello!
>
> Could you be so kind to help me with an issue? I have some problems with
> python when I am trying to use the twitter api... I have Python 3.5.1 (32
> bit). I tried to reinstall the module, but
Hello!
Could you be so kind to help me with an issue? I have some problems with
python when I am trying to use the twitter api... I have Python 3.5.1 (32
bit). I tried to reinstall the module, but I am still receiving the same
errors... I attached in this email some screenshots with them.
Thank y
On Wed, Feb 10, 2016 at 5:07 AM, Martin Phillips
wrote:
> I am writing a Python wrapper to go around a C library. I have encountered a
> problem that I have been unable to resolve with
> countless web searches.
>
>
>
> Several functions in the C library return pointers to dynamically allocated
>
I am writing a Python wrapper to go around a C library. I have encountered a
problem that I have been unable to resolve with
countless web searches.
Several functions in the C library return pointers to dynamically allocated
w_char null terminated strings. I need to copy the
string to a Pytho
Michael Ströder wrote:
> HI!
>
> Hmm, I've used pylint before but my current installation gives me an
> ImportError:
>
> $ pylint
> Traceback (most recent call last):
> File "/usr/bin/pylint", line 3, in
> run_pylint()
> File "/usr/lib/python2.7/site-packages/pylint/__init__.py", line 2
HI!
Hmm, I've used pylint before but my current installation gives me an
ImportError:
$ pylint
Traceback (most recent call last):
File "/usr/bin/pylint", line 3, in
run_pylint()
File "/usr/lib/python2.7/site-packages/pylint/__init__.py", line 22, in
run_pylint
from pylint.lint impo
On 10/02/2016 03:39, Mike S via Python-list wrote:
On 2/9/2016 7:26 PM, Larry Hudson wrote:
On 02/09/2016 08:41 AM, Fillmore wrote:
Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python
2.7 for that matter).
The command will hang and nothing happens.
Just curious...
Since
On Tuesday, February 9, 2016 at 1:33:23 PM UTC-7, Ian wrote:
> On Tue, Feb 9, 2016 at 7:55 AM, wrote:
> > Hi,
> >
> > I am trying to run a 60 lines Python code which is running on a mac machine
> > but on windows machine, I am getting this error when I run on it on
> > shell(open file and run m
33 matches
Mail list logo