DFS wrote:
> Typical cases:
> lines = [('one\ntwo\nthree\n')]
> print(str(lines[0]).splitlines())
> ['one', 'two', 'three']
>
> lines = [('one two three\n')]
> print(str(lines[0]).split())
> ['one', 'two', 'three']
>
>
> That's the result I'm wanting, but I get data in a slightly differen
On 9/4/2021 5:55 PM, DFS wrote:
Typical cases:
lines = [('one\ntwo\nthree\n')]
print(str(lines[0]).splitlines())
['one', 'two', 'three']
lines = [('one two three\n')]
print(str(lines[0]).split())
['one', 'two', 'three']
That's the result I'm wanting, but I get data in a slightly di
See here for a discussion around this issue:
https://github.com/seomoz/reppy/issues/90
This project requires a C++ build environment to be setup on your computer.
The fact that your compiler is reporting that `std=c++11` as an unknown
option shows that you don't have a C++ build environment set up
Oops, forgot the link to the standard library robots.txt parser. Here are
the docs!
https://docs.python.org/3/library/urllib.robotparser.html
*sorry for the noise*
On Thu, Jul 22, 2021 at 11:34 PM Jack DeVries
wrote:
> See here for a discussion around this issue:
> https://github.com/seomoz/r
Did you send a screenshot? If so then understand that this mailing list
does not support photos so you cannot send that. Try giving us a verbal
description. And if you write anything other that the sub then sorry that
is my Gmail's fault.
Souvik flutter dev
On Sat, Apr 11, 2020, 8:32 PM khuchee
On Friday, 6 September 2019 20:15:40 UTC+2, MRAB wrote:
> On 2019-09-06 18:11, Spencer Du wrote:
> > Hi
> >
> > I want to print yes in gui.py but it does not get printed because of the
> > json. How do I fix this. Execute embedded.py and then gui.py to test.
> >
> > def on_message(client, userd
On Friday, 6 September 2019 20:15:40 UTC+2, MRAB wrote:
> On 2019-09-06 18:11, Spencer Du wrote:
> > Hi
> >
> > I want to print yes in gui.py but it does not get printed because of the
> > json. How do I fix this. Execute embedded.py and then gui.py to test.
> >
> > def on_message(client, userd
On Friday, 6 September 2019 20:15:40 UTC+2, MRAB wrote:
> On 2019-09-06 18:11, Spencer Du wrote:
> > Hi
> >
> > I want to print yes in gui.py but it does not get printed because of the
> > json. How do I fix this. Execute embedded.py and then gui.py to test.
> >
> > def on_message(client, userd
On 2019-09-06 18:11, Spencer Du wrote:
Hi
I want to print yes in gui.py but it does not get printed because of the json.
How do I fix this. Execute embedded.py and then gui.py to test.
def on_message(client, userdata, msg):
print("message recieved= " + msg.payload.decode())
# p
On Saturday, November 24, 2018 at 1:44:21 AM UTC-5, Chris Angelico wrote:
> On Sat, Nov 24, 2018 at 5:36 PM wrote:
> >
> > hello all,
> > please hepl me in the above program. python to implement Railway
> > Reservation System using file handling technique.
> >
> > System should perform below ope
On Nov 24, 2018 1:35 AM, wrote:
>
> hello all,
> please hepl me in the above program.
What do you mean by "the above program"? I don't see any.
python to implement Railway Reservation System using file handling
technique.
>
> System should perform below operations.
> a. Reserve a ticket for a p
On Saturday, 24 November 2018 14:33:29 UTC+8, jasmin amrutia wrote:
> hello all,
> please hepl me in the above program. python to implement Railway Reservation
> System using file handling technique.
>
> System should perform below operations.
> a. Reserve a ticket for a passenger.
> b. List in
On Sat, Nov 24, 2018 at 5:36 PM wrote:
>
> hello all,
> please hepl me in the above program. python to implement Railway Reservation
> System using file handling technique.
>
> System should perform below operations.
> a. Reserve a ticket for a passenger.
> b. List information all reservations d
On Fri, Sep 14, 2018 at 4:33 PM, Noel P. CUA wrote:
> Calculate the true, relative and approximate errors, and Relate the
> absolute relative approximate error to the number of significant digits.
>
> epsilon = 1
>
> while epsilon + 1 > 1:
> epsilon = epsilon / 2.0
>
> epsilon = 2 * epsilon
On Thursday, March 1, 2018 at 5:37:28 AM UTC+5:30, Steven D'Aprano wrote:
> On Wed, 28 Feb 2018 09:58:24 -0800, Aktive wrote:
>
> > what the hell do you care about cheating..
> >
> > the world doest care about cheating.
> >
> > its about skill.
>
> Because cheaters don't have skill. That's why
On Wed, 28 Feb 2018 09:58:24 -0800, Aktive wrote:
> what the hell do you care about cheating..
>
> the world doest care about cheating.
>
> its about skill.
Because cheaters don't have skill. That's why they cheat.
> You guys been too much in school
Ah, spoken like a cheater.
--
Steve
On Wednesday, 28 February 2018 06:00:07 UTC+1, Lawrence D’Oliveiro wrote:
> On Wednesday, February 28, 2018 at 4:44:04 PM UTC+13, jlad...@itu.edu wrote:
> > This is part of the reason why interviews for software developer jobs
> > have gotten so crazy.
>
> This is why you need to have a CV that b
On Tuesday, February 27, 2018 at 12:56:52 PM UTC-6, Grant Edwards wrote:
[...]
> The fun part is giving them a solution that's so obscure and "clever"
> that it technically meets the stated requirement but is so far from
> what the instructor wanted that they don't get credit for it (and
> there's
On 02/27/2018 06:54 PM, Grant Edwards wrote:
> The fun part is giving them a solution that's so obscure and "clever"
> that it technically meets the stated requirement but is so far from
> what the instructor wanted that they don't get credit for it (and
> there's no way the student will be able
On Tuesday, February 27, 2018 at 10:56:52 AM UTC-8, Grant Edwards wrote:
> If the student is actively trying to avoid learning something, there's
> nothing you can do to help them. They're just wasting their own time
> and money.
This is part of the reason why interviews for software developer jo
On 2018-02-26 07:17, Stefan Ram wrote:
Percival John Hackworth quoted:
Define 2 lists. The first one must contain the integer values 1, 2 and 3
a =[ 1, 2, 3 ]
and the second one the string values a, b and c.
b =[ 'a', 'b', 'c']
Iterate through both lists to create another list that
cont
On Tue, 27 Feb 2018 10:56:18 -0700, Ian Kelly wrote:
> Cheaters are gonna cheat. In the unlikely event they don't get the
> answer here, they'll probably just manage to convince somebody to do the
> work for them somewhere else. Honestly, I don't know if it's even worth
> the bother to engage.
It
On Tue, Feb 27, 2018 at 2:50 PM, Andre Müller wrote:
> Hello,
>
> it's a duplicate:
> https://python-forum.io/Thread-Working-with-lists-homework-2
>
> I have seen this more than one time. We don't like it. You keep people busy
> with one question at different places.
You assume that it was posted
Hello,
it's a duplicate:
https://python-forum.io/Thread-Working-with-lists-homework-2
I have seen this more than one time. We don't like it. You keep people busy
with one question at different places.
You need two lists and one empty list. One outer loop iterating over the
first list and one inn
On 2018-02-27, Ian Kelly wrote:
> On Tue, Feb 27, 2018 at 10:16 AM, Igor Korot wrote:
>> Congratulations!
>> You have an "A" for solving the problem and "F" for helping the guy cheat.
>> You should be expelled from the course.
>
> In my experience, this is what happens pretty much every time.
> S
On 2018-02-26, sotaro...@gmail.com wrote:
>
> Help me !
a=[1,2,3,]
b=["a","b","c"]
x=[]
z=[]
bonus=[]
for digits in a:
for letters in b:
x.append(str(digits) + letters)
bonus.append(letters + str(digits))
for letter in b:
for number in a:
On Tue, Feb 27, 2018 at 12:56 PM, Ian Kelly wrote:
> On Tue, Feb 27, 2018 at 10:16 AM, Igor Korot wrote:
>> Congratulations!
>> You have an "A" for solving the problem and "F" for helping the guy cheat.
>> You should be expelled from the course.
>
> In my experience, this is what happens pretty m
On Tue, Feb 27, 2018 at 10:16 AM, Igor Korot wrote:
> Congratulations!
> You have an "A" for solving the problem and "F" for helping the guy cheat.
> You should be expelled from the course.
In my experience, this is what happens pretty much every time.
Somebody posts a homework question asking fo
Hi,
On Tue, Feb 27, 2018 at 10:54 AM, Sir Real wrote:
> On Mon, 26 Feb 2018 01:40:16 -0800 (PST), sotaro...@gmail.com wrote:
>
>>Define 2 lists. The first one must contain the integer values 1, 2 and 3 and
>>the second one the string values a, b and c. Iterate through both lists to
>>create ano
On Mon, 26 Feb 2018 01:40:16 -0800 (PST), sotaro...@gmail.com wrote:
>Define 2 lists. The first one must contain the integer values 1, 2 and 3 and
>the second one the string values a, b and c. Iterate through both lists to
>create another list that contains all the combinations of the A and B
>
On Mon, 26 Feb 2018 01:40:16 -0800, sotaro237 wrote:
> Define 2 lists. The first one must contain the integer values 1, 2 and 3
> and the second one the string values a, b and c. Iterate through both
> lists to create another list that contains all the combinations of the A
> and B elements. The f
On Monday, February 26, 2018 at 9:40:54 AM UTC, Negru Popi wrote:
> Define 2 lists. The first one must contain the integer values 1, 2 and 3 and
> the second one the string values a, b and c. Iterate through both lists to
> create another list that contains all the combinations of the A and B
>
Define 2 lists. ...
[...]
Help me !
Sounds like homework. Have you tried anything? Does it work?
--
https://mail.python.org/mailman/listinfo/python-list
Christian Gollwitzer wrote:
> Am 26.02.18 um 10:40 schrieb sotaro...@gmail.com:
>> Define 2 lists. The first one must contain the integer values 1, 2 and 3
>> and the second one the string values a, b and c. Iterate through both
>> lists to create another list that contains all the combinations of
Am 26.02.18 um 10:40 schrieb sotaro...@gmail.com:
Define 2 lists. The first one must contain the integer values 1, 2 and 3 and
the second one the string values a, b and c. Iterate through both lists to
create another list that contains all the combinations of the A and B elements.
The final li
On 09/11/2016 21:25, breamore...@gmail.com wrote:
On Wednesday, November 9, 2016 at 7:34:41 PM UTC, BartC wrote:
However according to your mindset nothing matters provided it's fast,
> accuracy does not matter to users.
Hence your recent comment on another thread about converting invalid in
On Thursday 10 November 2016 18:23, Andrea D'Amore wrote:
> On 10 November 2016 at 00:15, Steve D'Aprano
> wrote:
>> py> import collections
> […]
>> py> import os
>> py> os.listdir('/usr/local/lib/python3.5/collections/')
>
> Not
>
> os.listdir(collections.__path__[0])
>
> since it's alrea
On 10 November 2016 at 00:15, Steve D'Aprano wrote:
> py> import collections
[…]
> py> import os
> py> os.listdir('/usr/local/lib/python3.5/collections/')
Not
os.listdir(collections.__path__[0])
since it's already there?
--
Andrea
--
https://mail.python.org/mailman/listinfo/python-list
On 11/09/2016 04:30 PM, Michael Torrie wrote:
On 11/09/2016 04:21 PM, Ethan Furman wrote:
On 09/11/2016 21:25, breamore...@gmail.com wrote:
[...filtered...]
Mark, you do not need to be insulting nor condescending.
Agreed. Is he still being filtered on the mailing list? He's still in
my ki
On 11/09/2016 04:21 PM, Ethan Furman wrote:
>> On 09/11/2016 21:25, breamore...@gmail.com wrote:
>
> [...filtered...]
>
> Mark, you do not need to be insulting nor condescending.
Agreed. Is he still being filtered on the mailing list? He's still in
my killfile.
--
https://mail.python.org/mail
On 09/11/2016 21:25, breamore...@gmail.com wrote:
[...filtered...]
Mark, you do not need to be insulting nor condescending.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 10 Nov 2016 10:01 am, BartC wrote:
> I haven't ruled out that collections is written in Python. But I can't
> find a 'collections.py' module in my Python 3.4; the nearest is
> "__init__.py". And there /is/ a lot of code there.
And that's exactly right.
py> import collections
py> collecti
On 09/11/2016 21:25, breamore...@gmail.com wrote:
On Wednesday, November 9, 2016 at 7:34:41 PM UTC, BartC wrote:
All the real work is done inside the Collections module. If that was
written in Python, then you'd have to Cythonise that, and there might be
quite a lot of it!
But I think 'collec
On 05/11/2016 04:11, DFS wrote:
It reads in a text file of the Bible, and counts the Top 20 most common
words.
http://www.truth.info/download/bible.htm
import time; start=time.clock()
import sys, string
from collections import Counter
#read fil
On 10/16/2016 05:25 AM, k.adema...@gmail.com wrote:
> Help me!, I would like to find split where the split sums are close
> to each other?
>
> I have a list is
>
> test = [10,20,30,40,50,60,70,80,90,100]
>
> and I would like to find split where the split sums are close to
> each other by number
On Sunday, October 16, 2016 at 12:27:00 PM UTC+1, k.ade...@gmail.com wrote:
> Help me!, I would like to find split where the split sums are close to each
> other?
>
> I have a list is
>
> test = [10,20,30,40,50,60,70,80,90,100]
>
> and I would like to find split where the split sums are close
On 03/30/2016 06:10 AM, srinivas devaki wrote:
ahh, this is the beginning of a conspiracy to waste my time.
PS: just for laughs. not to offend any one.
It's fair: you waste ours, we waste yours. :) A fair, if not good, trade.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-
ahh, this is the beginning of a conspiracy to waste my time.
PS: just for laughs. not to offend any one.
Regards
Srinivas Devaki
Junior (3rd yr) student at Indian School of Mines,(IIT Dhanbad)
Computer Science and Engineering Department
ph: +91 9491 383 249
telegram_id: @eightnoteight
On Mar 30,
Smith writes:
> Il 29/03/2016 11:17, Ben Finney ha scritto:
> > You'll get better help if you:
> >
> > * Summarise the problem briefly in the Subject field.
> >
> > * Actually say anything useful in the message body.
> >
> thanks a lot
You're welcome. Feel free to ask about the Python language h
Il 29/03/2016 11:17, Ben Finney ha scritto:
Smith writes:
[a URL]
You'll get better help if you:
* Summarise the problem briefly in the Subject field.
* Actually say anything useful in the message body.
thanks a lot
--
https://mail.python.org/mailman/listinfo/python-list
Smith writes:
> [a URL]
You'll get better help if you:
* Summarise the problem briefly in the Subject field.
* Actually say anything useful in the message body.
--
\ “My house is on the median strip of a highway. You don't really |
`\notice, except I have to leave the driveway
On Sun, Mar 15, 2015 at 9:43 AM, Jenny Hale wrote:
> Hi
>
> How would I do this?
> The teacher wants to keep track of the scores each member of the class
> obtains in the quiz. There are three classes in the school and the data
> should be kept separately for each class.
Is this a homework assi
On Mon, Mar 16, 2015 at 2:43 AM, Jenny Hale wrote:
> How would I do this?
> The teacher wants to keep track of the scores each member of the class
> obtains in the quiz. There are three classes in the school and the data
> should be kept separately for each class.
>
Thank you for being honest a
On Wednesday, July 9, 2014 9:14:01 PM UTC+5:30, Mark Lawrence wrote:
> On 09/07/2014 15:27, sssdevelop wrote:
> > Hello,
> > I have working code - but looking for better/improved code. Better coding
> > practices, better algorithm :)
> > Problem: Given sequence of increasing integers, print blocks
On 10/07/2014 15:39, sssdevelop wrote:
Mark - thank you so much. You have suggested be new best tool/module.
It's going to help me many places. Was not aware of such powerful tool.
thank you,
I'm pleased to see that you have several answers. In return would you
please use the mailing list
Mark - thank you so much. You have suggested be new best tool/module.
It's going to help me many places. Was not aware of such powerful tool.
thank you,
On Wednesday, July 9, 2014 9:14:01 PM UTC+5:30, Mark Lawrence wrote:
> On 09/07/2014 15:27, sssdevelop wrote:
>
> > Hello,
>
> >
>
> > I
thank you so much!
On Wednesday, July 9, 2014 11:46:41 PM UTC+5:30, Ian wrote:
> On Wed, Jul 9, 2014 at 8:27 AM, sssdevelop wrote:
>
> > prev = 0
>
> > blocks = []
>
> > tmp = []
>
> > last = 0
>
> > for element in a:
>
> >if prev == 0:
>
>
>
> Is 0 allowed to be in the input list?
Thank you so much Terry Jan Reedy. You have given best advice - yup, i am
beginner in Python.
Your reply has done grooming :)
thx,
On Thursday, July 10, 2014 12:16:48 AM UTC+5:30, Terry Reedy wrote:
> On 7/9/2014 10:27 AM, sssdevelop wrote:
>
> > Hello,
>
> >
>
> > I have working code -
On 7/9/2014 10:27 AM, sssdevelop wrote:
Hello,
I have working code - but looking for better/improved code. Better coding
practices, better algorithm :)
Problem: Given sequence of increasing integers, print blocks of consecutive
integers.
Input: [51, 53, 55, 67, 68, 91, 92, 93, 94, 99]
Outo
On Wed, Jul 9, 2014 at 8:27 AM, sssdevelop wrote:
> prev = 0
> blocks = []
> tmp = []
> last = 0
> for element in a:
>if prev == 0:
Is 0 allowed to be in the input list? What would happen if it were?
> next
This line doesn't do anything. It looks up the builtin function named
next an
On 09/07/2014 15:27, sssdevelop wrote:
Hello,
I have working code - but looking for better/improved code. Better coding
practices, better algorithm :)
Problem: Given sequence of increasing integers, print blocks of consecutive
integers.
Example:
Input: [10, 11, 12, 15]
Output: [10, 11, 12]
I have simply opened file in append mode in linux.
script 1 :
file = open("output.log", "a")
file.write()
file.flush()
script 2:
file = open("output.log", "a")
file.write()
file.flush()
It writes properly to the file.
--
https://mail.python.org/mailman/listinfo/python-list
> I want that print "hello" should appear on screen as well as get saved in a
> log file.
> How can I accomplish this?
There are many ways to do this, here's one:
class MultiWriter(object):
def __init__(self, *writers):
self.writers = writers
self.isatty = False
def write
On Sat, 23 Nov 2013 05:11:11 -0800 (PST), Himanshu Garg
wrote:
How can I write to the same file from two different scripts opened
at same time?
Using what version of python and on what OS?
Sone OS's will open the file exclusively by default. Others will let
you stomp all over some other proc
How can I write to the same file from two different scripts opened at same time?
--
https://mail.python.org/mailman/listinfo/python-list
On 22/11/2013 14:15, Steven D'Aprano wrote:
On Fri, 22 Nov 2013 05:51:21 -0800, Himanshu Garg wrote:
I want that print "hello" should appear on screen as well as get saved
in a log file.
How can I accomplish this?
print "hello"
logfile.write("hello\n")
Does that satisfy your need? If not,
Himanshu Garg wrote:
> I want that print "hello" should appear on screen as well as get saved in
> a log file.
>
> How can I accomplish this?
In Python 3 print() is a function -- you can replace it with a custom
function that invokes the original print() twice.
In both Python 3 and Python 2 yo
On Fri, 22 Nov 2013 05:51:21 -0800, Himanshu Garg wrote:
> I want that print "hello" should appear on screen as well as get saved
> in a log file.
>
> How can I accomplish this?
print "hello"
logfile.write("hello\n")
Does that satisfy your need? If not, please explain in more detail what
you
chovd...@gmail.com writes:
> Hi friends
>
> help me with the following code. Im able to execute the code but getting
> wrong output
>
> def sequence_b(N):
> N = 10
> result = 0
> for k in xrange (1,N):
> result += ((-1) ** (k+1))/2*k-1
> print result
> print sequenc
On 2013-11-06, Denis McMahon wrote:
> On Wed, 06 Nov 2013 00:35:56 +0200, Nick the Gr33k wrote:
>
>> Now i realizes i just cannot store lists into it's columns because it
>> does not support a collection datatype.
>
> All databases support storing of collections, but *NOT THE WAY YOU WANT
> TO DO
On Wed, Nov 6, 2013 at 3:49 AM, Mark Lawrence wrote:
> On 06/11/2013 01:14, Nick the Gr33k wrote:
>>
>>
>> How, do i i proceed?
>
>
> If at first you don't succeed, keep asking on comp.lang.python until someone
> gives me the completely bodged solution that I keep asking for even if it's
> complet
On 06/11/2013 01:14, Nick the Gr33k wrote:
How, do i i proceed?
If at first you don't succeed, keep asking on comp.lang.python until
someone gives me the completely bodged solution that I keep asking for
even if it's complete nonsense.
--
Python is the second best programming language in t
Op 05-11-13 22:26, Nick the Gr33k schreef:
> I know i'm close to solution, i can feel it but i have some issues.
> The code we arr discussing is the following:
No you are not. You are just doing random changes, without any
understanding. If you had followed my suggestion and actually
read the doc
On Tue, 5 Nov 2013 17:51:00 -0800 (PST), chovd...@gmail.com wrote:
result += ((-1) ** (k+1))/2*k-1
One of two things are happening here. Maybe both.
You're using Python 2.x (and should havesaid so) where integer
division is truncated.
You're missing around some part of the intende
On Tue, 05 Nov 2013 17:51:00 -0800, chovdary wrote:
> Hi friends
>
> help me with the following code. Im able to execute the code but getting
> wrong output
[snip code]
You have this critical expression in your code:
result += ((-1) ** (k+1))/2*k-1
It looks to me like you are using Python 2
On 06/11/2013 01:51, chovd...@gmail.com wrote:
Hi friends
help me with the following code. Im able to execute the code but getting wrong
output
def sequence_b(N):
N = 10
result = 0
for k in xrange (1,N):
result += ((-1) ** (k+1))/2*k-1
print result
print sequ
Denis McMahon writes:
> You have been told several times by several people how to do this
> properly. You insist on using your bodged up solution instead. OK, we'll
> all try and help you bodge up a solution[…]
Why? No-one here is obligated to help with implementing a solution we
agree is bad.
Στις 6/11/2013 12:54 πμ, ο/η John Gordon έγραψε:
The code i provided only worked once before it failed and managed to
store this:
counterID,host,refs,city,userOS,browser,visits,hits,download
-
1, 176-92-96-218.adsl.cyta.gr, Euro
On Wed, 06 Nov 2013 00:35:56 +0200, Nick the Gr33k wrote:
> Now i realizes i just cannot store lists into it's columns because it
> does not support a collection datatype.
All databases support storing of collections, but *NOT THE WAY YOU WANT
TO DO IT*
You refuse to do it the proper way, so yo
On 05/11/2013 22:31, Cameron Simpson wrote:
On 05Nov2013 20:09, Nikos wrote:
O even better an rdbms than allows complex data such as tuples,
lists, dicts to be saved into the db as they are so i dont have to
cobvet back and forth each time.
If you're just using the db for storage or adhoc and
There is also the shelve module.
It uses pickle to marshal a Python object, then stores it in a file
under a key.
Sample code from the module documentation:
import shelve
d = shelve.open(filename) # open -- file may get suffix added by
low-level library
d[key] = data # store data at key
On 05Nov2013 20:09, Nikos wrote:
> O even better an rdbms than allows complex data such as tuples,
> lists, dicts to be saved into the db as they are so i dont have to
> cobvet back and forth each time.
If you're just using the db for storage or adhoc and arbitrary
python objects (and not queryin
In Nick the Gr33k
writes:
> The code i provided only worked once before it failed and managed to
> store this:
>
> counterID,host,refs,city,userOS,browser,visits,hits,download
> -
> 1, 176-92-96-218.adsl.cyta.gr, Europe/Athens,
On 05/11/2013 22:28, Nick the Gr33k wrote:
Στις 6/11/2013 12:06 πμ, ο/η John Gordon έγραψε:
In Nick the Gr33k
writes:
# fetch those columns that act as lists but are stored as
strings
cur.execute('''SELECT refs, visits, downloads FROM visitors
WHERE
counterID = %s and host =
Στις 6/11/2013 12:15 πμ, ο/η Piet van Oostrum έγραψε:
Nick the Gr33k writes:
IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK.
ALL I WANT IT TO DO IS JUST
1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS
2. CONVERT LONG STRINGS TO LISTS
3. ADD SOME CURRENT VALUES TO THOSE L
Στις 6/11/2013 12:06 πμ, ο/η John Gordon έγραψε:
In Nick the Gr33k
writes:
# fetch those columns that act as lists but are stored as
strings
cur.execute('''SELECT refs, visits, downloads FROM visitors
WHERE
counterID = %s and host = %s''', (cID, host) )
Nick the Gr33k writes:
>
> IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK.
>
> ALL I WANT IT TO DO IS JUST
>
> 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS
> 2. CONVERT LONG STRINGS TO LISTS
> 3. ADD SOME CURRENT VALUES TO THOSE LISTS
> 4. CONVERT FROM LISTS TO LONG STRINGS
In Nick the Gr33k
writes:
> # fetch those columns that act as lists but are stored as
> strings
> cur.execute('''SELECT refs, visits, downloads FROM visitors
> WHERE
> counterID = %s and host = %s''', (cID, host) )
> data = cur.fetchone()
>
On Wed, Nov 6, 2013 at 8:17 AM, Mark Lawrence wrote:
> I've taken a different approach. I've put the contract out to tender and
> hereby give you the winners
> http://www.mudefordwoodcommunitycentre.co.uk/playgroup-and-tiny-tots/
Sounds good! But I don't see a list of their technologies - do they
On 05/11/2013 21:17, Mark Lawrence wrote:
On 05/11/2013 20:19, John Gordon wrote:
In Nick the Gr33k
writes:
IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK.
ALL I WANT IT TO DO IS JUST
1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS
2. CONVERT LONG STRINGS TO LISTS
3
Στις 5/11/2013 10:19 μμ, ο/η John Gordon έγραψε:
In Nick the Gr33k
writes:
IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK.
ALL I WANT IT TO DO IS JUST
1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS
2. CONVERT LONG STRINGS TO LISTS
3. ADD SOME CURRENT VALUES TO THOS
On 05/11/2013 20:19, John Gordon wrote:
In Nick the Gr33k
writes:
IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK.
ALL I WANT IT TO DO IS JUST
1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS
2. CONVERT LONG STRINGS TO LISTS
3. ADD SOME CURRENT VALUES TO THOSE LISTS
4
In Nick the Gr33k
writes:
> IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK.
> ALL I WANT IT TO DO IS JUST
> 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS
> 2. CONVERT LONG STRINGS TO LISTS
> 3. ADD SOME CURRENT VALUES TO THOSE LISTS
> 4. CONVERT FROM LISTS TO LONG STRING
On Tue, 05 Nov 2013 20:09:42 +0200, Nick the Gr33k wrote:
> Denis, i have already provided my code trying to do what i need and i
> need some commendation on how to make it work.
Nick, you're obviously trying to code way above your abilities.
If you want me to write your code, you will have to p
On Tue, Nov 5, 2013 at 1:11 PM, Tobiah wrote:
> All this problem arises because MySQL's hasn't got a datatype able to store
> an array of elements, a list.
>
> Um, yes it does. It's called a table.
> --
> https://mail.python.org/mailman/listinfo/python-list
Perhaps we are splitting hairs, but a
All this problem arises because MySQL's hasn't got a datatype able to store an
array of elements, a list.
Um, yes it does. It's called a table.
--
https://mail.python.org/mailman/listinfo/python-list
Στις 5/11/2013 8:02 μμ, ο/η Denis McMahon έγραψε:
On Tue, 05 Nov 2013 19:06:25 +0200, Nick the Gr33k wrote:
IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK.
Try starting with something simple. The following is a step by step guide
to working out how you need to do this. Follow a
On Tue, 05 Nov 2013 19:06:25 +0200, Nick the Gr33k wrote:
> IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK.
Try starting with something simple. The following is a step by step guide
to working out how you need to do this. Follow all the steps. Do not skip
any steps. Each stage bu
Στις 5/11/2013 7:41 μμ, ο/η Steven D'Aprano έγραψε:
On Tue, 05 Nov 2013 19:06:25 +0200, Nick the Gr33k wrote:
ALL I WANT IT TO DO IS JUST
1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS 2. CONVERT LONG
STRINGS TO LISTS
3. ADD SOME CURRENT VALUES TO THOSE LISTS 4. CONVERT FROM LISTS TO LON
Op 05-11-13 18:41, Steven D'Aprano schreef:
> On Tue, 05 Nov 2013 19:06:25 +0200, Nick the Gr33k wrote:
>
>> ALL I WANT IT TO DO IS JUST
>>
>> 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS 2. CONVERT LONG
>> STRINGS TO LISTS
>> 3. ADD SOME CURRENT VALUES TO THOSE LISTS 4. CONVERT FROM LISTS
1 - 100 of 360 matches
Mail list logo