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: 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

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

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

Popen and wget, problems

2007-05-12 Thread Jesse
Hi all, I have a problem using wget and Popen. I hope someone can help. -- Problem -- I want to use the command: wget -nv -O "dir/cpan.txt" "http://search.cpan.org"; and capture all it's stdout+stderr. (Note that option -O requires 'dir' to be existing before wget is executed) Popen doesn't work

Re: Popen and wget, problems

2007-05-13 Thread Jesse
Thx Rob! Your solution works perfect! "Rob Wolfe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Jesse" <[EMAIL PROTECTED]> writes: > >> Hi all, I have a problem using wget and Popen. I hope someone can help. >> >> >&

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

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: 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

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)

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

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

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

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", "

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-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-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 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
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-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-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

Background process for ssh port forwarding

2005-10-01 Thread Jesse Rosenthal
oked at threading, but that seems excessive. There must be an easier way. Whatever I do, though, I'll need to use pexpect to spawn the processes, since I'll need to log in to ssh servers with a password. Thanks for any help. --Jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Background process for ssh port forwarding

2005-10-02 Thread Jesse Rosenthal
On Sun, 02 Oct 2005 08:44:48 +0200, Fredrik Lundh wrote: > Jesse Rosenthal wrote: > >> If I end this with 'connection.interact()', I will end up logged in to the >> forwarding server. But what I really want is to go on and run rsync to >> localhost port 2022, wh

Re: Background process for ssh port forwarding

2005-10-04 Thread Jesse Rosenthal
n to my forwarded port (localhost 2022). 10 seconds is actually probably excessive, since logging in is the next command in the script. The connection then stays open so long as I'm logged in. It works, but it seems rather kludgey. So I'll definitely give your approach a try. Thanks again Jesse -- http://mail.python.org/mailman/listinfo/python-list

Weighted "random" selection from list of lists

2005-10-08 Thread Jesse Noller
(main_list[0]) 30% from list 2 (main_list[1]) 10% from list 3 (main_list[2]) I know how to pull a random sequence (using random()) from the lists, but I'm not sure how to pick it with the desired percentages. Any help is appreciated, thanks -jesse -- http://mail.python.org/mailman/listinfo/python-list

Background process for ssh port forwarding

2005-11-15 Thread Jesse Rosenthal
oked at threading, but that seems excessive. There must be an easier way. Whatever I do, though, I'll need to use pexpect to spawn the processes, since I'll need to log in to ssh servers with a password. Thanks for any help. --Jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: Hello World-ish

2005-11-26 Thread Jesse Lands
On 26 Nov 2005 03:19:55 -0800 "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > from os import * > print "Working path: %s" % os.getcwd(); > > Just wondering how you would do that .. in theory, if you get what I > mean? > I get > NameError: name 'os' is not defined > currently, which I don't know

OT: Boston-Area QA/Python Job

2005-06-24 Thread Jesse Noller
Sorry for the off-topic post everyone. The company I work for has a job opening for a Senior QA/Automation person, and they are looking for someone strong in Python to help develop tests/testing frameworks/etc. The complete job description follows - you can feel free to email resumes and questions

Re: How can I import a py script by its absolute path name?

2005-07-14 Thread Jesse Noller
7;.py') import module_name Obviously, this throws: ImportError: No module named module_name Is there some way to do this? thanks -jesse -- http://mail.python.org/mailman/listinfo/python-list

Re: How to realize ssh & scp by Python

2005-07-24 Thread Jesse Noller
ts/pyssh Setting up private/public key authentication is going to allow for a greate amount of secure automation. Barring that, use the pexpect module to do the prompt handling. -jesse -- http://mail.python.org/mailman/listinfo/python-list

NDMP Library?

2005-09-09 Thread Jesse Noller
Does anyone know of a python module/library for communicating with the NDMP (ndmp.org) protocol? I'm doing some research and anything would be a great help, thanks! -jesse -- http://mail.python.org/mailman/listinfo/python-list

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: 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

httplib and large file uploads

2006-10-02 Thread Jesse Noller
andom. Obviously, the problem lies in the multiple send(chunk) calls. I'm wondering if it is possible to hand http.send() an iterator/generator which can pass chunks in as needed.Thanks in advance,-jesse -- http://mail.python.org/mailman/listinfo/python-list

Simple SMTP server

2005-06-09 Thread Jesse Noller
batches of email, and all it has to do is write the incoming emails to the disk (no relaying/proxying/etc). If anyone has any good examples/recipes I'd greatly appreciate it. Thanks -jesse -- http://mail.python.org/mailman/listinfo/python-list

logging anomaly

2007-06-26 Thread Jesse James
, this should just work as expected. What am I missing here? Jesse. -- http://mail.python.org/mailman/listinfo/python-list

Re: division by 7 efficiently ???

2007-02-02 Thread Jesse Chounard
rst Python program. I wrote it in C first and had to figure out how to convert it. :) Jesse -- http://mail.python.org/mailman/listinfo/python-list

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

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.-

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: 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

Re: pywin32 : scheduled weakup from standby/hiberate ?

2006-04-18 Thread Jesse Hager
ion so unless a person moves the mouse or keyboard within a minute or two of the wakeup, the system just goes back to sleep. You should be able to call the SetThreadExecutionState function using ctypes. Search for Power Management in the MSDN library for info on these functions. -- Jesse Hager

Re: midipy.py on linux

2006-04-27 Thread Jesse Hager
Not sure if it uses lists or tuples, since I use it mainly for output and I don't have MIDI input on this machine to test it... Hope this helps. -- Jesse Hager email = "[EMAIL PROTECTED]".decode("rot13") -- http://mail.python.org/mailman/listinfo/python-list

Re: Multi-Monitor Support

2006-05-02 Thread Jesse Hager
.Display to find out about the displays on the system, it also lets you query and set the current video mode for a display. Hope this helps. -- Jesse Hager email = "[EMAIL PROTECTED]".decode("rot13") -- http://mail.python.org/mailman/listinfo/python-list

Re: stripping

2006-05-02 Thread Jesse Hager
> but it always give me first 2 lines, ie > abcdefgh > ijklmn > > What can i do to make it print all..? > thanks > Change the 'break' statement to a 'continue'. -- Jesse Hager email = "[EMAIL PROTECTED]".decode("rot13") -- http://mail.python.org/mailman/listinfo/python-list

Re: creating a new database with mysqldb

2006-05-17 Thread Jesse Hager
(NULL) indicates no currently selected database. To set the default database: >>>c.execute("USE mysql") 0L Getting the database again: >>>c.execute("SELECT DATABASE()") 1L >>>c.fetchall() (('mysql',),) ^^^ A string indicates that a database is currently selected. Hope this helps. -- Jesse Hager email = "[EMAIL PROTECTED]".decode("rot13") -- http://mail.python.org/mailman/listinfo/python-list

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: 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

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
> 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: 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: 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: 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: 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: 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: 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: 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?

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: 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: 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: 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: 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: 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

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: 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: 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: 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
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: 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: 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-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-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
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
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-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

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
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

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: 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

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: [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: 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

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: 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

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: 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

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: 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: 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: 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: [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: 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: 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

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

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

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: 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

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
> 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-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.

  1   2   >