Re: Embedding Python in C

2019-07-24 Thread Jesse Ibarra
On Tuesday, July 23, 2019 at 2:20:45 PM UTC-6, Stefan Behnel wrote: > Jesse Ibarra schrieb am 22.07.19 um 18:12: > > On Saturday, July 20, 2019 at 1:11:51 PM UTC-6, Stefan Behnel wrote: > >> Jesse Ibarra schrieb am 20.07.19 um 04:12: > >>> Sorry, I am not understand

Re: Embedding Python in C

2019-07-22 Thread Jesse Ibarra
On Saturday, July 20, 2019 at 1:11:51 PM UTC-6, Stefan Behnel wrote: > Jesse Ibarra schrieb am 20.07.19 um 04:12: > > Sorry, I am not understanding. Smalltlak VW 8.3 does not support Python. > > I can only call Pyhton code through C/Python API. > > Ok, but that doesn't m

Re: Embedding Python in C

2019-07-19 Thread Jesse Ibarra
Sorry, I am not understanding. Smalltlak VW 8.3 does not support Python. I can only call Pyhton code through C/Python API. -- https://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in C

2019-07-19 Thread Jesse Ibarra
On Friday, July 19, 2019 at 8:17:43 AM UTC-6, Chris Angelico wrote: > On Sat, Jul 20, 2019 at 12:16 AM Jesse Ibarra > wrote: > > > > On Thursday, July 18, 2019 at 2:01:39 PM UTC-6, Chris Angelico wrote: > > > On Fri, Jul 19, 2019 at 5:51 AM Christian Gollwitzer > &

Re: Embedding Python in C

2019-07-19 Thread Jesse Ibarra
On Thursday, July 18, 2019 at 1:46:05 PM UTC-6, Christian Gollwitzer wrote: > Am 18.07.19 um 16:18 schrieb Jesse Ibarra: > > On Wednesday, July 17, 2019 at 2:20:51 PM UTC-6, Christian Gollwitzer wrote: > >> What level of integration do you want to achieve? Do you want > >

Re: Embedding Python in C

2019-07-19 Thread Jesse Ibarra
On Thursday, July 18, 2019 at 2:01:39 PM UTC-6, Chris Angelico wrote: > On Fri, Jul 19, 2019 at 5:51 AM Christian Gollwitzer wrote: > > Once you can do this, you can proceed to call a Python function, which > > in C means that you invoke the function PyObject_CallObject(). A basic > > example is s

Re: Embedding Python in C

2019-07-18 Thread Jesse Ibarra
On Wednesday, July 17, 2019 at 2:20:51 PM UTC-6, Christian Gollwitzer wrote: > Am 17.07.19 um 20:39 schrieb Jesse Ibarra: > > My options seem rather limited, I need to make a Pipeline from (Smalltalk > > -> C -> Python) then go back (Smalltalk <- C <- Python). Si

Re: Embedding Python in C

2019-07-17 Thread Jesse Ibarra
On Wednesday, July 17, 2019 at 11:55:28 AM UTC-6, Barry Scott wrote: > > On 17 Jul 2019, at 16:57, wrote: > > > > I am using Python3.6: > > > > [jibarra@redsky ~]$ python3.6 > > Python 3.6.8 (default, Apr 25 2019, 21:02:35) > > [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux > > Type "help", "

Embedding Python in C

2019-07-17 Thread jesse . ibarra . 1996
I am using Python3.6: [jibarra@redsky ~]$ python3.6 Python 3.6.8 (default, Apr 25 2019, 21:02:35) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux Type "help", "copyright", "credits" or "license" for more information. I am referencing:https://docs.python.org/3.6/extending/embedding.html#beyond

Re: Python Web Scrapping : Within href readonly those value that have href in it

2017-01-16 Thread Jesse Alama
;s not an error, and no exception will be thrown, when the XPath evaluator applies the starts-with function to an a element that does not have an href attribute. Hope this helps. Best regards, Jesse -- Jesse Alama http://xml.sh -- https://mail.python.org/mailman/listinfo/python-list

any visualization web framework ?

2015-04-27 Thread jesse
show task execution; data visualization; easy to set up; thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: why zip64_limit defined as 1<<31 -1?

2015-01-29 Thread jesse
On Jan 29, 2015 9:27 AM, "Ian Kelly" wrote: > > On Wed, Jan 28, 2015 at 2:36 PM, Chris Angelico wrote: > > On Thu, Jan 29, 2015 at 5:53 AM, jesse wrote: > >> should not it be 1<<32 -1(4g)? > >> > >> normal zip archive format should be able

Re: why zip64_limit defined as 1<<31 -1?

2015-01-29 Thread jesse
ot;Chris Angelico" wrote: > On Thu, Jan 29, 2015 at 5:53 AM, jesse wrote: > > should not it be 1<<32 -1(4g)? > > > > normal zip archive format should be able to support 4g file. > > > > thanks > > 1<<31-1 is the limit for a signed 32-bit integ

why zip64_limit defined as 1<<31 -1?

2015-01-28 Thread jesse
should not it be 1<<32 -1(4g)? normal zip archive format should be able to support 4g file. thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing in a while loop?

2014-06-27 Thread Jesse Adam
Could you post a) what the output looks like now (sans the logging part) b) what output do you expect In any event, this routine does not look right to me: def consume_queue(queue_name): conn = boto.connect_sqs() q = conn.get_queue(queue_name) m = q.read() while m is not None: yiel

