On 14/12/2010, Brett Ritter and Dave Angel wrote:
Francesco Loffredo wrote:
...
mylist[:] = [x for x in mylist if x != "something"]
vs.
mylist = [x for x in mylist if x != "something"]
...
Brett:
mylist[:] is a slice of mylist (you know that). If you ASSIGN it to
something, you'll get a copy
Hi,
I'm using pyodbc (Python 2.5) to insert records in an MS Access database. For
security reasons, question marks should be used for string replacement [*]. The
standard %s would make the code vulnerable to sql code injection. Problem is,
string replacement in the Good Way somehow doesn't work
Thank you very much and thank you Alan.
Definitely I will take a look. I would prefer the paid version and I
will need the support.
On 12/12/10, Knacktus wrote:
> Am 12.12.2010 19:16, schrieb Alan Gauld:
>>
>> "cajsdy" wrote
>>> Either paid or free open source is fine.
>>> I'm creating automati
"Albert-Jan Roskam" wrote
dates. Below, snippet #1 does not work (Access says the inserted
value is not
consistent with the defined datatype), but #2 does.
#2 is just normal string formatting so should always work.
But the cursor method is presumabnly doing some kind
of data type checking.
Thanks all here. I'm asked UML and UI tools for python in the other thread.
I'm looking for any suggestions to build test automation system, from
the test plan management, test execution, python scripting management.
Testplan: Testlink is a good example and I used it for the small
project, but it
Albert-Jan Roskam wrote:
> Hi,
>
> I'm using pyodbc (Python 2.5) to insert records in an MS Access database.
> For security reasons, question marks should be used for string replacement
> [*]. The standard %s would make the code vulnerable to sql code injection.
> Problem is, string replacement i
Hello,
I'm using Python 3.1.3 on Windows XP (using Python Shell).
This is what I am trying:
print 'hello'
and I get:
SyntaxError: invalid syntax
What could possibly be wrong? I've tried it on the command line and even in
hello.py - always get "SyntaxError".
Very confused.
Thanks
Khalid
___
"Khalid Akram" wrote
I'm using Python 3.1.3 on Windows XP (using Python Shell).
This is what I am trying:
print 'hello'
...
SyntaxError: invalid syntax
What could possibly be wrong?
You are using a Python v3 interpreter but a Python v2 tutorial.
Python v3 has several new features which a
On 12/15/2010 9:56 AM Alan Gauld said...
"Khalid Akram" wrote
I'm using Python 3.1.3 on Windows XP (using Python Shell).
This is what I am trying:
print 'hello'
...
SyntaxError: invalid syntax
What could possibly be wrong?
You are using a Python v3 interpreter but a Python v2 tutorial.
>
> I’m using pyodbc to interact with MS SQL Server and I’m starting to support
> mysql. My issue is that when I use a parameterized query, it works for SQL
> Server, but crashes when I point to MySQL. Is there a different syntax that
> I should be using? or module?
>
> EG
> Import pyodbc
Hi - I'm a beginner at programming and Python.
I have been looking for an editor to replace Idle and tried out a few.
I liked Geany but decided on vim because I am also learning Linux
and the vim skills might be useful. I run Python 2.6.5 on Ubuntu 10.04.
How have those of you who use vim config
"Paul Griffiths" wrote
How have those of you who use vim configured it? I have looked
on the web but got a bit confused by the advice and options.
I use both IDLE (for simple short scipts) and vim (for bigger
multi-file projects).
I use vim pretty much out of the box, I deliberately don't
Am 15.12.2010 23:26, schrieb Paul Griffiths:
Hi - I'm a beginner at programming and Python.
I have been looking for an editor to replace Idle and tried out a few.
I liked Geany but decided on vim because I am also learning Linux
and the vim skills might be useful. I run Python 2.6.5 on Ubuntu 1
Am 15.12.2010 23:26, schrieb Paul Griffiths:
Hi - I'm a beginner at programming and Python.
I have been looking for an editor to replace Idle and tried out a few.
I liked Geany but decided on vim because I am also learning Linux
and the vim skills might be useful. I run Python 2.6.5 on Ubuntu 1
14 matches
Mail list logo