En Fri, 18 Sep 2009 03:12:46 -0300, rantingrick
escribió:
I am creating geometry with OpenGL. When you create a face you must
specify a winding order (clockwise or counter clockwise) this winding
order controls which side of the face will be visible (since only one
side of a face is rendered)
alex23 wrote:
> So what part of the standard library do you recommend using instead?
> Or was there no time for advice between snarkiness?
As a matter of technique, I believe in fitting the storage to the
particulars of the problem at hand.
In my own projects, I will often employ simple text base
Hi!
Take a look at:
http://vis.cs.ucdavis.edu/~ogawa/codeswarm/
code_swarm is a tool that generates a nice visual animation from a
repository history. It also features one with the Python history for
download, enhanced with a few comments.
I hope this isn't old news and you enjoy it!
Uli
--
EDIT:
copy.copy did work in a simple python interactive session, but it
caused infinite recursion in my real world code? Anyway what ever is
going on (probably lack of sleep!) the cure all was using an arg in
the initial function. So now i am good as gold ;-)
WHY did i need do this you may ask?
I
On Sep 17, 10:08 pm, rantingrick wrote:
> On Sep 17, 11:54 pm, Carl Banks wrote:
>
>
>
>
>
> > On Sep 17, 8:27 pm, rantingrick wrote:
>
> > > ok i have a class and in it's constructor i want to create a copy of
> > > it as an attribute, i have tried super, __new__, and noting seems to
> > > work
On Sep 18, 3:31 pm, alex23 wrote:
> On Sep 18, 3:08 pm, rantingrick wrote:
>
> > ok here is some code. this will cause an infinite recursion.
>
> > class A():
> > def __init__(self, *args):
> > self.nestedA = A(*args) #NO GOOD!
>
> How about:
>
> class A(object):
> def __init_
On Sep 18, 3:08 pm, rantingrick wrote:
> ok here is some code. this will cause an infinite recursion.
>
> class A():
> def __init__(self, *args):
> self.nestedA = A(*args) #NO GOOD!
How about:
class A(object):
def __init__(self, first=True, *args):
if first:
On Sep 18, 12:24 am, "OKB (not okblacke)"
wrote:
> Perhaps you want to cut off the recursion at the first step, so
> that the nested instance itself does not have a nested instance. If so,
> add another parameter to __init__ that flags whether you are creating a
> "top-level" instance.
!SOLVED!
Thanks for the help guys!
copy.copy did it!
Why does me makes life so hard on me? ;-)
--
http://mail.python.org/mailman/listinfo/python-list
rantingrick wrote:
> ok here is some code. this will cause an infinite recursion.
>
> class A():
> def __init__(self, *args):
> self.nestedA = A(*args) #NO GOOD!
>
> there must be a way to create an instance of an object within the
> same objects constructor?
This is an inhe
On Sep 18, 3:08 pm, rantingrick wrote:
> ok here is some code. this will cause an infinite recursion.
>
> class A():
> def __init__(self, *args):
> self.nestedA = A(*args) #NO GOOD!
>
> there must be a way to create an instance of an object within the same
> objects constructor?
But i
On Sep 18, 2:39 pm, Dennis Lee Bieber wrote:
> Granted, a proper version would use a class where the two Venus
> objects have a different description...
I think I'd be more inclined to model Venus and treat the others as
views :)
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 17, 11:54 pm, Carl Banks wrote:
> On Sep 17, 8:27 pm, rantingrick wrote:
>
> > ok i have a class and in it's constructor i want to create a copy of
> > it as an attribute, i have tried super, __new__, and noting seems to
> > work, please help!
>
> > class A(base):
> > def __init__(self
In article ,
Tim Chase wrote:
>
>- I don't know if you're currently keeping the RTF in memory the
>whole time, or if you repeatedly reload (whether in one go, or
>streaming it) and reparse the file. This sounds memory and/or
>processor intensive. Using sqlite, the processing is done at the
On Sep 17, 8:27 pm, rantingrick wrote:
> ok i have a class and in it's constructor i want to create a copy of
> it as an attribute, i have tried super, __new__, and noting seems to
> work, please help!
>
> class A(base):
> def __init__(self):
> super(A, self).__init__()
> self.
On Sep 17, 11:14 pm, alex23 wrote:
> On Sep 18, 1:27 pm, rantingrick wrote:
>
> > ok i have a class and in it's constructor i want to create a copy of
> > it as an attribute, i have tried super, __new__, and noting seems to
> > work, please help!
>
> > class A(base):
> > def __init__(self):
>
TerryP wrote:
> Yeah, I'm sure that is the same kind of thinking that caused 16-bit MS-
> DOS applications to remain a part of Windows NT so long.
So what part of the standard library do you recommend using instead?
Or was there no time for advice between snarkiness?
--
http://mail.python.org/m
On Sep 18, 1:27 pm, rantingrick wrote:
> ok i have a class and in it's constructor i want to create a copy of
> it as an attribute, i have tried super, __new__, and noting seems to
> work, please help!
>
> class A(base):
> def __init__(self):
> super(A, self).__init__()
> self.
ok i have a class and in it's constructor i want to create a copy of
it as an attribute, i have tried super, __new__, and noting seems to
work, please help!
class A(base):
def __init__(self):
super(A, self).__init__()
self.nested = ?
think of a nested list [ [] ] but with obje
Gabriel Genellina wrote:
> And even after it's
> gone, being a pure Python module it's easy to keep the previous version
> around.
> So, I wouldn't worry about that.
Yeah, I'm sure that is the same kind of thinking that caused 16-bit MS-
DOS applications to remain a part of Windows NT so long.
On Sep 18, 2:35 am, gert wrote:
> On Sep 18, 2:11 am, Chris Rebert wrote:
>
>
>
> > On Thu, Sep 17, 2009 at 5:03 PM, gert wrote:
>
> >
>
> > > So far i have this
> > >http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/appointme...
>
> > > I have 3 problems left Any_GID, Everybody_no_GI
On Sep 18, 2:11 am, Chris Rebert wrote:
> On Thu, Sep 17, 2009 at 5:03 PM, gert wrote:
>
>
>
> > So far i have this
> >http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/appointme...
>
> > I have 3 problems left Any_GID, Everybody_no_GID,
>
> Just add entries to the dictionary with the
Diez B. Roggisch wrote:
Daniel Santos schrieb:
Hello,
print re.compile('u ').search(" u box2", 1)
<_sre.SRE_Match object at 0x7ff1d918>
print re.compile(' u ').search(" u box2", 1)
None
Why ?
because you start searching at the offset 1, which means you try to
find " u " in "u box2" - a
On Thu, Sep 17, 2009 at 5:03 PM, gert wrote:
> So far i have this
> http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/appointment.wsgi
>
> I have 3 problems left Any_GID, Everybody_no_GID,
Just add entries to the dictionary with the same function as value but
all permutations of GID as
On Sep 18, 12:18 am, gert wrote:
> On Sep 18, 12:12 am, gert wrote:
>
>
>
> > On Sep 18, 12:09 am, gert wrote:
>
> > > On Sep 17, 9:48 pm, Chris Rebert wrote:
>
> > > > On Thu, Sep 17, 2009 at 12:38 PM, gert wrote:
> > > > > Can anybody show me a better looking alternative for this elif
> > >
En Thu, 17 Sep 2009 11:10:34 -0300, J Kenneth King
escribió:
ici writes:
I like shelve for saving small amounts of data, user preferences,
recent files etc.
http://docs.python.org/library/shelve.html
I like it too, but I hear the great powers that be are going to
deprecate it.
Why?
Even
The period to submit proposals for PyCon 2010 in Atlanta is open until
October 18th. Tutorial are held the two days prior to the main conference
and feature 3-hour classes led by fellow Python developers and
enthusiasts *just
like you*. Any topic relating to Python is allowed and the organizers
e
On Sep 17, 5:34 am, Hendrik van Rooyen
wrote:
> I have subsequently seen that it is red herring in this context though, as it
> is some memory problem - the crash comes during the list creation, and has
> nothing to do with the min/max processing. One can demo it by simply trying
> to create a b
On Sep 18, 12:12 am, gert wrote:
> On Sep 18, 12:09 am, gert wrote:
>
>
>
> > On Sep 17, 9:48 pm, Chris Rebert wrote:
>
> > > On Thu, Sep 17, 2009 at 12:38 PM, gert wrote:
> > > > Can anybody show me a better looking alternative for this elif
> > > > structure ?
>
> > > Use a dictionary with fu
On Thu, Sep 17, 2009 at 3:09 PM, gert wrote:
> On Sep 17, 9:48 pm, Chris Rebert wrote:
>> On Thu, Sep 17, 2009 at 12:38 PM, gert wrote:
>> > Can anybody show me a better looking alternative for this elif
>> > structure ?
>>
>> Use a dictionary with functions as values. For example:
>>
>> #untest
On Sep 18, 12:09 am, gert wrote:
> On Sep 17, 9:48 pm, Chris Rebert wrote:
>
>
>
> > On Thu, Sep 17, 2009 at 12:38 PM, gert wrote:
> > > Can anybody show me a better looking alternative for this elif
> > > structure ?
>
> > Use a dictionary with functions as values. For example:
>
> > #untested
On 17 Sep, 23:24, kj wrote:
> In Dive Into Python, Mark Pilgrim offers the function openAnything
> that can open for reading "anything" (i.e. local files or URLs).
>
> I was wondering if there was already in the standard Python library
> an "official" version of this, that could not only open (for
On Sep 17, 9:48 pm, Chris Rebert wrote:
> On Thu, Sep 17, 2009 at 12:38 PM, gert wrote:
> > Can anybody show me a better looking alternative for this elif
> > structure ?
>
> Use a dictionary with functions as values. For example:
>
> #untested obviously
> def admin_remove(db, v, gid):
> db.e
Read this thread:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/445ffc93b0e6a460
and you will likely get the idea.
--
http://mail.python.org/mailman/listinfo/python-list
In Dive Into Python, Mark Pilgrim offers the function openAnything
that can open for reading "anything" (i.e. local files or URLs).
I was wondering if there was already in the standard Python library
an "official" version of this, that could not only open (for reading)
regular files and URLs, b
On Sep 16, 9:25 pm, Blaine wrote:
> Hello,
>
> Scripts that have "#!/usr/bin/python" at the top do not parse
> correctly. Bash treats scripts with that shebang as if they are bash
> scripts.
>
> E.g.:
> bla...@attila ~/apps/rs-mu $ /usr/sbin/env-update
> /usr/sbin/env-update: line 6: import: comma
On Sep 17, 2:38 pm, gert wrote:
> Can anybody show me a better looking alternative for this elif
> structure ?
>
> http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/appointme...
For starters assign v['cmd'] to a variable instead of looking it up
every time!
cmd = v['cmd']
if cmd == ..
Andrew MacKeith wrote:
I create a class like this in Python-2.6
>>> class Y(str):
... def __init__(self, s):
... pass
...
>>> y = Y('giraffe')
>>> y
'giraffe'
>>>
How does the base class (str) get initialized with the value passed to
Y.__init__() ?
Is this behavior specific to the
On Sep 17, 9:48 pm, Chris Rebert wrote:
> On Thu, Sep 17, 2009 at 12:38 PM, gert wrote:
> > Can anybody show me a better looking alternative for this elif
> > structure ?
>
> Use a dictionary with functions as values. For example:
>
> #untested obviously
> def admin_remove(db, v, gid):
> db.e
gert wrote:
Can anybody show me a better looking alternative for this elif
structure ?
http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/appointment.wsgi
Where you have cascaded ifs based on a single value, one alternative is
to use a dict where the test value is the key and function
On Thu, Sep 17, 2009 at 12:38 PM, gert wrote:
> Can anybody show me a better looking alternative for this elif
> structure ?
Use a dictionary with functions as values. For example:
#untested obviously
def admin_remove(db, v, gid):
db.execute("DELETE FROM appointments WHERE aid=?",(v['aid'],)
On Thu, Sep 17, 2009 at 3:58 AM, glenn.prin...@gmail.com
wrote:
> I would like to redirect the output of the command below to another
> file
> type test.txt > test.bak
>
> I'm trying to do this as part of a python script running on Windows
> XP.
>
> I'm using os.system('type "filepath.txt > filepa
Can anybody show me a better looking alternative for this elif
structure ?
http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/appointment.wsgi
--
http://mail.python.org/mailman/listinfo/python-list
Cool - Now that would be some seriously dense, efficient code! Will
have to play with numpy sometime.
R.
On 17-Sep-09, at 12:25 PM, Chris Colbert wrote:
if you have numpy installed:
ln[12]: import numpy as np
In [13]: k = np.array([('a', 'bob', 'c'), ('p', 'joe', 'd'), ('x',
'mary',
On Tue, 15 Sep 2009 14:31:26 +0200, Ulrich Eckhardt wrote:
> Hi!
>
> "'abc'.split('')" gives me a "ValueError: empty separator". However,
> "''.join(['a', 'b', 'c'])" gives me "'abc'".
>
> Why this asymmetry?
The docs say
"If sep is given, consecutive delimiters are not grouped together and a
Wes McKinney wrote:
I am running what is apparently a custom Python 2.5.4 (part of the
Enthought Python Distribution) which should be identical to the one on
python.org, but is not. I contacted Enthought about the issue-- it can
be worked around in the Pyro configuration for the time being.
Tha
I create a class like this in Python-2.6
>>> class Y(str):
... def __init__(self, s):
... pass
...
>>> y = Y('giraffe')
>>> y
'giraffe'
>>>
How does the base class (str) get initialized with the value passed to
Y.__init__() ?
Is this behavior specific to the str type, or do base classes
WHIFF (WSGI HTTP Integrated Filesystem Frames) 0.5 released.
[ WHIFF += Open Flash Charts ]
The new WHIFF 0.5 release linked from
http://whiff.sourceforge.net
includes built in support for Open Flash Charts --
see documentation at
http://aaron.oirt.rutgers.edu/myapp/docs/W1100_1600.ope
On Sep 17, 7:02 am, Carl Banks wrote:
> On Sep 16, 9:33 pm, Steven D'Aprano
>
> wrote:
> > def minmax(seq):
> > result = [None, None]
> > t1 = MMThread(seq, min, result, 0)
> > t2 = MMThread(seq, max, result, 1)
> > t1.start()
> > t2.start()
> > # Block until all threads a
Session variables, yes. That is what I need. Thanks,
V
On Thu, Sep 17, 2009 at 11:46 AM, Carsten Haese wrote:
> Victor Subervi wrote:
> > Right. Bad example on my part. How about if I want to pass a cookie from
> > page to page? Or some data called up from a database query?
>
> Cookies are also p
by your definitions, Python is just a wrapper around a C library.
If none of the solutions work for you, roll your own.
On Thu, Sep 17, 2009 at 11:38 AM, Giacomo Boffi wrote:
> John Nagle writes:
>
>> gerlos wrote:
>>> John Nagle ha scritto:
>>>
I'm looking for something that can draw simp
if you have numpy installed:
ln[12]: import numpy as np
In [13]: k = np.array([('a', 'bob', 'c'), ('p', 'joe', 'd'), ('x',
'mary', 'z')])
In [14]: k
Out[14]:
array([['a', 'bob', 'c'],
['p', 'joe', 'd'],
['x', 'mary', 'z']],
dtype='|S4')
In [15]: k[:,1]
Out[15]:
array(['bob',
Hi,
many Python-modules contain metadata-variables, like __author__ etc.
But most documentation-tools only support some of these variables, and
some tools even define their own metadata-variables.
So far, I found:
- pydoc (-> pydoc.py):
__author__
__credits__
__date__
__version__
Victor Subervi wrote:
> Right. Bad example on my part. How about if I want to pass a cookie from
> page to page? Or some data called up from a database query?
Cookies are also passed in the header.
Results from a database query are best left on the server rather than
passing them back and forth b
Right. Bad example on my part. How about if I want to pass a cookie from
page to page? Or some data called up from a database query?
V
On Wed, Sep 16, 2009 at 7:30 PM, Rami Chowdhury wrote:
> I like to pass at least browser
>> information from page to page to make pages display properly.
>>
>
>
On Sep 4, 9:29 pm, kj wrote:
> The only solution I can come up with is to define a "dummy module",
> say _config.py, which contains only upper-case variables representing
> these global switches, and is imported by all the other modules in
> the application with the line "from _config import *".
Ben Finney writes:
> The ‘python-daemon’ library is the reference implementation of PEP
> 3143 http://www.python.org/dev/peps/pep-3143/>, “Standard daemon
> process library”.
>
> The source distribution is available via the PyPI page for this
> version, http://pypi.python.org/pypi/python-daemon/1
ici writes:
> I like shelve for saving small amounts of data, user preferences,
> recent files etc.
> http://docs.python.org/library/shelve.html
I like it too, but I hear the great powers that be are going to
deprecate it.
>
> For Qt use QtCore.QCoreApplication.setOrganizationName,
> QtCore.QCo
QOTW: "Python the language doesn't try to satisfy all tastes in language
design equally." - Guido van Rossum
Is it really necesary to explicitely close open files?
http://groups.google.com/group/comp.lang.python/t/d794d426a5bef2c1/
Tips for using Unicode text (specia
On 2009-09-15, r wrote:
> Are you telling us people using a language that does not have a word
> for window somehow cannot comprehend what a window is, are you mad
> man? Words are simply text attributes attached to objects. the text
> attribute doesn't change the object in any way. just think of
2009/9/15 Hendrik van Rooyen :
> On Monday 14 September 2009 14:06:36 Christopher Culver wrote:
>
>> This is the old Sapir-Whorf hypothesis, which fell out of favour among
>> linguists half a century ago already. 1) Language does not constrain
>> human thought, and 2) any two human languages are bo
On 14 Sep, 00:05, Carl Banks wrote:
> Dice3DS works fine with PyOpenGL 3.x.
PyOpenGL is a bad idea anyway, due to the overhead of Python function
calls and ctypes. Doing 3D in "pure" Python at least requires NumPy
arrays as vertex arrays and/or extensive use of display lists. But
there are bette
On Sep 17, 8:40 pm, peter wrote:
> i want to ask you if somebody knows how can I determine, with a help
> of xlrd, what kind of decimal separator (. or ,) does the user have.
It's nothing to do with xlrd. It reads files and gives you the numbers
as Python floats. Note that a user of locale A (us
On Thursday 17 September 2009 12:57:18 Carl Banks wrote:
> On Sep 17, 2:18 am, Hendrik van Rooyen
>
> wrote:
>
> When running min or max on a list of ints, there is probably no
> occasion for the function to release the GIL. If a thread doesn't
> release the GIL no other Python threads can run.
Hi!
import os
os.system('cmd /c type L:\\source.fic >L:\\destination.txt')
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
MRAB wrote:
Esben von Buchwald wrote:
Hello
Are there any simple ways to collect the data, python prints to the
console when running an app?
I'm doing som apps for S60 mobile phones and can't see the console,
when the UI is running, but i'd like to collect the output, to look
for eventual
glenn.prin...@gmail.com wrote:
I would like to redirect the output of the command below to another
file
type test.txt > test.bak
I'm trying to do this as part of a python script running on Windows
XP.
I'm using os.system('type "filepath.txt > filepath.bak"') but nothing
is happening.
Try:
Timothy Madden wrote:
Hello
[...]
Can I get the python stack trace working under gdb ?
[...]
Ok I found some other gdb macros on linked from the wiki page and I had
to change them to get the stack trace work.
I had to change the symbol PyEval_EvalFrame to PyEval_EvalFrameEx and
then I coul
I like shelve for saving small amounts of data, user preferences,
recent files etc.
http://docs.python.org/library/shelve.html
For Qt use QtCore.QCoreApplication.setOrganizationName,
QtCore.QCoreApplication.setApplicationName than setValue, value from
QtCore.QSettings.
--
http://mail.python.org/m
Hi All,
I have a program that works under Ubuntu. It loads a TTF font into
pycairo, using libfreetype. The code snippet I used was taken from here:
http://cairographics.org/freetypepython/
Now I need to use the same program from Microsoft Windows. But Windows
does not have "libfreetype.so"
On Sep 16, 9:33 pm, Steven D'Aprano
wrote:
> def minmax(seq):
> result = [None, None]
> t1 = MMThread(seq, min, result, 0)
> t2 = MMThread(seq, max, result, 1)
> t1.start()
> t2.start()
> # Block until all threads are done.
> while any([t1.isAlive(), t2.isAlive()]):
>
On Sep 17, 2:40 am, David Boddie wrote:
> On Thursday 17 September 2009 01:14, nusch wrote:
>
> > The following code:
>
> > strings=["asdad", "baasd", "casd", "caxd"]
> > completer = QCompleter(strings)
> > model = completer.model()
> > print model.rowCount()
> > model.stringList().append("test")
I would like to redirect the output of the command below to another
file
type test.txt > test.bak
I'm trying to do this as part of a python script running on Windows
XP.
I'm using os.system('type "filepath.txt > filepath.bak"') but nothing
is happening.
I was wondering if somebody could enlighte
On Sep 17, 2:18 am, Hendrik van Rooyen
wrote:
> On Thursday 17 September 2009 06:33:05 Steven D'Aprano wrote:
>
> > I have two threads, one running min() and the other running max() over
> > the same list. I'm getting some mysterious results which I'm having
> > trouble debugging. Are min() and ma
Hi experts,
i want to ask you if somebody knows how can I determine, with a help
of xlrd, what kind of decimal separator (. or ,) does the user have.
Thx in advance.
Rg,
Peter
--
http://mail.python.org/mailman/listinfo/python-list
info was stored in the simple RTF files.
However now I'd like to rewrite this program in Python (using PyQt) as
I want to make it cross-platform and add/remove some features. Now I'm
thinking about where to store my information. Would it be better to
use files as I used to do or use the database,
On Wed, 16 Sep 2009 08:12:50 -0700, mark.mcdow...@gmail.com wrote:
> I have a script that automates running a program X times by preparing
> the required files and passing the external program right variables.
>
> What I am unsure about though is the overhead of:
>
> program = "externalSc
On Mon, 14 Sep 2009 04:29:57 -0500, Nick Craig-Wood wrote:
> At a basic level parsing VT100 is quite easy, so you can get rid of
> the VT100 control. They start with ESC, have other characters in the
> middle then end with a letter (upper or lowercase), so a regexp will
> make short work of them.
En Sat, 12 Sep 2009 07:37:18 -0300, Gianfranco Murador
escribió:
Ok, I solved the previous error changing the second argument , but i
have another question. Does PyNode_Compile function store the object
code in the file passed as argument? And it will be execute by python?
I mean, it works if
John Nagle writes:
> gerlos wrote:
>> John Nagle ha scritto:
>>
>>> I'm looking for something that can draw simple bar and pie charts
>>> in Python. I'm trying to find a Python package, not a wrapper for
>>> some C library, as this has to run on both Windows and Linux
>>> and version clashes are
Vlastimil Brom writes:
> As for BLT, there is Pmw.Blt, the original is written in Tcl.
doesn't work (dumps core) on debian linux
bug #525860: python-pmw triggers segmentation fault in blt
not that blt itself is really OK
bug #524149: blt: zooming in a graph produces segmentation fault
-
On Thursday 17 September 2009 06:33:05 Steven D'Aprano wrote:
> I have two threads, one running min() and the other running max() over
> the same list. I'm getting some mysterious results which I'm having
> trouble debugging. Are min() and max() thread-safe, or am I doing
> something fundamentally
daved170 wrote:
> On Sep 15, 6:29 pm, Peter Otten <__pete...@web.de> wrote:
>> daved170 wrote:
>> > Hi everybody,
>> > I'm using SPE 0.8.3.c as my python editor.
>> > I'm using thestr() function and i got a very odd error.
>>
>> > I'm trying to do this: printstr("HI")
>> > When i'm writing this li
On Sep 16, 11:33 pm, Steven D'Aprano
wrote:
> I have two threads, one running min() and the other running max() over
> the same list. I'm getting some mysterious results which I'm having
> trouble debugging. Are min() and max() thread-safe, or am I doing
> something fundamentally silly by having t
Hello,
I'm a novice in Python and got one question related to the information
storage for my application.
I'm currently working on rewriting my own the program that stores
everyday information sitting in the system tray. It was written in
Delphi some time ago and proved to be durable and fast eno
Hendrik van Rooyen wrote:
> The opposite thing is of course a continual source of trouble - we all have
> words for stuff we have never seen,
> like "dragon", "ghost", "goblin", "leprechaun", "the current King of
> France", "God", "Allah", "The Holy Trinity", "Lucifer", "Satan", "Griffin" -
Howdy all,
I'm pleased to announce the release of version 1.4.8 of ‘python-daemon’.
What is ‘python-daemon’
===
The ‘python-daemon’ library is the reference implementation of PEP 3143
http://www.python.org/dev/peps/pep-3143/>, “Standard daemon process
library”.
The source di
2009/9/17 Schif Schaf :
> What's the difference between WebDriver and Selenium?
Selenium runs in a browser, and uses JavaScript to perform all your
automated actions. It need a browser running to work. Several are
supported, Firefox, Safari, IE and I think others. You are at thier
mercy of the bro
En Fri, 04 Sep 2009 18:43:28 -0300, Sean Talts
escribió:
I'm trying to parse some python with the compiler module, select a
subset of the AST returned, and then evaluate that subset, all in
python 2.4. It seems like in python 2.6 the compiler.ast.literal_eval
function may be what I'm looking
Steven D'Aprano wrote:
I have two threads, one running min() and the other running max() over
the same list. I'm getting some mysterious results which I'm having
trouble debugging. Are min() and max() thread-safe, or am I doing
something fundamentally silly by having them walk over the same lis
> I think I've discovered the problem. Someone from IRC had directed me
> here: http://bugs.gentoo.org/show_bug.cgi?id=279915
I would suggest testing with the Python binary itself in your shebang line
(e.g. #!/usr/bin/python2.6, if it's in /usr/bin) to confirm, but that looks
like it :-)
R
On Sep 17, 4:21 am, Schif Schaf wrote:
> After some more searching I found Mechanize (a Python version of
> Perl's WWW::Mechanize):
>
> http://wwwsearch.sourceforge.net/mechanize/
>
> Anyone here tried it?
Twill uses mechanize internally.
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano writes:
>> min() and max() don't release the GIL, so yes, they are safe, and
>> shouldn't see a list in an inconsistent state (with regard to the
>> Python interpreter, but not necessarily to your application). But a
>> threaded approach is somewhat silly, since the GIL ensures t
Daniel Santos schrieb:
Hello,
print re.compile('u ').search(" u box2", 1)
<_sre.SRE_Match object at 0x7ff1d918>
print re.compile(' u ').search(" u box2", 1)
None
Why ?
because you start searching at the offset 1, which means you try to find
" u " in "u box2" - and that's not found.
Di
Blaine schrieb:
Hello,
Scripts that have "#!/usr/bin/python" at the top do not parse
correctly. Bash treats scripts with that shebang as if they are bash
scripts.
E.g.:
bla...@attila ~/apps/rs-mu $ /usr/sbin/env-update
/usr/sbin/env-update: line 6: import: command not found
/usr/sbin/env-update
On Sep 16, 2009, at 10:39 PM, Steven D'Aprano wrote:
On Wed, 16 Sep 2009 22:08:40 -0700, Miles Kaufmann wrote:
On Sep 16, 2009, at 9:33 PM, Steven D'Aprano wrote:
I have two threads, one running min() and the other running max()
over
the same list. I'm getting some mysterious results which
96 matches
Mail list logo