Re: How to extract contents of inner text of html tag?

2014-06-27 Thread Jesse Adam
I don't have BeautifulSoup installed so I am unable to tell whether a) for line in all_kbd: processes one line at a time as given in the input, or do you get the clean text in single lines in a list as shown in the example in the doc http://www.crummy.com/software/BeautifulSoup/bs4/doc/#searching

Re: Why does this hang sometimes?

2012-04-12 Thread Jesse Jaggars
Possibly. I wonder what the difference(s) is(are)? On Sat, Apr 7, 2012 at 5:54 PM, Jason Friedman wrote: >> I am just playing around with threading and subprocess and found that >> the following program will hang up and never terminate every now and >> again. >> >> import threading >> import subp

Why does this hang sometimes?

2012-04-04 Thread Jesse Jaggars
I am just playing around with threading and subprocess and found that the following program will hang up and never terminate every now and again. import threading import subprocess import time def targ():    p = subprocess.Popen(["/bin/sleep", "2"])    while p.poll() is None:        time.sleep(1)

ctypes: point to buffer in structure

2011-07-09 Thread Jesse R
Hey I've been trying to convert this to run through ctypes and i'm having a hard time typedef struct _SYSTEM_PROCESS_ID_INFORMATION { HANDLE ProcessId; UNICODE_STRING ImageName; } SYSTEM_PROCESS_IMAGE_NAME_INFORMATION, *PSYSTEM_PROCESS_IMAGE_NAME_INFORMATION; to class SYSTEM_PROCESS_ID_I

PyCon 2011 - Full talk and tutorial list now available, registration open!

