t. However, if you recommend that I post in both
places now then I'll do that.
Pete
On 2015-09-14 18:10, Laura Creighton wrote:
In a message of Mon, 14 Sep 2015 15:53:16 +0100, Pete writes:
Sorry, I've just realised that my previous message was wrong - please
delete it. I now
.5 32-bit keys. I'll have to find some way of contacting the
Python for Windows Extensions developers to ask them which key the
installer is looking for, and then try to determine why I don't have it.
Pete
Subject: Python 3.5 32-bit installer not creating standard registry key
Date: 2
Pip-for-windows worked great! Bob's your uncle! Case closed.
Pete
> -Original Message-
> From: Tutor [mailto:tutor-bounces+pete.wilson=atmel@python.org] On
> Behalf Of Mark Lawrence
> Sent: Friday, May 15, 2015 7:15 PM
> To: tutor@python.org
> Subject: Re: [T
Greetings I am trying to write a test executive program using python 2.7 on a
windows 7 computer. I want to connect to a Keithley 2100 voltmeter using
National Instruments VISA. I am having trouble installing pyvisa. All the
documentation refers to using 'pip' and a command line "$ pip install
No worries, if I could spell I would have been a Lawyer. Pete
> -Original Message-
> From: eryksun [mailto:eryk...@gmail.com]
> Sent: Wednesday, October 22, 2014 5:36 PM
> To: Wilson, Pete
> Cc: tutor@python.org
> Subject: Re: [Tutor] Passing Data to .DLL
>
> On W
sun [mailto:eryk...@gmail.com]
> Sent: Wednesday, October 22, 2014 4:16 AM
> To: Wilson, Pete
> Cc: tutor@python.org
> Subject: Re: [Tutor] Passing Data to .DLL
>
> On Tue, Oct 21, 2014 at 7:04 PM, Wilson, Pete
> wrote:
> >
> > ProcessIncomingSerialData_t
I am having problems passing a pointer and uint8 to a .DLL. I have been
successful registering call -backs with this .DLL. So it is all 32-bit and
ctypes are working. Everything is working up to the line #set-up
ProcessingIncomingSerialData. I tried the direct approach and then morphing the
cal
This worked. Yeah! Thank you so much. Pete
> -Original Message-
> From: eryksun [mailto:eryk...@gmail.com]
> Sent: Friday, October 17, 2014 8:53 PM
> To: Wilson, Pete
> Cc: tutor@python.org
> Subject: Re: [Tutor] Registering callbacks and .DLL
>
> On Thu, Oct 16,
ut success.
Thanks for your advice.
Pete
#*
''' bat_read_15_17_1_17
this program is attempting ot register a call back function the
ProductionTest.dll
using the techniques outlined in section 15.1
tup, but rather only after I invoke a "loadMyCustomModules.py" module.
Help please:)!
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Thanks Stephen. That looks like nice clean code too!
Cheers
Pete
On Tue, Sep 18, 2012 at 9:59 AM, Stephen Haywood <
step...@averagesecurityguy.info> wrote:
> Someone has already tried. https://github.com/sebleier/RDP
>
>
> On Mon, Sep 17, 2012 at 5:50 PM, Pete O'Connell
m to improve the accuracy of my curve
simplification:
http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm
Thanks
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Ah of course. Thanks very much Oscar!
Pete
On Mon, Sep 17, 2012 at 1:29 PM, Oscar Benjamin
wrote:
> On 17 September 2012 02:15, Pete O'Connell wrote:
>
>> Hi, I have a bezier line with 20 points on it and I am trying to reduce
>> this to a line with 4 points, keeping th
counter+=1
aPointIndex = aPointIndex-(counter)
print aPointIndex
aShape.remove(aPointIndex)
Any advice would be
ude the modulud test within the original
list comprehension but I am not sure how to access the index of "line":
#something like this is a sketch of what I mean (I know it's wrong)
theGoodLines = [line.strip("\n") for line in lines if "v " ==
line[0:2]
Ok thanks for the advice everyone.
Cheers
Pete
On Thu, Aug 23, 2012 at 10:58 AM, Jerry Hill wrote:
> On Wed, Aug 22, 2012 at 5:23 PM, Pete O'Connell
> wrote:
>> OK maybe I am wrong about it being slow (I thought for loops were
>> slower than lis comprehensions). But I
if "vt" not in x
> if x!= ""]
>
> It's slightly more verbose but it makes the rules more explicit, IMHO.
I agree, it seems easier to read when written on multiple lines. I'll
do it that way,
Thanks
Pete
___
On Thu, Aug 23, 2012 at 2:53 AM, Steven D'Aprano wrote:
> On 22/08/12 20:28, Pete O'Connell wrote:
>>
>> Hi. The next step for me to parse the file as I want to is to change
>> lines that look like this:
>> f 21/21/21 22/22/22 24/24/23 23/23/24
>> into
Thanks eryksun, that is a very clear example.
Cheers
pete
On Wed, Aug 22, 2012 at 11:16 PM, eryksun wrote:
> On Wed, Aug 22, 2012 at 3:06 AM, Peter Otten <__pete...@web.de> wrote:
>>
>> wanted = [line.strip("\n") for line in lines
>> if
t;)[-1] + " " +
aGoodLineAsList[2].split("/")[-1] + " " +
aGoodLineAsList[3].split("/")[-1] + " " +
aGoodLineAsList[4].split("/")[-1]
for anItem in theGoodLines:
print anItem
#
erator in
a situation where the if statements were more numerous and complex. I
am sure that will come in handy.
Thanks
On Wed, Aug 22, 2012 at 7:06 PM, Peter Otten <__pete...@web.de> wrote:
> Pete O'Connell wrote:
>
>> Hi I am trying to parse a text file and create a lis
""]
It works but what I don't understand about this line is why the ands
are nor ors ("or" doesn't work even though I would have expected it
to)
I am sure I will have a few more questions over the next couple days
as I work my way through the responses.
Thanks
Pete
On We
try.
The last 3 lines of the code below have three list comprehensions that
I would like to combine into 1 but I am not sure how to do that.
Any tips would be greatly appreciated
pete
#start
fileName = '/usr/home/poconnell/Desk
Ok thanks a lot.
Pete
On Mon, Mar 19, 2012 at 10:01 PM, Peter Otten <__pete...@web.de> wrote:
>> Pete O'Connell wrote:
>
>> Hi, I am using Python 2.6 I can't use Python 3 in this particular
> situation.
>
> [Please reply to the list, not in pr
module)? It sounds like the
commands module will be phased out soonish. I am using Python 2.6
Here is the kind of thing I would like to do in subprocess
import commands
output = commands.getoutput("echo Hello World!")
print output
Thanks
Pete
___
function error", so I will change the word "return" to "print" and in many
cases that's the way I leave it. Anyone have any thoughts on this?
Thanks
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change
another compositors script in the gui.
I have a python script editor in Nuke in which I can run code if need be to
run code on the fly.
Help
--
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http
openNewestCompCommandLine()
for aFile in theFilesInTheFolder:
print aFile
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
ke
import subprocess
def showFolder():
subprocess.Popen(['kde-open', 'path/to/the/sequence'])
showFolder()
###
I must to run it from a specific interpreter (Nuke, the compositing
software)
Anyone have any idea what I migh
Hi,
Please help just starting out and have come up with the following code
to create a simple guessing game.
on line 30 print good job etc i get a syntax error! sure it's simple but
i've looked for ages and cant spot it!
Regards
Pete
# guess the number game
import random
guesse
standard order.
Hm, someone maybe should update http://en.wikipedia.org/wiki/Foobar
... as there is a python example listed there...
- Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
x27;)
Question:
what is the equivalent of
from spam import *
?
thanks,
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 2010-09-22, at 5:50 PM, Steven D'Aprano wrote:
> On Thu, 23 Sep 2010 06:07:21 am Pete wrote:
>> For a plugin mechanism, I'm populating a dict with calls to the
>> implemented plugins.
> [...]
>> Now I get that I need to instantiate foo and bar first before
static method but that seemed... wrong (also
because it needs to access some variables from the instance).
Any hints would be appreciated,
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
]
rather than ['134445', '21 trewuuioi', '3zxc']?
Any help would be greatly appreciated
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 2010-08-19, at 5:25 PM, Emile van Sebille wrote:
> On 8/19/2010 7:51 AM Pete said...
>> Hi,
>>
>> I've been reading up on list comprehensions lately, all userful and powerful
>> stuff - trying to wrap my brain around it :)
>>
>> As the examples
over it, of course)
I'm trying to convert all keys in a dict to uppercase, as in:
INPUT:
age_dict = { 'pete': 42, 'ann': 25, 'carl': 30, 'amanda': 64 }
OUTPUT:
age_dict = { 'PETE': 42, 'ANN': 25, 'CARL': 30, 'AMAND
void them.
Doh! That is what I did :)
Thanks Steve!
-Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
de is not easily isolated, but can post if necessary.
thanks again,
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
rt?
Thanks for all your time, btw - I'm learning a lot lurking on this list and
greatly appreciate all the people offering help and advice.
cheers,
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Hey Huy,
thanks. But what is the first parameter in this case? (Note there is nothing
here I'm trying to accomplish except understand).
In the original example, 'statsout' is the name of the module. In this case
there is no module so why can you substitute 'output_text&
obals()['__name__'], in various forms, to no avail.
Any pointers would be appreciated.
thanks,
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
hat is the
best way to have that variable saved for all subsequent uses of the script
by the same user.
Pete
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
;, go back line by line until you find a line
that begins with " file /Volumes/" and then assign a new variable to the
path on that line".
At the very bottom of this post I have included what I have so far (The
script which works but breaks). Any help would be greatly appreciated.
t learning pyhton as well being intended to take a different
form in an artwork I'm working on.
thanks.
petef
On Sun, Jul 12, 2009 at 7:40 PM, Dave Angel wrote:
> Pete Froslie wrote:
>
>> so, I've been playing with the functions a bit-- took a little time to get
>>
response = re.split(r"[/|/,\n, , ,:\"\"\.?,)(\-\<>\[\]'\r']",
> fin.read())
> thesaurus = API_URL + response[word_number] + '/' #API_URL is
> established at the start of the code
> return thesaurus
>
Pete F
On Sun, Jul 12, 2009 at 4:00 AM
llowing me to call 'hello' later when
I need it. Does this also mean that I will be able to call those functions
separately later when I import 'thesaurus.py' into a new code also?
Pete F
On Sat, Jul 11, 2009 at 5:38 PM, Dave Angel wrote:
> Pete Froslie wrote:
>
>>
ch I can't seem to get to work
>
> re.sub works on a text string it doesn't affect the file.
>
> read the content into a string, close the input file.
> Use re.sub to make the changes (or even just the replace
> method of strings) then write the changed string back o
for past,
> present,
> > future. So they rely on other words to indicate which they might mean.
>
>
> Chinese also has the problem of relying on intonation to distinguish
> between
> identically spelled words. We have the same in English - bow(on stage) v
> bow
>
gure
out a natural language parser.. as it turns out, I don't mind it for this
project--gibberish is fine. Though I am now pretty curious about NL
parsers-- thanks for the example..
I will look at using the split method of strings..
On Wed, Jul 8, 2009 at 11:12 PM, Rich Lovely wrote:
> 200
e following:
urllib.urlopen('
http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/').read(SOMETHINGHERE)
On Wed, Jul 8, 2009 at 10:29 PM, Rich Lovely wrote:
> 2009/7/9 Pete Froslie :
> > No problem, thanks for taking the time.
> >
> > I
the next word
in the text file and then replaces it with the one that is looked up..
working on that now.
Pete F
On Wed, Jul 8, 2009 at 10:10 PM, Rich Lovely wrote:
> 2009/7/9 Pete Froslie :
> > Great Richard, thanks..
> >
> > I'm getting an error as follows:
> &
'with'
cheers
On Wed, Jul 8, 2009 at 9:41 PM, Rich Lovely wrote:
> 2009/7/9 Pete Froslie :
> >
> >
> > -- Forwarded message --
> > From: Pete Froslie
> > Date: Wed, Jul 8, 2009 at 8:53 PM
> > Subject: Re: [Tutor] thesaurus
>
-- Forwarded message --
From: Pete Froslie
Date: Wed, Jul 8, 2009 at 8:53 PM
Subject: Re: [Tutor] thesaurus
To: Robert Berman
Thanks Robert,
I will try this out.. at the moment I'm playing with an API from '
http://words.bighugelabs.com/'. It works and pulls th
split and parse
the original paragraphs, but the thesaurus is throwing me. I'm thinking
maybe find a CSV thesaurus -or- a thesaurus online with an API.. I'm
wondering if anyone has done something similar that may point me in the
correct directi
ng further with the OS (as well as utilizing it
in artworks)
Cheers,
Pete
On Tue, Jul 7, 2009 at 7:12 PM, ALAN GAULD wrote:
> > Yes, this makes sense to me.. but when treating a project as an artwork >
> I can't ask people to go through an effort beyond a simple start of the
&g
astic when
being told over the phone how to re-launch the artwork-- it would be much
easier to say, 'just double click the icon labeled artwork'. Same goes for
an artwork I would like to distribute online to 'non-tech' viewers...
Does this make sense?
thank,
Pete F
On Tue, Jul
eating standalone
> >> > executable
> >> >files for mac os x.. I've been looking at 'py2app', [...]
>
>
> pete,
>
> welcome to Python! in order for all to answer your question more
> appropriately, you'll have to describe the problem in slightl
f.
cheers
On Tue, Jul 7, 2009 at 12:54 PM, Bill Campbell wrote:
> On Tue, Jul 07, 2009, Pete Froslie wrote:
> >Hi,
> >
> >I'm having trouble finding good tutorials on creating standalone
> executable
> >files for mac os x.. I've been looking at 'p
Hi,
I'm having trouble finding good tutorials on creating standalone executable
files for mac os x.. I've been looking at 'py2app', but can't seem get a
solid grasp. Any help would be greatly appreciated!
cheers
___
Tutor maillist - Tutor@python.org
h
2009 at 4:47 PM, Pete Froslie wrote:
> Hi, I have a basic question concerning pythons eggs. I have setup easy
> install and used it to install mechanize-- this was easy as I only needed to
> type in 'Easy_Install Mechanize' in terminal. Now I need to install
> 's
pypi/simplejson
Can anyone suggest the correct way to do this as it seems it is not as
direct? I've read the EasyInstall documentation and believe I understand
how, but am a little confused regarding my python paths. Using Mac OSX
10.5.7
Thanks so much,
--
Pete Frosl
Hi, so I've been using Mechanize as suggested to me through tutor to access
web forms and fill them out.. I've found some success though I wish there to
be more documentation than docstrings.. as I am new to python and not
incredibly experienced with code.
I am able to fill forms and submit them i
Thank you so much.. I will start looking into twill and I just finished
installing Mechanize.
FYI:
I use Netbeans as my IDE and encountered an error that took some time to
resolve, as follows:
A java.lang.NoClassDefFoundError exception has occurred
the resolution can be found here if you run int
I would to access web forms and fill them out.
I am feeling that the 'ClientForm' module makes sense as a starting place,
but am concerned that maybe it is dated and that there might be a better
starting option.. can anyone help start me along the correct path as I am
pretty new to python and not
65 matches
Mail list logo