[EMAIL PROTECTED] a écrit :
On May 6, 12:14 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
(the convention is to use lowercase names for attributes: rawdata instead
of RawData)
But at least put an underscore between the words (raw_data), or, if
you like the OO world, make the subsequent w
Hi!
I am having some doubts related to the readline module. I hope someone
could clear them.
1. What exactly does the readline.get_line_buffer() function do? Does
it return whatever is the current input by the user? If yes, then can
I use it to check the current inputs of the user and base the next
[EMAIL PROTECTED] a écrit :
Bad form to access a *private variable* like _foo?
In this case, this would be spelled "protected" - or even better
"implementation". And the contract is: nothing prevent you to access
implementation attributes, but then you're on your own if anything breaks.
Th
Hi everyone!
Well, I have this need for a Python script that will scan through a
selected hive (like HKEY_LOCAL_MACHINE) and replace all strings that
contain word xxx (IE. foo) with yyy (IE. moo). I do not want partial
results, but rather complete strings (no foome or the like, just foo).
I have
Mike Driscoll a écrit :
(snip)
The most popular Python web frameworks seem to be TurboGears, Django,
Pylons, CherryPy and mod_python.
I wouldn't call mod_python a web framework. It's a library that exposes
(most of) Apache's request handling process to Python, and is mostly
used as a deployme
hi every body,
I'm a new python user and I'm making a program to run useing Abaqus
and there is something I can't do,
if i have a text file that has a line like this " 10 20 30 40
50" and I wana do the coding to put every number of these like 10 or
20 in a separate variable .. any suggesti
On May 5, 3:48 pm, Jeff <[EMAIL PROTECTED]> wrote:
> ctypes?
hm..may you explain it?
--
http://mail.python.org/mailman/listinfo/python-list
For the last couple of days, I've been looking for a Python midi
library. I'm generally interested in sending MIDI events via ALSA. It
seems like everything out there is pretty old; packages are from 2003
or 2005. Some packages don't seem to be really used, for instance
portmidi doesn't even suppor
Nick Craig-Wood a écrit :
Banibrata Dutta <[EMAIL PROTECTED]> wrote:
I've gone through the list of "language differences" between 2.3 / 2.4
& 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of
CPython, and I consider myself still very very newbie. So, unable to
take a call as to
Ohad Frand wrote:
I am looking for a way to get a list of all active logical hard drives
of the computer (["c:","d:"..])
You can do this with WMI [*] under Windows:
import wmi
c = wmi.WMI ()
for i in c.Win32_LogicalDisk ():
print i.Caption
If you want only fixed disks (ie exluding externa
On 5/6/08, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Nick Craig-Wood a écrit :
> > Banibrata Dutta <[EMAIL PROTECTED]> wrote:
> >
> > > I've gone through the list of "language differences" between 2.3 / 2.4
> > > & 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of
> > > CPyt
On 2008-04-30 16:52, David Anderson wrote:
Hi all, where can I find the reference manual from the psycopg2 or the
dbapi2.0 because in their official pages I could'nt find
The Python DB-API 2.0 is defined in the PEP 249:
http://www.python.org/dev/peps/pep-0249/
--
Marc-Andre Lemburg
eGenix.com
On 2008-05-06 01:16, Matimus wrote:
On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote:
Hi,
In my application, I have some configurable information which is used
by different processes. currently I have stored configration in a
conf.py file as name=value pairs, and I am importing conf.py fil
2.5 seems the defacto standard now for a new user, NB: probably not
the standard for the common business productions. However are you on
Windows or *nix? *nix may ship a certain version, so for ease of use
it would be best to use that.
Personally I use 2.5 because it is a complete version, and the
On 5/6/08, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> At our site we run IRIX, UNICOS, Solaris, Tru64, Linux, cygwin and
> other unixy OSes.
>
> We have python installed in a number of different places:
> /bin/python
> /usr/local/bin/python
> /usr/bin/python
> /opt/freeware/Python/Python-2.5.1
On May 6, 6:01 pm, Maciej Bliziński <[EMAIL PROTECTED]>
wrote:
> Is there any other package that allows sending MIDI events in real
> time? Did anyone recently got any of the above packages to work?
There's MidiKinesis (http://www.sci.ccny.cuny.edu/~brinkman/software/
midikinesis/) which allows fo
Hi Vlasta.
I had a look at your original mail.
I think your simpler (than XML) format is a good idea for now. At a
later stage you could change it to something like this:
text goes here, some more text
text goes here, some more text
And so on. This isn't much more verbose than your current synt
On Tue, May 6, 2008 at 4:33 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote:
>
> On 2008-05-06 01:16, Matimus wrote:
>
> > On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > > In my application, I have some configurable information which is used
> > > by different processes. curr
[EMAIL PROTECTED] wrote:
> hi every body,
>
> I'm a new python user and I'm making a program to run useing Abaqus
> and there is something I can't do,
>
> if i have a text file that has a line like this " 10 20 30 40
> 50" and I wana do the coding to put every number of these like 10 or
>
Gasto wrote:
> I still don't see why such a module exists.
There are 2.0 types of programmers: those who always use floating point,
and those who know how to use them.
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber wrote:
On Tue, 6 May 2008 11:52:10 +0800, "Yuan HOng" <[EMAIL PROTECTED]>
declaimed the following in comp.lang.python:
It seems to me that rather than allowing this to happen, comparasion
between the two should either be made correct (by convertion decimal
to float e.g.) or f
In cmd, I can use find like this.
C:\>netstat -an | find "445"
TCP0.0.0.0:4450.0.0.0:0 LISTENING
UDP0.0.0.0:445*:*
C:\>
And os.system is OK.
>>> import os
>>> os.system('netstat -an | find "445"')
TCP0.0.0.0:4450.0.0.0:0
On 2008-05-06 11:07, Jorge Vargas wrote:
On Tue, May 6, 2008 at 4:33 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote:
On 2008-05-06 01:16, Matimus wrote:
On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote:
Hi,
In my application, I have some configurable information which is used
by different
I'm trying to supply parameters to a function that is called at a
later time as in the code below:
llist = []
for item in range(5):
llist.append(lambda: func(item))
def func(item):
print item
for thing in llist:
thing()
which produces the result
IDLE 1.2.1
>>>
Maciej Blizin'ski skrev:
For the last couple of days, I've been looking for a Python midi
library. I'm generally interested in sending MIDI events via ALSA. It
seems like everything out there is pretty old; packages are from 2003
or 2005.
existing or very old software packages
- http://www.mxm
wyleu wrote:
> I'm trying to supply parameters to a function that is called at a
> later time as in the code below:
>
> llist = []
>
> for item in range(5):
> llist.append(lambda: func(item))
>
> def func(item):
> print item
>
> for thing in llist:
> thing()
>
> which produces the
Siddhant wrote:
> Hi!
> I am having some doubts related to the readline module. I hope someone
> could clear them.
> 1. What exactly does the readline.get_line_buffer() function do? Does
> it return whatever is the current input by the user? If yes, then can
> I use it to check the current inputs
> The way you wrote it here, yes. If there's no official way to do the
> same operation and you have a real use case for it - in which case you
> may want to add a commit() method to SQLObject's model base class and
> submit the patch to SQLObject's maintainer. But I strongly suspect
> there's a be
Duncan Booth wrote:
Torsten Bronger <[EMAIL PROTECTED]> wrote:
The biggest ugliness though is ",".join(). No idea why this should
be better than join(list, separator=" "). Besides, ",".join(u"x")
yields an unicode object. This is confusing (but will probably go
away with Python 3).
It is o
Hello.
I am trying to install Pypvm (http://pypvm.sourceforge.net/), the
Python interface to PVM ("Parallel Virtual Machine"). Unfortunately,
installation fails. I am hoping someone can help me fix it.
I am running Fedora Core 8 Linux.
The official Pypvm documentation is very helpful (or somethi
[EMAIL PROTECTED] wrote:
> Hello.
>
> I am trying to install Pypvm (http://pypvm.sourceforge.net/), the
> Python interface to PVM ("Parallel Virtual Machine"). Unfortunately,
> installation fails. I am hoping someone can help me fix it.
>
> I am running Fedora Core 8 Linux.
>
> The official Pyp
One way :
>>> from functools import partial
>>> def func(item) : print item
>>> llist = [partial(func,item) for item in range(5)]
>>> for thing in llist : thing()
0
1
2
3
4
wyleu wrote:
I'm trying to supply parameters to a function that is called at a
later time as in the code below:
llist
2008/5/6, Banibrata Dutta <[EMAIL PROTECTED]>:
> > Use /usr/bin/env. If env is not in /usr/bin, put a link to it there.
>
> So why not put symlink to Python over there on all machines, if we can
> put one (or env itself) there ?
To avoid linking all the rest of interpreters like perl, ruby, lu
[EMAIL PROTECTED] wrote:
> Hi, that is my task:
> I need to create python webserver-like extension(dll) which will run
> php and python scripts as plugins.
> I have no problems with dll creating and run python scripts, but I
> cannot understand how to run php(CLI is not a solution).
> Is there a w
"Wojciech Walczak" <[EMAIL PROTECTED]> writes:
> 2008/5/6, Banibrata Dutta <[EMAIL PROTECTED]>:
> > > Use /usr/bin/env. If env is not in /usr/bin, put a link to it there.
> >
> > So why not put symlink to Python over there on all machines, if
> > we can put one (or env itself) there ?
>
> To
Maciej Bliziński wrote:
For the last couple of days, I've been looking for a Python midi
library. I'm generally interested in sending MIDI events via ALSA. It
seems like everything out there is pretty old; packages are from 2003
or 2005. Some packages don't seem to be really used, for instance
po
On May 6, 4:43 am, notbob <[EMAIL PROTECTED]> wrote:
> "Here is an example of a user-defined function that has a parameter:
>
> def print_twice(bruce):
> print bruce, bruce
> ME
> ok, I try and follow the above, but where is he getting the script? So, I
> make a script called chap03.py
On May 6, 12:22 pm, Boris Borcic <[EMAIL PROTECTED]> wrote:
> Duncan Booth wrote:
> > Torsten Bronger <[EMAIL PROTECTED]> wrote:
>
> >> The biggest ugliness though is ",".join(). No idea why this should
> >> be better than join(list, separator=" "). Besides, ",".join(u"x")
> >> yields an unicode
[EMAIL PROTECTED] wrote:
> In cmd, I can use find like this.
>
> C:\>netstat -an | find "445"
> TCP0.0.0.0:4450.0.0.0:0 LISTENING
> UDP0.0.0.0:445*:*
>
> C:\>
>
> And os.system is OK.
import os
os.system('netstat -an | find "445"')
>
Unknown Hero wrote:
Hi everyone!
Well, I have this need for a Python script that will scan through a
selected hive (like HKEY_LOCAL_MACHINE) and replace all strings that
contain word xxx (IE. foo) with yyy (IE. moo). I do not want partial
results, but rather complete strings (no foome or the lik
Tim Golden wrote:
> In a spirit of teaching people to fish...
>
> ... If you put something like "Python windows registry" into Google, you
> get quite a few hits, the top one of which is probably pointing to the stdlib
> _winreg module, but several others point towards wrapper classes, modules
> et
Boris Borcic wrote:
One way :
>>> from functools import partial
>>> def func(item) : print item
>>> llist = [partial(func,item) for item in range(5)]
>>> for thing in llist : thing()
0
1
2
3
4
Another way:
class Func(object):
def __init__(self, item):
self.item = item
Hello gurus,
I am learning Python to take the place of Perl in my toolbox of bits
and bobs, and writing something pretty simple in theory, but having a
hard time in Python with it - I am using a 3rd party module, and I am
sure the etiquette of this channel states that this is pure Python
questions
Hello.
I'm writing a microtonal sequencer, and I don't want to use MIDI per
se, but I'd like to be able to load standard sample banks to play.
The only standard format I'm familiar with is soundfont, and it seems
to be the most popular; if anyone knows of others, especially for Mac,
which I believ
select.poll isn't supported on Windows, because Windows doesn't have such a
feature, or at least it didn't until Vista. Vista implements the same thing
but called WSAPoll, an article is here
http://blogs.msdn.com/wndp/archive/2006/10/26/WSAPoll.aspx
I hope that the next edition of Python suppo
On Apr 13, 9:05 pm, [EMAIL PROTECTED] wrote:
> On Apr 13, 7:44 pm, [EMAIL PROTECTED] wrote:
>
> > What you're looking for is no module, it is included in the standard
> > python namespace.
>
> > raw_input
>
> Thanks for the response GL.
>
> What I am looking for is a module to wrap raw_input so it
Many thanks !
This is what I did
for mytunnel.py :
I use pexpect like this
tunnel_command = '''bash -c "ssh -N -R 60011:localhost:60002
[EMAIL PROTECTED] "'''
com="echo \""+str(ssh_tunnel.pid)+"\" >> pids"
...
time.sleep(172800)
in the bash script which calls mytunnel.py :
./mytunnel.py $
[EMAIL PROTECTED] wrote:
> Hello gurus,
>
> I am learning Python to take the place of Perl in my toolbox of bits
> and bobs, and writing something pretty simple in theory, but having a
> hard time in Python with it - I am using a 3rd party module, and I am
> sure the etiquette of this channel sta
inhahe schrieb:
> select.poll isn't supported on Windows, because Windows doesn't have such a
> feature, or at least it didn't until Vista. Vista implements the same thing
> but called WSAPoll, an article is here
> http://blogs.msdn.com/wndp/archive/2006/10/26/WSAPoll.aspx
> I hope that the ne
James,
Check out the optparse module as well. The optparse module supercedes(?)
the cmd module and offers a lot more functionality.
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 6 May 2008 08:36:28 -0400, inhahe <[EMAIL PROTECTED]> wrote:
select.poll isn't supported on Windows, because Windows doesn't have such a
feature, or at least it didn't until Vista. Vista implements the same thing
but called WSAPoll, an article is here
http://blogs.msdn.com/wndp/archive/
On 2008-05-01 Ethan Furman wrote:
> I am trying to lock a file so no other process can get read nor
> write access to it.
This looks promising:
http://pypi.python.org/pypi/lockfile/0.2
--
Micah Elliott | [EMAIL PROTECTED] | http://MicahElliott.blogspot.com
signature.asc
Description: Dig
On 2008-05-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello gurus,
Hello fellow-guru,
> I am grabbing the output from a SQL statement (using PyGreSQL 'pg'
> module), and when it returns the result, I am pulling it out as such:
>
> try:
> sc=pg.connect(dbname='mydb',host='dbhost',user=
[EMAIL PROTECTED] wrote:
for foo in sc.query(sql).dictresult(): <- this returns a dict of the
result
f=dict(foo)
for k in f.iteritems()
if k == '^Hostname': <-- need this sort of
behaviour - match a partial string.
print "%s" % f[3] <-- ..and i
Hi list.
I've tried Googling for this and I checked the Python docs, but to no avail.
What is the best way to debug memory usage in a Python script?
I'd like to see what objects are using the most memory. Ideally this
would be aware of references too. So if I have a small list that
contains (ref
Unknown Hero wrote:
So basically I am looking for these things:
1) Read one subkey from HKEY_LOCAL_MACHINE at a time (I think
QueryValueEx() is needed here)
2) Check if said subkey contains some predetermined string (like 'foo'
here)
3) If the above applies, change the value into another predete
On May 6, 2:11 pm, [EMAIL PROTECTED] wrote:
> Check out the optparse module as well. The optparse module supercedes(?)
> the cmd module and offers a lot more functionality.
Hi Malcom,
Doesn't the optparse module work by parsing the arguments that are
passed to the script when it is invoked?
Wha
The Linux Journal readers apparently suffer the same ambiguity as the
rest of us when it comes to defining what the difference between a
scripting language and a programming language.
They do, however, clearly like Python, which they voted their scripting
language of 2008. PHP, Bash and Perl c
> I don't think we can officially support WPAPoll since Python 2.6 is
> suppose to run on Windows 2000 and XP, too.
>
> Christian
>
Oh, yeah, I was wondering about that, since there aren't separate
distributions of Python for Vista vs. XP etc. But I wonder if Python could
just give an attribut
On May 6, 2:23 pm, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
> Without a explicit Python value of what comes out of the sql query, I can only
> guess. As example, assume the following data:
>
> f = { 1: ['Hostname', 'blabla', 'person', 'john'],
> 2: ['MachineName', 'blabla', 'company',
Studying OOP and noticed that Python does not have Interfaces. Is
that correct? Is my schooling for nought on these OOP concepts if I
use Python. Am I losing something if I don't use the "typical" oop
constructs found in other languages (Java, C# come to mind.) I'm
afraid that if I never use th
something like "curses" but w/o the fancy window decorations perhaps ?
if so, then following link might help (
http://www.amk.ca/python/howto/curses/).
thanks & regards,
banibrata
On Tue, May 6, 2008 at 6:56 PM, <[EMAIL PROTECTED]> wrote:
> On May 6, 2:11 pm, [EMAIL PROTECTED] wrote:
>
> > Check
On Tue, May 6, 2008 at 9:44 AM, jmDesktop <[EMAIL PROTECTED]> wrote:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct? Is my schooling for nought on these OOP concepts if I
> use Python. Am I losing something if I don't use the "typical" oop
> constructs found
Hi James,
> What I was looking for was a commandline read loop that executes within a
> script that is already running ... or can optparse be used in
this context as well?
Apologies. I missed the nuance of the read loop within an already
running script.
Malcolm
--
http://mail.python.org/mailman
On May 6, 8:44 am, jmDesktop <[EMAIL PROTECTED]> wrote:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct? Is my schooling for nought on these OOP concepts if I
> use Python. Am I losing something if I don't use the "typical" oop
> constructs found in other langu
jmDesktop wrote:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct?
Yes.
> Is my schooling for nought on these OOP concepts if I
> use Python. Am I losing something if I don't use the "typical" oop
> constructs found in other languages (Java, C# come to mind.
On May 6, 10:44 am, jmDesktop <[EMAIL PROTECTED]> wrote:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct? Is my schooling for nought on these OOP concepts if I
> use Python. Am I losing something if I don't use the "typical" oop
> constructs found in other lang
Many not be the most intuitive and elegant solution (I'm just a Python
newbie), but if your Python code is constrained to the usage of Python 2.2
language features, you could use Jython, and then (I'm hoping, since I've
not tried this myself), use the Java Memory usage profiling/debugging tools.
W
notbob wrote:
> I'm running
> vers 2.5.1 on slackware 12.
Nice to see another Slackware user around here!
> "Here is an example of a user-defined function that has a parameter:
>
>
> def print_twice(bruce):
> print bruce, bruce
> is this just an example of how the def should be written a
On 2008-05-06, jmDesktop <[EMAIL PROTECTED]> wrote:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct? Is my schooling for nought on these OOP concepts if I
Depends on your definition of 'Python does not have Interfaces'. They are not
in the official language, bu
On May 6, 11:19 am, [EMAIL PROTECTED] wrote:
> In cmd, I can use find like this.
>
> C:\>netstat -an | find "445"
> TCP0.0.0.0:4450.0.0.0:0 LISTENING
> UDP0.0.0.0:445*:*
>
> C:\>
>
> And os.system is OK.>>> import os
> >>> os.system('netstat -an | fi
On May 6, 6:29 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Mon, 05 May 2008 19:43:24 -0300, David Anderson <[EMAIL PROTECTED]>
> escribió:
>
> > Hi, i'm comingo from Java and I'm wanting to know what in Python is the
> > equivalent to the file.class in java, I am producing some apps tha
On Tue, May 6, 2008 at 4:21 PM, Banibrata Dutta
<[EMAIL PROTECTED]> wrote:
> Many not be the most intuitive and elegant solution (I'm just a Python
> newbie), but if your Python code is constrained to the usage of Python 2.2
> language features, you could use Jython, and then (I'm hoping, since I'v
I am trying to run some basic unit tests, but I can't get the paths
setup in python/cygwin to pick up my modules.
This code works fine in linux and I installed python through cygwin
not as part of the win32 install.
DIR_PATH =
os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
PROJECT_
Chuckk Hubbard wrote:
Hello.
I'm writing a microtonal sequencer, and I don't want to use MIDI per
se, but I'd like to be able to load standard sample banks to play.
The only standard format I'm familiar with is soundfont, and it seems
to be the most popular; if anyone knows of others, especially
>Another approach is to use the split() function in "re" module.
Ah ha, thar's the disconnect. Thanks for all the pointers, my def is
now working. Still don't understand the logic behind this design though.
I mean why would any programming language have separate search or find
functions, one for
On May 6, 5:17 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> wyleu wrote:
> > I'm trying to supply parameters to a function that is called at a
> > later time as in the code below:
>
> > llist = []
>
> > for item in range(5):
> > llist.append(lambda: func(item))
>
> > def func(item):
> >
Raymond wrote:
Aren't sed, awk, grep, and perl the reference implementations of search
and replace?
I don't know about "reference implementations", but I daresay they are a
mess w.r.t. usability.
--
http://mail.python.org/mailman/listinfo/python-list
>
> I'll check a few of those results and post to the list if I find something
> good.
>
It looks like Heapy, part of the Guppy project can do this:
http://guppy-pe.sourceforge.net/#Heapy
David.
David.
--
http://mail.python.org/mailman/listinfo/python-list
I'm having trouble following your discussion
and I suspect you might be a friend of Mark V Cheney.
But I will focus on this one point.
On May 5, 11:14 pm, [EMAIL PROTECTED] wrote:
> If recursive generators are really useless (erect wall might not be),
I would like to have recursive generators --
jmDesktop wrote:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct? Is my schooling for nought on these OOP concepts if I
> use Python. Am I losing something if I don't use the "typical" oop
> constructs found in other languages (Java, C# come to mind.) I'm
> af
Raymond wrote:
> My other gripe is with the kludgy object-oriented regex functions.
> Couldn't these be better implemented in-line? Why should I, as a coder,
> have to 're.compile()' when all the reference languages do this at compile
> time, from a much more straightforward and easy to read in-l
On May 6, 10:26 am, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
> On 2008-05-06, jmDesktop <[EMAIL PROTECTED]> wrote:
>
> > Studying OOP and noticed that Python does not have Interfaces. Is
> > that correct? Is my schooling for nought on these OOP concepts if I
>
> Depends on your definition of 'Pyt
2008/5/6, Ben Finney <[EMAIL PROTECTED]>:
> > > So why not put symlink to Python over there on all machines, if
> > > we can put one (or env itself) there ?
> > To avoid linking all the rest of interpreters like perl, ruby, lua
> > and dozens of others.
> The argument was being made from "thou
Hi - further to my earlier query regarding partial matches (which with
all your replies enabled me to advance my understanding, thanks), I
now need to reverse a dict.
I know how to reverse a list (with the reverse method - very handy),
but it doesn't seem possible to reverse a dict.
I suspect wha
> I would imagine this is why I haven't found any schools teaching
> Python in their basic programming classes too. On the dynamic typing,
> isn't that the same sort of thing that lots of scripting languages
> do? VBScript doesn't require you to define your variables, but I
> don't really want to
On May 6, 5:20 pm, [EMAIL PROTECTED] wrote:
> Hi - further to my earlier query regarding partial matches (which with
> all your replies enabled me to advance my understanding, thanks), I
> now need to reverse a dict.
>
> I know how to reverse a list (with the reverse method - very handy),
> but it
Banibrata Dutta wrote:
On 5/6/08, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
At our site we run IRIX, UNICOS, Solaris, Tru64, Linux, cygwin and
other unixy OSes.
We have python installed in a number of different places:
/bin/python
/usr/local/bin/python
/usr/bin/python
/opt/freeware/Pyth
[EMAIL PROTECTED] wrote:
> Hi - further to my earlier query regarding partial matches (which with
> all your replies enabled me to advance my understanding, thanks), I
> now need to reverse a dict.
There is no guaranteed order to the items stored in a dictionary. They can
and will move around as
jmDesktop <[EMAIL PROTECTED]> writes:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct? Is my schooling for nought on these OOP concepts if I
> use Python. Am I losing something if I don't use the "typical" oop
> constructs found in other languages (Java, C# co
Thanks all!!
kb.
--
http://mail.python.org/mailman/listinfo/python-list
Aaron Watters <[EMAIL PROTECTED]> writes:
> I'm having trouble following your discussion
> and I suspect you might be a friend of Mark V Cheney.
> But I will focus on this one point.
>
> On May 5, 11:14 pm, [EMAIL PROTECTED] wrote:
>> If recursive generators are really useless (erect wall might no
[EMAIL PROTECTED] writes:
[...]
> Python is built to be easy to read,
And also very easy to *write*. I rarely hear this, but it is the main
reason why I like Python so much. I can't really explain why though.
[...]
(cokofreedom, I found your explanation of the virtues of Python was
excellent!)
On 6 May, 14:18, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Tue, 6 May 2008 08:36:28 -0400, inhahe <[EMAIL PROTECTED]> wrote:
> >select.poll isn't supported on Windows, because Windows doesn't have such a
> >feature, or at least it didn't until Vista. Vista implements the same thing
> >bu
On May 6, 1:31 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Tue, 6 May 2008 11:52:10 +0800, "Yuan HOng" <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>
>
> > It seems to me that rather than allowing this to happen, comparasion
> > between the two should either be mad
> Ah ha, thar's the disconnect. Thanks for all the pointers, my def is
> now working. Still don't understand the logic behind this design though.
> I mean why would any programming language have separate search or find
> functions, one for regex and and another for non-regex based pattern
> match
On Tue, May 6, 2008 at 9:26 AM, Jeremy Sanders
<[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
> > Hi - further to my earlier query regarding partial matches (which with
> > all your replies enabled me to advance my understanding, thanks), I
> > now need to reverse a dict.
>
> There is
Hallöchen!
jmDesktop writes:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct? Is my schooling for nought on these OOP concepts if I
> use Python. Am I losing something if I don't use the "typical" oop
> constructs found in other languages (Java, C# come to mi
On 2008-05-06, jmDesktop <[EMAIL PROTECTED]> wrote:
>
> I would imagine this is why I haven't found any schools teaching
> Python in their basic programming classes too. On the dynamic typing,
I don't understand your reasoning. What part does 'this' refer to?
Also, you are wrong.
We teach 2nd yea
On Tue, 6 May 2008 08:44:36 -0700 (PDT), Giles Brown <[EMAIL PROTECTED]> wrote:
On 6 May, 14:18, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
On Tue, 6 May 2008 08:36:28 -0400, inhahe <[EMAIL PROTECTED]> wrote:
>select.poll isn't supported on Windows, because Windows doesn't have such a
>featu
1 - 100 of 163 matches
Mail list logo