2011-01-08 Thread Jesse Noller
As a reminder: Early Bird registration (http://us.pycon.org/2011/tickets/) closes January 17th - and we have an attendance cap of 1500 total attendees (speakers are counted against this number, and guaranteed a slot) so be sure to register today! Jesse Noller PyCon 2011 -- http://mail.python.org/mailman/listinfo/python-list

PyCon 2011 Registration and Financial aid open and available!

2010-12-13 Thread Jesse Noller
7;s going to be huge. Financial aid is also open and available: http://us.pycon.org/2011/registration/financialaid/ Feel free to reach out to anyone on the PyCon 2011 team to ask any questions you might have. We look forward to seeing you in Atlanta. Jesse Noller PyCon 2011 -- http://mail.pyt

PyCon 2011 Registration and Financial aid open and available!

2010-12-13 Thread Jesse Noller
Just q -- http://mail.python.org/mailman/listinfo/python-list

PyCon 2011 Reminder: Call for Proposals, Posters and Tutorials - us.pycon.org

2010-10-25 Thread Jesse Noller
1st, 2010: Talk proposals due. December 15th, 2010: Acceptance emails sent. January 19th, 2011: Early bird registration closes. March 9-10th, 2011: Tutorial days at PyCon. March 11-13th, 2011: PyCon main conference. March 14-17th, 2011: PyCon sprints days. Contact Emails: Van Lindberg (Conference Chair

Call for proposals -- PyCon 2011

2010-09-23 Thread Jesse Noller
* December 15th, 2010: Acceptance emails sent. * January 19th, 2010: Early bird registration closes. * March 9-10th, 2011: Tutorial days at PyCon. * March 11-13th, 2011: PyCon main conference. * March 14-17th, 2011: PyCon sprints days. Contact Emails: Van Lindberg (Conference

Re: Class initialization

2010-08-08 Thread Jesse Jaggars
On Sun, Aug 8, 2010 at 10:01 AM, Tim Harig wrote: > On 2010-08-08, Costin Gament wrote: >> Thank you for your answer, but it seems I didn't make myself clear. >> Take the code: >> class foo: >>   a = 0 >>   b = 0 >> c1 = foo() >> c1.a = 5 >> c2 = foo() >> print c2.a >> 5 >> >> Somehow, when I try

Re: running a piece of code at specific intervals?

2010-08-04 Thread Jesse Jaggars
On Wed, Aug 4, 2010 at 2:44 PM, Chris Hare wrote: > Don't say cron : > > I want to have a section of my code executed at 15 minute intervals.  I am > using Threading.timer, but it is causing a problem sinxe I am using sqlite3 > and the thread support gives me an error, which aborts part of my co

Call for Applications - PSF Sponsored Sprints

2010-07-08 Thread Jesse Noller
The PSF is happy to open our first call for applications for sprint funding! Have you ever had a group of people together to hack towards a common goal? You've hosted a sprint! Have you ever wanted to get a group of like minded Pythonistas together to hack for a day? You're going to want to hold

Re: TypeError: _new_() takes exactly 3 arguments (2 given) - what does it mean?

2010-05-28 Thread Jesse McDonnell
On Wed, 26 May 2010 14:30:21 -0400 Terry Reedy wrote: > On 5/24/2010 2:52 PM, Jesse McDonnell wrote: > > I'm attempting to install Powerline http://code.google.com/p/powerline/, > > a computer reservation software based on CherryPy/Python using a MYSql > > database, at

TypeError: _new_() takes exactly 3 arguments (2 given) - what does it mean?

2010-05-26 Thread Jesse McDonnell
I'm attempting to install Powerline http://code.google.com/p/powerline/, a computer reservation software based on CherryPy/Python using a MYSql database, at my local library and I've run up against an error that I cannot google my way out of!   The google groups for the application is inactive so

Invitation to connect on LinkedIn

2009-09-20 Thread jesse zhao
LinkedIn jesse zhao requested to add you as a connection on LinkedIn: -- Jaime, I'd like to add you to my professional network on LinkedIn. - jesse Accept invitation from jesse zhao http://www.linkedin.

Re: Is this a bug in multiprocessing or in my script?

2009-08-05 Thread Jesse Noller
On Aug 5, 4:41 pm, sturlamolden wrote: > On 5 Aug, 22:28, Jesse Noller wrote: > > >http://bugs.python.org/issue6653 > > > In the future please use the bug tracker to file and track bugs with, > > so things are not as lossy. > > Ok, sorry :) > > Also see P

Re: Is this a bug in multiprocessing or in my script?

2009-08-05 Thread Jesse Noller
n.org/view/python/trunk/Lib/multiprocessing/forking.p... Since the bug was never filed in the tracker (it was sent to my personal mail box, and I dropped it - sorry), I've filed a new one: http://bugs.python.org/issue6653 In the future please use the bug tracker to file and track bugs with, so things a

Re: Is this a bug in multiprocessing or in my script?

2009-08-05 Thread Jesse Noller
on Linux (it should use sys.exit). Gaël Varoquaux and I > noticed this when we implemented shared memory ndarrays for numpy; we > consistently got memory leaks with System V IPC for no obvious reason. > Even after Jesse Noller was informed of the problem (about half a year > ago), the bug still

Re: Status of Python threading support (GIL removal)?

2009-06-19 Thread Jesse Noller
On Fri, Jun 19, 2009 at 6:10 PM, Jure Erznožnik wrote: > On Jun 19, 11:59 pm, Jesse Noller wrote: >> On Fri, Jun 19, 2009 at 12:50 PM, OdarR wrote: >> > On 19 juin, 16:16, Martin von Loewis > >> If you know that your (C) code is thread safe on its own, you can >&g

Re: Status of Python threading support (GIL removal)?

2009-06-19 Thread Jesse Noller
On Fri, Jun 19, 2009 at 12:50 PM, OdarR wrote: > On 19 juin, 16:16, Martin von Loewis > If you know that your (C) code is thread safe on its own, you can >> release the GIL around long-running algorithms, thus using as many >> CPUs as you have available, in a single process. > > what do you mean ?

Re: spammers on pypi

2009-06-08 Thread Jesse Noller
On Mon, Jun 8, 2009 at 3:14 PM, Robert Kern wrote: > On 2009-06-08 07:44, Skip Montanaro wrote: >> >> On Jun 5, 1:39 pm, joep  wrote: >>> >>> Is there a way to ban spammers from pypi? >> >> Can you provide some examples?  It's possible that we can apply >> SpamBayes >> to PyPI submissions in much t

Re: unladen swallow: python and llvm

2009-06-04 Thread Jesse Noller
You can email these questions to the unladen-swallow mailing list. They're very open to answering questions. 2009/6/4 Luis M. González : > I am very excited by this project (as well as by pypy) and I read all > their plan, which looks quite practical and impressive. > But I must confess that I can

Re: Get multiprocessing.Queue to do priorities

2009-05-10 Thread Jesse Noller
or submitting a patch which adds priority queue to the multiprocessing.queue module is the correct solution for this. You can file an enhancement in the tracker, and assign/add me to it, but without a patch it may take me a bit (wicked busy right now). jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] [RELEASED] Python 3.1 beta 1

2009-05-07 Thread Jesse Noller
On Thu, May 7, 2009 at 9:12 AM, Scott David Daniels wrote: > Daniel Fetchinson wrote: >>> >>> Other features include an ordered dictionary implementation >> >> Are there plans for backporting this to python 2.x just as >> multiprocessing has been? > > Why not grab the 3.1 code and do it yourself f

Re: Multiprocessing Pool and functions with many arguments

2009-04-30 Thread Jesse Noller
up inside f? I > can't use multiple input lists, as I would with regular map. > > Thanks, > > Peter Perhaps these articles will help you: http://www.doughellmann.com/PyMOTW/multiprocessing/communication.html#pool-map http://www.doughellmann.com/PyMOTW/multiprocessing/map

Re: multiprocessing, pool and process crashes

2009-04-30 Thread Jesse Noller
IGSEGV > the subprocesses and the script locked up :( > > Any ideas/alternatives? > You're going to want to use a custom pool, not the built in pool. In your custom pool, you'll need to capture the signals/errors you want and handle them accordingly. The built in p

Re: Ending data exchange through multiprocessing pipe

2009-04-23 Thread Jesse Noller
/mail.python.org/mailman/listinfo/python-list > Using a sentinel, or looping on get/Empty pattern are both valid, and correct suggestions. If you think it's a bug, or you want a new feature, post it, preferably with a patch, to bugs.python.org. Add me to the +noisy, or if you can assign it to me. Jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Handling NameError in a list gracefully

2009-04-20 Thread Jesse Aldridge
On Apr 20, 3:46 pm, Chris Rebert wrote: > On Mon, Apr 20, 2009 at 1:36 PM, Jesse Aldridge > wrote: > > from my_paths import * > > > def get_selected_paths(): > >    return [home, desktop, project1, project2] > > > --- > > > So I have a functio

Re: Handling NameError in a list gracefully

2009-04-20 Thread Jesse Aldridge
Nevermind, I figured it out right after I clicked the send button :\ from my_paths import * def get_selected_paths(): return [globals()[s] for s in ["home", "desktop", "project1", "project2"] if s in globals()] -- http://mail.python.org/mailman/listinfo/python-list

Handling NameError in a list gracefully

2009-04-20 Thread Jesse Aldridge
from my_paths import * def get_selected_paths(): return [home, desktop, project1, project2] --- So I have a function like this which returns a list containing a bunch of variables. The real list has around 50 entries. Occasionally I'll remove a variable from my_paths and cause get_sele

Re: regex alternation problem

2009-04-17 Thread Jesse Aldridge
On Apr 17, 5:30 pm, Paul McGuire wrote: > On Apr 17, 5:28 pm, Paul McGuire wrote:> -- Paul > > > Your find pattern includes (and consumes) a leading AND trailing space > > around each word.  In the first string "I am an american", there is a > > leading and trailing space around "am", but the tra

regex alternation problem

2009-04-17 Thread Jesse Aldridge
import re s1 = "I am an american" s2 = "I am american an " for s in [s1, s2]: print re.findall(" (am|an) ", s) # Results: # ['am'] # ['am', 'an'] --- I want the results to be the same for each string. What am I doing wrong? -- http://mail.python.org/mailman/listinfo/python-list

Re: pyprocessing and exceptions

2009-04-15 Thread Jesse Noller
slave module that the master may invoke. > > Is there a way to do that? If not, what's the recommended approach? > > Thanks, > Gary > > > -- > http://mail.python.org/mailman/listinfo/python-list > You should handle the exception in the child. Also, multiproce

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Jesse Noller
On Mon, Apr 6, 2009 at 9:26 AM, Barry Warsaw wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Apr 6, 2009, at 9:21 AM, Jesse Noller wrote: > >> On Thu, Apr 2, 2009 at 4:33 PM, M.-A. Lemburg wrote: >>> >>> On 2009-04-02 17:32, Martin

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Jesse Noller
g it to the 2.x series. There was much discussion around adding features to 2.x *and* 3.0, and the consensus seemed to *not* add new features to 2.x and use those new features as carrots to help lead people into 3.0. jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: C extension using GSL

2009-03-27 Thread jesse
On Mar 27, 9:30 am, Nick Craig-Wood wrote: > jesse wrote: > >  I give up. I cannot find my memory leak! I'm hoping that someone out > >  there has come across something similar. Let me lay out the basic > >  setup: > > >  I'm performing multipl

C extension using GSL

2009-03-26 Thread jesse
re. ) 8.2) Python: save analysis results from A, save A. (At this point there should be no more use of A. In fact, at point 8) in the next iteration A is replaced by a new array.) 9) Python: Change any parameters or initial conditions and goto 1). thanks for any help, -Jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Can someone explain this behavior to me?

