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
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
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
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:
>
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,
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,
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,
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())
#
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
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
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
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
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 *
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
>
>
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
--
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
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.
--
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>
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
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
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
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~
--
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
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
--
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
On Mon, Mar 16, 2015 at 2:43 AM, Jenny Hale jhale7...@gmail.com 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
On Sun, Mar 15, 2015 at 9:43 AM, Jenny Hale jhale7...@gmail.com 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
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 - but
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 sssdeve...@gmail.com wrote:
prev = 0
blocks = []
tmp = []
last = 0
for element in a:
if prev == 0:
Is 0 allowed to be in the input 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 have
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
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 of
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]
On Wed, Jul 9, 2014 at 8:27 AM, sssdevelop sssdeve...@gmail.com 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
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]
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 Sat, 23 Nov 2013 05:11:11 -0800 (PST), Himanshu Garg
hgarg.in...@gmail.com 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
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
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
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 are
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 you can
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,
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 sequence_b(10)
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
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
On Wed, Nov 6, 2013 at 3:49 AM, Mark Lawrence breamore...@yahoo.co.uk 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
On 2013-11-06, Denis McMahon denismfmcma...@gmail.com 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
=
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
EVERYHTIGN I TRIED FAILED.
Maybe try some of the advice you have been given instead?
--
https://mail.python.org/mailman/listinfo/python-list
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 LONG
STRINGS SO I CAN STORE SUCCESSFULLY LIST
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 TO LONG
Στις 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
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
Στις 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
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
On Tue, Nov 5, 2013 at 1:11 PM, Tobiah t...@tobiah.org 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
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
In l5b8if$4k1$1...@dont-email.me Nick the Gr33k nikos.gr...@gmail.com
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
On 05/11/2013 20:19, John Gordon wrote:
In l5b8if$4k1$1...@dont-email.me Nick the Gr33k nikos.gr...@gmail.com
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
Στις 5/11/2013 10:19 μμ, ο/η John Gordon έγραψε:
In l5b8if$4k1$1...@dont-email.me Nick the Gr33k nikos.gr...@gmail.com
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
On 05/11/2013 21:17, Mark Lawrence wrote:
On 05/11/2013 20:19, John Gordon wrote:
In l5b8if$4k1$1...@dont-email.me Nick the Gr33k nikos.gr...@gmail.com
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
On Wed, Nov 6, 2013 at 8:17 AM, Mark Lawrence breamore...@yahoo.co.uk 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
In l5bnpc$71v$1...@dont-email.me Nick the Gr33k nikos.gr...@gmail.com
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 nikos.gr...@gmail.com 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
Στις 6/11/2013 12:06 πμ, ο/η John Gordon έγραψε:
In l5bnpc$71v$1...@dont-email.me Nick the Gr33k nikos.gr...@gmail.com
writes:
# fetch those columns that act as lists but are stored as
strings
cur.execute('''SELECT refs, visits, downloads FROM visitors
WHERE
Στις 6/11/2013 12:15 πμ, ο/η Piet van Oostrum έγραψε:
Nick the Gr33k nikos.gr...@gmail.com 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
On 05/11/2013 22:28, Nick the Gr33k wrote:
Στις 6/11/2013 12:06 πμ, ο/η John Gordon έγραψε:
In l5bnpc$71v$1...@dont-email.me Nick the Gr33k nikos.gr...@gmail.com
writes:
# fetch those columns that act as lists but are stored as
strings
cur.execute('''SELECT refs, visits,
In l5brem$trk$1...@dont-email.me Nick the Gr33k nikos.gr...@gmail.com
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
-
On 05Nov2013 20:09, Nikos nikos.gr...@gmail.com 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
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
On 05/11/2013 22:31, Cameron Simpson wrote:
On 05Nov2013 20:09, Nikos nikos.gr...@gmail.com 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
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 you
Στις 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,
Denis McMahon denismfmcma...@gmail.com 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
1 - 100 of 359 matches
Mail list logo