Don't miss your chance to attend our upcoming Florida
Python training class next month. This 3-day public
class is being held January 19-21, in Sarasota, Florida.
It is open to both individual and group enrollments.
For more details on the class, as well as registration
instructions, please
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
The Bazaar team is happy to announce availability of a new releases of
the bzr adaptive version control system. Bazaar is part of the GNU
system http://gnu.org/.
The third release of Bazaar 2.0 (2.0.3) has a small handful of bugfixes.
As expected,
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
/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 fetchin...@googlemail.com
wrote:
PyZUI 0.1 has been
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 donn.in...@gmail.com wrote:
On Wednesday 16 December 2009 07:03:19 David Roberts wrote: It involves
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:
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 tshriniva...@gmail.com 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.
On 2009-12-16, J Kenneth King ja...@agentultra.com 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
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 string
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
Intchanter / Daniel Fackrell wrote:
http://mail.google.com/support/bin/answer.py?hl=enanswer=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
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 mensana...@aol.com 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
2009/12/17 Johan Ekh ekh.jo...@gmail.com:
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
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), liblapack3gf |
On 12/17/2009 2:33 AM, Dave Angel wrote:
Victor Subervi wrote:
On Tue, Dec 15, 2009 at 6:57 PM, r0g aioe@technicalbloke.com wrote:
snip
Cookies in FF for Windows are stored in an sqlite database in here...
~\Application Data\Mozilla\Firefox\Profiles\%XYZ%\firefox_profile\
Man, I
On Dec 17, 4:23 am, thunderf...@gmail.com 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
Hi,
On Thu, Dec 17, 2009 at 1:14 PM, Sverre sverreodeg...@gmail.com 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
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.
--
-- Forwarded message --
From: Javier Collado javier.coll...@gmail.com
To: Raji Seetharaman sraji...@gmail.com
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
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 released:
2009/12/17 Johan Ekh ekh.jo...@gmail.com:
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
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
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 =
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.
--
En Wed, 16 Dec 2009 11:09:32 -0300, Ed Keith e_...@yahoo.com 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
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
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 out the
On Thu, Dec 17, 2009 at 5:33 AM, Ned Deily n...@acm.org 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 easy-to-use
Alan G Isaac alan.is...@gmail.com 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
On Dec 16, 11:09 pm, J Wolfe vorticitywo...@gmail.com 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,
sturlamolden wrote:
On 17 Des, 03:41, W. eWatson wolftra...@invalid.com 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
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
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[:] =
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
On Dec 17, 6:05 am, Sallu praveen.sunsetpo...@gmail.com wrote:
Hi i tried with thunderfoot code
error:
Traceback (most recent call last):
File stdin, line 8, in ?
ValueError: need more than 1 value to unpack- Hide quoted text -
hence, my 'seemingly' functional qualification. :)
that's
On Thu, 17 Dec 2009 11:51:26 -0500
Alan G Isaac alan.is...@gmail.com 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
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:
pyt...@bdurham.com 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
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.
* 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)
Alan G Isaacalan.is...@gmail.com 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 Dec 17, 4:33 am, Ned Deily n...@acm.org wrote:
In article
183af5d2-e157-4cd6-bec6-8997809e1...@d21g2000yqn.googlegroups.com,
Mensanator mensana...@aol.com 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
On Dec 17, 10:12 am, Benjamin Kaplan benjamin.kap...@case.edu wrote:
On Thu, Dec 17, 2009 at 5:33 AM, Ned Deily n...@acm.org 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
On Dec 17, 1:40 am, geremy condra debat...@gmail.com wrote:
On Thu, Dec 17, 2009 at 2:25 AM, Mensanator mensana...@aol.com wrote:
On Dec 16, 8:45 pm, Ned Deily n...@acm.org wrote:
In article
88bab2c0-d27c-4081-a703-26b353b9e...@9g2000yqa.googlegroups.com,
Mensanator mensana...@aol.com
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 rri...@csclub.uwaterloo.ca wrote:
pyt...@bdurham.com 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
Alan G Isaac wrote:
Alan G Isaacalan.is...@gmail.com 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 Thu, Dec 17, 2009 at 8:41 AM, Anh Hai Trinh anh.hai.tr...@gmail.com 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
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 eric_dex...@msn.com wrote:
On Dec 16, 10:36 am, Paul Boddie p...@boddie.org.uk wrote:
On 16 Des, 17:03, eric_dex...@msn.com eric_dex...@msn.com wrote:
#this should be a cross platform example of os.startfile ( startfile )
#for windows and linux.
On Thu, 17 Dec 2009 02:09:03 -0500, Martin P. Hellwig
martin.hell...@dcuktec.org 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
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 similar was
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
Jonathan Hartley tart...@tartley.com 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
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
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(timeout) to
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
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:
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
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).
snip
Interesting, but do these assertions still hold
Jerry Hill wrote:
On Thu, Dec 17, 2009 at 3:59 PM, luca72 lucabe...@libero.it 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!
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).
snip
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).
snip
On Thu, 17 Dec 2009 20:18:12 -, Alan G Isaac alan.is...@gmail.com
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
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 as
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
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 fitzp...@tcd.ie 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
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 -
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:
In article
b0b60848-9a66-4f84-ab89-d84ea3904...@a21g2000yqc.googlegroups.com,
Mensanator mensana...@aol.com 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
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 benefit
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.
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 phil...@gmail.com 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
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
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
st...@remove-this-cybersource.com.au 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
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 :
message xmlns='jabber:client' to='n...@host.com'
mynode xmlns='myprotocol:core'
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.
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_module
New submission from Case Van Horsen cas...@gmail.com:
When I ported gmpy to Python 3.x, I began to use
PyLong_AsLongAndOverflow frequently. I found the code to slightly faster
and cleaner than using PyLong_AsLong and checking for overflow. I had
several code fragments that looked like:
#if
Case Van Horsen cas...@gmail.com added the comment:
Attached py3intcompat.c
--
Added file: http://bugs.python.org/file15579/py3intcompat.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7528
Mark Dickinson dicki...@gmail.com added the comment:
So the configure test for tanh(-0.0) is purely informational: it doesn't
affect the behaviour of the built Python in any way. I agree that the
test is imperfect, in that if atan2 is also non-conformant on the given
platform then the sign
New submission from Chris Withers ch...@simplistix.co.uk:
http://docs.python.org/library/logging.html#module-logging.handlers
...explains that StreamHandler lives in logging but then the class docs
say logging.handlers.
Georg, if this isn't trivial for you to fix, re-assign it to me and I'll
Mark Dickinson dicki...@gmail.com added the comment:
The configure test for enabled POSIX semaphores is now failing for me on
OS X 10.6: the test produces
sem_open: Permission denied
--
assignee: - mark.dickinson
status: closed - open
___
Python
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I agree with Ronald: making sure all variables in Makefile provide
values that can work in any environment just because distutils offers an
API to read them would be a major pain.
What is planned is to remove sysconfig from distutils, and
flox la...@yahoo.fr added the comment:
Patch updated to backport r51536 in trunk.
It makes python -3 happier (do not compare None = 0).
--
Added file: http://bugs.python.org/file15580/issue7381_v2.diff
___
Python tracker rep...@bugs.python.org
Changes by flox la...@yahoo.fr:
Added file: http://bugs.python.org/file15581/issue7381_py3k_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7381
___
1 - 100 of 147 matches
Mail list logo