DISCLAIMER*
I have deliberately not read any of the other replies to this problem so
my answer may be totally redundant! (but here it is anyway...)
One of the first issues that had to be addressed is the fact that your
"CSV" file is probably not in the format you assume it is. Every l
Dear All,
I'm trying to use the facebook-sdk for python [1]. I'm asking here and
not on the SDK groups, because I think this is a basic beginner's
question, not directly related to the framework.
I installed facebook-sdk:
virtualenv .
source bin/activate
pip install facebo
On 17/07/14 23:00, Jose Amoreira wrote:
Aha, the object that stores the default value for the optional argument
is created at the time of the execution of the function definition and
mutable objects do mutate, so that's that. It makes a lot of sense.
Yes, think of it as a feature, not a bug :-
Hi
On 07/17/2014 06:34 PM, Danny Yoo wrote:
Yeah; the default value is not reevaluated between calls. It's a common
gotcha. Here are a few links to read more:
http://effbot.org/zone/default-values.htm
http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments
Good
On 17/07/2014 17:23, Jose Amoreira wrote:
Hello,
On 07/17/2014 12:05 AM, Alan Gauld wrote:
Just throwing this idea in without really thinking about it...
Would itertools.groupby work?
It takes a sorted collection and groups the items found based on a key
function. If the key function deemed t
Hi,
: I am currently working on a project , which has lots of curl
: commands. I am using subprocess.Popen to run these curl commands.
: But somehow i see its bit slow. Is there a way/module by which i
: can improve the performance of the program.
Wow. Is curl a requirement or do you sim
On Thu, Jul 17, 2014 at 11:35 AM, Santosh Kumar wrote:
> I am currently working on a project , which has lots of curl commands. I am
> using subprocess.Popen to run these curl commands. But somehow i see its bit
> slow.
> Is there a way/module by which i can improve the performance of the program
Hi,
I am currently working on a project , which has lots of curl commands. I am
using subprocess.Popen to run these curl commands. But somehow i see its
bit slow.
Is there a way/module by which i can improve the performance of the program.
Thanks,
--
D. Santosh Kumar
RHCE | SCSA
+91-9703206361
On Jul 17, 2014 10:22 AM, "Jose Amoreira" wrote:
>
> Hello
> I stumbled on something I found surprising. I'm using standard python
(cpython, I guess) 2.7 on openSuse 13.1.
>
> Consider the function
>
> In [2]: def f(x,y=[]):
>...: print y
>...: y.append(x)
>...: return x
>
Hello
I stumbled on something I found surprising. I'm using standard python
(cpython, I guess) 2.7 on openSuse 13.1.
Consider the function
In [2]: def f(x,y=[]):
...: print y
...: y.append(x)
...: return x
This is the output of repeated calls to this function:
In [3]: f(
Hello,
On 07/17/2014 12:05 AM, Alan Gauld wrote:
Just throwing this idea in without really thinking about it...
Would itertools.groupby work?
It takes a sorted collection and groups the items found based on a key
function. If the key function deemed two items identical if they were
within dist
Thanks Wesley for the reply. I wanted to utilize what I've learnt so far.
So I thought learning using open source could be a good idea.
Thanks.
Warm Regards,
Mitesh H. Budhabhatti
On Thu, Jul 17, 2014 at 10:25 AM, wesley chun wrote:
>
> > I am learning Python 3 for fun and as hobby. I am exp
12 matches
Mail list logo