Hi all,
I use the finite element package ABAQUS that is partly built around python
2.4.3.
ABAQUS ships with its own version of python 2.4.3 but it comes without third
party
libraries, e.g. numpy and scipy. In order to load these modules into ABAQUS
python
I must install python 2.4.3. on my opensuse
> /home/fetchinson/pyzui/pyzui/tilestore.py:22: DeprecationWarning: the
> sha module is deprecated; use the hashlib module instead
> import sha
Yeah, I'd noticed that. It's fixed in the repository now.
On Dec 16, 10:55 pm, Daniel Fetchinson
wrote:
> > PyZUI 0.1 has been released:
>
> >http://da
> Personally I see a merging of normal app windows and a zui: some kind of new
> window manager.
Have you seen Eagle Mode[1]?
[1] http://eaglemode.sourceforge.net/
On Dec 17, 5:14 pm, Donn wrote:
> On Wednesday 16 December 2009 07:03:19 David Roberts wrote:> It involves
> scaling an image to va
On Thursday 17 December 2009 10:54:59 David Roberts wrote:
> Have you seen Eagle Mode[1]?
>
Yes. It's a strange beast. Good start I think; but addicted to zooming, to the
detriment of the managing aspects I think. Still, here I sit writing no code
and pontificating!
\d
--
\/\/ave: donn.in...@g
Hi there,
The ftplib has a timeout parameter in Python 2.6 and above.
Is there a way to set a timeout in Python 2.4?
Regards
Nico
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Dec 17, 2009 at 3:34 AM, shrini wrote:
> Hi,
>
> I am trying to scrap the website 'http://service.ringcentral.com'
>
> It has a form with three input boxes.
>
> When trying to get the form with mechanize, it is throwing the
> following error.
>
> mechanize._mechanize.FormNotFoundError: no
On 2009-12-16, J Kenneth King wrote:
> The language doesn't encourage anything. It's just a medium
> like oil paints and canvas. A painting can be good or bad
> despite the medium it is constructed on. The skill of the
> painter is what matters.
Technically, oil paints do encourage a certain k
As csv.reader does not suport utf-8 encoded files, I'm using:
fp = codecs.open(arquivoCSV, "r", "utf-8")
self.tab=[]
for l in fp:
l=l.replace('\"','').strip()
self.tab.append(l.split(','))
It works much better except that when I do self.sel.type("q", ustring)
where ustring is a unicode st
Thanks Zeph.
--
http://mail.python.org/mailman/listinfo/python-list
I'm having trouble getting to gmail messages. I can access my googlemail
account through imap with no problems, that's an old one. The problem is
trying to get to my current gmail account, which is actually
t...@tonyburrows.com. The page shows up as
mail.google.com/a/tonyburrows.com and I ca
Intchanter / Daniel Fackrell wrote:
> http://mail.google.com/support/bin/answer.py?hl=en&answer=77654
Thanks!
Actually I had a sudden inspiration last night as I went to bed. I'd set
up Thunderbird, all I needed to do was use the same full h...@domain as the
username. Stupid, stupid - I'd wa
Python Goldmine has been updated as of dec 15 2009.
http://preciseinfo.org/Convert/index_Convert_Python.html
Mirrors:
http://pythongoldmine.vndv.com.
--
http://mail.python.org/mailman/listinfo/python-list
In article
<183af5d2-e157-4cd6-bec6-8997809e1...@d21g2000yqn.googlegroups.com>,
Mensanator wrote:
> Oh, I don't know, maybe because I'm thinking about
> buying one and seeing 2.3, 2.4 and 2.5 directories
> on the model in the store made me wary.
That's odd since, AFAIK, Apple has never released
2009/12/17 Johan Ekh :
> Hi all,
> I use the finite element package ABAQUS that is partly built around python
> 2.4.3.
> ABAQUS ships with its own version of python 2.4.3 but it comes without third
> party
> libraries, e.g. numpy and scipy. In order to load these modules into ABAQUS
> python
> I mu
Scipy needs various libraries. On Ubuntu (which I use) -
Depends: python (< 2.7), python (>= 2.5), python-central (>= 0.6.11),
python-numpy (>= 1:1.2.0), libblas3gf | libblas.so.3gf |
libatlas3gf-base, libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libgfortran3
(>= 4.3), liblapac
On 12/17/2009 2:33 AM, Dave Angel wrote:
Victor Subervi wrote:
On Tue, Dec 15, 2009 at 6:57 PM, r0g wrote:
Cookies in FF for Windows are stored in an sqlite database in here...
~\Application Data\Mozilla\Firefox\Profiles\%XYZ%\firefox_profile\
Man, I searched C drive (the only drive) o
On Dec 17, 4:23 am, "thunderf...@gmail.com"
wrote:
> not as slick as Emile's (didn't think about using strip() ), but
> seemingly functional:
>
> data = ['key1: data1','key2: data2','key3: data3',' key4: ','
> \tdata4.1',' \tdata4.2',' \tdata4.3','key5: data5']
> result = {}
>
> for item in data:
Hi,
On Thu, Dec 17, 2009 at 1:14 PM, Sverre wrote:
> After converting a PIL image in memory to an array with numpy.asarray
> (), I make a adthreshold() with pymorph() with the result, that all
> pixels in the array are either false or true (boolean). But my try to
> convert this back into PIL fo
Is it correct that low-level file handles are not being closed after
doing
fd = open(filepath)
fd.close()
If so, what is the rationale?
This seems to result in system errors when trying to (re-)move or
reopen "closed" files, as well as when opening (and closing) too many
files under Windows.
Nico Grubert wrote:
> Hi there,
>
> The ftplib has a timeout parameter in Python 2.6 and above.
> Is there a way to set a timeout in Python 2.4?
>
> Regards
> Nico
I don't know of one so you may need a workaround. What platforms do you
need to support?
Roger.
--
http://mail.python.org/mailman
>
> -- Forwarded message --
> From: Javier Collado
> To: Raji Seetharaman
> Date: Sat, 12 Dec 2009 12:52:27 +0100
> Subject: Re: When to use mechanize and Windmill library during WebScraping
> ?
> Hello,
>
> If a script that uses mechanize fails to find an html node that has
> bee
> Be sure to look at Scrapy too: http://scrapy.org
>
>
> Thank U
Raji. S
--
http://mail.python.org/mailman/listinfo/python-list
>> /home/fetchinson/pyzui/pyzui/tilestore.py:22: DeprecationWarning: the
>> sha module is deprecated; use the hashlib module instead
>> import sha
> Yeah, I'd noticed that. It's fixed in the repository now.
Great, thanks, pulled it and all looks good.
Cheers,
Daniel
>> > PyZUI 0.1 has been re
2009/12/17 Johan Ekh :
> But I have them installed already! I have scipy installed under python 2.6
> and everything runs perfect.
ok
> It is only under python 2.4 that the install script can not find the
> libraries. I need to tell the script to
> lookin /usr/lib64 instead /usr/lib, how can I do
Hello Dani,
2009/12/17 Dani :
> Is it correct that low-level file handles are not being closed after
> doing
> fd = open(filepath)
> fd.close()
> If so, what is the rationale?
No, it is incorrect. I tested that exact snippet here and it correctly
closes the file. I can move the file around just
Dani wrote:
Is it correct that low-level file handles are not being closed after
doing
fd = open(filepath)
fd.close()
no, you are not correct.
Demonstration:
Cmd window #1:
c:\temp> echo hello world > x.txt
Cmd window #2
c:\temp> python
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v
I don't know of one so you may need a workaround. What platforms do you
> need to support?
Suse Linux Enterprise 10, 64 Bit with Python 2.4.4.
I need the Python 2.4.4 for a running application Server (Zope).
--
http://mail.python.org/mailman/listinfo/python-list
Sverre wrote:
> After converting a PIL image in memory to an array with numpy.asarray
> (), I make a adthreshold() with pymorph() with the result, that all
> pixels in the array are either false or true (boolean). But my try to
> convert this back into PIL format is failing
>
> img = Image.fromar
> No, it is incorrect. I tested that exact snippet here and it correctly
> closes the file. I can move the file around just after that.
Yes, indeed. Sorry for not getting my facts straight and thank you for
testing. Part of the code *was* holding a low-level file handle.
--
http://mail.python.or
En Wed, 16 Dec 2009 11:09:32 -0300, Ed Keith escribió:
I am having a problem when substituting a raw string. When I do the
following:
re.sub('abc', r'a\nb\nc', '123abcdefg')
I get
"""
123a
b
cdefg
"""
what I want is
r'123a\nb\ncdefg'
On 12/16/2009 9:35 AM, Gabriel Genellina wrote:
Fr
Does anyone have any recommendations on which version of the
MSVC?90.DLL's need to be distributed with a Python 2.6.4 PY2EXE (0.6.9)
based executable? (I assume I need just a matching pair of MSVCR90.DLL
and MSVCP90.DLL?)
My understanding is that I need to match the version of the DLL's that
my ve
Le Tue, 15 Dec 2009 08:08:01 -0800, Infinity77 a écrit :
>
> When building C extensions In Python 2.X, there was a magical
> PyMethod_GET_CLASS implemented like this:
>
> #define PyMethod_GET_CLASS(meth) \
> (((PyMethodObject *)meth) -> im_class)
>
> It looks like Python 3 has wiped ou
On Thu, Dec 17, 2009 at 5:33 AM, Ned Deily wrote:
>
>> > or (for MacPorts fans):
>> >
>> > $ sudo port install python31
>>
>>
>> And since I haven't got one, this also tells me nothing.
>
> http://www.macports.org/
>
> "The MacPorts Project is an open-source community initiative to design
> an eas
"Alan G Isaac" wrote in message
news:qemdnrut0jvj1lfwnz2dnuvz_vqdn...@rcn.net...
> Naturally enough. So I think the right answer is:
>
> 1. this is a documentation bug (i.e., the documentation
>fails to specify unexpected behavior for raw strings), or
> 2. this is a bug (i.e., raw strings
On Dec 16, 11:09 pm, J Wolfe wrote:
> Probably a stupid question, but can you have a frames in a toplevel
> widget? Anything I try to put in a frame goes back to the main or root
> widget and not the toplevel or pop-up widget.
>
> Thanks for the help!
> Jonathan
Thank you John,
from Tkinter impo
sturlamolden wrote:
On 17 Des, 03:41, "W. eWatson" wrote:
His program was originally written in Python, but a new
hardware device (capture card) had no good interface with Python, so he
wrote it in C++, which does. From my knowledge of the Python program
before the entry of c++, it seems he co
Alf P. Steinbach wrote:
* W. eWatson:
See Subject msg from Python 2.5 Win XP. It is preceded by a "Socket
Error". It happened while I had a simple program displayed, and I
wanted to see the shell. The msg occurred when I pressed Shell on Run
from the menu. I played around for awhile, but got n
On 17 Des, 15:45, Peter Otten <__pete...@web.de> wrote:
>
> This has come up before, see
>
> http://mail.python.org/pipermail/python-list/2009-October/1221578.html
>
> Peter
Thank you!
--
http://mail.python.org/mailman/listinfo/python-list
> I have a couple of thoughts:
> 1. Since [:] by convention already creates a copy, it might violate
> people's expectations if that syntax were used.
Indeed, listagent returns self on __getitem__[:]. What I meant was
this:
x = [0, 1, 2, 3, 4, 5, 6, 7]
a = listagent(x)[::2]
a[:] = listagent
On 12/17/2009 11:24 AM, Richard Brodie wrote:
A raw string is not a distinct type from an ordinary string
in the same way byte strings and Unicode strings are. It
is a merely a notation for constants, like writing integers
in hexadecimal.
(r'\n', u'a', 0x16)
('\\n', u'a', 22)
Yes, that was
On Dec 17, 6:05 am, Sallu wrote:
> Hi i tried with thunderfoot code
>
> error:
>
> Traceback (most recent call last):
> File "", line 8, in ?
> ValueError: need more than 1 value to unpack- Hide quoted text -
>
hence, my 'seemingly' functional qualification. :)
that's most likely to due to a d
On Thu, 17 Dec 2009 11:51:26 -0500
Alan G Isaac wrote:
> >>> re.sub('abc', r'a\nb\n.c\a','123abcdefg') == re.sub('abc',
> 'a\\nb\\n.c\\a',' 123abcdefg') == re.sub('abc', 'a\nb\n.c\a','123abcdefg')
> True
Was this a straight cut and paste or did you make a manual change? Is
tha
Alan G Isaac wrote:
On 12/17/2009 11:24 AM, Richard Brodie wrote:
A raw string is not a distinct type from an ordinary string
in the same way byte strings and Unicode strings are. It
is a merely a notation for constants, like writing integers
in hexadecimal.
(r'\n', u'a', 0x16)
('\\n', u'a',
Hello all
I am testing my code with list comprehensions against for loops.
the loop:
dipList=[float(val[1]) for val in datalist]
dip1=[]
for dp in dipList:
if dp == 90:
dip1.append(dp - 0.01)
else:
dip1.append(dp)
listcomp:
dipList=[float
wrote:
>Does anyone have any recommendations on which version of the
>MSVC?90.DLL's need to be distributed with a Python 2.6.4 PY2EXE (0.6.9)
>based executable? (I assume I need just a matching pair of MSVCR90.DLL
>and MSVCP90.DLL?)
Either the one the came with your copy Microsoft Visual C++ or P
On 12/17/2009 2:14 AM, Donn wrote:
On Wednesday 16 December 2009 07:03:19 David Roberts wrote:
It involves scaling an image to various resolutions, and partitioning
them into fixed-size tiles. It's roughly the same technique used by
Google Maps/Earth.
Thanks. That gives me something to go on. W
* Carlos Grohmann:
Hello all
I am testing my code with list comprehensions against for loops.
the loop:
dipList=[float(val[1]) for val in datalist]
dip1=[]
for dp in dipList:
if dp == 90:
dip1.append(dp - 0.01)
else:
dip1.append(dp)
listcomp
Alan G Isaac wrote:
>>> re.sub('abc', r'a\nb\n.c\a','123abcdefg') == re.sub('abc',
'a\\nb\\n.c\\a','123abcdefg') == re.sub('abc', 'a\nb\n.c\a','123abcdefg')
True
Why are the first two strings being treated as if they are the last one?
On 12/17/2009 12:19 PM, D'Arcy J.M.
On Dec 17, 4:33 am, Ned Deily wrote:
> In article
> <183af5d2-e157-4cd6-bec6-8997809e1...@d21g2000yqn.googlegroups.com>,
>
> Mensanator wrote:
> > Oh, I don't know, maybe because I'm thinking about
> > buying one and seeing 2.3, 2.4 and 2.5 directories
> > on the model in the store made me wary.
On Dec 17, 10:12 am, Benjamin Kaplan wrote:
> On Thu, Dec 17, 2009 at 5:33 AM, Ned Deily wrote:
>
> >> > or (for MacPorts fans):
>
> >> > $ sudo port install python31
>
> >> And since I haven't got one, this also tells me nothing.
>
> >http://www.macports.org/
>
> > "The MacPorts Project is an op
On Dec 17, 1:40 am, geremy condra wrote:
> On Thu, Dec 17, 2009 at 2:25 AM, Mensanator wrote:
> > On Dec 16, 8:45 pm, Ned Deily wrote:
> >> In article
> >> <88bab2c0-d27c-4081-a703-26b353b9e...@9g2000yqa.googlegroups.com>,
>
> >> Mensanator wrote:
> >> > Oh, and about Chapter 1.
>
> >> > If you
On Thursday 17 December 2009 19:46:41 Terry Reedy wrote:
> His idea was for a document rather than
> app centric plain.
These days I find the notion of monolithic apps to be a pita.
The concept of many small black boxes (but open source) that each do a single
job and pipe in/out is so much more
In the Ubuntu 9.10 version of Python 3.1 (using your patch), there's a
related bug:
>>> foo(b='b')
will set the value of a in the extension module to zero, thus clearing
whatever
default value it may have had. In other words, the optional character
arguments
that are skipped seem to be nulled by
On Dec 17, 5:36 pm, Ross Ridge wrote:
> wrote:
> >Does anyone have any recommendations on which version of the
> >MSVC?90.DLL's need to be distributed with a Python 2.6.4 PY2EXE (0.6.9)
> >based executable? (I assume I need just a matching pair of MSVCR90.DLL
> >and MSVCP90.DLL?)
>
> Either the o
Alan G Isaac wrote:
Alan G Isaac wrote:
>>> re.sub('abc', r'a\nb\n.c\a','123abcdefg') ==
re.sub('abc', 'a\\nb\\n.c\\a','123abcdefg') == re.sub('abc',
'a\nb\n.c\a','123abcdefg')
True
Why are the first two strings being treated as if they are the last one?
On 12/17/2009
On Thu, Dec 17, 2009 at 8:41 AM, Anh Hai Trinh wrote:
>> I have a couple of thoughts:
>> 1. Since [:] by convention already creates a copy, it might violate
>> people's expectations if that syntax were used.
>
> Indeed, listagent returns self on __getitem__[:]. What I meant was
> this:
>
> x = [0
On 12/17/2009 2:45 PM, MRAB wrote:
re.compile('a\\nc') _does_ compile to the same as regex as
re.compile('a\nc').
However, regex objects never compare equal to each other, so, strictly
speaking, re.compile('a\nc') != re.compile('a\nc').
However, having said that, the re module contains a cache
On Dec 16, 3:02 pm, "eric_dex...@msn.com" wrote:
> On Dec 16, 10:36 am, Paul Boddie wrote:
>
>
>
> > On 16 Des, 17:03, "eric_dex...@msn.com" wrote:
>
> > > #this should be a cross platform example of os.startfile ( startfile )
> > > #for windows and linux. this is the first version and
> > > #l
On Thu, 17 Dec 2009 02:09:03 -0500, Martin P. Hellwig
wrote:
mrstevegross wrote:
Ok, I would like to put together a Python/Tkinter dialog box that
displays a simple message and self-destructs after N seconds. Is there
a simple way to do this?
Thanks,
--Steve
Just, thinking aloud, I proba
Jonathan Hartley wrote:
> Only this week I sent a py2exe-derived executable to someone else (a
> non-developer) and it would not run on their WinXP machine ("'The
> system cannot execute the specified program'") - my current favourite
> hypothesis is that my omission of this dll or something simila
Alan G Isaac wrote:
On 12/17/2009 2:45 PM, MRAB wrote:
re.compile('a\\nc') _does_ compile to the same as regex as
re.compile('a\nc').
However, regex objects never compare equal to each other, so, strictly
speaking, re.compile('a\nc') != re.compile('a\nc').
However, having said that, the re mod
Jonathan Hartley wrote:
>1) I don't understand why the OP's question doesn't deserve a literal
>answer ...
I gave what I thought was a simple, direct and literal answer.
>.. isn't one of those DLLs in the WinSxS directory derived from
>his MSVC install?
I have no idea. He might not even have
I have a bin file that i read as:
in_file = open('primo.ske', 'rb')
leggo = luca.readlines()
i get a list like :
['\x00\x80p\x8b\x00\x00\x01\x19\x9b\x11\xa1\xa1\x1f\xc9\x12\xaf\x81!
\x84\x01\x00\x01\x01\x02\xff\xff\x80\x01\x03\xb0\x01\x01\x10m\x7f\n',
etc...]
but if i try to print luca[0]
i get
On Thu, Dec 17, 2009 at 3:59 PM, luca72 wrote:
> I have a bin file that i read as:
> in_file = open('primo.ske', 'rb')
> leggo = luca.readlines()
>
> i get a list like :
> ['\x00\x80p\x8b\x00\x00\x01\x19\x9b\x11\xa1\xa1\x1f\xc9\x12\xaf\x81!
> \x84\x01\x00\x01\x01\x02\xff\xff\x80\x01\x03\xb0\x01\x0
Hi All,
I have this simple function:
def execute(command):
process = Popen(command.split(),stderr=STDOUT,stdout=PIPE)
return process.communicate()[0]
..but my unit test for it fails:
from testfixtures import tempdir,compare
from unittest import TestCase
class TestExecute(TestCase):
Nico Grubert wrote:
>> I don't know of one so you may need a workaround. What platforms do you
>> need to support?
>
> Suse Linux Enterprise 10, 64 Bit with Python 2.4.4.
> I need the Python 2.4.4 for a running application Server (Zope).
OK, then one approach would be to use signals.alarm(timeo
On 09:15 pm, ch...@simplistix.co.uk wrote:
Hi All,
I have this simple function:
def execute(command):
process = Popen(command.split(),stderr=STDOUT,stdout=PIPE)
return process.communicate()[0]
..but my unit test for it fails:
from testfixtures import tempdir,compare
from unittest impo
exar...@twistedmatrix.com wrote:
How can I get this to be the case?
You probably just need to flush stdout and stderr after each write. You
set them up to go to the same underlying file descriptor, but they still
each have independent buffering on top of that.
Okay, but if I do:
os.system
On 09:56 pm, ch...@simplistix.co.uk wrote:
exar...@twistedmatrix.com wrote:
How can I get this to be the case?
You probably just need to flush stdout and stderr after each write.
You set them up to go to the same underlying file descriptor, but they
still each have independent buffering on t
exar...@twistedmatrix.com wrote:
libc is probably giving you line buffering when you use os.system
(because the child process inherits the parent's stdio, and the parent's
stdio is probably a pty, and that's the policy libc implements).
Interesting, but do these assertions still hold true wh
Jerry Hill wrote:
On Thu, Dec 17, 2009 at 3:59 PM, luca72 wrote:
I have a bin file that i read as:
in_file =pen('primo.ske', 'rb')
leggo =uca.readlines()
i get a list like :
['\x00\x80p\x8b\x00\x00\x01\x19\x9b\x11\xa1\xa1\x1f\xc9\x12\xaf\x81!
\x84\x01\x00\x01\x01\x02\xff\xff\x80\x01\x03\x
On 18/12/2009 7:44 AM, Ross Ridge wrote:
The "P" DLL is for C++ and so the original poster may not actually need
it. I'm pretty sure Python itself doesn't need it, and py2exe shouldn't
either, but wxPython, or more precisely wxWidgets, almost certainly does.
So in your case you'll probably need
On 18/12/2009 9:33 AM, Chris Withers wrote:
exar...@twistedmatrix.com wrote:
libc is probably giving you line buffering when you use os.system
(because the child process inherits the parent's stdio, and the
parent's stdio is probably a pty, and that's the policy libc implements).
Interesting
On 12/17/2009 5:33 PM, Chris Withers wrote:
exar...@twistedmatrix.com wrote:
libc is probably giving you line buffering when you use os.system
(because the child process inherits the parent's stdio, and the
parent's stdio is probably a pty, and that's the policy libc implements).
Interesting
On Thu, 17 Dec 2009 20:18:12 -, Alan G Isaac
wrote:
So is the bottom line the following?
A string replacement is not just "converted"
as described in the documentation, essentially
it is compiled?
That depends entirely on what you mean.
But that cannot quite be right. E.g., \b will b
On Mon, 14 Dec 2009 14:18:49 -0500, Terry Reedy wrote:
> Many more people uses range objects (xrange in 2.x). A range object has
> the same info as a slice object *plus* it is iterable.
This isn't quite true, as a range cannot have a stop value of None, i.e.
you can't represent [n:] or [:] etc a
Hi folks,
I am new to python and am having some trouble parsing a file.
I wish to parse a file and ensure that the format meets certain
restrictions.
The file format is as below (abbreviated):
c this is a comment
p wcnf 1468 817439 186181
286 32 0
186191 -198 -1098 0
186191 98 -1098 1123 0
Li
seafoid wrote:
Hi folks,
I am new to python and am having some trouble parsing a file.
I wish to parse a file and ensure that the format meets certain
restrictions.
The file format is as below (abbreviated):
c this is a comment
p wcnf 1468 817439 186181
286 32 0
186191 -198 -1098 0
186191 98
seafoid writes:
> Hi folks,
>
> I am new to python and am having some trouble parsing a file.
It really sounds like you need something that generates a parser for you
based on a grammar instead of trying to code your own parser.
See: http://wiki.python.org/moin/LanguageParsing
for an overview o
MRAB-2
Thank you for that!
Funny how something so simple clarifies a whole lot!
I will crack on now!
Once again,
Cheers and Thanks!
--
View this message in context:
http://old.nabble.com/Parsing-file-format-to-ensure-file-meets-criteria-tp26837682p26838085.html
Sent from the Python - python
Hi John,
I considered that, but in an attempt to really figure out this supposedly
simple language, I figure that I should try and solve this.
I will check out the modules for future reference.
Thanks,
Seafoid :-)
--
View this message in context:
http://old.nabble.com/Parsing-file-format-to-
In article
,
Mensanator wrote:
> > That's the disk image for the OS X Python 3.1.1 installer.
>
> But it doesn't say whether that disk image is compatible with
> Snow Leopard and I don't take such things for granted.
That's a good point. There should be stated there somewhere about which
o
On Thu, 17 Dec 2009 12:07:59 -0800, Brendan Miller wrote:
> I was thinking it would be cool to make python more usable in
> programming competitions by giving it its own port of the STL's
> algorithm library, which needs something along the lines of C++'s more
> powerful iterators.
For the benefi
The latest 3.97a release of the Zeus for Windows IDE is
now available:
http://www.zeusedit.com/whatsnew.html
Zeus is fully configurable, language neutral IDE.
It comes pre-configured with Python syntax highlighting
and code folding.
It is also possible to write Zeus scripts using Python.
Jus
I use distutils / setup.py to install 'packagename', where...
/packagename
__init__.py
modulename.py
modulename.py has a class named 'classname'.
>From an arbitrary python module, I 'import packagename'.
In said module, I want to use the 'classname' class from
'packagename.modulename', by
Phil writes:
> I use distutils / setup.py to install 'packagename', where...
> /packagename
> __init__.py
> modulename.py
>
> modulename.py has a class named 'classname'.
As per PEP 8, it's best if user-defined classes are named with
TitleCase, so ‘ClassName’.
> From an arbitrary python
I understand all of the above, including the reasons as to why this is
bad. For purposes of experimenting, I would still like to do it.
I guess I'm (still) wondering how it is done in webpy. I recall seeing
it done elsewhere too.
All I noticed was that in webpy's package 'web', it defines the
'ap
Hi All,
Apologies if you receive multiple copies of this, my python-announce
posts don't seem to be making it through.
I've just released a new python module called "withrestart". It's an
attempted Pythonisation of the restart-based condition system of Common
Lisp. Details are on PyPI:
On Thu, Dec 17, 2009 at 6:44 PM, Steven D'Aprano
wrote:
> On Thu, 17 Dec 2009 12:07:59 -0800, Brendan Miller wrote:
>
>> I was thinking it would be cool to make python more usable in
>> programming competitions by giving it its own port of the STL's
>> algorithm library, which needs something alon
On Wed, Dec 16, 2009 at 10:46 PM, Gabriel Rossetti <
gabriel.rosse...@arimaz.com> wrote:
> Hello everyone,
>
> I'm going nuts with some regex, could someone please show me what I'm doing
> wrong?
>
> I have an XMPP msg :
>
>
>
>
> 123
> 456
>
> ...
>
MRAB wrote:
Regular expressions and replacement strings have their own escaping
mechanism, which also uses backslashes.
This seems like a misfeature to me. It makes sense for
a regular expression to give special meanings to backslash
sequences, because it's a sublanguage with its own syntax.
B
Hi,
I want to share dictionary between two distinct processes.
Something like this:
first.py
import magic_share_module
def create_dictionary():
return {"a": 1}
magic_share_module.share("shared_dictionary",
creator.create_dictionary)
while True:
pass
second.py
import magic_share_mod
92 matches
Mail list logo