i = iter(container.iterChildren())
i.next()
for x in i:
...
On Tue, Aug 12, 2008 at 2:51 AM, ray <[EMAIL PROTECTED]> wrote:
> A container object provides a method that returns an iterator object.
> I need to iterate the sequence with that iterator, but need to skip
> the first item. I can only i
On Aug 12, 4:51 pm, ray <[EMAIL PROTECTED]> wrote:
> A container object provides a method that returns an iterator object.
> I need to iterate the sequence with that iterator, but need to skip
> the first item. I can only iterate the whole sequence with:
> for x in container.iterChildren():
> How t
En Tue, 12 Aug 2008 00:48:21 -0300, Prof. William Battersea
<[EMAIL PROTECTED]> escribi�:
Suppose I have a Vista machine called VISTA and an XP machine called
XP in a workgroup named WORKGROUP. Physically they're connected to a
router and I can see lists of public and shared files on each of t
ray <[EMAIL PROTECTED]> writes:
> for x in container.iterChildren():
> How to skip the first item? It seems that it's a simple question.
> Could somebody help me? Thanks.
First solution:
c = container.iterChildren()
c.next()# skip first item
for x in c: ...
Second solution:
En Tue, 12 Aug 2008 03:51:17 -0300, ray <[EMAIL PROTECTED]> escribi�:
A container object provides a method that returns an iterator object.
I need to iterate the sequence with that iterator, but need to skip
the first item. I can only iterate the whole sequence with:
for x in container.iterChild
Brad wrote:
alex23 wrote:
open('outfile','w').writelines(l.replace('Volume 940','Volume 950')
for l in open('myfile','r'))
Ahh yes, perhaps string function are simpler to use in this case.
Thanks Alex!
If, if you have to change the file repeatedly, make it a template
(either % or the ne
On Sun, 10 Aug 2008 21:40:55 -0700, Mensanator wrote:
> On Aug 10, 11:18�pm, ssecorp <[EMAIL PROTECTED]> wrote:
>> Is there a syntax for looping through 2 iterables at the same time?
>>
>> for x in y:
>> � � for a in b:
>>
>> is not what I want.
>>
>> I want:
>> for x in y and for a in b:
>
> Som
On 8月12日, 下午1时44分, alex23 <[EMAIL PROTECTED]> wrote:
> On Aug 12, 12:03 am, "Support Desk" <[EMAIL PROTECTED]> wrote:
>
> > Google does'nt allow use of their API's anymore, I belive Yahoo has one
>
> Are you sure?
>
> "Google Custom Search enables you to search over a website or a
> collection of w
On Aug 12, 8:48 am, "Prof. William Battersea"
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> Suppose I have a Vista machine called VISTA and an XP machine called
> XP in a workgroup named WORKGROUP. Physically they're connected to a
> router and I can see lists of public and shared files on each of them.
ssecorp <[EMAIL PROTECTED]> writes:
> for x in y and for a in b:
for x,a in zip(y,b): ...
or the iterator version:
from itertools import izip
for x,a in izip(y,b): ...
avoids allocating a list to iterate through.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm new to Python. I only have read "Byte of Python" by Swaroop C H just
to be familiar with sytax of python. I've installed Python 2.5 from
Active State and using its PythonWin Editor / interpreter. This,
unfortunaltely, does not help in debugging.
I'm looking for an open source IDE / editor
On Aug 12, 4:59 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 11 Aug 2008 19:19:19 -0300, tow <[EMAIL PROTECTED]>
> escribi :
>
> > I have a python script (part of a django application, if it makes any
> > difference) which is exhibiting the following behaviour:
>
> > import my_mod
Howdy everyone,
I saw a strange python code in pygame project. What does "while
not(x&528or x in l):" mean? Below code works in python2.5, so "x&528"
is not HTML strings.
# snake.py code:
import pygame as p,random
p.init()
q=p.display
T=16
b=q.set_mode([256]*2).fill
l=[]
d=a=x=1
c=p.event.get
whi
Thanks you guys. Now I understand the -for- loop mechanism.
--
http://mail.python.org/mailman/listinfo/python-list
Dnia Tue, 12 Aug 2008 04:25:50 -0400, Dudeja, Rajat napisa�(a):
> Hi,
>
> I'm new to Python. I only have read "Byte of Python" by Swaroop C H just
> to be familiar with sytax of python. I've installed Python 2.5 from
> Active State and using its PythonWin Editor / interpreter. This,
> unfortunaltel
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> A search suggested that the form open(r"\\server\folder\folder"), but
>> I tried many combinations guessing what it wants for that path in my
>> case (r"\\WORKGROUP\VISTA", "\\VISTA\PUBLIC", etc), and none have
>> worked so far.
The combination you
As for the open source IDE you can always try Eclipse with PyDev extension.
Dudeja, Rajat wrote:
Hi,
I'm new to Python. I only have read "Byte of Python" by Swaroop C H just
to be familiar with sytax of python. I've installed Python 2.5 from
Active State and using its PythonWin Editor / interpr
Kay Schluehr wrote:
P4D = E4X style embedded DSL for Python but without E and X.
The main feature of P4D 1.2 are *Bytelets*. While the primary purpose
of P4D 1.1 was the support textual data which can be considered as
isomorphic to XML the new release is focussed on binary data. Bytelets
are P4D
"ðÏ" <[EMAIL PROTECTED]> writes:
> I saw a strange python code in pygame project. What does "while
> not(x&528or x in l):" mean? Below code works in python2.5, so "x&528"
> is not HTML strings.
It parses as "x & 528 or x in l". Looks like it came from
http://www.pygame.org/project/833/
and is
Nothing strange about that syntax (though some spaces might helped you out).
The '&' operator is a bit-wise operator
(http://docs.python.org/ref/bitwise.html).
甜瓜 wrote:
Howdy everyone,
I saw a strange python code in pygame project. What does "while
not(x&528or x in l):" mean? Below code works
tow wrote:
>>> > I have a python script (part of a django application, if it makes any
>> > difference) which is exhibiting the following behaviour:
>>
>> > import my_module # succeeds
>> > imp.find_module("my_module") # fails, raising ImportError
>>
>> > which is completely baffling me. According
Dnia Tue, 12 Aug 2008 16:39:27 +0800, =?GB2312?B?zPC5zw==?= napisa�(a):
> Howdy everyone,
>
> I saw a strange python code in pygame project. What does "while
> not(x&528or x in l):" mean? Below code works in python2.5, so "x&528"
> is not HTML strings.
It looks like a check if 528 flag is set. In
甜瓜 wrote:
Howdy everyone,
I saw a strange python code in pygame project. What does "while
not(x&528or x in l):" mean? Below code works in python2.5, so "x&528"
is not HTML strings.
Well I can't say I'd format it that way myself,
but it is valid. More conventionally laid out
the expression look
Oh, thank you very much. I did know that python can parse number '528'
and keyword 'or' without separator.
2008/8/12 Paul Rubin <"http://phr.cx"@nospam.invalid>:
> "ðÏ" <[EMAIL PROTECTED]> writes:
>> I saw a strange python code in pygame project. What does "while
>> not(x&528or x in l):" mean? Bel
Apply to Over 2,00,000 High Paying Jobs. Register Free Now!
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Learn Web Design Online or in SF w/ Academy of Art. Free Info Packet.
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Start B2B storefronts on Alibaba, Show products to all buyers - Free!
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Download Latest Simulation Software Try Risk Solver Free for 15 Days.
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Don't Forget Your Own Toolbar Keep The User a Step Away. Act Now
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
DreamTemplate.com
World's Largest Web Template Store 3000+ CSS, Website, Flash, Logos
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Fault Seal Analysis
Analyse Reservoir Fault, Lateral & Top Seal quickly and efficiently
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'd like to be able to use a nested class (C1) from another sibling nested
class (C3). This looks very similar to the nested scopes of functions except
that it does not work.
class A(object):
pass
class B(object):
class C1(object):
pass
cla
甜瓜 wrote:
Howdy everyone,
I saw a strange python code in pygame project. What does "while
not(x&528or x in l):" mean? Below code works in python2.5, so "x&528"
is not HTML strings.
Well I can't say I'd format it that way myself,
but it is valid. More conventionally laid out
the expression look
Dudeja, Rajat wrote:
Hi,
I'm new to Python. I only have read "Byte of Python" by Swaroop C H just
to be familiar with sytax of python. I've installed Python 2.5 from
Active State and using its PythonWin Editor / interpreter. This,
unfortunaltely, does not help in debugging.
I'm looking for an o
>> You need to create network shares in windows first. Once these are
>> established, *all* programs using file-IO - including python - can
>> access files.
>>
> It isn't absolutely essential to create a network share first: most
> windows apis, including those used by Python, will be very happy w
On 2008-08-12 05:37:53 +0100, "Gabriel Genellina"
<[EMAIL PROTECTED]> said:
En Mon, 11 Aug 2008 12:58:00 -0300, Cromulent
<[EMAIL PROTECTED]> escribi�:
Uh? You have a complete API for working with list objects, the
functions named PyList_*
See http://docs.python.org/api/listObjects.ht
Eclipse with PyDev extension cannot debug. Ulipad is able to debug,but it
needs wxpython to support.
2008/8/12 Alexandru Palade <[EMAIL PROTECTED]>
> As for the open source IDE you can always try Eclipse with PyDev extension.
>
>
>
> Dudeja, Rajat wrote:
>
>> Hi,
>>
>> I'm new to Python. I only h
Hi,
I know this has been consigned to oblivion by the BDFL but I'm rather
addicted to it's use. I notice the original site is no longer there.
Has anyone got a cached copy of the page that I can host for
posterity?
Which rather makes me wonder - lot's of people liked this module or
rather dislike
you having special
open it
***
http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 12 Aug 2008 03:41:46 -0700, andybak wrote:
> I know this has been consigned to oblivion by the BDFL but I'm rather
> addicted to it's use. I notice the original site is no longer there. Has
> anyone got a cached copy of the page that I can host for posterity?
You can download a copy from
you having special
open it
***
http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G
--
http://mail.python.org/mailman/listinfo/python-list
you having special
open it
***
http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G
--
http://mail.python.org/mailman/listinfo/python-list
you having special
open it
***
http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G
--
http://mail.python.org/mailman/listinfo/python-list
On 12 Aug., 10:50, Uwe Grauer <[EMAIL PROTECTED]> wrote:
> Kay Schluehr wrote:
> > P4D = E4X style embedded DSL for Python but without E and X.
>
> > The main feature of P4D 1.2 are *Bytelets*. While the primary purpose
> > of P4D 1.1 was the support textual data which can be considered as
> > isom
you having special
open it
***
http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
I have the following list containing dictionaries and I would like to
be able to count the total number of dictionaries I have that contain
a certain value set for the 'level' key:
[{'mod_title': u'Introduction to Human Anatomy', 'level': u'1',
'modcode': u'ANAT1003', 'deptleveltext': u''
Le Tuesday 12 August 2008 11:29:18 Cousson, Benoit, vous avez écrit :
> Hi,
>
> I'd like to be able to use a nested class (C1) from another sibling nested
> class (C3). This looks very similar to the nested scopes of functions
> except that it does not work.
>
> class A(object):
> pass
>
> cl
> I'm wondering as well if the new nonlocal statement will fix that in py3k?
The "class C3" statement is executing before the "class B" statement
has concluded, so at that time B does not exist in any scope at all,
not even globals(). You could reference B.C1 inside a method because a
method is ex
Jon Bowlas wrote:
For example I'd like to kow how many dictionaries there are with a
level 1, 2 , 23 & 3 etc. How would one go about achieveing this?
Hope someone can help.
sum(u'Level 2 Courses' in dct for dct in yourlist)
Christian
--
http://mail.python.org/mailman/listinfo/python-list
A project I'm working on requires a Python egg to be deployed to a
remote location which (because of a security configuration outside my
control) denies users web-access but allows users access to networked
file-systems. It has been proposed that rather than creating a web-
repository for python eg
On Aug 12, 12:26 pm, Brandon <[EMAIL PROTECTED]> wrote:
>
> You are very correct about the Laplace adjustment. However, a more
> precise statement of my overall problem would involve training and
> testing which utilizes bigram probabilities derived in part from the
> Laplace adjustment; as I und
Jon Bowlas wrote:
> I have the following list containing dictionaries and I would like to
> be able to count the total number of dictionaries I have that contain
> a certain value set for the 'level' key:
> For example I'd like to kow how many dictionaries there are with a
> level 1, 2 , 23 & 3 e
EARN MONEY $1000-25000 PER MONTH TAKE
SIMPLE ONLINE SURVEYS
CREATE FREE ACCOUNT OTHER DETAILS
LOG ON TO
***
http://romanticmoviess.com/
***
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 12, 9:09 pm, "Jon Bowlas" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have the following list containing dictionaries and I would like to
> be able to count the total number of dictionaries I have that contain
> a certain value set for the 'level' key:
>
>
[snip]
>
> For example I'd like to k
Many thanks for all your reponses, much appreciated.
I'll get back to you on which is the best for me.
BTW - yes John thats exactly what I wanted.
Cheers
Jon
Jon Bowlas wrote:
> For example I'd like to kow how many dictionaries there are with a
> level 1, 2 , 23 & 3 etc. How would one go about
Hrmm, any ideas why I'd be getting 'SyntaxError: invalid syntax' for
both of these?
> sum(u'Level 2 Courses' in dct for dct in yourlist)
> q = set(['1']); print q, sum(d.get('level') in q for d in thelist)
The error occurs at the 'for'
I'm afraid I can't use Peters suggestion as I'm using python
Jon Bowlas wrote:
I'm afraid I can't use Peters suggestion as I'm using python 2.3 and
it doesn't have the collection module. Thanks anyway.
Python 2.3 is the reason. It doesn't support the generator expression
syntax. Try sum([u'Level 2 Courses' in dct for dct in yourlist]) or
len([1 for dct
Jon Bowlas wrote:
> Hrmm, any ideas why I'd be getting 'SyntaxError: invalid syntax' for
> both of these?
>
>> sum(u'Level 2 Courses' in dct for dct in yourlist)
>> q = set(['1']); print q, sum(d.get('level') in q for d in thelist)
>
> The error occurs at the 'for'
> I'm afraid I can't use Pete
I am trying to create raw socket:
server = socket.socket(socket.AF_INET, socket.SOCK_RAW,
socket.getprotobyname('ip'))
As a result I get the following error:
Traceback (most recent call last):
File "tcpsrv.py", line 14, in
server = socket.socket(socket.AF_INET, socket.SOCK_RAW,
socket.get
Hi All,
I've been given a Perl script that i'm trying to convert into python.
The aim of the script links to MqSQL database, but i'm stuck on one
part
my $sth = $dbh->prepare($sql)||
die "Could not prepare SQL statement ... maybe invalid?:$!\n$sql
\n";
$sth->execute()||
die "C
Dnia Tue, 12 Aug 2008 05:40:36 -0700 (PDT), Tzury Bar Yochay napisa�(a):
Hi,
> server = socket.socket(socket.AF_INET, socket.SOCK_RAW,
> socket.getprotobyname('ip'))
...
> Does anybody have used socket.SOCK_RAW in the past?
When using SOCK_RAW, the family should be AF_PACKET,
not AF_INET. Note t
On Tue, 12 Aug 2008 05:51:19 -0700, Mike P wrote:
> Hi All,
>
> I've been given a Perl script that i'm trying to convert into python.
> The aim of the script links to MqSQL database, but i'm stuck on one
> part
>
>my $sth = $dbh->prepare($sql)||
>die "Could not prepare SQL statement
alex23 wrote:
PDFMiner is a set of CLI tools written in Python, one of which
converts PDF to text, HTML and more:
http://www.unixuser.org/~euske/python/pdfminer/index.html
Very neat program. Would be cool if it could easily integrate into other
py apps instead of being a standalone CLI tool.
Hi,
Do you have a recommendation for how I can convert the quicktime and
flash movies to ogg? I've had a hard time finding conversion apps for
the Mac.I'd also be happy to turn over the original movies to anyone
who can help me convert them.
Thanks!
Mimi (Product Designer, Chandler Project - aka
On Tue, 12 Aug 2008 07:04:41 +0200, Martin v. Löwis wrote:
> For some reason, the getopt module in your host's python cannot process
> the command line options to asdl_c.py correctly.
>
> What Python version do you have installed in PATH?
Martin,
Thank you so much! In fact, I did have a python
On Aug 12, 11:13 pm, brad <[EMAIL PROTECTED]> wrote:
> Very neat program. Would be cool if it could easily integrate into other
> py apps instead of being a standalone CLI tool.
Perhaps, but I think you could get a long way using os.system().
--
http://mail.python.org/mailman/listinfo/python-list
The simple answer is "Dont nest classes. It is not supported."
What you are seeing is really an artifact of how classes are built.
Basically, everything inside the class body has to exist before it can
run, so the inner classes code objects are actually created first.
However, the class object its
Hello:
To all who may be interestde. We are in dire need to 2 python
developers for our client in Dallas, TX. This is a full time posiiton
and due to the difficulty in finding replacements, our client is open
to the salary requirement for the expeirence. Please email resumes to
[EMAIL PROTECTED] a
Yes, I believe the custom search allows you to embed a google search into your
website and customize it, but they no longer allow you to use a script to
access search results unless you go about it in a roundabout way
http://googlesystem.blogspot.com/2006/12/googles-soap-search-api-no-longer.ht
The Grant Institute: Certificate in Professional Program Development and Grant Communication
will be held at the University of Phoenix - Burlington Campus, August 18 - 22, 2008. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible
alex23 wrote:
On Aug 12, 11:13 pm, brad <[EMAIL PROTECTED]> wrote:
Very neat program. Would be cool if it could easily integrate into other
py apps instead of being a standalone CLI tool.
Perhaps, but I think you could get a long way using os.system().
Yes, that is possible, but there's a lo
> When using SOCK_RAW, the family should be AF_PACKET,
> not AF_INET. Note that you need root privileges to do so.
I changed as instructed:
server = socket.socket(socket.AF_PACKET, socket.SOCK_RAW,
socket.getprotobyname('ip'))
now I am getting:
Traceback (most recent call last):
File "tcpsrv.
Hello all,
It looks like this comparison I did between TTCN-3 and Python
sparked some interesting reactions. I thank you all for that, this is very
helpful.
There are two things that are missing:
1. this comparison you downloaded are slides from a presentation at a
TTC
raja wrote:
Fault Seal Analysis
Analyse Reservoir Fault, Lateral & Top Seal quickly and efficiently
http://finance4u.synthasite.com/
raja has overstayed his welcome. Is
there any way to expunge these entries?
Message source below.
Colin W.
Path:
ncf.ca!news.xcski.com!news.acm.uiuc.edu!
Hi,
I'm wondering if there are any tools available or simple methods for
taking a python source file and parsing into some hierarchical format,
like the ConfigParser. I'd like to be able to do something like the
following:
test.py:
---
""" This
Hi,
I am curently looking for a library allowing the creation and management of
a thesaurus. Our requirements are the following:
- creation of our own thesaurus (that is, terms AND relations between
terms), and indexing (and retrieving) documents with terms defined in our
thesaurus,
- "thesauraus
On 12 Aug., 16:35, Wilson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm wondering if there are any tools available or simple methods for
> taking a python source file and parsing into some hierarchical format,
> like the ConfigParser.
http://docs.python.org/lib/module-parser.html
http://docs.python.org
I'm using python's interpreter's to run various commands (like a
normal shell). However if sources are modified changes are not
reflected so I have to restart interpreter. Is there any way to avoid
restarting this?
example:
import blah
blah.Blah()
# ... blah.Blah() changed
blah.Blah()
# ... new
Kay Schluehr a écrit :
On 12 Aug., 16:35, Wilson <[EMAIL PROTECTED]> wrote:
Hi,
I'm wondering if there are any tools available or simple methods for
taking a python source file and parsing into some hierarchical format,
like the ConfigParser.
http://docs.python.org/lib/module-parser.html
http
Dnia Tue, 12 Aug 2008 07:21:15 -0700 (PDT), Tzury Bar Yochay napisa�(a):
> I changed as instructed:
> server = socket.socket(socket.AF_PACKET, socket.SOCK_RAW,
> socket.getprotobyname('ip'))
>
> now I am getting:
>
> Traceback (most recent call last):
> File "tcpsrv.py", line 15, in
> serve
Hello:
I am looking for 2 Python developers to join my client in Dallas TX.
This is a full time position and my client is open on the salary and
will offer relocation plus competitive benefits. Please email resumes
to [EMAIL PROTECTED]
Regards,
Bhavani
--
http://mail.python.org/mailman/listinfo/p
On Aug 12, 9:49 am, Alexandru Mosoi <[EMAIL PROTECTED]> wrote:
> I'm using python's interpreter's to run various commands (like a
> normal shell). However if sources are modified changes are not
> reflected so I have to restart interpreter. Is there any way to avoid
> restarting this?
>
> example:
On Tue, Aug 12, 2008 at 10:49 AM, Alexandru Mosoi <[EMAIL PROTECTED]> wrote:
> I'm using python's interpreter's to run various commands (like a
> normal shell). However if sources are modified changes are not
> reflected so I have to restart interpreter. Is there any way to avoid
> restarting this?
Sometimes when running very intensive computations the Python-
interpreter kind of overheats and stops responding.
I have gotten the impression that the dos-version is less likely to
crash. Can that be true and if so, why?
Is there anyway to get around this? Pretty annoying that it stops
respondi
Dnia Tue, 12 Aug 2008 07:58:52 -0700 (PDT), [EMAIL PROTECTED] napisa�(a):
>> I'm using python's interpreter's to run various commands (like a
>> normal shell). However if sources are modified changes are not
>> reflected so I have to restart interpreter. Is there any way to avoid
>> restarting this
Alexandru Mosoi wrote:
> I'm using python's interpreter's to run various commands (like a
> normal shell). However if sources are modified changes are not
> reflected so I have to restart interpreter. Is there any way to avoid
> restarting this?
Other gave you advice on how to - partially - achi
Neal Becker wrote:
Any ideas on this?
bb-freeze test5-coded-pre.py
x86_64.egg/bbfreeze/eggutil.py", line 132, in copyDistribution
raise RuntimeError("setup.py not found for development egg")
RuntimeError: setup.py not found for development egg
Can you try the latest bbfreeze version f
andybak wrote:
> Which rather makes me wonder - lot's of people liked this module
> or rather disliked os.path. Is there anything salvageable from
> the BDFL's objections worthy of a PEP?
Funny you should bring this up today.. I was just thinking the same
thing (-: and I looked at the pep (http:/
I am trying to run p4python API on top of python 2.5.2 and am extracting
a dictionary from perforce. The following code returns the output that
follows it:
from P4 import P4, P4Exception
p4 = P4()
p4.port = "erased" #deleted
p4.user = "erased" #deleted
On Aug 12, 9:56 am, Peter Otten <[EMAIL PROTECTED]> wrote:
> tow wrote:
> > Basically, I had thought that import and imp.find_module used exactly
> > the same
> > search path, but the above example shows that at least in this
> > circumstance they
> > don't; import is picking up additional search
Hi;
A couple of weeks ago I asked how to cut and paste multiple lines in the
Windows IDLE interface. I can only paste one line at a time! Frustrating. I
want it to work like my Linux interpreter. Why doesn´t it? Please help.
Someone wrote this, which did not help at all:
Well, I'm not really sure
tow wrote:
> On Aug 12, 9:56 am, Peter Otten <[EMAIL PROTECTED]> wrote:
>> tow wrote:
>
>> > Basically, I had thought that import and imp.find_module used exactly
>> > the same
>> > search path, but the above example shows that at least in this
>> > circumstance they
>> > don't; import is picking
>I am trying to run p4python API on top of python 2.5.2 and am
extracting a dictionary from perforce. The following code returns the
output that follows it:
>
> from P4 import P4, P4Exception
> p4 = P4()
> p4.port = "erased" #deleted
> p4.us
On Tue, Aug 12, 2008 at 11:27 AM, Matt Fielding (R* New England)
<[EMAIL PROTECTED]> wrote:
> [{'userName': 'mfielding', 'clientRoot': 'c:\\perforce', 'monitor':
> 'enabled',
> 'serverRoot': 'H:\\p4root\\', 'serverVersion': 'P4D/NTX64/2007.3/143793
> (2008/01/
> 21)', 'serverDate': '2008/08/12 11:1
I actually figured out the solution to my problem, of all times, right
after I finished sending this mail. It seems P4Python returns a command
as a dictionary, also inside of an array. The solution is in the
following code:
from P4 import P4, P4Exception
p4 = P4()
p4.port
Hi everyone !
I'd like to apologize in advance for my bad english, it's not my
mother tongue...
My girlfriend (who is a newbie in Python, but knows Perl quite well)
asked me this morning why the following code snippets didn't give the
same result :
### Python ###
liste = [1,2,3]
def foo( my_li
On Aug 12, 4:04 pm, ssecorp <[EMAIL PROTECTED]> wrote:
> Sometimes when running very intensive computations the Python-
> interpreter kind of overheats and stops responding.
>
> I have gotten the impression that the dos-version is less likely to
> crash. Can that be true and if so, why?
>
> Is ther
In article
<[EMAIL PROTECTED]>,
Palindrom <[EMAIL PROTECTED]> wrote:
> Hi everyone !
>
> I'd like to apologize in advance for my bad english, it's not my
> mother tongue...
>
> My girlfriend (who is a newbie in Python, but knows Perl quite well)
> asked me this morning why the following code s
Sounds like you might want to read up on RDF
On Tue, Aug 12, 2008 at 10:41 AM, Benjamin Michiels
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am curently looking for a library allowing the creation and management of
> a thesaurus. Our requirements are the following:
>
> - creation of our own thesaurus (
The best answer is: Don't do that!
That isn't how you test things. Write test scripts, probably using the
unittest framework. You'll save yourself time and trouble having
easily reproducible tests. Many people suggested reload(), but you
should know it is dangerous. It can have results you don't e
1 - 100 of 184 matches
Mail list logo