km wrote:
> Hi all,
>
>
>>Perl's pack function will allow you to do direct memory access if you
>>ask it to via the "p" and "P" templates.
>
>
> can we do direct memory accessing in python also ?
>
> regards,
> KM
Not, I'm happy to say, without a C extension class to allow it.
regards
S
Hi all,
> Perl's pack function will allow you to do direct memory access if you
> ask it to via the "p" and "P" templates.
can we do direct memory accessing in python also ?
regards,
KM
--
http://mail.python.org/mailman/listinfo/python-list
On 12 Jan 2005 08:22:04 GMT, Abigail <[EMAIL PROTECTED]> wrote:
[...]
> Wrong. Perl functions don't take memory addresses. Perl doesn't allow
> the programmer to do direct memory access.
Perl's pack function will allow you to do direct memory access if you
ask it to via the "p" and "P" templates
Xah Lee ([EMAIL PROTECTED]) wrote on CLII September MCMXCIII in
news:[EMAIL PROTECTED]>:
::
:: # in perl, list is done with paren ().
Wrong. Except in a few cases, parens don't make lists. Parens are
used from precedence. *Context* makes lists.
:: # the at sign in front of variable is nec
# in Python, list can be done this way:
a = [0, 1, 2, 'more',4,5,6]
print a
# list can be joined with plus sign
b = a + [4,5,6]
print b
# list can be extracted by appending a square bracket with index
# negative index counts from right.
print b[2]
print b[-2]
# sublist extraction
print 'element