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
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
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 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
> &
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 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 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 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", "
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
;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
show task execution;
data visualization;
easy to set up;
thanks
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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)
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
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
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
Just q
--
http://mail.python.org/mailman/listinfo/python-list
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
* 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
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
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
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
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
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
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.
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
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
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
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
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 ?
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
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
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
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
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
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
/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
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
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
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
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
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
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
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
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 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
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
Ah, I get it.
Thanks for clearing that up, guys.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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 (
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
:
>> 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
; 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
> 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.
> 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
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
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
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
> 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
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
> 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
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
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
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
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.-
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
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 - 100 of 124 matches
Mail list logo