2009-02-27 Thread Jesse Aldridge
Ah, I get it. Thanks for clearing that up, guys. -- http://mail.python.org/mailman/listinfo/python-list

Can someone explain this behavior to me?

2009-02-26 Thread Jesse Aldridge
I have one module called foo.py - class Foo: foo = None def get_foo(): return Foo.foo if __name__ == "__main__": import bar Foo.foo = "foo" bar.go() - And another one called bar.py - import foo def go(): assert f

Re: multiprocessing module and os.close(sys.stdin.fileno())

2009-02-18 Thread Jesse Noller
On Tue, Feb 17, 2009 at 10:34 PM, Graham Dumpleton wrote: > Why is the multiprocessing module, ie., multiprocessing/process.py, in > _bootstrap() doing: > > os.close(sys.stdin.fileno()) > > rather than: > > sys.stdin.close() > > Technically it is feasible that stdin could have been replaced with

Re: PyYaml in standard library?

2009-02-18 Thread Jesse Noller
do, I'd love to see this; however interested people should pass the idea to python-ideas, and write a PEP. It would need a dedicated maintainer as well as the other things stdlib modules require. -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Where to host a (Python) project?

2009-01-31 Thread Jesse Noller
g/ Google is nice due to the groups/mailing list options, but I find I don't miss mailing lists all that much after being subscribed to so many. -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Terminating a Python program that uses multi-process, multi-threading

