Hi,
expy is an expressway to extend python.
in release 0.5.2, expy now supports custom exceptions, besides all built-in
ones, and exception handling is made easy.
for more info, see
http://expy.sourceforge.net/
cheers,
Yingjie
--
http://mail.python.org/mailman/listinfo/python-list
Hi ,
I am pretty new to python , and reading up on it.
Basically I am trying to compare xml files . I know difflib have it
but it does not work out as expected. I was looking at xmldiff ,
unfortunately I am not able to find documentation how to call it from
python. Anyone knows a link or doc to i
On 2/2/2010 9:02 PM, alex23 wrote:
On Feb 3, 9:02 am, John Nagle wrote:
I know there's a performance penalty for running Python on a
multicore CPU, but how bad is it? I've read the key paper
("www.dabeaz.com/python/GIL.pdf"), of course.
It's a shame that Python 3.x is dead to you, other
John Bokma writes:
> Steven D'Aprano writes:
>
>> On Tue, 02 Feb 2010 23:11:49 -0600, John Bokma wrote:
>>
>>> Jonathan Gardner writes:
>>>
I can explain, in an hour, every single feature of the Python language
to an experienced programmer, all the way up to metaclasses,
>>>
>>> Eit
Steven D'Aprano writes:
> On Tue, 02 Feb 2010 23:11:49 -0600, John Bokma wrote:
>
>> Jonathan Gardner writes:
>>
>>> I can explain, in an hour, every single feature of the Python language
>>> to an experienced programmer, all the way up to metaclasses,
>>
>> Either you're a hell of a talker, o
On Feb 2, 12:45 am, casevh wrote:
> Everyone,
>
> I'm pleased to annouce the final release of GMPY 1.11.
> GMPY is a wrapper for the MPIR or GMP multiple-precision
> arithmetic library. GMPY 1.11 is available for download from:
>
> http://code.google.com/p/gmpy/
>
> In addition to support for Pyth
Autor: Martin Rubey
Data: 2008-10-29 09:34 +900
Dla: python-list
CC: sage-devel
Temat: calling python from lisp
http://archives.free.net.ph/message/20081029.003410.172560ac.pl.html
>sys:1: RuntimeWarning: Python C API version mismatch for module pol: This
>Python has API version 1013, module pol
On Tue, 02 Feb 2010 23:11:49 -0600, John Bokma wrote:
> Jonathan Gardner writes:
>
>> I can explain, in an hour, every single feature of the Python language
>> to an experienced programmer, all the way up to metaclasses,
>
> Either you're a hell of a talker, or I am far, far away from being an
Jonathan Gardner writes:
> On Feb 1, 6:36 pm, John Bokma wrote:
[..]
>> It should be $bar = \&foo
>> Your example actually calls foo...
>
> I rest my case. I've been programming perl professionally since 2000,
> and I still make stupid, newbie mistakes like that.
Uhm, in another post you wrot
Jonathan Gardner writes:
> I can explain, in an hour, every single feature of the Python language
> to an experienced programmer, all the way up to metaclasses,
Either you're a hell of a talker, or I am far, far away from being an
experienced programmer. It's advocacy like this, IMO, that keeps
On Tue, 02 Feb 2010 19:55:15 -0800, Carl Banks wrote:
> On Feb 2, 5:49 pm, Steven D'Aprano
> wrote:
>> On Tue, 02 Feb 2010 12:26:16 -0800, Carl Banks wrote:
>> > I did not propose obvious module names. I said obvious names like
>> > email.py are bad; more descriptive names like send_email.py are
Paul Rubin wrote:
Ryan Kelly writes:
I know, I know, do not feed the trolls. But this is just so *wrong*
that I can't help myself.
See: http://xkcd.com/386/
:-)
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 2, 5:49 pm, Steven D'Aprano
wrote:
> On Tue, 02 Feb 2010 12:26:16 -0800, Carl Banks wrote:
> > I did not propose obvious module names. I said obvious names like
> > email.py are bad; more descriptive names like send_email.py are better.
>
> But surely send_email.py doesn't just send email,
kj wrote:
>
> (For reasons I don't understand Stephen Hansen's posts don't show
> in my news server. I became aware of his reply from a passing
> reference in one of Terry Reedy's post. Then I found Hansen's post
> online, and then an earlier one, and pasted the relevant portion
> below.)
>
>
()On Feb 2, 6:46Â pm, Ryan Kelly wrote:
> > On Tue, 2010-02-02 at 17:28 -0800, Xah Lee wrote:
>
> I know, I know, do not feed the trolls. Â But this is just so *wrong*
> that I can't help myself.
>
> > In Python, there are 2 ways to clear a hash:
>
> No, no there's not. Â There's one way to clear
Ryan Kelly writes:
> I know, I know, do not feed the trolls. But this is just so *wrong*
> that I can't help myself.
See: http://xkcd.com/386/
--
http://mail.python.org/mailman/listinfo/python-list
> On Tue, 2010-02-02 at 17:28 -0800, Xah Lee wrote:
I know, I know, do not feed the trolls. But this is just so *wrong*
that I can't help myself.
> In Python, there are 2 ways to clear a hash:
No, no there's not. There's one way to clear a hash and there's one way
to assign a new object to a
On 2月1日, 下午8时47分, Mag Gam wrote:
> Hello All,
>
> I used tcpdump to capture data on my network. I would like to analyze
> the data using python -- currently using ethereal and wireshark.
>
> I would like to get certain type of packets (I can get the hex code
> for them), what is the best way to do
In Terry Reedy
writes:
>On 2/2/2010 2:43 PM, kj wrote:
>> In Terry
>> Reedy writes:
>>
>>> On 2/2/2010 9:13 AM, kj wrote:
>>
> As for fixing it, unfortunately it's not quite so simple to fix without
> breaking backwards-compatibility. The opportunity to do so for Python 3.0
> was
(For reasons I don't understand Stephen Hansen's posts don't show
in my news server. I became aware of his reply from a passing
reference in one of Terry Reedy's post. Then I found Hansen's post
online, and then an earlier one, and pasted the relevant portion
below.)
> First, I don't shadow
On Feb 3, 9:02 am, John Nagle wrote:
> I know there's a performance penalty for running Python on a
> multicore CPU, but how bad is it? I've read the key paper
> ("www.dabeaz.com/python/GIL.pdf"), of course.
It's a shame that Python 3.x is dead to you, otherwise you'd be able
to enjoy the ne
En Tue, 02 Feb 2010 08:20:34 -0300, mk escribió:
Exception in thread Thread-9 (most likely raised during interpreter
shutdown):
Traceback (most recent call last):
File "/var/www/html/cssh.py", line 617, in ssh_connect
: 'NoneType' object has no attribute
'BadAuthenticationType'
So you
On Tue, 02 Feb 2010 12:26:16 -0800, Carl Banks wrote:
> I did not propose obvious module names. I said obvious names like
> email.py are bad; more descriptive names like send_email.py are better.
But surely send_email.py doesn't just send email, it parses email and
receives email as well?
--
On Tue, 02 Feb 2010 09:38:07 +0100, Daniel Fetchinson wrote:
>> I like seeing them in the same place as the source file, because when I
>> start developing a module, I often end up renaming it multiple times
>> before it settles on a final name. When I rename or move it, I delete
>> the .pyc file,
just wrote this essay. Comment & feedback very welcome.
Python's Reference And Internal Model Of Computing Languages
Xah Lee, 2010-02-02
In Python, there are 2 ways to clear a hash: âmyHash = {}â and
âmyHash.clear()â. What is the difference?
â
The difference is that âmyHash={}â si
On Feb 3, 7:54 am, "Alf P. Steinbach" wrote:
> I've started on ch 3 of my beginner's intro to programming, now delving into
> the
> details of the Python language.
>
> It's just a few pages yet, file [03 asd.pdf] (no real title yet!) at
> http://tinyurl.com/programmingbookP3> which is at Google
Alf P. Steinbach wrote:
> I've started on ch 3 of my beginner's intro to programming, now delving
> into the details of the Python language.
>
> It's just a few pages yet, file [03 asd.pdf] (no real title yet!) at
> http://tinyurl.com/programmingbookP3> which is at Google Docs.
>
> The first topi
Jonathan Gardner wrote:
On Feb 2, 7:23 am, "bartc" wrote:
Jonathan Gardner wrote:
One of the bad things with languages like perl and Ruby that call
without parentheses is that getting a function ref is not obvious.
You need even more syntax to do so. In perl:
foo(); # Call 'foo' with no arg
On 2-2-2010 21:54, Alf P. Steinbach wrote:
I've started on ch 3 of my beginner's intro to programming, now delving
into the details of the Python language.
Alf,
I think it's a good read so far. I just don't like the smilies that
occur in the text. It's a book (or article) that I'm reading, no
En Tue, 02 Feb 2010 02:26:57 -0300, Paul escribió:
I've managed to get it working and so far stable...
Glad to see you finally made it work!
Current working version:
[...]
mycppclass::callpy(funcname, args...)
m_mypymodule = PyImport_Import(pModuleName)
pyargs = PyTuple_SetI
On 11:02 pm, na...@animats.com wrote:
I know there's a performance penalty for running Python on a
multicore CPU, but how bad is it? I've read the key paper
("www.dabeaz.com/python/GIL.pdf"), of course. It would be adequate
if the GIL just limited Python to running on one CPU at a time,
but
On Feb 2, 5:01 pm, Jonathan Gardner
wrote:
> On Feb 1, 6:36 pm, John Bokma wrote:
>
>
>
>
>
> > Jonathan Gardner writes:
> > > One of the bad things with languages like perl
>
> > FYI: the language is called Perl, the program that executes a Perl
> > program is called perl.
>
> > > without paren
In article ,
D'Arcy J.M. Cain wrote:
>
>If you have a problem and you think that regular expressions are the
>solution then now you have two problems. Regex is really overkill for
>the OP's problem and it certainly doesn't improve readability.
If you're going to use a quote, it works better if y
Ben Finney wrote:
> Jonathan Gardner writes:
>
>> Compare with Python's syntax.
>>
>> # The only way to assign
>> a = b
>>
>> # The only way to call a function
>> b(...)
>>
>> # The only way to access a hash or array or string or tuple
>> b[...]
>
> For all of your examples, there are other ways
On 2/2/2010 3:14 PM, Mitchell L Model wrote:
I need a 1000 x 1000 two-dimensional array of objects.
I would just use 1000 element list, with each element being a 1000
element list or array (if possible). Then l2d[i][j] works fine.
--
http://mail.python.org/mailman/listinfo/python-list
Hello.
I've been crawling the web for an answer to this one, but have come up
empty.
We can currently only use Boost 1.36 for our project, i.e. we are having
problems using later versions of Boost. We are using Boost.Python to
interface with Cheetah.
Problem:
In Boost 1.36, how do you call a
I know there's a performance penalty for running Python on a
multicore CPU, but how bad is it? I've read the key paper
("www.dabeaz.com/python/GIL.pdf"), of course. It would be adequate
if the GIL just limited Python to running on one CPU at a time,
but it's worse than that; there's excessive
On 2/2/2010 2:43 PM, kj wrote:
In Terry
Reedy writes:
On 2/2/2010 9:13 AM, kj wrote:
As for fixing it, unfortunately it's not quite so simple to fix without
breaking backwards-compatibility. The opportunity to do so for Python 3.0
was missed.
This last point is to me the most befuddling
On Tue, Feb 2, 2010 at 1:38 PM, Roel Schroeven <
rschroev_nospam...@fastmail.fm> wrote:
> Apparently, contrary to my expectations, Python looks in the directory
> containing the currently running script instead. That means that the
> behavior of "import foo" depends very much on circumstances not
Jonathan Gardner writes:
> Compare with Python's syntax.
>
> # The only way to assign
> a = b
>
> # The only way to call a function
> b(...)
>
> # The only way to access a hash or array or string or tuple
> b[...]
For all of your examples, there are other ways supported. I do wish this
focus on
Xah Lee wrote:
> This is a short complaint on admin abuse on #python irc channel on
> freenode.net.
>
> Here's a log:
>
> 2010-02-02
>
> (12:11:57 PM) The topic for #python is: NO LOL | http://pound-python.org/
> | It's too early to use Python 3.x | Pasting > 3 lines? Pastebin:
> http://paste.po
On Feb 1, 6:50 pm, Nobody wrote:
> On Mon, 01 Feb 2010 14:13:38 -0800, Jonathan Gardner wrote:
> > I judge a language's simplicity by how long it takes to explain the
> > complete language. That is, what minimal set of documentation do you
> > need to describe all of the language?
>
> That's not a
On Feb 2, 7:23 am, "bartc" wrote:
> Jonathan Gardner wrote:
> > One of the bad things with languages like perl and Ruby that call
> > without parentheses is that getting a function ref is not obvious. You
> > need even more syntax to do so. In perl:
>
> > foo(); # Call 'foo' with no args.
>
On Feb 1, 6:36 pm, John Bokma wrote:
> Jonathan Gardner writes:
> > One of the bad things with languages like perl
>
> FYI: the language is called Perl, the program that executes a Perl
> program is called perl.
>
> > without parentheses is that getting a function ref is not obvious. You
> > need
On Feb 1, 6:21 pm, Nobody wrote:
>
> You don't need to know the entire language before you can use any of it
> (if you did, Python would be deader than a certain parrot; Python's dark
> corners are *really* dark).
>
I'm curious. What dark corners are you referring to? I can't think of
any. Especi
On Feb 2, 2:21 am, waku wrote:
>
> for writing new code, it's not necessarily that helpful to be *forced*
> to keep with strict indenting rules. in early development phases,
> code is often experimental, and parts of it may need to be blocked or
> unblocked as the codebase grows, and for experime
On Feb 1, 6:34 pm, kj wrote:
>
> An innocuous little script, let's call it buggy.py, only 10 lines
> long, and whose output should have been, at most two lines, was
> quickly dumping tens of megabytes of non-printable characters to
> my screen (aka gobbledygook), and in the process was messing up
Op 2010-02-02 18:02, Nobody schreef:
> On Tue, 02 Feb 2010 15:00:28 +, Grant Edwards wrote:
>
It turns out that buggy.py imports psycopg2, as you can see, and
apparently psycopg2 (or something imported by psycopg2) tries to
import some standard Python module called numbers; inst
On Feb 2, 12:40 pm, Xah Lee wrote:
>
> (12:12:16 PM) xahlee: is hash={} and hash.clean() identical?
>
I think you mean hash.clear() instead of hash.clean()
The answer is that "hash = {}" will create a new dict and assign it to
"hash", while "hash.clear()" simply guts the dict that "hash" is
poin
I'm trying to build PyObjC from source (because the binary doesn't work
on OSX 10.5) and I can't figure out how to get all the dependencies
downloaded automatically. Am I missing something?
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
import antigravity
--
ht
I am creating custom widgets for the PyQt4 Designer. I can create
custom properties, but I'm looking for how to create a custom property
that has a combo box drop down. I've seen them in the example widgets
and tried following them, but they are using pre-defined items to
populate their property, s
On Feb 2, 12:54 pm, "Alf P. Steinbach" wrote:
> The first topic is about assertions and exceptions. I wonder whether this text
> is easy or difficult to understand for a beginner. Or any improvements that
> could be made.
To my eyes it reads nicely. You may want to try it out on a real
beginner
Hi,
Sorry for being vague but here my question about converting an xml into
a dict. I found some examples online but none gives the dict/result I
want. The xml looks like this:
This is the note
on calculation times
609.081574
2531.972081
On 08:36 pm, gerald.brit...@gmail.com wrote:
On Tue, Feb 2, 2010 at 3:14 PM, Mitchell L Model
wrote:
I need a 1000 x 1000 two-dimensional array of objects. (Since they are
instances of application classes it appears that the array module is
useless;
Did you try it with an array object using
I've started on ch 3 of my beginner's intro to programming, now delving into the
details of the Python language.
It's just a few pages yet, file [03 asd.pdf] (no real title yet!) at http://tinyurl.com/programmingbookP3> which is at Google Docs.
The first topic is about assertions and exception
Many thanks to all who replied to my questions re. SQLite connections,
cursors and threading.
Looks like I have got some reading to do regarding connection pooling and
a decent SQLite ORM package. Does anyone know of any which are Python 3
compatible?
Many thanks,
Alanj
--
http://mail.pyth
This is a short complaint on admin abuse on #python irc channel on
freenode.net.
Here's a log:
2010-02-02
(12:11:57 PM) The topic for #python is: NO LOL | http://pound-python.org/
| It's too early to use Python 3.x | Pasting > 3 lines? Pastebin:
http://paste.pocoo.org/ | Tutorial: http://docs.py
Did you try it with an array object using the array module?
On Tue, Feb 2, 2010 at 3:14 PM, Mitchell L Model wrote:
> An instructive lesson in YAGNI ("you aren't going to need it"), premature
> optimization, and not making assumptions about Python data structure
> implementations.
>
> I need a 10
On Feb 2, 11:07 am, Jean-Michel Pichavant
wrote:
> Carl Banks wrote:
> > On Feb 2, 2:49 am, Jean-Michel Pichavant
> > wrote:
>
> >> Carl Banks wrote:
>
> >>> Name your modules "send_email.py" or "sort_email.py" or if it's a
> >>> library module of related functions, "email_handling.py". Modules
An instructive lesson in YAGNI ("you aren't going to need it"),
premature optimization, and not making assumptions about Python data
structure implementations.
I need a 1000 x 1000 two-dimensional array of objects. (Since they are
instances of application classes it appears that the array m
In Terry Reedy
writes:
>On 2/2/2010 9:13 AM, kj wrote:
>>> As for fixing it, unfortunately it's not quite so simple to fix without
>>> breaking backwards-compatibility. The opportunity to do so for Python 3.0
>>> was missed.
>>
>> This last point is to me the most befuddling of all. Does anyo
Carl Banks wrote:
On Feb 2, 2:49 am, Jean-Michel Pichavant
wrote:
Carl Banks wrote:
Name your modules "send_email.py" or "sort_email.py" or if it's a
library module of related functions, "email_handling.py". Modules and
scripts do things (usually), they should be given action words as
> Clearly it was added to work with an array, and it's
> being used with an array. Why shouldn't people use it
> with Python 2.x?
Because it's not thread-safe; it may crash the interpreter if used
incorrectly.
Of course, if you don't share the array across threads, it can be safe
to use.
Regards
tinn...@isbd.co.uk writes:
> What does this vText() annotation mean in a returned list:-
>
> [['Apr 19', vText(u'PAYE'), ''],
It means your list contains an instance of a class whose __repr__()
method returns "vText(u'PAYE')". If it follows common practice, the
class is probably named "vTex
On Feb 2, 2:49 am, Jean-Michel Pichavant
wrote:
> Carl Banks wrote:
> > Name your modules "send_email.py" or "sort_email.py" or if it's a
> > library module of related functions, "email_handling.py". Modules and
> > scripts do things (usually), they should be given action words as
> > names.
>
>
On Feb 2, 9:02 am, Nobody wrote:
> I don't know if that's necessary. Only supporting the "foo.h" case would
> work fine if Python behaved like gcc, i.e. if the "current directory"
> referred to the directory contain the file performing the import rather
> than in the process' CWD.
>
> As it stands
What does this vText() annotation mean in a returned list:-
[['Apr 19', vText(u'PAYE'), ''], ['Mar 31', vText(u'VAT'), ''], ['May 19',
vText(u'Year end PAYE'), '']]
I *guess* it's some sort of indication of non-constant text, I need a
way to make it constant (well, to get a constant copy of
On 2/2/2010 9:13 AM, kj wrote:
As for fixing it, unfortunately it's not quite so simple to fix without
breaking backwards-compatibility. The opportunity to do so for Python 3.0
was missed.
This last point is to me the most befuddling of all. Does anyone
know why this opportunity was missed fo
* Nobody:
On Tue, 02 Feb 2010 15:00:28 +, Grant Edwards wrote:
It turns out that buggy.py imports psycopg2, as you can see, and
apparently psycopg2 (or something imported by psycopg2) tries to
import some standard Python module called numbers; instead it ends
up importing the innocent myscr
Joan Miller wrote:
I've a main function called i.e. *foo()* which has a block of code
that is repetead several times (for the error catching code and error
reporting), but that code has a return to exit of *foo()*
---
foo():
...
if self.background:
_log.exception(str(error)
On Tue, 02 Feb 2010 15:00:28 +, Grant Edwards wrote:
>>> It turns out that buggy.py imports psycopg2, as you can see, and
>>> apparently psycopg2 (or something imported by psycopg2) tries to
>>> import some standard Python module called numbers; instead it ends
>>> up importing the innocent my
On 2 feb, 16:55, Arnaud Delobelle wrote:
> Joan Miller writes:
> > I've a main function called i.e. *foo()* which has a block of code
> > that is repetead several times (for the error catching code and error
> > reporting), but that code has a return to exit of *foo()*
>
> > ---
> > foo()
Joan Miller writes:
> I've a main function called i.e. *foo()* which has a block of code
> that is repetead several times (for the error catching code and error
> reporting), but that code has a return to exit of *foo()*
>
> ---
> foo():
> ...
> if self.background:
> _log.ex
Masklinn wrote:
Jean-Michel Pichavant wrote:
To add a custom level, I would proceed that way:
logging.ALERT = 45
logging.addLevelName(logging.ALERT, 'ALERT !!')
logging.getLogger().log(logging.ALERT, 'test')
Passing a string to the log method as you did is incorrect.
I know it's curr
I've a main function called i.e. *foo()* which has a block of code
that is repetead several times (for the error catching code and error
reporting), but that code has a return to exit of *foo()*
---
foo():
...
if self.background:
_log.exception(str(error))
return Retu
Leo 4.7 beta 3 February 2, 2009
Leo 4.7 beta 3 is now available at:
http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106
Leo 4.7 beta 3 fixes all known serious bugs in Leo.
Leo is a text editor, data organizer, project manager and much more.
See:
http
Jean-Michel Pichavant wrote:
>To add a custom level, I would proceed that way:
>
>logging.ALERT = 45
>logging.addLevelName(logging.ALERT, 'ALERT !!')
>logging.getLogger().log(logging.ALERT, 'test')
>
>Passing a string to the log method as you did is incorrect.
I know it's currently incorrect. My p
Jonathan Gardner wrote:
One of the bad things with languages like perl and Ruby that call
without parentheses is that getting a function ref is not obvious. You
need even more syntax to do so. In perl:
foo(); # Call 'foo' with no args.
$bar = foo; # Call 'foo; with no args, assign to '
On Tue, Feb 2, 2010 at 6:13 AM, kj wrote:
> In Steven
> D'Aprano writes:
>
> >As for fixing it, unfortunately it's not quite so simple to fix without
> >breaking backwards-compatibility. The opportunity to do so for Python 3.0
> >was missed.
>
> This last point is to me the most befuddling of a
On 2010-02-02, VYAS ASHISH M-NTB837 wrote:
>
> Dear All
>
> I want to capture tcp packets in python. I need to do this on both
> Windows and Linux on python3.1
>
> I came across the following:
> http://sourceforge.net/projects/pycap/
> http://sourceforge.net/projects/pylibpcap/
> http://code.goo
On 2010-02-02, Roy Smith wrote:
> In article , kj
> wrote:
>
>> Through a *lot* of trial an error I finally discovered that the
>> root cause of the problem was the fact that, in the same directory
>> as buggy.py, there is *another* innocuous little script, totally
>> unrelated, whose name happe
[snip]
>> 2. side effect of (maybe) leaking the iterator variable "value" into
>> the code following the loop (if the iterator is not empty).
>
> So? it is sometime useful.
Except that you can't guarantee that it will be set since the for loop
will not execute if the iterable is empty.
>>
>> I ca
Peter Otten wrote:
mk wrote:
Is there an easy way to get an editing (readline) in Python that would
contain string for editing and would not just be empty?
http://mail.python.org/pipermail/python-list/2009-June/1209309.html
Peter
Thanks a lot! Just what I needed.
Regards,
mk
--
http://m
Let me preface everything by thanking you and all those who
replied for their comments.
I have only one follow-up question (or rather, set of related
questions) that I'm very keen about, plus a bit of a vent at the
end.
In Steven D'Aprano
writes:
>As for fixing it, unfortunately it's not qu
mk wrote:
> Is there an easy way to get an editing (readline) in Python that would
> contain string for editing and would not just be empty?
http://mail.python.org/pipermail/python-list/2009-June/1209309.html
Peter
--
http://mail.python.org/mailman/listinfo/python-list
Le Tue, 02 Feb 2010 00:12:34 +0100, Martin v. Loewis a écrit :
>> recv_into() should simply be fixed to use the new buffer API, as it
>> does in 3.x.
>
> I don't think that's the full solution. The array module should also
> implement the new buffer API, so that it would also fail with the old
> r
On Tue, Feb 2, 2010 at 5:24 AM, mk wrote:
> Hello,
>
> Is there an easy way to get an editing (readline) in Python that would
> contain string for editing and would not just be empty?
>
> I googled but found nothing.
Er...: http://docs.python.org/library/readline.html
It's the third hit for "pyth
Hello,
Is there an easy way to get an editing (readline) in Python that would
contain string for editing and would not just be empty?
I googled but found nothing.
Regards,
mk
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Feb 2, 2010 at 3:20 AM, mk wrote:
> Exception in thread Thread-9 (most likely raised during interpreter
> shutdown):
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/threading.py", line 522, in
> __bootstrap_inner
> File "/var/www/html/cssh.py", line 875, in run
> F
Masklinn wrote:
When trying to load the following config file, I get an error
``ConfigParser.NoOptionError: No option 'handlers' in section: 'logger_0'`` (in
both Python 2.6.4 and Python 3.1.1 on OSX, obviously ConfigParser is spelled
configparser in 3.1):
[loggers]
keys=root,0
[
Hello,
I've seen many messages and bug reports on popen2 about pipes, buffer
size problems, sub-processes not properly closed, race conditions,
popen2 not being thread safe... But I still can't figure what applies
to my case.
This piece of code:
#!/usr/bin/python
import threading
import popen2
Everyone,
I'm pleased to annouce the final release of GMPY 1.11.
GMPY is a wrapper for the MPIR or GMP multiple-precision
arithmetic library. GMPY 1.11 is available for download from:
http://code.google.com/p/gmpy/
In addition to support for Python 3.x, there are several new
features in this r
On Jan 29, 7:07 pm, Steven D'Aprano wrote:
> On Fri, 29 Jan 2010 14:49:06 -0800, Jonathan Gardner wrote:
> > On Jan 28, 3:52 pm, elsa wrote:
>
> >> I've got a problem with my program, in that the code just takes too
> >> long to run. Here's what I'm doing. If anyone has any tips, they'd be
> >> m
Exception in thread Thread-9 (most likely raised during interpreter
shutdown):
Traceback (most recent call last):
File "/usr/local/lib/python2.6/threading.py", line 522, in
__bootstrap_inner
File "/var/www/html/cssh.py", line 875, in run
File "/var/www/html/cssh.py", line 617, in ssh_co
Carl Banks wrote:
On Feb 1, 7:33 pm, Tim Chase wrote:
Stephen Hansen wrote:
First, I don't shadow built in modules. Its really not very hard to avoid.
Given the comprehensive nature of the batteries-included in
Python, it's not as hard to accidentally shadow a built-in,
unknown
Steven D'Aprano wrote:
> On Sat, 30 Jan 2010 16:58:34 +, tanix wrote:
[...]
> > The very idea of using a number of blanks to identify your block level
> > is as insane as it gets.
>
> Not at all. People do it all the time. The very idea of expecting people
> to count nested braces to identify
On Feb 2, 3:28 am, Steven D'Aprano
wrote:
>
> There is no module numbers in the standard library, at least not in 2.5.
It's new in 2.6 (and 3.0, I think; it's there in 3.1, anyway). It
provides abstract base classes for numeric types; see the fractions
module source for some of the ways it can
>>> Personally, I think it is a terribly idea to keep the source file and
>>> byte code file in such radically different places. They should be kept
>>> together. What you call "clutter" I call having the files that belong
>>> together kept together.
>>
>> I see why you think so, it's reasonable, h
Nobody writes:
> A better metric is whether using N features has O(N) complexity, or O(N^2)
> (where you have to understand how each feature relates to each other
> feature) or even O(2^N) (where you have to understand every possible
> combination of interactions).
M. Felleisen wrote a paper tryi
99 matches
Mail list logo