enough to bring the conversation to this conclusion (except that I am
pretty sure this *won't* be a conclusion ;-)
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
you feel the class organization is
buying you.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
it yet again.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
that you met with a somewhat
hostile reaction (whether or not such a reaction was useful or
necessary) because you were, in a small way, poking people in the side
with a sharp stick?
If you couldn't I might find that a *little* bizarre.
regards
Steve
--
Steve Holden+1 571 484 6266 +1
) people will argue about
anything, with the major intention of proving themselves right rather
than reaching a common understanding.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo
of the
tunnel, however, since even if threads don't work it's possible that the
multiprocessing module will (assuming you have multi-processor hardware
at your disposal).
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http
of a module you will probably find that
python -m brian
will do what you expect.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
functions any more or less deletable than
functions or methods created using the def statement?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
= 28
Second line = 'LocalService:*:19:544:U-NT
AUTHORITY\\LocalService,S-1-5-19::\n'
Read 8 more lines
File length = 1001
Truncated length = 500
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org
, as I switched to Icon when Griswold produced that and found it a
far superior language.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
to feel that
everyone else should share your idea of what's intuitive and what's BIZARRE.
Before extending this thread too long please ruminate on the recent
parameter-passing thread, of which you are clearly aware. Let's try and
create light rather than heat.
regards
Steve
--
Steve Holden+1
.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
like an intelligent approach.
I hope this helps!
I'm sure it will.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
possibly happen, and often enough actually
seem offended (or at least offensive) when it inevitably does happen...
Generally speaking we try not to be offensive first on this list.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http
:
k, u, v = i
print k, u, v
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
apologies to the group for sloppy typing.
May not be any quicker, but it works:
blues = buffer[0::3]
greens = buffer[1::3]
reds = buffer[2::3]
result = .join(.join(x) for x in zip(reds, blues, greens))
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC
Derek Martin wrote:
On Fri, Jan 02, 2009 at 11:43:30AM -0500, Steve Holden wrote:
Derek Martin wrote:
[...]
It's small wonder that neophytes try to cram Python behaviors into
terms and computing concepts they already understand from learning
other languages, and that they fail to do so
Ben Finney wrote:
vk vmi...@gmail.com writes:
If there were, I would expect it to conform with PEP 8 (get those
ugly camelCase names outta there :-)
haha, please forgive me.
I'll try and think of some more creative names.
They don't need to be creative; they merely need to conform with
is not int(0)', do you actually mean that a
is not in integer with the value 0? Assuming you do then what you need is
v = [[j for j in i if not j] for i in self.value]
or, more pedantically
v = [[j for j in i if j==0] for i in self.value]
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800
the None values because the append method returns None.
regards
Steve
You guys rock, thanks for helping me learn python.
On Sat, Jan 3, 2009 at 2:09 AM, Steve Holden st...@holdenweb.com
mailto:st...@holdenweb.com wrote:
alex goretoy wrote:
Hello All,
I'm doing
of lists of None.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
are trying to
achieve. Where a programmer is trying to create names dynamically there
are usually better ways to proceed. Could you tell us a little more
about what you are trying to do?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
code how
self.stop_requested is supposed to change the result of its is_set()
method. Maybe that's where the select() comes in?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo
; in bogusmx.rfc-ignorant.org
/snip
Is python.org really blacklisted? Any admin please, try to remove it.
Thanks
Laszlo
--
http://mail.python.org/mailman/listinfo/python-list
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com
for storage into a relational database. It's also
cross-platform, which means you don't need to run under Windows.
I don't know anything at all about xlwt.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http
Stef Mientki wrote:
ibpe...@gmail.com wrote:
On Dec 30, 2:48 pm, Steve Holden st...@holdenweb.com wrote:
Stef Mientki wrote:
hello,
I'm running scripts, with the execute function (Python 2.5),
and it seems that triple quoted strings are not allowed.
Is there a workaround
output to
sys.stderr, if I remember rightly.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
it up on SourceForge.
I'm not sure why nobody has mentioned gmpy, except possibly because it
advertises its alpha status and doesn't have many active developers.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http
and
mathematics today.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
I may use a
nested method.
Well, I suppose at least you aren't writing return None ...
Normally a blank line or two suffices for me.
Take a look at PEP 8 for some discussion for Python coding style.
http://www.python.org/dev/peps/pep-0008/
regards
Steve
--
Steve Holden+1 571 484
connection built.
Some suggestions?
How about
for file in download_files:
try:
self.ftp.retrbinary('RETR %s' % file, fileHandler)
except KeyboardInterrupt:
print file, transfer abandoned
Then you can cancel a single file transfer with Ctrl/C.
regards
Steve
--
Steve
= '''INSERT INTO mytable (name,address,web,mail)
VALUES (%s, %s, %s, %s)'''
cursor.execute(sql, (name,address,web,mail))
Don't forget to call the connection's .commit() method to ensure the
database changes are made permanent.
regards
Steve
--
Steve Holden+1 571 484
... return r
...
m = k()
m[1:2:3, 4:5:6]
[slice(1, 2, 3), slice(4, 5, 6)]
m[help!]
['h', 'e', 'l', 'p', '!']
As you can see, no exceptions are raised here, and the x:y:z notation
introduces a slice object, which the code doesn't handle in any way
shape or form.
regards
Steve
--
Steve
.html
For a replacement that will work in 2.5, see the % sign as an operator
(sometimes called string interpolation).
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
Thanks to Barry Warsaw the On Your Desktop blog now has a new entry:
http://onyourdesktop.blogspot.com/
Who would you like to see profiled next?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http
Fuzzyman wrote:
On Dec 23, 12:06 pm, Steve Holden st...@holdenweb.com wrote:
Thanks to Barry Warsaw the On Your Desktop blog now has a new entry:
http://onyourdesktop.blogspot.com/
Who would you like to see profiled next?
Guido (of course), Brett Cannon, Martin v Loewis, Jim Hugunin, Ted
a couple working examples (maybe one example
each of reading and writing?)
Look at the pexpect module - you can run interactive tasks through that.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http
to 24 instead. But you
*are* correct about the need for a little more information ;-)
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
D'Arcy J.M. Cain wrote:
On Tue, 23 Dec 2008 10:20:59 -0500
Steve Holden st...@holdenweb.com wrote:
D'Arcy J.M. Cain wrote:
Well, if all you want is a loop:
for v in vars:
locals()[v] = []
Note that this isn't guaranteed to work. While locals() will return a
dict containing
is
superior, then you figure out why.
That's the way some people operate, but by no means all. Is it the
language or the people that are pissing you off. You sound a little
discontented for a c.l.py reader.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC
knows how popular the various languages are, there are simply
estimates with higher or lower credibility.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
will hear the plonking of a hundred thousand newsreaders
every time you post.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
doesn't let his prejudices blind
him to reality.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
for the good laugh.
Pot, meet kettle. Kettle: pot.
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
by project needs. Rackspace, NASA, Canonical and
many others are keen supporters of the language, and they put their
money where their mouths are by incorporating it into their products.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http
javascript, and not the JPEG
you were expecting. That's because the URL gives a 404 response.
This might be a seasonal thing: right now they are showing a Happy
Holidays motif on their front page.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http
forget to point out that it's correct).
PS Although Amazon.com still says the publication date is the 27th,
they now expect to have it in stock on Monday (the 22nd).
Congratulations. I know what a relief it is to see a project of that
size come to fruition!
regards
Steve
--
Steve Holden
Stefan Behnel wrote:
[...]
I think '...'.format() makes sense given that we already have '...'.join().
Sure it does, but that doesn't stop a lot of people disliking str.join()
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http
r wrote:
On Dec 19, 10:04 pm, Steve Holden st...@holdenweb.com wrote:
r wrote:
Thanks Steven,
We need a real Pepsi challenge here to show the insignificance of this
change. I am not against change. But when we lose something as -
compact- as %formating i'm going to want to see a damn good
walterbyrd wrote:
Will Django be primarily using Python 3.0 one year from now? Two years
from now?
I doubt they will drop 2.X support in the next two years. 3.0 will
likely be supported fairly fully in the next year.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
is interested.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
^
and also teaches Python’s functional programming features
^
The book’s approach is wholly practical
^
It always has been valid English. The apostrophe is only omitted from
personal pronouns (hers, its, and so on).
regards
Steve
--
Steve Holden+1
is a function reference followed by an empty tuple. It
might *look* like that, but it isn't. Otherwise we'd write a function
call with one argument as f(a, ) - which readers will have noticed we don't.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http
Colin J. Williams wrote:
Steve Holden wrote:
Thomas Heller wrote:
[...]
Question from a non-native english speaker: is this now valid english?
One of Python’s great strengths
^
and also teaches Python’s functional programming features
it.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
the developers to be
psychic?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
Should I make a bug report in http://bugs.python.org?
Yes. The documentation give you a link to follow from the bottom of each
page.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org
in the
database itself.
Hmm, pypgsql doesn't provide a 2.5 Windows installer. I take it you
aren't a Windows user ... ?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
throwing away useful information. The only
people who would want to see a representation of a data structure such
as a list are programmers: if you want to show a list of values to a
regular user you format it in some required way.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494
Analog Kid wrote:
Hi guys:
Thanks for your responses. Points taken. Basically, I am looking for a
combination of the following ...
[^\w] and %(?!20) ... How do I do this in a single RE?
Thanks for all you help.
Regards,
AK
On Mon, Dec 15, 2008 at 10:54 PM, Steve Holden st
.
Matlab is a very specific environment, and students have told me that
there are pieces of its IDE that they really miss in Python, so this
work may result in something that attracts more users to Python.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC
,[1, 2, 3, 4, 5 ]]])
flattened
[1, 2, 3, 5, 6, 10, 11, 7, 9, 1, 2, 3, 4, 5]
'-'.join(str(num) for num in flattened)
'1-2-3-5-6-10-11-7-9-1-2-3-4-5'
Read the problem description again ...
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http
to find information on it?
Thanks.
Look in
http://svn.python.org/view/python/tags/r26/Objects/
for dictnotes.txt and dictobject.c. Good luck with the class!
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http
your yours
they them their theirs
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
in this way also. Is that
about right?
Just think of them as nounpros and you won't go wrong.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
Tim Chase wrote:
Steve Holden wrote:
This led to a schism between the British and the
newly-independent Americans, who responded by taking the u
out of colour, valour, and aluminium.
Darn Americans and their alminim ;-)
Next thing you know, they'll be putting an I in TEAM.[1]
It's
that each element is a
sequence of zero or more character, where character is either
letter/digit or escape. So you would use a pattern like
([a-zA-Z0-9]|%[0-9a-f][0-9a-f])+
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com
apostrophes.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
[...]
if you only want the first returned value, you can just apply a slice:
def f():
return 1,2,3
a = f()[0] + 1
nitThat isn't a slice, it's indexing/nit
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC
between 2.x and 3.x. If it doesn't, it should
probably be made to.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
to cause pain until all file systems are
standardized on a particular encoding of Unicode. Probably only about
another fifteen years to go ...
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org
.x, use the struct module to convert your
data to a string, then write that.
In Python 3.x you would use the bytes type.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python
five
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
along ...
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
or should not do. It makes it sound as
though you can wave a magic wand to achieve the desired behavior.
The interpreter should not have a GIL. The tuple should check that
it is actually being mutated. How?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC
.
these are two structures. I want to refer D structure in L one and use
it. I want to access the value of D structure like L.D.index = 0.
[...]
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org
sturlamolden wrote:
On Dec 12, 3:54 pm, Steve Holden st...@holdenweb.com wrote:
[...]
The interpreter should not have a GIL.
The tuple should check that
it is actually being mutated. How?
In Python it would be something similar to:
def __setitem__(self, index, value):
if _buf[index
? foo is not None is actually surprising
to me, since not None is True. 0 is True is False, but 0 is not None
is True. Why is that?
is not is an operator, so the parse is
foo (is not) None
not
foo is (not None)
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden
sturlamolden wrote:
On Dec 12, 5:13 pm, Steve Holden st...@holdenweb.com wrote:
It should be the tuple's __setitem__ that was invoked here, not
__iadd__, or the parser is faulty.
OK, so now you are proposing to alter the parser, and possibly the
implementation of the INPLACE_ADD opcode
Joe Strout wrote:
On Dec 12, 2008, at 9:00 AM, Steve Holden wrote:
Change the default value of ds_obj here to None. Otherwise, you will
certainly confuse yourself (there would be just one default object
shared among all instances).
Joe missed a piece out here. If you change the signature
leading or trailing spaces if those are important to you.
... and it's so hard to write
item = item[:-1]
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
, the top one worked.
The reason the second one didn't work is because \t is the tab
character. Look for raw strings in the documentation.
rC:\TEMP\test1.mdb should work.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com
'
hex(240)
'0xf0'
So just apply the ord() function to the character and you'll get its
integer value!
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
...@gmail.com wrote:
Hi,
ord('\xf0') works and it only works for char. Do you know any way to
convet
'\xf0\xf0' and '\xf0\xf0\xff\xfe' to integer?
Br, Chen Gang
On Dec 12, 12:40 pm, Steve Holden st...@holdenweb.com wrote:
chengang.beij...@gmail.com wrote:
'\xf0' is the value read from
this, but it is quite important
to me, so all help is highly appreciated!
IIRC there's an ftpmirror script in the Tools directory (if you're on
Windows - Linux/Unix users have to download the source). I adapted it to
several different purposes.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800
not sure how gentoo would have patched their 2.5.2
when the bug, if 2.6 still contains it.
I find it strange that try-python gives one person a different result
from everyone else. What is this bizarre influence on web sites?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Andrew D wrote:
On Dec 10, 5:55 pm, Steve Holden [EMAIL PROTECTED] wrote:
Andrew D wrote:
I have a script that will login to my ftp server and download all the
backup files, but I want it to only download the files that were
created today, e.g. if I ran the script today I want it to only
Xah Lee wrote:
[...]
Steve Holden wrote:
And therein lies the danger of imagination.
Typically the namespace components are looked up one by one, so for
this.that.theother
first this will be looked up and (hopefully) yield an object with a
namespace, which will then be searched
posted to a mailing list, not an individual,
right? There's no evidence that Toni Meyer will see your message.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
is *much*
more important that learning to write fast Python, and often the two
coincide anyway.
It was true when Kernighan and Plauger wrote it forty years ago and it's
true now: First, make it work. Then, *if it doesn't work fast enough*,
make it work faster.
regards
Steve
--
Steve Holden+1
be a reliable means of communication.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
temporarily. Python has been around the 6/7 mark for a while now.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
denied:
f = os.open(os.path.abspath(Documents), os.O_RDONLY)
Traceback (most recent call last):
File stdin, line 1, in module
OSError: [Errno 13] Permission denied: 'C:\\Users\\sholden\\Documents'
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC
command line?
You can, of course, continue to use Cygwin for editing and command-line
Python. But you seem to be asking for trouble unnecessarily by running
Windows Python under Cygwin.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http
it out, yes, I know PHO now (finally)
has namespaces.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
of language popularity, however you
define that.
[... rant omitted ...]
I wondered how long you would be able to resist making your vituperative
remarks. Please stop this rubbish.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http
.
[...]
Python is pass-by-reference, not pass-by-value.
It's certainly not pass-by-reference, nor is it pass-by-value IMHO.
Since no lists are being passed as arguments in these examples it's not
pass-by-anything. Jump off that horse right now!
regards
Steve
--
Steve Holden+1 571 484
in a dict and once in a list doesn't duplicate the
data, since both structures will (optimally: i.e. if you do it right)
refer to the same data objects.
Generally speaking, do what's convenient to do as a programmer, and work
on it if there are serious inadequacies.
regards
Steve
--
Steve Holden
the list and turn it into separate arguments.
Fortunately os.path.join will take as many arguments as you care to pass it:
os.path.join(*dirs)
'c:\\temp\\foo\\bar'
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com
901 - 1000 of 4672 matches
Mail list logo