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
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
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
show task execution;
data visualization;
easy to set up;
thanks
--
https://mail.python.org/mailman/listinfo/python-list
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
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.
>>
>>
>&
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. )
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
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
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)
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
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
;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
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", "
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
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
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
> >
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
> &
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
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
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
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
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
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
(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
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
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
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
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
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
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
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
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
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
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
, this should just work as expected.
What am I missing here?
Jesse.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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.-
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
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
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
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
.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
> 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
(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
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
> 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
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
> 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
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
; 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
:
>> 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
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
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 (
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
Ah, I get it.
Thanks for clearing that up, guys.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
/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
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
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
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
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
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
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
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
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
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
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
> 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
> 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 - 100 of 124 matches
Mail list logo