MonkeeSage wrote:
> Eric S. Johansson wrote:
>> the problem with this solution is that it does not handle the read
>> nonexclusive/write exclusive locking model. In this model, reads don't
>> block, they only register that the request is in process. writes lock
Thomas Jollans wrote:
> Not that I know of, but thanks to the WSGI (specified in PEP 333:
> http://www.python.org/dev/peps/pep-0333/) you should be able to convert
> your app to WSGI, which will run on mod_python, relatively easily
> (depending on your code; 'print' won't work anymore)
I assume th
fedora
[EMAIL PROTECTED] ~]# file /etc/postfix/transport*
/etc/postfix/transport:ASCII English text
/etc/postfix/transport.db: Berkeley DB (Hash, version 8, native
byte-order)
# python /usr/lib/python2.4/whichdb.py /etc/postfix/transport
UNKNOWN /etc/postfix/transport
# python /usr/l
[EMAIL PROTECTED] wrote:
> I have read through the ACL instructions on MoinMoin's site, but I
> don't understand how to make it work. See
> http://moinmoin.wikiwikiweb.de/HelpOnAccessControlLists
>
> To me it seems to be saying that you have to create a page before you
> can set the ACL for it.
I upgraded to version 9.5 and all of my tools which enabled me to program by
voice in Emacs are broken. it's one of those dagnabbit a moment's of life.
What I am looking for is a Windows based Python Smart editor that uses specific
rich text edit controls as specified here:
http://knowledgebas
this morning I was looking at Python and XUL. I was impressed by the very
interesting projects that were happening around 2005 but it seems like they
have
all died. Integrating Python at the Mozilla was also very intriguing as it
held
the promise of eliminating JavaScript for extension devel
Chris Mellon wrote:
> wx does (in large part), but most likely the problem is that the "rich
> text" control used in most editors is not the win32 rich text control,
> but instead Scintilla, which is designed for source editing and is
> much easier to use. Very few editors, of any kind, use the nat
Steve Howell wrote:
> --- "Eric S. Johansson" <[EMAIL PROTECTED]> wrote:
> I would not completely give up on the idea of Python
> itself running in the browser, although obviously
> there have been lots of false starts.
>
> http://www.voidspace.org.uk/python/we
Steve Howell wrote:
> --- "Eric S. Johansson" <[EMAIL PROTECTED]> wrote:
> http://www.voidspace.org.uk/python/weblog/arch_d7_2007_04_28.shtml#e702
>> interesting. Very interesting but I suspect the
>> message is "don't hold your
>> breath but don
Steve Howell wrote:
> --- "Eric S. Johansson" <[EMAIL PROTECTED]> wrote:
>
>> Steve Howell wrote:
>>> --- "Eric S. Johansson" <[EMAIL PROTECTED]> wrote:
>>>
> http://www.voidspace.org.uk/python/weblog/arch_d7_2007_04_28.shtml#e702
&
I have wasted way too much time on this problem already and I'm hoping it's
just
that I'm missing some bit of information somewhere.
I need an SMTP receiver so I can handle filter requests from a postfix mail
server. the asyncore version works fine for one request at a time. This is
great ex
Paul McGuire wrote:
> At first, Guido seemed ambivalent, and commented on the
> contentiousness of the issue, but it seems that the "non-English
> speakers can more easily find word breaks marked with underscores"
> justification tipped the scale in favor of
> lower_case_with_underscores.
>
> Th
Warren Stringer wrote:
> Hi Eric,
>
> You make a compelling argument for underscores. I sometimes help a visually
> impaired friend with setting up his computers.
>
> I'm wondering about the aural output to you second example:
>
> link.set_parse_action(emit_link_HTML)
>
> Does it sound like th
[EMAIL PROTECTED] wrote:
> FWIW, even though I think proper-case-with-seperators is greatly
> preferrable to camelCase, I certainly don't think that speaking the
> names is a really major point.
unless you or someone with working hands helps fix up voicecoder, it is a major
point for people like
I have a collection of packages and I want to put them under single unifying
name. my goal is to reduce namespace pollution and make all these packages
accessible as 'import vvv.aaa'. In more detail, if I have packages 'aaa' and
'bbb', what do I do to put those packages under unifying name such
I have an environment where I have a bunch of data files or use would like
Python application. I want to use the data_files specification of set up to
distribute those files. But I also need to change ownership and permissions.
I
know there's some way to do this because I've done it once bef
Ben Finney wrote:
> Stefan Behnel <[EMAIL PROTECTED]> writes:
> "Neither"? Emacs is both editor *and* IDE.
I think of it more as feature full but somehow unsatisfying. For example, for
those of us PRDs ( Politely Referred to as Disabled) who are trying to program
by voice could use an enumerat
I need to to be able to conditionally log based on the method the log
statement is in and one other factor like a log level. in order to do
so, I need to be able to automatically find out the name of the method
and its class but I haven't found out how to do that yet.
for example,
class catus
Peter Otten wrote:
> Eric S. Johansson wrote:
>
>> I need to to be able to conditionally log based on the method the log
>> statement is in and one other factor like a log level. in order to do
>> so, I need to be able to automatically find out the name of the metho
Peter Otten wrote:
> Eric S. Johansson wrote:
>
> [in private mail -- please don't, Eric]
sorry. my preference is for private mail. it's my way of trying to be
kind to others by reducing list clutter.
> I don't understand. The logging package detects the f
Peter Otten wrote:
> Eric S. Johansson wrote:
>
> Here is yet another revision of my example then:
it's making more and more sense although I don't quite follow 'property'
quite yet. But I see that get_logger is invoked prior to the
__logger.info call.
I was lo
Gabriel Genellina wrote:
> I don't get all the details of what's all that stuff for, but from the
> error and traceback, I think you forgot to create the filter_test
> instance. That is, change lgr.addFilter(filter_test) to
> lgr.addFilter(filter_test())
do'h . for some reason, I thought a
Dennis Lee Bieber wrote:
> On Fri, 23 Mar 2007 21:15:56 -0400, "Eric S. Johansson" <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>> Gabriel Genellina wrote:
>>
>>> I don't get all the details of what's all that stuff
Dennis Lee Bieber wrote:
> On Sat, 24 Mar 2007 11:29:34 -0400, "Eric S. Johansson" <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>
>> yes. here is the code that fails. I don't understand why the unbound
>> method. what is r
Dennis Lee Bieber wrote:
> I've never resorted to the debugger -- it's always been faster for
> me to just wolf-fence* code with print statements...
depends on the situation for me. normally I use log statements that
turn on or off based on predicates (now I need to figure out how to
han
I have a bunch of small modules that I use within my application. Most
of these modules are single file modules. Currently, I have them set up
as stand-alone modules but because it's a royal pain to fetch five or 10
of these modules for each application and tracking whether or not they
are al
Jorge Godoy wrote:
> "Eric S. Johansson" <[EMAIL PROTECTED]> writes:
>
>> I have a bunch of small modules that I use within my application. Most of
>> these modules are single file modules. Currently, I have them set up as
>> stand-alone modules but becau
[EMAIL PROTECTED] wrote:
> Hello, I'm a teen trying to do my part in improving the world, and me
> and my pal came up with some concepts to improve the transportation
> system.
>
> I have googled up and down for examples of using python to create a
> city street but I can not find any.
http://www
[EMAIL PROTECTED] wrote:
> Hey, I'm looking for a good Python environment. That is, at least an editor
> and a debugger, and it should run on Windows. Does anyone have any idea?
I've been looking for the equivalent although I want the IDE to run on Windows
and to be able to edit/debug/bzr files on
John Nagle wrote:
> Yes. One of the basic design flaws of UNIX was that interprocess
> communication was originally almost nonexistent, and it's still not all that
> great. It's easy to run other programs, and easy to send command line
> parameters, but all you get back is a status code, plu
John Nagle wrote:
> Eric S. Johansson wrote:
>> John Nagle wrote:
>>> Yes. One of the basic design flaws of UNIX was that interprocess
>>> communication was originally almost nonexistent, and it's still not
>>> all that
>>> great. It'
as one would expect when creating a body of software, eventually you
create a series of relatively generic components you find yourself using
over and over again. As a result, I'm finding myself slightly bit by
the same problem I have faced multiple times of the past. Namely, how
do you distr
Ben Finney wrote:
> "Eric S. Johansson" <[EMAIL PROTECTED]> writes:
>
>> as one would expect when creating a body of software, eventually you
>> create a series of relatively generic components you find yourself using
>> over and over again. As a re
Ben Finney wrote:
> "Eric S. Johansson" <[EMAIL PROTECTED]> writes:
>> Ben Finney wrote:
> setuptools allows downloads and/or installs from any specified
> location. The Cheeseshop is just a convenient default location.
>
>>> - use easy_install
alisonken1 wrote:
> As to the question "fail to see how version control relates to
> code/test separation", the original poster asked several questions, one
> of which was production/testing code separation.
>
> Along with the separation (so while you're testing new functionality,
> you don't brea
Serge Orlov wrote:
> How about one? I bundle everything together. Sharing modules at end
> user host is more difficult because you have to test many combinations.
> Needless to say, end users also have a strange ability to create
> untested combinations of modules :)
it's the exact same problem.if
Rony Steelandt wrote:
> http://www.newscientisttech.com/article/dn9066
>
> To nice to be true ?
its early technology. It's difficult to install and it definitely need
some extra horsepower because the two people developing it are also
disabled (like me). The only thing I've done to support th
I'm looking for a scgi modules that make it easy to convert a CGI using
the standard Python CGI module. I'm hoping for something that will run
my program either as scgi or cgi.
I did find something called paste which purports to be some sort of CGI
Bridge framework but from the documentation,
chris wrote:
> I need simple data persistence for a cgi application that will be used
> potentially by multiple clients simultaneously. So I need something
> that can handle locking among writes. Sqlite probably does this, but
> I am using Python 2.4.4, which does not include sqlite. The dbm-sty
Gabriel Genellina wrote:
> En Wed, 27 Feb 2008 13:32:07 -0200, Christian Kortenhorst
> <[EMAIL PROTECTED]> escribi�:
>
>> But there is no rsync for windows without using cygwin
>
> That's no big deal; rsync doesn't require tons of libraries, just
> cygpopt-0.dll and cygwin1.dll. See this page
Andreas Roehler wrote:
>
> with python-mode.el from
>
> http://sourceforge.net/projects/python-mode/
I think there's something wrong with the site because it tells me it's version
1.0 from year 2005.
> Meanwhile I'll reflect a draft addressing your needs.
there is a rather sizable set of thin
Steve Holden wrote:
> Tim Roberts wrote:
>> Derick van Niekerk <[EMAIL PROTECTED]> wrote:
>>> Ok - so it's not really an awesome achievement and only handles basic
>>> templating needs (no loops and other programming constructs) but maybe
>>> someone will find it useful.
>>
>> Sure, that's what th
in trying to make programming in Python more accessible to disabled programmers
(specifically mobility impaired speech recognition users), and hitting a bit of
a wall. The wall (for today) is indentation. I need a method of getting the
"right indentation" without having to speak a bunch of unnece
Almar Klein wrote:
> Hi Eric,
>
> First of all, I like your initiative.
there's nothing like self interest to drive one's initiative. :-) 14 years with
speech recognition and counting. I'm so looking to my 15th anniversary of being
injured next year
another initiative is exporting the spee
[EMAIL PROTECTED] wrote:
> On Nov 14, 4:08 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote:
>> Almar Klein wrote:
>>> Hi Eric,
>>> First of all, I like your initiative.
>> there's nothing like self interest to drive one's initiative
[EMAIL PROTECTED] wrote:
> I don't understand. If you don't want to terminate the "if", why do
> you hit backspace? What is it that you would like to have happen?
the goal is to make some aspects of indentation behave the same without context
dependency. this goal exists for many features of pr
Aaron Brady wrote:
> On Nov 14, 8:01 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>>> I don't understand. If you don't want to terminate the "if", why do
>>> you hit backspace? What is it that you wo
Aaron Brady wrote:
> You see examples here from time to time that don't follow the rigid C+
> + formatting. Some examples:
>
> def classmaker( ):
> class X:
> something
> return X
>
> class X:
> class Y:
> something
>
> if something:
> class X:
> pass
> else:
> def X( ):
>
John Yeung wrote:
> This is such a fascinating and compelling thread that it has pulled me
> out of lurker mode.
>
> Eric, I would like to say I also admire your initiative, but even more
> so your patience. You seem to handle comments of all types
> gracefully.
Should have seen me 20 years ago.
[EMAIL PROTECTED] wrote:
> I still don't understand.
I elaborated on some of these points in a post to Aaron Brady. If you missed it
on the list, let me know and I will forward you a copy.
It seems that you want to be able to do:
> "END_CLASS" to end the current class.
>
> "END_DEF" to end t
Jeremiah Dodds wrote:
> Eric, I don't have a good readily available solution to what you're
> trying to do, but it seems to me that it would be worth your time to get
> comfortable with elisp, and how it's used in emacs. The emacs
> documentation is pretty good, even if you don't know lisp, and I
John Yeung wrote:
> On Nov 15, 8:50 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote:
>> well, therein lies the rub. I don't know lisp,
>> I don't know Emacs internals let alone python mode.
>
> Unfortunately, neither do I. Actually, I haven'
Andreas Roehler wrote:
> IMO Jeremiah Dodds is right. With all the time spent on this discussion, you
> could write the needed function in elisp probably. BTW your request seems
> reasonable. Other python programmers may use it too.
I tried learning lisp about 15 years ago. even bought a copy of
I'm having a problem (Python 2.4) converting strings with random 8-bit
characters into an escape form which is 7-bit clean for storage in a database.
Here's an example:
body = meta['mini_body'].encode('unicode-escape')
when given an 8-bit string, (in meta['mini_body']), the code fragment above
>
> Almost there: use string-escape instead; it takes a byte string and
> returns another byte string in ASCII.
perfect. Exactly what I wanted. thank you so very much.
>
>> I really don't care about the character set used. I'm looking for a
>> matched set
>> of operations that converts t
how thread safe is the gdbm module?
--
http://mail.python.org/mailman/listinfo/python-list
marcello wrote:
> Hello
> I need to do this:
> 1 opening a file for writing/appending
> 2 to lock the file as for writing (i mean: the program
> that lock can keep writing, all others programs can't )
> 3 wtite and close/unlock
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203
been
I have a small problem that may be best solved by dragging and dropping
a mail message to an icon. But I'm honestly not sure what the data will
look like from different e-mail clients. Since most of my programming
experience is something a user rarely sees, I'm not even sure where to
start cr
Diez B. Roggisch wrote:
> Eric S. Johansson wrote:
> Drag'n'Drop is highly OS-dependand and clearly out of scope for
> standard-out-of-the-box python. If you are on macintosh, pyobjc and
>
> http://www.cocoadev.com/index.pl?DragAndDrop
>
> will certainly help.
i
Luis M. González wrote:
> For those interested in the simplest, easiest and most pythonic web
> framework out there, there's a new page in Wikipedia:
this all depends on your criteria for simplest and easiest. For me HTML
is pure hell. I avoid it whenever possible because it literally makes
my
Ravi Teja wrote:
> You don't need to do that. You can always use your favorite templating
> system. I am using Cheetah.
actually, I got burned lots of times using template systems. I think I
live by the minimum new scar tissue metric. After all, the only
intuitive user interface is the mammali
Bruno Desthuilliers wrote:
> Brendan Miller a écrit :
>> PEP 8 doesn't mention anything about using all caps to indicate a
>> constant.
>>
>> Is all caps meaning "don't reassign this var" a strong enough
>> convention to not be considered violating good python style? I see a
>> lot of people using
Rhodri James wrote:
> Reject away, but I'm afraid you've still got some work to do to
> convince me that PEP 8 is more work for an SR system than any other
> convention.
Name name
higher than normal recognition error rate. can require multiple tries
or hand
correction
MultiWordName
Peter Otten wrote:
> Eric S. Johansson wrote:
>
>> MultiWordName mulitwordname
>> very high error rate. many retries or hand hurting typing.
>
> Can you define macros in your speech recognition software?
>
> multiwordname
>
> might slightly lower the erro
alex23 wrote:
> "Eric S. Johansson" wrote:
>> no, I know the value if convention when editors can't tell you anything about
>> the name in question. I would like to see more support for disabled
>> programmers
>> like myself and the thousands of pr
Tim Chase wrote:
It sounds like the issue should be one of making your screen-reader
> smarter, not dumbing down Python conventions. I don't know what SR
> you're using (Jaws? Window Eyes? yasr? screeder? speakup?
Naturally speaking is speech recognition (speech in text out) it is not text
Ethan Furman wrote:
> Eric S. Johansson wrote:
>>
>> yup how long will i[t] be before you become disablesd? maybe not as
>> badly as I am
>> but you should start feeling some hand problems in your later 40's to
>> early 50's
>> and it goes down h
Rhodri James wrote:
> On Mon, 29 Jun 2009 06:07:19 +0100, Eric S. Johansson
> wrote:
>
>> Rhodri James wrote:
>>
>>> Reject away, but I'm afraid you've still got some work to do to
>>> convince me that PEP 8 is more work for an SR system th
Rhodri James wrote:
>
> Could you elucidate a bit? I'm not seeing how you're intending to keep
> PEP-8 conventions in this, and I'm not entirely convinced that without
> them the smart editor approach doesn't in fact reduce your productivity.
>
thank you for asking for an elaboration.
Program
Steven D'Aprano wrote:
> Why do you think a smart editing environment is in opposition to coding
> conventions? Surely an editor smart enough to know a variable name spoken
> as "pear tree" is an instance and therefore spelled as pear_tree (to use
> your own example) would be smart enough to kn
Rhodri James wrote:
> [Trimming for length, sorry if that impacts too much on intelligibility]
no problem, one of the hazards of speech recognition uses you become very
verbose.
> This goes a long way, but it doesn't eliminate the need for some forms
> of escape coming up on a moderately frequen
Tim Chase wrote:
> Eric S. Johansson wrote:
>
np. I get this confusion often.
>
> While I have used SR in some testing, I've found that while it's
> passable for prose (and even that, proclamations of "95% accuracy" sound
> good until you realize how many w
Tim Chase wrote:
>> I've tried it least two dozen editors and they all fail miserably
>> because they're focused on keyboard use (but understandable)
> [...snip...]
>> I've tried a whole bunch, like I said at least a dozen. They
>> all fail for first reasons such as inability to access all
>> funct
Rhodri James wrote:
>
> Gah. Ignore me. I hit 'send' instead of 'cancel', after my musings
> concluded that yes, an editor could be smart enough, but it would have to
> embed a hell of a lot of semantic knowledge of Python and it still wouldn't
> eliminate the need to speak the keyboard at time
Steven D'Aprano wrote:
> That assumes that every word is all caps. In practice, for real-life
> Python code, I've tripled the vocal load of perhaps one percent of your
> utterances, which cuts your productivity by 2%.
>
> If you have 1 words in you per day, and one percent get wrapped with
Horace Blegg wrote:
> I've been kinda following this. I have a cousin who is permanently wheel
> chair bound and doesn't have perfect control of her hands, but still
> manages to use a computer and interact with society. However, the
> idea/thought of disabled programmers was new to me/hadn't ever
On 9/12/2010 4:28 PM, Paul Rubin wrote:
Bearophile writes:
I see DbC for Python as a way to avoid or fix some of the bugs of the
program, and not to perform proof of correctness of the code. Even if
you can't be certain, you are able reduce the probabilities of some
bugs to happen.
I think Db
101 - 177 of 177 matches
Mail list logo