A new RedNotebook version has been released.
You can get the tarball, the Windows installer and links to distribution
packages at
http://rednotebook.sourceforge.net/downloads.html
What is RedNotebook?
RedNotebook is a **graphical journal** and diary helping you keep
=
EuroScipy 2011 - Deadline Approaching
=
Beware: talk submission deadline is approaching.
You can submit your contribution until Sunday May 8.
-
The 4th European meeting on Python
after a long delay the pyjamas project - http://pyjs.org - has begun the
0.8 series of releases, beginning with alpha1:
https://sourceforge.net/projects/pyjamas/files/pyjamas/0.8/
pyjamas is a suite of projects, including a python-to-javascript
compiler with two modes of operation (roughly
You can do this easy by adding this to the options dict in setup.py
'dll_excludes': [ mswsock.dll, powrprof.dll ]
source:
http://stackoverflow.com/questions/1979486/py2exe-win32api-pyc-importerror-dll-load-failed
-Amit
alex23 wrote:
Alex Hall mehg...@gmail.com wrote:
I am stumped. The
Hi all,
We're still waiting for some tardy presenters who haven't put in their
proposals yet, and it's unfair to give just them an extension so we're
leaving the submission system open until next Monday, the 9th of May.
Thanks to everyone else who put in their proposals on time, and we'll
be
On Mon, May 2, 2011 at 6:56 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
(The fact that most of those start with P is almost certainly a
coincidence.)
There's definitely something attractive about that letter. Lots of
programming languages' names start with P. I smell a
For tutorialPython.pdf
Page 17 of the ebook (i.e. page 23 of pdf) under topic 3.2 First Steps towards
programming
Under while loop, there should be a , after print b
Print b,
(a comma after 'b' is missing)
Regards,
__
Chris Angelico ros...@gmail.com wrote:
Here's a side point. What types will hold a reference to the enclosing
module (or at least its dictionary)? Would it be possible to use a
from import to load a module, then lose the module even though
you're using objects from it?
I am guessing that a
On Sat, Apr 30, 2011 at 7:29 PM, Dylan Evans dy...@contentfree.info wrote:
I think i see what you are trying to do but it depends on the environment
and your goals.
Generally i think you need to separate your code by forking (or perhaps you
have already done that?),
then you can run a check
James Mills wrote:
On Wed, May 4, 2011 at 10:45 AM, Astan Chee astan.c...@gmail.com wrote:
Hi,
I'm trying to make a python script (in windows 7 x64 using python 2.5) to
start a process, and kill it after x minutes/seconds and kill all the
descendants of it.
Whats the best way of doing this
To illustrate the neither-fish-nor-fowl nature of Python calls:
mwilson@tecumseth:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information. def
identify_call (a_list):
... a_list[0] = If you can see
On Wed, 04 May 2011 02:56:28 -0700, Devin Jeanpierre wrote:
Python is pass-by-value in a
meaningful sense, it's just that by saying that we say that the values
being passed are references/pointers. This is maybe one level of
abstraction below what's ideal,
Maybe?
Given the following
First, i'm sorry for any inglish error!
So, i use the BaseHTTPServer to create a page for monitoring purposes,
someone now how to direct the event log to a file?
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
x = spam
what is the value of the variable x? Is it...?
(1) The string spam.
Python works about the same way as Lisp or Scheme with regard to this
sort of thing, and those languages have been described with quite a bit
of
On Wed, 4 May 2011 02:56:28 -0700 (PDT), Devin Jeanpierre
jeanpierr...@gmail.com wrote:
: Eh, that example doesn't say what you think it does. It has the same
: behavior in C: http://ideone.com/Fq09N . Python is pass-by-value in a
: meaningful sense, it's just that by saying that we say that
On May 3, 4:08 pm, Jabba Laci jabba.l...@gmail.com wrote:
Hi,
I'm just reading Robert M. Martin's book entitled Clean Code. In Ch.
5 he says that a function that is called should be below a function
that does the calling. This creates a nice flow down from top to
bottom.
However, when I
On May 4, 6:51 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Wed, 04 May 2011 02:56:28 -0700, Devin Jeanpierre wrote:
Python is pass-by-value in a
meaningful sense, it's just that by saying that we say that the values
being passed are references/pointers. This is maybe
On May 4, 6:56 am, Hans Georg Schaathun h...@schaathun.net wrote:
On Wed, 4 May 2011 02:56:28 -0700 (PDT), Devin Jeanpierre
jeanpierr...@gmail.com wrote:
: Eh, that example doesn't say what you think it does. It has the same
: behavior in C:http://ideone.com/Fq09N. Python is pass-by-value
after a long delay the pyjamas project - http://pyjs.org - has begun the
0.8 series of releases, beginning with alpha1:
https://sourceforge.net/projects/pyjamas/files/pyjamas/0.8/
pyjamas is a suite of projects, including a python-to-javascript
compiler with two modes of operation (roughly
On Wed, 4 May 2011 06:12:14 -0700 (PDT), Devin Jeanpierre
jeanpierr...@gmail.com wrote:
: I don't think of pass-by-value involving references as being an
: implementation-level thing. It's a way of thinking about Python's
: behavior: a model. (...)
: It isn't particularly contorted. I
On Wed, May 4, 2011 at 11:44 PM, Hans Georg Schaathun h...@schaathun.net
wrote:
It is contorted and implementation-level because it is one level below
the abstraction assumed by the language. It only works by assuming
knowledge of C, which is language which has proved unsuitable for
complex
On May 3, 3:50 pm, Hrvoje Niksic hnik...@xemacs.org wrote:
I would say that, considering currently most popular languages and
platforms, Python's data model is in the majority. It is only the
people coming from a C++ background that tend to be confused by it.
In C++, one will ususally put
On May 3, 6:33 pm, Mel mwil...@the-wire.com wrote:
def identify_call (a_list):
a_list[0] = If you can see this, you don't have call-by-value
a_list = [If you can see this, you have call-by-reference]
The first one is a mistake. If it were pass-by-value, it would
assign the string to a
On 5/3/11 9:28 PM, Stefan Kuzminski wrote:
closer I think
1) I changed tp_name to be 'observation.MV' ( module is named observation.c )
and now I get a new error..
PicklingError: Can't pickle type 'observation.MV': import of module
observation failed
2) here is the init function, sorry I did
I got this to work by returning from reduce just the args that the __init__
of the type being pickled requires ( rather than the 5 length tuple
described in the pickling docs ), I am not going to argue with it though..
thank you *very* much for the help!
S
On Wed, May 4, 2011 at 11:06 AM,
On Wed, May 4, 2011 at 3:06 PM, Luke Kenneth Casson Leighton
l...@lkcl.net wrote:
after a long delay the pyjamas project - http://pyjs.org - has begun the
0.8 series of releases, beginning with alpha1:
https://sourceforge.net/projects/pyjamas/files/pyjamas/0.8/
pyjamas is a suite of
Hi,
You may create a subclass of (or Mixin for) BaseHTTPRequestHandler to
override its log_message() method.
Here's a really simple example ; it's perfectible, but it should show
you the way :
class MyLoggingHTTPRequestHandler(BaseHTTPRequestHandler):
def log_message(self, format,
On 05/04/2011 08:44 AM, sturlamolden wrote:
On May 3, 6:33 pm, Mel mwil...@the-wire.com wrote:
def identify_call (a_list):
a_list[0] = If you can see this, you don't have call-by-value
a_list = [If you can see this, you have call-by-reference]
The first one is a mistake. If it were
On 4 maio, 12:55, Tapi t...@syskall.net wrote:
Hi,
You may create a subclass of (or Mixin for) BaseHTTPRequestHandler to
override its log_message() method.
Here's a really simple example ; it's perfectible, but it should show
you the way :
class
On May 4, 9:44 am, Hans Georg Schaathun h...@schaathun.net wrote:
: The only twist is that you never get to dereference
: pointers in Python, but you can in C. Not much of a twist if you ask
: me, but then again, I've been thinking in thismodelfor years. Maybe
: I'm
I have a dos program (run in a window) that I would like to control
with a script. It needs only text input. For example, I only need to
tell it:
L
u
100 cr
u
It will then wait for a file to be created, rename the file, then
loop. Simple.
I'd like to run this on Lucid Puppy Linux as it will
Look into the pexpect library, it'll make this easy as punch.
http://www.noah.org/wiki/pexpect
On Wed, May 4, 2011 at 12:34 PM, ETP matthew.moorl...@gmail.com wrote:
I have a dos program (run in a window) that I would like to control
with a script. It needs only text input. For example, I
On May 4, 5:40 pm, Michael Torrie torr...@gmail.com wrote:
Which is exactly what the code showed. The first one isn't a mistake.
You just read it wrong.
No, I read call-by-value but it does not make a copy. Call-by-value
dictates a deep copy or copy-on-write. Python does neither. Python
pass
Hello,
I'm hoping that there will be someone here with sufficient expertise
to answer a question on Python 3 for me.
I work in the Computer Science department at a large Canadian
University. We are currently doing a feasibility analysis for switching
to using Python in our first year
On 2011-05-04, Matty Sarro msa...@gmail.com wrote:
On Wed, May 4, 2011 at 12:34 PM, ETP matthew.moorl...@gmail.com wrote:
I have a dos program (run in a window) that I would like to control
with a script.
Look into the pexpect library, it'll make this easy as punch.
I don't think pexpect
On Wed, 4 May 2011 09:18:56 -0700 (PDT), Devin Jeanpierre
jeanpierr...@gmail.com wrote:
: I'm a bit uncomfortable with the vibe here. It's one thing for me to
: self-deprecatingly suggest I'm brainwashed (with a smile), and another
: for you to agree in complete seriousness.
I am sorry. It
On May 4, 6:51 pm, Daniel Neilson ddneil...@gmail.com wrote:
In either case, if such a module is possible, any pointers you could
provide regarding how to implement such a module would be appreciated.
The gc module will hook into the garbage collector.
The del statement will remove an
On Wed, May 4, 2011 at 12:40 PM, sturlamolden stu...@molden.no wrote:
On May 4, 5:40 pm, Michael Torrie torr...@gmail.com wrote:
Which is exactly what the code showed. The first one isn't a mistake.
You just read it wrong.
No, I read call-by-value but it does not make a copy.
I'm using Python 2.4 and 2.7 for different apps. I'm happy with a
solution for either one.
I've got to talk to a url that uses a session cookie. I only need to
set this when I'm developing/debugging so I don't need a robust
production solution and I'm somewhat confused by the docs on cookielib.
On Thu, 5 May 2011 00:20:34 +1000, Chris Angelico
ros...@gmail.com wrote:
: Sometimes, to explain Python, you need to dig down to the underlying
: hardware - even deeper than C, if you like.
Sometimes you may need to narrow down the scope and explain a particular
implementation of python with
On May 4, 7:15 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote:
You missed a word in the sentence.
If you can see this, you DON'T have call-by-value
Indeed I did, sorry!
Then we agree :)
Sturla
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, May 4, 2011 at 10:52 AM, Grant Edwards invalid@invalid.invalid wrote:
On 2011-05-04, Matty Sarro msa...@gmail.com wrote:
On Wed, May 4, 2011 at 12:34 PM, ETP matthew.moorl...@gmail.com wrote:
I have a dos program (run in a window) that I would like to control
with a script.
Look into
send resumes to jer...@jjcpl.net
One of our client in New Jersey is looking for Python Developers with 5 years
of experience. If you have any resumes please send it across.
--
http://mail.python.org/mailman/listinfo/python-list
On 5/4/2011 3:45 AM, Mehta, Pratik wrote:
For tutorialPython.pdf
Page 17 of the ebook (i.e. page 23 of pdf) under topic *3.2 First Steps
towards programming*
Under while loop, there should be a “,” after print b
Print b,
(a comma after ‘b’ is missing)
[You should mention versions when
Sturla had some great comments; I'll add, in no particular order:
1) You could use the ctypes module to call the real malloc and free from
Python.
2) Yes, a Python C extension module can do explicit memory allocation.
3) Cython provides a language that is a hybrid of Python and C. It might be
rusi rustompm...@gmail.com writes:
I actually use rcs in Windows. Needs a little setup, but works great,
from Emacs VC-mode too.
Where do you get it?
[What google is showing seems to be about 10-15 years old]
As far as I know, RCS hasn't been updated since 5.7 which is about 10
years old
On 2011-05-04, Ian Kelly ian.g.ke...@gmail.com wrote:
On Wed, May 4, 2011 at 10:52 AM, Grant Edwards invalid@invalid.invalid
wrote:
On 2011-05-04, Matty Sarro msa...@gmail.com wrote:
On Wed, May 4, 2011 at 12:34 PM, ETP matthew.moorl...@gmail.com wrote:
I have a dos program (run in a window)
Here's a 22-line beauty for a classic and amazing algorithm:
http://bit.ly/bloom_filter
The wiki article on the algorithm is brief and well-written:
http://en.wikipedia.org/wiki/Bloom_filter
It turns out that people in the 1970's were pretty smart :-)
Raymond
---
follow my other python
Raymond Hettinger wrote:
I'm writing-up more guidance on how to use super() and would like to
point at some real-world Python examples of cooperative multiple
inheritance.
Don't know if you are still looking for examples, but I recently came
across a thread in Python-Dev which had an example
On 5/4/11 10:45 AM, Stefan Kuzminski wrote:
I got this to work by returning from reduce just the args that the __init__ of
the type being pickled requires ( rather than the 5 length tuple described in
the pickling docs ), I am not going to argue with it though..
Let's take a step back. The
On 5/4/2011 10:06 AM, Luke Kenneth Casson Leighton wrote:
after a long delay the pyjamas project - http://pyjs.org - has begun the
0.8 series of releases, beginning with alpha1:
https://sourceforge.net/projects/pyjamas/files/pyjamas/0.8/
pyjamas is a suite of projects, including a
On 5/4/2011 12:51 PM, Daniel Neilson wrote:
Hello,
I'm hoping that there will be someone here with sufficient expertise to
answer a question on Python 3 for me.
I work in the Computer Science department at a large Canadian
University. We are currently doing a feasibility analysis for switching
On 04-05-11 20:17, Raymond Hettinger wrote:
Here's a 22-line beauty for a classic and amazing algorithm:
http://bit.ly/bloom_filter
The wiki article on the algorithm is brief and well-written:
http://en.wikipedia.org/wiki/Bloom_filter
It turns out that people in the 1970's were pretty smart
It turns out that people in the 1970's were pretty smart :-)
I think that often, the cleverness of people is inversely proportional
to the amount of CPU power and RAM that they have in their computer.
The Google guys have plenty of CPU power *and* plenty of
cleverness :-)
According to the
On 5/4/2011 12:34 PM, ETP wrote:
I have a dos program (run in a window) that I would like to control
with a script.
Look at the subprocess module. You may have to (and be able to) have it
start up the window program with the dos program as an argument.
It needs only text input. For
On 2011-05-04, Irmen de Jong ir...@-nospam-xs4all.nl wrote:
On 04-05-11 20:17, Raymond Hettinger wrote:
Here's a 22-line beauty for a classic and amazing algorithm:
http://bit.ly/bloom_filter
The wiki article on the algorithm is brief and well-written:
Hans Georg Schaathun wrote:
It only works by assuming
knowledge of C, which is language which has proved unsuitable for
complex and abstract data modelling.
That statement is untrue; evidenced by the very fact the CPython's
complex and abstract data modeling has been very suitably handled
Raymond Hettinger pyt...@rcn.com writes:
Here's a 22-line beauty for a classic and amazing algorithm:
http://bit.ly/bloom_filter
The use of pickle to serialize the keys is a little bit suspicious if
there might be a reason to dump the filter to disk and re-use it in
another run of the program.
Hans Georg Schaathun wrote:
In C it is pass by value, as the pointer
is explicit and do whatever you want with the pointer value.
You clearly are not a C programmer.
Most of my C data abstractions use dual circular linked lists of
pointers to structures of pointers. *All* of that is only
On 04-05-11 21:13, Raymond Hettinger wrote:
It turns out that people in the 1970's were pretty smart :-)
I think that often, the cleverness of people is inversely proportional
to the amount of CPU power and RAM that they have in their computer.
The Google guys have plenty of CPU power *and*
On 5/4/2011 2:17 PM, Raymond Hettinger wrote:
Here's a 22-line beauty for a classic and amazing algorithm:
http://bit.ly/bloom_filter
The wiki article on the algorithm is brief and well-written:
http://en.wikipedia.org/wiki/Bloom_filter
As I understand the article, the array of num_bits
On Wed, May 4, 2011 at 3:22 PM, harrismh777 harrismh...@charter.net wrote:
Hans Georg Schaathun wrote:
It only works by assuming
knowledge of C, which is language which has proved unsuitable for
complex and abstract data modelling.
That statement is untrue; evidenced by the very fact the
Devin Jeanpierre wrote:
How was the date last night?
Oh, it was marvelous! He presented me with a single red stink-weed, and
then we went to a disgusting little restaurant. I had the swill.
Please don't argue with me in this manner.
D'Aprano takes a little getting used to. He
Benjamin Kaplan wrote:
CPython is implemented in C because that's the language chosen. Python
is also implemented in Java, C#, Python, and several other languages.
True enough. If I used Jython, I would want to take a look at those
sources... as well as the Java sources... which were
On Wed, 04 May 2011 14:22:38 -0500, harrismh777
harrismh...@charter.net wrote:
: That statement is untrue; evidenced by the very fact the CPython's
: complex and abstract data modeling has been very suitably handled by C.
That's an implementation. Not modelling.
: You cannot
On 2011-05-04, harrismh777 harrismh...@charter.net wrote:
Hans Georg Schaathun wrote:
In C it is pass by value, as the pointer is explicit and do whatever
you want with the pointer value.
You clearly are not a C programmer.
Most of my C data abstractions use dual circular linked lists of
On Wed, May 4, 2011 at 9:34 AM, ETP matthew.moorl...@gmail.com wrote:
I have a dos program (run in a window) that I would like to control
with a script. It needs only text input.
It will then wait for a file to be created, rename the file, then
loop. Simple.
Or not.
I'd like to run
On Wed, 04 May 2011 14:33:34 -0500, harrismh777
harrismh...@charter.net wrote:
: Hans Georg Schaathun wrote:
: In C it is pass by value, as the pointer
: is explicit and do whatever you want with the pointer value.
:
: You clearly are not a C programmer.
I am not really a programmer
On Wed, 04 May 2011 14:58:38 -0500, harrismh777
harrismh...@charter.net wrote:
: True enough. If I used Jython, I would want to take a look at those
: sources... as well as the Java sources... which were wrtten in, um, C.
And then, suddenly, you'll be developing code which fails on
Hello,
I spent a lot of time googling for a solution of this problem, with no
result.
I have a C++ application, in which I would like to embed Python interpreter.
I don't want to rely on an interpreter being installed on user machine,
instead I would like to distribute all the necessary files
Grant Edwards wrote:
We do not consider passing a pointer as*by value* because its an
address; by definition, that is pass-by-reference.
No, it isn't. It's pass by value. The fact that you are passing a
value that is a pointer to another value is not relevent.
@ Edwards, Schaathun
You
On May 4, 12:42 pm, Terry Reedy tjre...@udel.edu wrote:
On 5/4/2011 2:17 PM, Raymond Hettinger wrote:
Here's a 22-line beauty for a classic and amazing algorithm:
http://bit.ly/bloom_filter
The wiki article on the algorithm is brief and well-written:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
Given the following statement of Python code:
x = spam
what is the value of the variable x?
Mu (無).
‘x’ is a name. Names are bound to values. Talk of “variable” only
confuses the issue because of the baggage carried with that
Jerome jjcpl.rpo jjcpl@gmail.com writes:
One of our client in New Jersey is looking for Python Developers with
5 years of experience. If you have any resumes please send it across.
Please do not solicit for jobs here. Instead, the Python Job Board
URL:http://www.python.org/community/jobs/
Hans Georg Schaathun wrote:
That does not in any way impugn C..;.
: quite the contrary, given enough time, C is better suited for modeling
: on a von Neumann processor, period.
What has that got to do with abstraction?
Everything, really.
Folks seem to think that because they are doing
On 5/4/2011 3:51 AM, Steven D'Aprano wrote:
On Wed, 04 May 2011 02:56:28 -0700, Devin Jeanpierre wrote:
Python is pass-by-value in a
meaningful sense, it's just that by saying that we say that the values
being passed are references/pointers. This is maybe one level of
abstraction below what's
On May 4, 12:27 pm, Paul Rubin no.em...@nospam.invalid wrote:
Raymond Hettinger pyt...@rcn.com writes:
Here's a 22-line beauty for a classic and amazing algorithm:
http://bit.ly/bloom_filter
The use of pickle to serialize the keys is a little bit suspicious if
there might be a reason to
On 2011-05-04, harrismh777 harrismh...@charter.net wrote:
Grant Edwards wrote:
We do not consider passing a pointer as*by value* because its an
address; by definition, that is pass-by-reference.
No, it isn't. It's pass by value. The fact that you are passing a
value that is a pointer to
On Wed, May 4, 2011 at 3:09 PM, Wojtek Mamrak tacyt1...@gmail.com wrote:
Hello,
I spent a lot of time googling for a solution of this problem, with no
result.
I have a C++ application, in which I would like to embed Python interpreter.
I don't want to rely on an interpreter being installed
Thanks everyone.
I actually ran the program in question using Wine compatibility layer
and it seemed to work fine.
Terry, that looks like it could be useful, too. I'll give it a shot
and let you guys know how it works.
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, May 4, 2011 at 3:35 PM, harrismh777 harrismh...@charter.net wrote:
Grant Edwards wrote:
We do not consider passing a pointer as*by value* because its an
address; by definition, that is pass-by-reference.
No, it isn't. It's pass by value. The fact that you are passing a
value
Grant Edwards invalid@invalid.invalid writes:
On 2011-05-04, Irmen de Jong ir...@-nospam-xs4all.nl wrote:
I think that often, the cleverness of people is inversely
proportional to the amount of CPU power and RAM that they have in
their computer.
True.
Unfortunately the difficulty in
If anyone hasn't seen this yet, I encourage you to!
(I stumbled upon it with some random thoughts and Gooogling)
http://www.picloud.com/
Here's a quick test I wrote up that works locally using the simulator
and live (I did run it live):
#!/usr/bin/env python
import cloud
def fib(n):
a, b,
On Wed, May 4, 2011 at 5:13 PM, James Mills
prolo...@shortcircuit.net.au wrote:
If anyone hasn't seen this yet, I encourage you to!
(I stumbled upon it with some random thoughts and Gooogling)
http://www.picloud.com/
Here's a quick test I wrote up that works locally using the simulator
and
On 5/4/2011 5:39 PM, Raymond Hettinger wrote:
The 512 bits in h are progressively eaten-up between iterations. So
each pass yields a different (array index, bit_mask) pair.
Yeh, obvious now that I see it.
It's easy to use the interactive prompt to show that different probes
are produced on
On Thu, May 5, 2011 at 10:19 AM, geremy condra debat...@gmail.com wrote:
I was the poster across from them at PyCon two years back. Pretty fun
to play with, although last I checked it was hard to do true HPC on
it.
Why's that ? And what is true HPC (High Performance Computing) anyway ?
I find
On Wed, May 4, 2011 at 5:29 PM, James Mills
prolo...@shortcircuit.net.au wrote:
On Thu, May 5, 2011 at 10:19 AM, geremy condra debat...@gmail.com wrote:
I was the poster across from them at PyCon two years back. Pretty fun
to play with, although last I checked it was hard to do true HPC on
it.
John Nagle wrote:
Arguably, Python should not allow is or id() on
immutable objects. The programmer shouldn't be able to tell when
the system decides to optimize an immutable.
is is more of a problem than id(); id() is an explicit peek
into an implementation detail.
Yes, yes, yes... and
Ian Kelly wrote:
However, I hope we can all agree that pass-by-pointer shares certain
features with both pass-by-value and pass-by-reference, and there are
perfectly reasonable arguments for lumping it in either category, yes?
Yes.
--
http://mail.python.org/mailman/listinfo/python-list
Grant Edwards wrote:
The pass by value and pass by reference parameter passing
mechanisms are pretty well defined, and C uses pass by value.
Yeah, that's kind-a funny, cause I'm one of the guys (old farts) that
helped define them
The problem you're having here is that you're thinking
On May 4, 5:26 pm, Terry Reedy tjre...@udel.edu wrote:
The test would be more convincing to many with 10 other geographic
names (hard to come by, I know), or other english names or words or even
with longer random strings that matched the lengths of the state names.
But an average of
On 5/05/2011 11:11 AM, harrismh777 wrote:
The pass by value and pass by reference parameter passing
mechanisms are pretty well defined, and C uses pass by value.
Yeah, that's kind-a funny, cause I'm one of the guys (old farts) that helped
define them
Cool - please tell us more about
On Thu, May 5, 2011 at 5:02 AM, Irmen de Jong ir...@-nospam-xs4all.nl wrote:
I think that often, the cleverness of people is inversely proportional to
the amount of CPU power and RAM that they have in their computer.
As Mark Rosewater is fond of saying, restrictions breed creativity.
Lack of
Catherine Moroney wrote:
I am having some problems reading the
object back out, as I get complaints about unable to import module X.
The only way I have found around it is to run the read-file code out of
the same directory that contains the X.py file
Even when I put statements into the
Chris Angelico wrote:
There's definitely something attractive about that letter. Lots of
programming languages' names start with P.
Including one I invented some years ago, that (in the spirit
of C and its derivatives) was called simply P.
(I was playing around with Sun's NeWS window server,
On Thu, May 5, 2011 at 7:43 AM, Ben Finney ben+pyt...@benfinney.id.au wrote:
* that the paper tag is tied to only one object
* that a paper tag tied to no object is rather useless
* that many paper tags can be tied to the same object
I disagree minorly; a tag tied to no object is quite
Daniel Neilson wrote:
1) Maintain a list of object id()'s for objects that have been created.
Ideally, this list would also contain the file line number where the
object was created.
2) Provide a deallocate function that will remove a given object's
id() from the list from (1).
3)
harrismh777 harrismh...@charter.net wrote:
If I call a function in C, and pass-by-value, the data's 'value' is
placed on the stack in a stack-frame, as a 'value' parm... its a copy of
the actual data in memory.
If I call a function in C, and pass-by-reference, the data's 'address'
is placed
Hans Georg Schaathun wrote:
Is transmission by name the same as call by object?
No, it's not. With call-by-name, the caller passes a
small function (known as a thunk) that calculates the
address of the parameter. Every time the callee needs to
refer to the parameter, it evaluates this
Mark Hammond wrote:
What about Python, where passing an integer to a function passes a
pointer to an int object, but that function is able to change the value
of the variable locally without changing the passed object (indeed, it
is impossible to change the passed integer)?
So given the
1 - 100 of 201 matches
Mail list logo