Travis Griggs writes:
> ...
> I found a example of how to add SSL to my python service
> (https://gist.github.com/ubershmekel/6194556). If I can figure out how to get
> the right keys embedded into my iPhone app (it's just on my phone, not anyone
> else's), is that enough? Or should I include
Greg Lindstrom writes:
> I am trying to use Suds, the very fine library allowing me to use SOAP, to
> query a service over the net. Part of the data structure defined be the
> WSDL calls for a sequence of SubscriberDataTypes (this application is used
> to test an insurance companys' rating servi
On 18 September 2013 03:10, Steven D'Aprano wrote:
> On Tue, 17 Sep 2013 18:54:51 +, Dave Angel wrote:
>
>> for times in range(0, 5 if person=="George" else 0):
>
>
> Oh that is evil. Truly evil.
>
> Thank you, I will treasure that piece of code forever.
range(person == "simon" and 5)
--
htt
Dear all,
I need to disbale maximum attribute , and want to fix size of my QFrame,
i set :
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
QtGui.QSizePolicy.Fixed)
i attached my ui file ,
you can : pyuic4 -x myfile.ui -i output.py
then see my attribute.
Question: How can i disable for
On Wed, 18 Sep 2013 00:42:22 +0300, Ferrous Cranus wrote:
> So the foreign MTA tests for real time connectivity with the local MTA
> and it tries to detect a working host and ip address.
No.
I strongly suggest that you stop trying to write software that transmits
data across tcp/ip networks unt
On Tuesday, September 17, 2013 10:34:39 PM UTC-4, Krishnan wrote:
> I created an xy pair
>
>
>
> y = slope*x + intercept
>
>
>
> then I added some noise to "y" using
>
>
>
> numpy.random.normal - call it z
>
>
>
> I could recover the slope, intercept from (x,y) using linregress
>
> BU
On Tue, 2013-09-17 at 12:32 +0200, Vincent Vande Vyvre wrote:
> Le 17/09/2013 11:05, Steven D'Aprano a écrit :
> > On Tue, 17 Sep 2013 08:42:35 +0430, Mohsen Pahlevanzadeh wrote:
> >
> >> Dear all,
> >>
> >> Unfortunately, i confused and need help... the following code is:
> >>
Ferrous Cranus writes:
> So cant this be done in python or not?
> or is a mtetr of configuring the MTA? conf file?
You could write a python program that uses Gmail's web interface. But it is
tricky, and if Gmail would change its inyterface you get stuck, and have to do
it again, risking that t
On Tue, 17 Sep 2013 20:06:44 -0400, Susan Lubbers wrote:
> Our group is a python 2.7 which is installed in a shared area. We have
> scipy 11 installed in site-packages. How would I install scipy 12 so
> that I used the shared install of python but scipy 12 instead of 11?
If you are using Pytho
I created an xy pair
y = slope*x + intercept
then I added some noise to "y" using
numpy.random.normal - call it z
I could recover the slope, intercept from (x,y) using linregress
BUT cannot calculate the slope, intercept from (x, z)
What is puzzling is that for both pairs (x,y) and (x,z) the
Dave -
I can't print the output because there are close to 1,000,000 records. It would
be extremely inefficient and resource intensive to look at every row. Like I
said, when I take just one file and run the code over the first few records I
get what I'd expect to see. Here's an example(non-red
On 17/9/2013 21:42, Bryan Britten wrote:
> Hey, gang, I've got a problem here that I'm sure a handful of you will know
> how to solve. I've got about 6 *.csv files that I am trying to open; change
> the header names (to get rid of spaces); add two new columns, which are just
> the results of a
On Tue, 17 Sep 2013 18:54:51 +, Dave Angel wrote:
> for times in range(0, 5 if person=="George" else 0):
Oh that is evil. Truly evil.
Thank you, I will treasure that piece of code forever.
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
William -
I'm also self-teaching myself Python and get stuck quite often, so I understand
both the thrill of programming and the frustration. Given your young age and
presumably very little exposure to other programming languages, I would highly
recommend you check out http://www.Codecademy.com
Hey, gang, I've got a problem here that I'm sure a handful of you will know how
to solve. I've got about 6 *.csv files that I am trying to open; change the
header names (to get rid of spaces); add two new columns, which are just the
results of a string.split() command; drop the column I just spl
I'm prototyping a simple data collection service. I've implemented a simple
REST API implemented with python 3x stock HTTPServer. And a simple iPhone app
that submits data via a json/POST. And it all works just great when my iPhone
is on the same network as the server.
But now I want to go the
Our group is a python 2.7 which is installed in a shared area. We
have scipy 11 installed in site-packages. How would I install scipy
12 so that I used the shared install of python but scipy 12 instead of
11?
--
https://mail.python.org/mailman/listinfo/python-list
Josef Perktold gmail.com> writes:
>
> Oscar Benjamin gmail.com> writes:
>
> >
> > On 17 September 2013 15:52, Josef Perktold gmail.com>
wrote:
> > >
> > > On the other hand, python-xy comes with MingW, and I never had any
problems
> > > compiling pandas and statsmodels for any version combin
On Tue, Sep 17, 2013 at 5:31 PM, William Bryant wrote:
> Thanks to all and @Joel Goldstick, I am learning python through youtube.
> They explained Global and Local variables to me. :) Thanks for that
> critisism, it really helps. I am 13 years old and I am looking forward to
> studing programming
On Sep 17, 2013, at 5:42 PM, Ferrous Cranus wrote:
> On 17/9/2013 7:30 μμ, Denis McMahon wrote:
>> On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote:
>>
>>> So cant this be done in python or not?
>>> or is a mtetr of configuring the MTA? conf file?
>>
>> Python can not control data that
On 17/9/2013 7:30 μμ, Denis McMahon wrote:
On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote:
So cant this be done in python or not?
or is a mtetr of configuring the MTA? conf file?
Python can not control data that is added to the message after it has
left the python program. If you wa
On Wed, Sep 18, 2013 at 7:42 AM, Ferrous Cranus wrote:
> So the foreign MTA tests for real time connectivity with the local MTA and
> it tries to detect a working host and ip address.
No, the local MTA connects to the foreign MTA.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
Thanks to all and @Joel Goldstick, I am learning python through youtube. They
explained Global and Local variables to me. :) Thanks for that critisism, it
really helps. I am 13 years old and I am looking forward to studing programming
in University! :DD
--
https://mail.python.org/mailman/l
Hi,
I know that vim has native support for cucumber (the original BDD
framework for Ruby). I have also found
https://github.com/veloce/vim-behat for BDD with PHP (frightening
idea!), but I haven't found a module supporting BDD with vim and Python.
Especially I envy to our Ruby friends ability
On 17/09/2013 21:10, William Bryant wrote:
Ok I think I've fixed it thanks I read everything.
[snip]
def HMNs():
global TheStr, user_inputHMNs, List_input, List
user_inputHMNs = input("You picked string. This program cannot calculate the
mean or median, but it can calculate the mod
On Tue, Sep 17, 2013 at 4:10 PM, William Bryant wrote:
> Ok I think I've fixed it thanks I read everything.
>
>
> '''**'''
> #* Name:Mode-Median-Mean Calculator
> *#
> #*
>*#
> #* Purpose: To calculate the
Sorry guys, I didn't read anything u said. Because I just figured it out on my
own :)
I'll read it now. But u can check out my program I have done so far (It works
but I think it needs some tidying up.) :)
Thanks!
--
https://mail.python.org/mailman/listinfo/python-list
Ok I think I've fixed it thanks I read everything.
'''**'''
#* Name:Mode-Median-Mean Calculator *#
#**#
#* P
'''#*'''
#* Name:Mode-Median-Mean Calculator *#
#**#
#* Purpose: To calculate the mode, median and mean o
In Greg Lindstrom
writes:
> --089e0122976c27f48b04e697f887
> Content-Type: text/plain; charset=ISO-8859-1
> Hello Everyone -
> I am trying to use Suds, the very fine library allowing me to use SOAP, to
> query a service over the net. Part of the data structure defined be the
> WSDL calls for
On 17/9/2013 09:21, Ferrous Cranus wrote:
> I just want to say tot he program that
>
> that only run the for statement if and only if person=='George'
>
> I dont see nay reason as to why this fails
>
> perhaps like:
>
> for times in range(0, 5) if person=='George':
>
> but that fails too...
> the
On Tue, Sep 17, 2013 at 9:51 AM, rusi wrote:
> On Tuesday, September 17, 2013 9:49:28 PM UTC+5:30, Benjamin Kaplan wrote:
>> On Tue, Sep 17, 2013 at 7:55 AM, rusi wrote:
>>
>> > On Thursday, September 12, 2013 10:21:49 PM UTC+5:30, Benjamin Kaplan
>> > wrote:
>>
>> >
>> >> The main difference be
Hello Everyone -
I am trying to use Suds, the very fine library allowing me to use SOAP, to
query a service over the net. Part of the data structure defined be the
WSDL calls for a sequence of SubscriberDataTypes (this application is used
to test an insurance companys' rating service).
(Subscrib
On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote:
> So cant this be done in python or not?
> or is a mtetr of configuring the MTA? conf file?
Python can not control data that is added to the message after it has
left the python program. If you want to retain maximum possible control
of
On Tuesday, September 17, 2013 9:49:28 PM UTC+5:30, Benjamin Kaplan wrote:
> On Tue, Sep 17, 2013 at 7:55 AM, rusi wrote:
>
> > On Thursday, September 12, 2013 10:21:49 PM UTC+5:30, Benjamin Kaplan wrote:
>
> >
> >> The main difference between wx and qt is that qt looks native on every
> >> pla
On Wed, Sep 18, 2013 at 2:11 AM, Rotwang wrote:
> I don't know tkinter well enough either, but the fact that it behaves
> differently on Linux and Windows suggests to me that at least one version is
> bugging out. Do you think this is worth raising on bugs.python.org?
Possibly, but I'd keep it he
On Tue, Sep 17, 2013 at 7:55 AM, rusi wrote:
> On Thursday, September 12, 2013 10:21:49 PM UTC+5:30, Benjamin Kaplan wrote:
>
>> The main difference between wx and qt is that qt looks native on every
>> platform
>> while wx *is* native on every platform (it uses native controls wherever
>> possib
On 17/09/2013 15:35, Chris Angelico wrote:
On Wed, Sep 18, 2013 at 12:25 AM, Rotwang wrote:
In fact, if I replace tkderp with this:
# begin tkderp.py
import tkinter as tk
_root = tk.Tk()
_root.withdraw()
# end tkderp.py
then simply importing tkderp before tkderp2 is enough to make the la
On 17 September 2013 15:52, Josef Perktold wrote:
>
> On the other hand, python-xy comes with MingW, and I never had any problems
> compiling pandas and statsmodels for any version combination of python and
> numpy that I tested (although 32 bit only so far, I never set up the
> Microsoft sdk).
J
Oscar Benjamin gmail.com> writes:
>
> On 17 September 2013 15:52, Josef Perktold gmail.com> wrote:
> >
> > On the other hand, python-xy comes with MingW, and I never had any problems
> > compiling pandas and statsmodels for any version combination of python and
> > numpy that I tested (although
On Thursday, September 12, 2013 6:01:20 PM UTC-5, stephen...@gmail.com wrote:
> I have an excel file. When I select cells, copy from excel, and then use
> win32clipboard to get the contents of the clipboard, I have a 131071
> character string.
>
>
>
> When I save the file as a text file, and u
On 9/17/2013 7:22 AM, Aseem Bansal wrote:
While using IDLE I used the license() function to see the license information.
In it there was a list of all the versions and from which version they are
derived is written.
The 2.7 list ends with 2.7. The 3.x does not even include 2.7.
The list goe
On Sep 16, 2013, at 4:33 PM, William Bryant wrote:
> Hey I am new to python so go easy, but I wanted to know how to make a program
> that calculates the maen.
>
> List = [15, 6, 6, 7, 8, 9, 40]
> def mean():
>global themean, thesum
>for i in List:
>thecount = List.count(i)
>
On 17/9/2013 1:46 μμ, Heiko Wundram wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 17.09.2013 01:41, schrieb Steven D'Aprano:
I cannot fathom for the life of me a legitimate reason for your
website to use a fake IP address and hostname when sending email.
In addition to that: it's am
On Tue, Sep 17, 2013 at 11:04 AM, Chris Angelico wrote:
> On Tue, Sep 17, 2013 at 11:00 PM, Roy Smith wrote:
> > They just discovered a huge newline vein in Montana and they're mining
> > the things like crazy. There's no shortage of them so feel free to use
> > as many as you like. They even
List - I am currently searching for W-2 candidates for several Python Developer
positions in Mountain View, CA for a high-profile client. The positions are
contract-to-perm at a starting rate of $80 an hour. Below is some additional
information. Thank you for sending to your members if you fi
On Tue, Sep 17, 2013 at 11:00 PM, Roy Smith wrote:
> They just discovered a huge newline vein in Montana and they're mining
> the things like crazy. There's no shortage of them so feel free to use
> as many as you like. They even get recycled.
Can they keep up with the considerable demand even
Oscar you are right!
The problem was Numpy!
I re-installed it using an executable that I downloaded from:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
I don't remember if previously I installed it using another source.
However the problem now is disappeared!
Many thanks!
Davide
--
https:
On Thursday, September 12, 2013 10:21:49 PM UTC+5:30, Benjamin Kaplan wrote:
> The main difference between wx and qt is that qt looks native on every
> platform
> while wx *is* native on every platform (it uses native controls wherever
> possible). This means that wx integrates into the OS bett
Oscar Benjamin gmail.com> writes:
>
> On 17 September 2013 14:35, Josef Pktd gmail.com> wrote:
> >> (As an aside, this is all much simpler if you're using Ubuntu or some
> >> other Linux distro rather than Windows.)
> >
> > scientific python on a stick
> >
> > https://code.google.com/p/winpytho
On 2013-09-17, Heiko Wundram wrote:
>
> Am 17.09.2013 01:41, schrieb Steven D'Aprano:
>> I cannot fathom for the life of me a legitimate reason for your
>> website to use a fake IP address and hostname when sending email.
>
> In addition to that: it's amazing that Nikos thinks TCP will still
> wor
On Tue, Sep 17, 2013 at 10:17 AM, Tim Chase
wrote:
> On 2013-09-17 16:21, Ferrous Cranus wrote:
> > I just want to say tot he program that
> >
> > that only run the for statement if and only if person=='George'
> >
> > I dont see nay reason as to why this fails
> >
> > perhaps like:
> >
> > for ti
On Wed, Sep 18, 2013 at 12:25 AM, Rotwang wrote:
> In fact, if I replace tkderp with this:
>
>
> # begin tkderp.py
>
> import tkinter as tk
>
> _root = tk.Tk()
> _root.withdraw()
>
> # end tkderp.py
>
>
> then simply importing tkderp before tkderp2 is enough to make the latter
> work properly
Nic
On 17/09/2013 12:32, Chris Angelico wrote:
[...]
If reloading and doing it again makes things different, what happens
if you simply trigger your code twice without reloading?
I've no idea if it'll help, it just seems like an attack vector on the
problem, so to speak.
Thanks for the suggestion
On 2013-09-17 16:21, Ferrous Cranus wrote:
> I just want to say tot he program that
>
> that only run the for statement if and only if person=='George'
>
> I dont see nay reason as to why this fails
>
> perhaps like:
>
> for times in range(0, 5) if person=='George':
>
> but that fails too...
>
On 17 September 2013 14:35, Josef Pktd wrote:
>> (As an aside, this is all much simpler if you're using Ubuntu or some
>> other Linux distro rather than Windows.)
>
> scientific python on a stick
>
> https://code.google.com/p/winpython/wiki/PackageIndex_33
Thanks, I've just installed that and I'l
On Wednesday, September 11, 2013 7:44:04 PM UTC+5:30, mnishpsyched wrote:
> Hey i am a programmer but new to python. Can anyone guide me in knowing which
> is a better IDE used to develop web related apps that connect to DB using
> python?
Just saw this
http://www.youtube.com/watch?v=1-dUkyn_fZA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 17.09.2013 15:21, schrieb Ferrous Cranus:
> ... there must be written on soem way.
You've already given yourself the answer in the initial post. The
Python way to write this is:
if person == "George":
for times in range(5):
...
Why no
On Tuesday, September 17, 2013 9:06:59 AM UTC-4, Oscar Benjamin wrote:
> On 17 September 2013 13:13, Davide Dalmasso wrote:
>
> >
>
> > You are right... there is a problem with scipy intallation because this
> > error arise...
>
> >
>
> from scipy.interpolate import interp1d
>
> > Trace
Op 17-09-13 14:11, Ferrous Cranus schreef:
> Yes you are doing it.
> I'm not trolling but trying to solve a specific question and i have
> provided code i wrote to do that and explained the reason of why i want
> it to work like this.
No you haven't. You have given no explanation at all for why y
Στις 17/9/2013 4:00 μμ, ο/η Roy Smith έγραψε:
In article ,
Ferrous Cranus wrote:
o want to avoid having to type somehting like this:
if person="George":
times in range(0, 5):
Why it gives me an error when i'm trying to write it like this:
if person="George" for times in range(0,
On Tuesday, September 17, 2013 8:13:27 AM UTC-4, Davide Dalmasso wrote:
> You are right... there is a problem with scipy intallation because this error
> arise...
>
>
>
> >>> from scipy.interpolate import interp1d
>
> Traceback (most recent call last):
>
> File "", line 1, in
>
> from
On 17 September 2013 13:13, Davide Dalmasso wrote:
>
> You are right... there is a problem with scipy intallation because this error
> arise...
>
from scipy.interpolate import interp1d
> Traceback (most recent call last):
> File "", line 1, in
> from scipy.interpolate import interp1d
In article ,
Ferrous Cranus wrote:
> o want to avoid having to type somehting like this:
>
> if person="George":
> times in range(0, 5):
>
>
> Why it gives me an error when i'm trying to write it like this:
>
>
> if person="George" for times in range(0, 5):
Step One when reporting a
On 2013-09-17 13:02, Ferrous Cranus wrote:
o want to avoid having to type somehting like this:
if person="George":
times in range(0, 5):
Why it gives me an error when i'm trying to write it like this:
if person="George" for times in range(0, 5):
Can't i ahve both if and for in a one li
On 2013-09-17 13:11, Ferrous Cranus wrote:
There are members here like Tim Chase who said that they find it interesting to
be able to do what i proposed.
No, he didn't. He was using sarcasm in a vain attempt to inspire you to search
the Python documentation where you could easily find the sta
On Mon, Sep 16, 2013, at 16:55, Michael Schwarz wrote:
> On 2013-W38-1, at 19:56, random...@fastmail.us wrote:
>
> > On Mon, Sep 16, 2013, at 9:15, Michael Schwarz wrote:
> >> According to the documentation of time.gmtime(), it returns a struct_time
> >> in UTC, but %z is replaced by +0100, which
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 17.09.2013 13:55, schrieb Joel Goldstick:
> At least if you want to add to this nonsense, read each of the
> (several?) dozen entries.
Actually, I have read each of the troll cycles (just as I read much of
clp, although I haven't participated much
On Monday, 16 September 2013 17:37:58 UTC+2, Davide Dalmasso wrote:
> Hi,
>
>
>
> I intalled an executable version of statsmodels library for Windows 32-bit.
>
> When I import it in my Python Shell no problem occurs buy when I write:
>
>
>
> import statsmodels.api as sm
>
>
>
> the follo
Στις 17/9/2013 2:55 μμ, ο/η Joel Goldstick έγραψε:
In honour of the value of mailing lists in general lets stop this thread
since once again the troll pattern repeats ad infinitum.
At least if you want to add to this nonsense, read each of the
(several?) dozen entries.
1. a seemingly earnest qu
You are right... there is a problem with scipy intallation because this error
arise...
>>> from scipy.interpolate import interp1d
Traceback (most recent call last):
File "", line 1, in
from scipy.interpolate import interp1d
File "C:\Python33\lib\site-packages\scipy\interpolate\__init__.
Hello,
I just install gammu and try to : import gammu
and i get error:
Traceback (most recent call last):
File "./pygammu.py", line 4, in
import gammu
File "/usr/lib64/python2.6/site-packages/gammu/__init__.py", line 65, in
from gammu._gammu import *
ImportError: /usr/lib64/python2.
o want to avoid having to type somehting like this:
if person="George":
times in range(0, 5):
Why it gives me an error when i'm trying to write it like this:
if person="George" for times in range(0, 5):
Can't i ahve both if and for in a one liner?
--
https://mail.python.org/mailman/l
In honour of the value of mailing lists in general lets stop this thread
since once again the troll pattern repeats ad infinitum.
At least if you want to add to this nonsense, read each of the (several?)
dozen entries.
1. a seemingly earnest question is asked with something to do with python.
The
On 17 September 2013 11:10, Davide Dalmasso wrote:
> Il giorno lunedì 16 settembre 2013 17:47:55 UTC+2, Ethan Furman ha scritto:
>>
>> We'll need the rest of the traceback, as it will have the actual error.
>>
> Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit
> (Intel
On Tue, Sep 17, 2013 at 9:27 PM, Rotwang wrote:
> On 16/09/2013 23:34, Chris Angelico wrote:
>>
>> On Tue, Sep 17, 2013 at 2:28 AM, Rotwang wrote:
>>>
>>> If I then uncomment those two lines, reload the module and call f() again
>>> (by entering tkderp.reload(tkderp).f()), the function works like
On 16/09/2013 23:34, Chris Angelico wrote:
On Tue, Sep 17, 2013 at 2:28 AM, Rotwang wrote:
If I then uncomment those two lines, reload the module and call f() again
(by entering tkderp.reload(tkderp).f()), the function works like it was
supposed to in the first place: two warnings, no exception
While using IDLE I used the license() function to see the license information.
In it there was a list of all the versions and from which version they are
derived is written.
The list goes upto 3.3.1 but doesn't include 3.3.2. Is that a minor bug or is
the current version not mentioned in that l
On 16/09/2013 19:43, Serhiy Storchaka wrote:
16.09.13 19:28, Rotwang написав(ла):
On Windows 7 (sys.version is '3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012,
10:57:17) [MSC v.1600 64 bit (AMD64)]') there's no problem; f() works
fine in the first place. Does anybody know what's going on?
What _root.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 17.09.2013 01:41, schrieb Steven D'Aprano:
> I cannot fathom for the life of me a legitimate reason for your
> website to use a fake IP address and hostname when sending email.
In addition to that: it's amazing that Nikos thinks TCP will still
work
Le 17/09/2013 11:05, Steven D'Aprano a écrit :
On Tue, 17 Sep 2013 08:42:35 +0430, Mohsen Pahlevanzadeh wrote:
Dear all,
Unfortunately, i confused and need help... the following code is:
###
##CheckBox:
QtCore.QObject.connect(self.checkBox,
Il giorno lunedì 16 settembre 2013 17:47:55 UTC+2, Ethan Furman ha scritto:
> On 09/16/2013 08:37 AM, Davide Dalmasso wrote:
>
> > Hi,
>
> >
>
> > I intalled an executable version of statsmodels library for Windows 32-bit.
>
> > When I import it in my Python Shell no problem occurs buy when I w
Hello,
On Tue, Sep 17, 2013 at 07:22:50PM +1000, Ben Finney wrote:
> Ervin Hegedüs writes:
>
> > Hello,
> >
> > On Tue, Sep 17, 2013 at 05:35:30PM +1000, Ben Finney wrote:
> > > for row in cur.fetchall():
> >
> > and what if in body of iteration there is another fetchall()? :)
>
> Yes, what
Hi,
I have been using pywinusb.hid for a hid unit, using only feature reports.
I like to get this code to run on raspbian PI, but i can not fint a good
library to support HID/feature reports?
I am a USB newbie
Can anyone help me, or point me in a direction to send/recieve feature reports
withou
Ervin Hegedüs writes:
> Hello,
>
> On Tue, Sep 17, 2013 at 05:35:30PM +1000, Ben Finney wrote:
> > for row in cur.fetchall():
>
> and what if in body of iteration there is another fetchall()? :)
Yes, what if? Each call to ‘fetchall’ returns a sequence of rows. I
don't see your point.
--
\
On Tue, 17 Sep 2013 08:42:35 +0430, Mohsen Pahlevanzadeh wrote:
> Dear all,
>
> Unfortunately, i confused and need help... the following code is:
> ###
> ##CheckBox:
> QtCore.QObject.connect(self.checkBox,
> QtCore.SIGNAL(_fromUtf8("toggled(boo
Hello,
On Tue, Sep 17, 2013 at 05:35:30PM +1000, Ben Finney wrote:
> Venkat Addala writes:
>
> > rows = cur.fetchall()
> > for row in rows:
>
> You never use ‘rows’ for anything else, so you may as well forget it and
> just iterate directly over the return value::
>
> for row in cur.fe
Hello,
On Tue, Sep 17, 2013 at 12:43:20PM +0530, Venkat Addala wrote:
> Hi all,
>
>
> I'm new to python, i am connecting mysql database with python. now i want
> to do sanitation on the database, like to remove "\n", extra spaces blah
> blah.. and update it back to mysql database. i was trying
hey Ben,
Thanks for your solution, i am done with this before, now i'm having
problem after deleting \n and extra spaces, i want to update it back it
again to mysql db.
For this i tried using regular expression check this code;
# -*- coding: utf-8 -*-
import re
import MySQLdb
pattern = re.comp
On 17 September 2013 05:12, Mohsen Pahlevanzadeh
wrote:
> Dear all,
>
> Unfortunately, i confused and need help... the following code is:
> ###
> ##CheckBox:
> QtCore.QObject.connect(self.checkBox,
> QtCore.SIGNAL(_fromUtf8("toggled(bool)")), lam
Venkat Addala writes:
> I'm new to python
Welcome! Congratulations on choosing Python for programming.
> i am connecting mysql database with python. now i want to do
> sanitation on the database, like to remove "\n", extra spaces blah
> blah.. and update it back to mysql database.
> i was t
Hi all,
I'm new to python, i am connecting mysql database with python. now i want
to do sanitation on the database, like to remove "\n", extra spaces blah
blah.. and update it back to mysql database. i was trying somthing, here is
my code, can you please provide me solution for this..
#!/usr/b
92 matches
Mail list logo