I'm trying to understand the source code of python and how it works internally.
But i can't understand the python C apis.
Too much macro calling there and python C api.
I can't understand those.
I've also read the doc for python C api.
What should i do? Which file's code should i read to understan
gmspro, 23.06.2012 09:02:
> I'm trying to understand the source code of python and how it works
> internally.
> But i can't understand the python C apis.
> Too much macro calling there and python C api.
> I can't understand those.
> I've also read the doc for python C api.
>
> What should i do? W
gmspro writes:
> I'm trying to understand the source code of python and how it works
> internally.
> But i can't understand the python C apis.
Usually, you try to understand the Python C api in order to write
extensions for Pyth
Hi all, I have a module that saves and loads data using cPickle, and
I've encountered a problem. Sometimes I want to import the module and
use it in the interactive Python interpreter, whereas sometimes I want
to run it as a script. But objects that have been pickled by running the
module as a
Rotwang wrote:
> Hi all, I have a module that saves and loads data using cPickle, and
> I've encountered a problem. Sometimes I want to import the module and
> use it in the interactive Python interpreter, whereas sometimes I want
> to run it as a script. But objects that have been pickled by runn
On 23/06/12 06:45, rusi wrote:
On Jun 22, 8:58 pm, duncan smith
wrote:
Hello,
I have an application that would benefit from collaborative
working. Over time users construct a "data environment" which is a
number of files in JSON format contained in a few directories (in the
future I'll p
Hello,
http://bugs.python.org/issue5103 fixed a bug in Python2.6 where SSL's
handshake would hang indefinitely if the remote end hangs.
However, I'm getting hanging behavior in an IMAP script. When I Ctrl-C it
after hours of hanging, I get the same stacktrace as reported in
http://bugs.python.or
On 06/23/2012 12:13 PM, Peter Otten wrote:
> Rotwang wrote:
>
>> Hi all, I have a module that saves and loads data using cPickle, and
>> I've encountered a problem. Sometimes I want to import the module and
>> use it in the interactive Python interpreter, whereas sometimes I want
>> to run it as a
On 23/06/2012 17:13, Peter Otten wrote:
Rotwang wrote:
Hi all, I have a module that saves and loads data using cPickle, and
I've encountered a problem. Sometimes I want to import the module and
use it in the interactive Python interpreter, whereas sometimes I want
to run it as a script. But obj
On 23/06/2012 18:31, Dave Angel wrote:
On 06/23/2012 12:13 PM, Peter Otten wrote:
Rotwang wrote:
Hi all, I have a module that saves and loads data using cPickle, and
I've encountered a problem. Sometimes I want to import the module and
use it in the interactive Python interpreter, whereas some
On Sat, 23 Jun 2012 19:14:43 +0100, Rotwang wrote:
> The problem is that if the object was
> pickled by the module run as a script and then unpickled by the imported
> module, the unpickler looks in __main__ rather than mymodule for the
> object's class, and doesn't find it.
Possibly the solutio
Why is python source code not available on github?
Make it available on github so that we can git clone and work on source code.
--
http://mail.python.org/mailman/listinfo/python-list
http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
On Sat, Jun 23, 2012 at 9:16 PM, gmspro wrote:
> Why is python source code not available on github?
>
> Make it available on github so that we can git clone and work on source
> code.
>
> --
> http://mail.python.org/mailman/listinfo/pyt
On 6/23/2012 7:16 PM, gmspro wrote:
> Why is python source code not available on github?
If you mean CPython, it's because the devs use Mercurial and have their
own hosting on python.org.
hg clone http://hg.python.org/cpython
http://docs.python.org/devguide/setup.html
github is far from the only
On Sun, Jun 24, 2012 at 10:16 AM, gmspro wrote:
>
> Why is python source code not available on github?
>
> Make it available on github so that we can git clone and work on source
> code.
It's done with Mercurial, not git, but the same can be done:
hg clone http://hg.python.org/cpython
ChrisA
--
No,
I can download as .tar.bz2, but i'm talking about using git.
git clone, git add ., git commit -a, git push is easier to keep track of my
code. Then for git pull request.
--- On Sat, 6/23/12, George Silva wrote:
From: George Silva
Subject: Re: Why is python source code not available on gith
On Sun, Jun 24, 2012 at 10:34 AM, gmspro wrote:
>
> No,
> I can download as .tar.bz2, but i'm talking about using git.
> git clone, git add ., git commit -a, git push is easier to keep track of
> my code. Then for git pull request.
Mercurial can do all that. I'm not as familiar with it as I am wi
There are some files whose filename is started with _(underscore). Why are they
started with
a underscore?
--
http://mail.python.org/mailman/listinfo/python-list
On 06/24/2012 02:54 AM, gmspro wrote:
There are some files whose filename is started with _(underscore). Why
are they started with
a underscore?
By convention, a leading underscore means private/internal.
A module with a leading underscore is typically an implementation detail
of another modu
I'm creating a cmd.Cmd class, and I have developed a helper method to easily
handle help_xxx methods.
I'm trying to figure out if there is an even lazier way I could do this with
decorators.
Here is the code:
*
import cmd
def add_help(func):
if not hasattr(func, 'im_cl
Hi,
I tried this,
>>> import array
>>> from array import array
>>> arr=array('i',[5,7,8])
>>> arr.sg_length
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'array.array' object has no attribute 'sg_length'
>>> arr=array('i'[5,8,7])
Traceback (most recent call last):
Fi
On Sat, Jun 23, 2012 at 11:23 PM, gmspro wrote:
>
> Hi,
>
> I tried this,
> >>> import array
> >>> from array import array
> >>> arr=array('i',[5,7,8])
> >>> arr.sg_length
> Traceback (most recent call last):
> File "", line 1, in
> AttributeError: 'array.array' object has no attribute 'sg_leng
@Ignacio Mondino,
Doesn't it call this :
http://hg.python.org/cpython/file/c0eab397f098/Python/bltinmodule.c#l1283
instead of this:
http://hg.python.org/cpython/file/3b7230997425/Modules/arraymodule.c#l657
--- On Sat, 6/23/12, Ignacio Mondino wrote:
From: Ignacio Mondino
Subject: Re: How ca
On 6/23/2012 1:29 PM, Michael Gundlach wrote:
Hello,
http://bugs.python.org/issue5103 fixed a bug in Python2.6 where SSL's
I believe the fix first appeared in 2.6.6.
handshake would hang indefinitely if the remote end hangs.
However, I'm getting hanging behavior in an IMAP script. When I C
On Sat, Jun 23, 2012 at 8:23 PM, gmspro wrote:
> I'm trying to call this function,
> http://hg.python.org/cpython/file/3b7230997425/Modules/arraymodule.c#l657
>
> Is that possible to call that function?
>
> I know it's possible to do:
> >>>len(arr)
You call it just like that. array_length is th
25 matches
Mail list logo