[Tutor] Calling a C shared library with PyObject

2019-07-17 Thread Jesse Ibarra
I am using Python3.6 Working with C/Python embedding: https://docs.python.org/3.6/extending/embedding.html#beyond-very-high-level-embedding-an-overview I have to call a shared library (.so) that I created using PyObjects. Please advise. Jesse Ibarra

Re: [Tutor] RE Embedding Python in C

2019-07-09 Thread Ibarra, Jesse
Finalize(); return 0; } Why does this code only print the result(array([ 1., 1., 1., 1., 1.])) once, when I am calling the python code twice? Please advise, Jesse Ibarra ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Fw: [docs] Python Embedding PyImport_ImportModule

2019-07-08 Thread Ibarra, Jesse
I cannot seem to figure this potential bug out. Please advise, Jesse Ibarra From: Julien Palard Sent: Sunday, July 7, 2019 2:04 PM To: Ibarra, Jesse Subject: Re: [docs] Python Embedding PyImport_ImportModule Hi Jesse, > Why does this code only pr

[Tutor] Fw: [docs] Fw: Embedding Python in Another Application Import Statement Bug

2019-07-08 Thread Ibarra, Jesse
I cannot seem to figure this potential bug out. Please advise, Jesse Ibarra From: Julien Palard Sent: Sunday, July 7, 2019 2:02 PM To: Ibarra, Jesse Cc: d...@python.org Subject: Re: [docs] Fw: Embedding Python in Another Application Import Statement

[Tutor] (no subject)

2018-10-27 Thread Jesse Stockman
Hi there I need to draw a patten with turtle in python 3.7 but I cant get it to work here are the specs of the pattern and my code so far can you please help • Specifications of the pattern o The radius of the three heads is 10. o The length of legs is 30. o The length of the sizes of the two

[Tutor] Accessing windows from Linux build

2009-09-28 Thread Jesse L
I want to use a linux system to scan windows registries for a specific key. I know there is the _winreg module, but it's only available on a windows system. Is there a module that will enable python to work cross platform? Thank you Jesse ___

[Tutor] Syntax Problem

2009-07-24 Thread Jesse Harris
for d in Decks.all(): #loop thru all available decks   self.response.out.write(''+d.name)       self.response.out.write(''+d.description) self.response.out.write('') self.response.out.write('') : invalid syntax (main.py, line 206)   args = ('invalid syntax', (r'C:\Program Files\

Re: [Tutor] SSH using python

2007-06-04 Thread Jesse Noller
On 6/4/07, Chandrashekar <[EMAIL PROTECTED]> wrote: Hi , Can anyone tell me how to do ssh to a machine using python and execute programs on the remote machine? Thanks in advance. Regards, Chandru -- Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now

[Tutor] A simple solution to the even/odd problem

2006-04-20 Thread Jesse
Hey, I'm a Python newbie, and I'm not even sure I've correctly interpreted the problem, but from what I gather the idea is to take an integer with an arbitrary number of digits and return two [strings/lists/tuples/whatever]: one containing all of the odd digits, and another containing all of the ev

[Tutor] n00b question: dictionaries and functions.

2006-04-12 Thread Jesse
ber: ")) add = add() add   Can someone clear up my misunderstanding here? I don't want to end up writing a long while loop of conditional statements just to effect a command-line interface.   -Jesse ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Beginner question (variables, namespaces...)

2006-04-07 Thread Jesse
er * buy_containers   I would like to write a function that will update the values of the above variables given an increase in only the stock variable. Otherwise I'd have to repeat a bunch of code...:(   Jesse ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Hello

2005-08-24 Thread Jesse Lands
On Wed, 24 Aug 2005 16:49:17 -0700 (PDT) Eric Walker <[EMAIL PROTECTED]> wrote: > all, > Hello... I just finished a class given by Mark Lutz > and I love python. Now I need to find a project to > hone my skills. I am sure I will be sending lots of > questions to this list. I used to use perl but

[Tutor] re

2005-08-13 Thread Jesse Lands
10.0.8.200') ping_result = ping.read() I assume I have to use Regular Expression to read the results, but I don't quite understand it. Can someone explain it or point me in a direction to where it's explained better then what I could find with google. TIA Jesse -- JLands Arch Current(Lap

Re: [Tutor] SSH commands in Python on Linux

2005-08-11 Thread Jesse Noller
ur program which is a seriously risk. Also note you'll need to take into account basic flow control for Stdin, Stdout and Stderr - you need to watch for hosts that are not found/don't exist and ssh commands that may or may not hang. The PSSH program has excellent work arounds for all of these within it. -jesse ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Removing/Handing large blocks of text

2004-12-09 Thread Jesse Noller
On Wed, 8 Dec 2004 15:11:55 +, Max Noel <[EMAIL PROTECTED]> wrote: > > > > On Dec 8, 2004, at 14:42, Jesse Noller wrote: > > > Hello, > > > > I'm trying to do some text processing with python on a farily large > > text file (actuall

[Tutor] Removing/Handing large blocks of text

2004-12-08 Thread Jesse Noller
something like: re1 = re.compile('^\') re2 = re.compile('^\<\/foo\>') f = open('foobar.txt', 'r') for lines in f.readlines() match = re.match(re1, line) But I'm lost after this point really, as I can identify the t