2009-01-29 Thread Jesse Noller
ing to do. > > Any suggestions will be greatly appreciated. > > Best regards, > Aki Niimura > > -- > http://mail.python.org/mailman/listinfo/python-list > See also: http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/ jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Addition of multiprocessing ill-advised?

2009-01-28 Thread Jesse Noller
h semaphore support. However, I agree that there are bugs, and there will continue to be bugs. I think the quality has greatly increased since the port to core started, and we did find bugs in core as well. I also think it is more than ready for use now. > Jesse did a great job in the tim

Re: Addition of multiprocessing ill-advised? (was: Python 3.0.1)

2009-01-28 Thread Jesse Noller
27;s point - multiprocessing *was* disruptive, and it inclusion late in the game siphoned off resources that could have been used elsewhere. Again, I'll take the responsibility for soiling the pool this way. I do however think, that python 2.6 is overall a *fantastic* release both feature

Re: Addition of multiprocessing ill-advised? (was: Python 3.0.1)

2009-01-28 Thread Jesse Noller
vent/component framework (1). In my library I use Process, Pipe > and Value. > > cheers > James > Awesome James, I'll be adding this to both the multiprocessing talk, and the distributed talk. Let me know if you have any issues. -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: malloc (error code=12)

2009-01-21 Thread Jesse Noller
On Wed, Jan 21, 2009 at 9:38 PM, Arash Arfaee wrote: > > Hi All, > > I am writing a multiprocessing program using python 2.6. It works in most > cases, however when my input is large sometimes I get this message again and > again: > > Python(15492,0xb0103000) malloc: *** mmap(size=393216) failed (

Re: Python 2.6's multiprocessing lock not working on second use?

2009-01-19 Thread Jesse Noller
On Mon, Jan 19, 2009 at 1:32 PM, Nick Craig-Wood wrote: > Jesse Noller wrote: >> > Opened issue #4999 [http://bugs.python.org/issue4999] on the matter, >> > referencing this thread. >> >> Thanks, I've assigned it to myself. Hopefully I can get a fix put

Re: Python 2.6's multiprocessing lock not working on second use?

2009-01-19 Thread Jesse Noller
: >> logging.basicConfig(format='[%(process)0...@%(relativeCreated)04d] % >> (message)s', level=logging.DEBUG) >> >> lock = Lock() >> >> processes = [] >> for i in xrange(2): >> processes.append(Process(target=test_lock_process, args= >> (lock,))) >> >> for t in processes: >> t.start() >> >> for t in processes: >> t.join() > > Opened issue #4999 [http://bugs.python.org/issue4999] on the matter, > referencing this thread. > Thanks, I've assigned it to myself. Hopefully I can get a fix put together soonish, time permitting. -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: process/thread instances and attributes

2009-01-16 Thread Jesse Noller
; processes: 1 > ! > ! > . > threads: 1 > processes: 1 > . > threads: 1 > processes: 1 > ! > . > threads: 1 > processes: 1 > ! > <__main__.A object at 0x80de42c>: Stopping ... > ! > . > threads: 1 > processes: 0 > DONE > > > This appears to work as I intended. > > Thoughts / Comments ? > > cheers > James Personally, rather then using a value to indicate whether to run or not, I would tend to use an event to coordinate start/stop state. -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing vs. distributed processing

2009-01-16 Thread Jesse Noller
multiprocessing isn't set in stone - there's room for improvement in the docs, tests and code, and all patches are welcome. -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-30 Thread Jesse Noller
On Thu, Oct 30, 2008 at 1:54 PM, Andy O'Meara <[EMAIL PROTECTED]> wrote: > On Oct 30, 1:00 pm, "Jesse Noller" <[EMAIL PROTECTED]> wrote: > >> >> Multiprocessing is written in C, so as for the "less agile" - I don't >> see how it

Re: 2.6, 3.0, and truly independent intepreters

2008-10-30 Thread Jesse Noller
ets an itty bitty python interpreter ParentAppFoo gets a object(video) to render Rather then marshal that object, you pass a pointer to the object to the children You want to pass that pointer to an existing, or newly created itty bitty python interpreter for mangling Itty bitty python interpreter passes the object back to a C module via a pointer/context If the above is wrong, I think possible outlining it in the above form may help people conceptualize it - I really don't think you're talking about python-level processes or threads. -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-30 Thread Jesse Noller
il you run > smack into the GIL. If you do not have shared memory: You don't need threads, ergo: You don't get penalized by the GIL. Threads are only useful when you need to have that requirement of large in-memory data structures shared and modified by a pool of workers. -jesse -- http://mail.python.org/mailman/listinfo/python-list

SendKeys-0.3.win32-py2.1.exe

2008-10-25 Thread Jesse
cant seem to install this, using python 2.6, any known errors that wont let me select the python installation to use, just opens a blank dialog and wont let me continue..do i need to downgrade python?? thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-24 Thread Jesse Noller
ain and simple. > Are you familiar with the API at all? Multiprocessing was designed to mimic threading in about every way possible, the only restriction on shared data is that it must be serializable, but event then you can override or customize the behavior. Also, inter process communication

Re: 2.6, 3.0, and truly independent intepreters

2008-10-24 Thread Jesse Noller
wanted to clear it up. Ideally, we all want to improve the language, and the interpreter. However trying to push it towards a particular use case is dangerous given the idea of "general use". -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-24 Thread Jesse Noller
On Fri, Oct 24, 2008 at 12:30 PM, Jesse Noller <[EMAIL PROTECTED]> wrote: > On Fri, Oct 24, 2008 at 10:40 AM, Andy O'Meara <[EMAIL PROTECTED]> wrote: >>> > 2) Barriers to "free threading". As Jesse describes, this is simply >>> > just the GIL

Re: 2.6, 3.0, and truly independent intepreters

2008-10-24 Thread Jesse Noller
On Fri, Oct 24, 2008 at 10:40 AM, Andy O'Meara <[EMAIL PROTECTED]> wrote: >> > 2) Barriers to "free threading". As Jesse describes, this is simply >> > just the GIL being in place, but of course it's there for a reason. >> > It's th

Re: 2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Jesse Noller
tiprocessing, threading and possible a concurrent package ala java.util.concurrent - but it really does have to be thought out and done right. Speaking of which: If you wanted "real" threads, you could use a combination of JCC (http://pypi.python.org/pypi/JCC/) and Jython. :) -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Jesse Noller
to make it more apt for your - and other environments. Additionally, have you looked at: https://launchpad.net/python-safethread http://code.google.com/p/python-safethread/w/list (By Adam olsen) -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6, multiprocessing module and BSD

2008-10-22 Thread Jesse Noller
them. >> >> Due to the lateness of the issue and a finite amount of time I have to >> work on things, I chose to disable support for this on the various >> *BSDs until I can cook up a stable patch or have one provided by >> someone more familiar with the inner workings

Re: Python 2.6, multiprocessing module and BSD

2008-10-22 Thread Jesse Noller
On Wed, Oct 22, 2008 at 10:31 AM, <[EMAIL PROTECTED]> wrote: > On Oct 22, 8:11 am, "Jesse Noller" <[EMAIL PROTECTED]> wrote: >> On Tue, Oct 21, 2008 at 6:45 PM, <[EMAIL PROTECTED]> wrote: >> > It seems that the multiprocessing module in 2.6 is broken

Re: Python 2.6, multiprocessing module and BSD

2008-10-22 Thread Jesse Noller
sd(s) as well. Finally, the core of the semaphore usage is in Modules/_multiprocessing/semaphore.c I apologize we/I could not get this in for 2.6 -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Using multiprocessing

2008-10-10 Thread Jesse Noller
-2 result put Process-2 result put Process-1 fac(50009) done on Process-1 fac(50011) done on Process-1 fac(50013) done on Process-1 result put Process-2 fac(50012) done on Process-2 fac(50014) done on Process-2 One trick I use is when I have a results queue to manage, I spawn an addition process to read off of the results queue and deal with the results. This is mainly so I can process the results outside of the main thread, as they appear on the results queue -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Builing Python 2.6 on AIX 5.2

2008-10-07 Thread Jesse Noller
Thanks for posting this to the tracker mattias - as soon as I can steal some time, I'll dig into it and see if I can get it teed up for the patch release. On Tue, Oct 7, 2008 at 6:24 AM, brasse <[EMAIL PROTECTED]> wrote: > On Oct 6, 10:16 am, brasse <[EMAIL PROTECTED]> wrote: >> Hello! >> >> I am

Re: Builing Python 2.6 on AIX 5.2

2008-10-06 Thread Jesse Noller
Looks like AIX is missing sem_timedwait - see: http://bugs.python.org/issue3876 Please add your error to the bug report just so I can track it. -jesse On Mon, Oct 6, 2008 at 4:16 AM, brasse <[EMAIL PROTECTED]> wrote: > Hello! > > I am having some trouble building Python 2.6 on A

Put the output from all my programs in one place

2008-09-01 Thread Jesse Aldridge
I want to put all the output from all of my python programs in one place. I've been trying to get this working for the last few days, but there are lots of annoying little details that are making the process quite difficult. I'm wondering if anyone can help me get this working. Currently I have o

dynamic method question

2008-06-12 Thread Jesse Aldridge
So in the code below, I'm binding some events to a text control in wxPython. The way I've been doing it is demonstrated with the Lame_Event_Widget class. I want to factor out the repeating patterns. Cool_Event_Widget is my attempt at this. It pretty much works, but I have a feeling there's a be

Best way to modify code without breaking stuff.

2008-06-04 Thread Jesse Aldridge
I've got a module that I use regularly. I want to make some extensive changes to this module but I want all of the programs that depend on the module to keep working while I'm making my changes. What's the best way to accomplish this? -- http://mail.python.org/mailman/listinfo/python-list

pylirc question: clearing the queue

2008-04-07 Thread jesse . k . rosenthal
r the mplayer process to complete, but then it always runs through all the keypresses I've been sending mplayer. So i would like it to either stop listening until I give it a certain command, or to simply clear the queue (I could tell it to that after I return from wait()). Any ideas? Tha

Re: Python Data Utils

2008-04-07 Thread Jesse Aldridge
> But then you introduced more. oops. old habits... > mxTextTools. This looks cool, so does the associated book - "Text Processing in Python". I'll look into them. > def normalise_whitespace(s): >     return ' '.join(s.split()) Ok, fixed. > a.replace('\xA0', ' ') in there somewhere. Added.

Re: Python Data Utils

2008-04-06 Thread Jesse Aldridge
> Docstrings go *after* the def statement. Fixed. > changing "( " to "(" and " )" to ")". Changed. I attempted to take out everything that could be trivially implemented with the standard library. This has left me with... 4 functions in S.py. 1 one of them is used internally, and the others a

Re: Python Data Utils

2008-04-06 Thread Jesse Aldridge
On Apr 6, 6:14 am, "Konstantin Veretennicov" <[EMAIL PROTECTED]> wrote: > On Sun, Apr 6, 2008 at 7:43 AM, Jesse Aldridge <[EMAIL PROTECTED]> wrote: > > In an effort to experiment with open source, I put a couple of my > >  utility files up http://github.com

Re: Python Data Utils

2008-04-06 Thread Jesse Aldridge
Thanks for the detailed feedback. I made a lot of modifications based on your advice. Mind taking another look? > Some names are a bit obscure - "universify"? > Docstrings would help too, and blank lines I changed the name of universify and added a docstrings to every function. > ...PEP8 I ma

Python Data Utils

2008-04-05 Thread Jesse Aldridge
In an effort to experiment with open source, I put a couple of my utility files up http://github.com/jessald/python_data_utils/ tree/master">here. What do you think? -- http://mail.python.org/mailman/listinfo/python-list

Re: Weird cgi error

2008-02-25 Thread Jesse Aldridge
> This is some kind of crooked game, right? Your code works fine on a > local server, and there's no reason why it shouldn't work just fine on > yours either. All you are changing is the standard input to the process. > > Since you claim to have spotted this specific error, perhaps you'd like > to

Re: Weird cgi error

2008-02-25 Thread Jesse Aldridge
On Feb 25, 11:42 am, Jesse Aldridge <[EMAIL PROTECTED]> wrote: > > If you cant have access to the apache (?) error_log, you can put this in > > your code: > > import cgitb > > cgitb.enable() > > > Which should trap what is being writed on the error

Re: Weird cgi error

2008-02-25 Thread Jesse Aldridge
> If you cant have access to the apache (?) error_log, you can put this in > your code: > import cgitb > cgitb.enable() > > Which should trap what is being writed on the error stream and put it on > the cgi output. > > Gerardo I added that. I get no errors. It still doesn't work. Well, I do ge

Weird cgi error

2008-02-24 Thread Jesse Aldridge
I uploaded the following script, called "test.py", to my webhost. It works find except when I input the string "python ". Note that's the word "python" followed by a space. If I submit that I get a 403 error. It seems to work fine with any other string. What's going on here? Here's the script i

Re: Source formatting fixer?

2007-12-11 Thread Jesse Jaggars
Bret wrote: > Does anyone know of a package that can be used to "fix" bad formatting > in Python code? I don't mean actual errors, just instances where > someone did things that violate the style guide and render the code > harder to read. > > If nothing exists, I'll start working on some sed scri

MySQLdb autocommit and SELECT problems

2007-11-28 Thread Jesse Lehrman
e the change). I know that the second SELECT was successful because MySQL increments its SELECT counter. I realize the easy fix is to just add a COMMIT to all my SELECT statements but I'm trying to understand why it's doing this. Python v2.4.3 (WinXP 64-bi

Re: Efficient: put Content of HTML file into mysql database

2007-11-19 Thread Jesse Jaggars
Fabian López wrote: > Hi colegues, > do you know the most efficient way to put the content of an html file > into a mySQL database?Could it be this one?: > 1.- I have the html document in my hard disk. > 2.- Then I Open the file (maybe with fopen??) > 3.- Read the content (fread or similar) > 4.-

recording sound with python

2007-11-08 Thread jesse j
Hello Everyone, I'm new to python. I have worked through some tutorials and played around with the language a little bit but I'm stuck. I want to know how I can make python run a program. More specifically, I want to get python to work with SOX to record a sound through the microphone, save the

mailbox module, Maildir, and flags

2007-09-10 Thread jesse . k . rosenthal
lbox module had a way to do it. One other question. Given a mailbox.Maildir folder like the one above, is there a way to run through it and just get the headers? Basically, the opposite of get_payload? I know I can scew around with msg.keys(), but is there something like for msg in folder: hdr =

  1   2   >