Wiadomość napisana przez Georg Brandl w dniu 2010-12-06, o godz. 22:46:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On behalf of the Python development team, I'm happy to announce the
> first of two beta preview releases of Python 3.2.
>
> Python 3.2 is a continuation of the efforts to
On 12/5/2010 2:49 PM, Martin Manns wrote:
Hello,
I am looking for a Python library for 2D collision checks of rotated
rectangles. Currently, I have found vizier 0.5b that is based on pygame.
Since I do not want to add a pygame dependency to my app, I replaced the
pygame.rect.Rect by a wxPython
Hi,
I am beginner to python and i am writing a program that does a lot of
things. One of the requirements is that the program shud generate a
log file. I came across python loggging module and found it very
useful. But I have a few problems
Suppose by giving option '-v' along with the program the u
John Nagle writes:
>PEP 255, like too much Python literature, doesn't distinguish
> clearly between the language definition and implementation detail. It
> says "The mechanics of StopIteration are low-level details, much like
> the mechanics of IndexError in Python 2.1". Applications should
On Dec 6, 6:21 pm, Ben Finney wrote:
> shearichard writes:
> > Hi - PEP8 says lines should not exceed 79 characters in length
> > (http://www.python.org/dev/peps/pep-0008/).
>
> > So if you've got some code that looks like this :
>
> > raise fooMod.fooException("Some message which is quite long")
On Dec 7, 9:17 am, Andreas Waldenburger
wrote:
> On Mon, 6 Dec 2010 00:22:49 -0500 Andreas Waldenburger
> wrote:
>
>
>
> > On Sun, 5 Dec 2010 19:52:54 -0800 Chris Rebert
> > wrote:
>
> > > On Sun, Dec 5, 2010 at 7:40 PM, shearichard
> > > wrote:
> > > > Hi - PEP8 says lines should not exceed 7
Hi,
I try to run a terminal emulation using Python+Gtk+Vte. Before develop
my own sources, i'm testing some examples like this ;
http://www.eurion.net/python-snippets/snippet/Embed%20a%20VTE%20terminal.html
But when i try to run, i get this message error;
v = vte.Terminal()
AttributeError: '
Does anyone know how to call functions from FORTRAN dlls in Python? Is it
even possible? I browsed the documentation for Python 2.6.1 and the Python/C
API comes close to what I would like to do but it is strictly limited to C.
Unfortunately the passing of arguments in C and FORTRAN is very diff
Alex van der Spek, 07.12.2010 12:11:
Does anyone know how to call functions from FORTRAN dlls in Python? Is
it even possible?
Sure, have a look at fwrap and Cython.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
When a look att py2exe homepage it is not looking like mutch happen,
as a beginner i was thinking to start with Python 3, but i like to now
if py2exe will be for 3 too.
Is any one have any info ?
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
Do you have, or can I find elsewhere a recommendation for books,tutorials and
sites appropriate for beginners?
I have a lot of experience in Perl but I am interested to also learn Python for:
- web development (with frameworks similar with Catalyst and Ruby on Rails,
good templating syst
You can't compile Python to exe files, but there is program packing
your script to a exe files, look att
www.py2exe.org
Beware that you must have py2exe version match your pythonversion and
att current time the highest version is 2.7.
/A
On Dec 7, 2:39 pm, "Octavian Rasnita" wrote:
> Hello,
>
Recent recruitment you can reach your goal. Careers recruitment.
http://managementjobs.webs.com/itm.htm
http://topcareer.webs.com/businessmanagement.htm
Latest government works to earn money, other vacancies in office jobs.
http://printmediajobs.webs.com/index.htm http://rojgars1.webs.com/gov.htm
RedBaron wrote:
Hi,
I am beginner to python and i am writing a program that does a lot of
things. One of the requirements is that the program shud generate a
log file. I came across python loggging module and found it very
useful. But I have a few problems
Suppose by giving option '-v' along with
On Dec 7, 8:23 am, Anders Persson wrote:
> Hi!
> When a look att py2exe homepage it is not looking like mutch happen,
> as a beginner i was thinking to start with Python 3, but i like to now
> if py2exe will be for 3 too.
>
> Is any one have any info ?
I don't have the answer about py2exe, but I'
I try to connect a database sqlite by sqlite3, but return an error.
>>> rowset = cur.fetchall()
Traceback (most recent call last):
File "", line 1, in
rowset = cur.fetchall()
OperationalError: Could not decode to UTF-8 column 'DATO' with text
'Document n°10'
What's happend? thank you
--
(i'm under Ubuntu 10.10 amd64 and python 2.6 and kinterbasdb 3.2 )
I try to connect my database of firebird 2.5 by kinterbasdb.
But python return this error :
>>> c =
kinterbasdb.connect(dsn="/media/VINACCIA.FDB",user="user",password="password",charset="UTF-8")
Traceback (most recent call last)
Hi,
I met a situation where I was passing an object created in/with an
upper level module class to a lower level module class' instance in
one of its __init__ argument and saving a ref of the upper object in
that lower level class' new instance.
But in my IDE I want the completion to also work fr
Am 07.12.2010 16:35, schrieb Ale Ghelfi:
> (i'm under Ubuntu 10.10 amd64 and python 2.6 and kinterbasdb 3.2 )
> I try to connect my database of firebird 2.5 by kinterbasdb.
> But python return this error :
>
> >>> c =
> kinterbasdb.connect(dsn="/media/VINACCIA.FDB",user="user",password="password
Ale Ghelfi wrote:
> I try to connect a database sqlite by sqlite3, but return an error.
>
> >>> rowset = cur.fetchall()
> Traceback (most recent call last):
>File "", line 1, in
> rowset = cur.fetchall()
> OperationalError: Could not decode to UTF-8 column 'DATO' with text
> 'Document
Thank you for your help.
I have succeeded to create a Windows executable with py2exe.
I've seen that the source code of the sample script is hidden. Do you know if
it happens the same if the script uses other Python modules I will make?
(Will py2exe hide the source code of those modules also?)
On Mon, 2010-12-06 at 15:11 -0800, Nate wrote:
> Hello,
> I'm in the process of developing a task engine / workflow module for
> my Python application and I'm wondering if anyone knows of existing
> code that could be used or adapted. Since I know that's far too
> generic a question, let me share
On 7 déc, 12:05, Steve wrote:
> Hi,
>
> I try to run a terminal emulation using Python+Gtk+Vte. Before develop
> my own sources, i'm testing some examples like this
> ;http://www.eurion.net/python-snippets/snippet/Embed%20a%20VTE%20termi...
>
> But when i try to run, i get this message error;
>
>
i try this :
actual_encoding = ... # whatever
def decode(s):
return s.decode(actual_encoding)
db = sqlite3.connect(...)
db.text_factory = decode
but now the error is :
>>> rowset = cur.fetchall()
Traceback (most recent call last):
File "", line 1, in
rowset = cur.fetchall()
Fil
Hey,
--
questions
--
1. What are the best tools to analyze pythons memory stack, while it is running?
2. Is there a possib
Ale Ghelfi wrote:
> i try this :
>
>> actual_encoding = ... # whatever
>> def decode(s):
>> return s.decode(actual_encoding)
>>
>> db = sqlite3.connect(...)
>> db.text_factory = decode
>
> but now the error is :
>
> >>> rowset = cur.fetchall()
> Traceback (most recent call last):
>Fil
On Dec 7, 8:32 am, Adam Tauno Williams wrote:
> On Mon, 2010-12-06 at 15:11 -0800, Nate wrote:
> > Hello,
> > I'm in the process of developing a task engine / workflow module for
> > my Python application and I'm wondering if anyone knows of existing
> > code that could be used or adapted. Since
>
>
> I am also interested to find where I can get Python modules from and how...
> similar tools and sites with cpan and ppm for Perl.
>
>
You should look at http://pypi.python.org/pypi, for modules.
pip (http://pip.openplans.org/) is a tool used to install python modules.
enjoy
--
Mauro Cácer
The multiprocessing module has some wrappers for sockets and while the
Client object is selectable the Listener is not, I'm wondering if that
could be changed or if there's a way to do it already that I'm not
seeing?
-Tom
--
http://mail.python.org/mailman/listinfo/python-list
Solved! A really dummy error: I've a vte.py file in the same folder,
so import vte found this first than the needed!
Thanks! (and sorry)
Steve,
On 7 Des, 17:34, "bruno.desthuilli...@gmail.com"
wrote:
> On 7 déc, 12:05, Steve wrote:
>
> > Hi,
>
> > I try to run a terminal emulation using Python
Hi I am using Python 2.6.5 on Windows.
I wanted to start using the win32com extensions which I understand are
"essentially part of the stdlib" ( quoted in
http://tgolden.sc.sabren.com/python/win32_how_do_i.html)
Since I didnt have the extensions as standard I went to sourceforge
to get the module
On 12/07/2010 10:56 AM, Nate wrote:
On Dec 7, 8:32 am, Adam Tauno Williams wrote:
I'm in the process of developing a task engine / workflow module for
my Python application and I'm wondering if anyone knows of existing
code that could be used or adapted. Since I know that's far too
generic a q
Not sure what you are trying to do but you can get a standalone binaries
from http://sourceforge.net/projects/pywin32/ which gets installed without
any issues. If for some reason you are still having issues, you can try
ActiveState Python which come bundled with pywin32 packages.
On Tue, Dec 7, 2
On Dec 7, 11:02 am, harijay wrote:
> Hi I am using Python 2.6.5 on Windows.
>
> I wanted to start using the win32com extensions which I understand are
> "essentially part of the stdlib" ( quoted
> inhttp://tgolden.sc.sabren.com/python/win32_how_do_i.html)
> Since I didnt have the extensions as st
This packager is also nice.
If someone cares, I've discovered a small bug in it.
If Python is installed on another drive than C under Windows, the cxfreeze.bat
file still calls Python on the drive C and it doesn't work until it is
corrected.
Octavian
- Original Message -
From: "Cbast"
On 2010-12-07, Anders Persson wrote:
> When a look att py2exe homepage it is not looking like mutch happen,
Why do you say that? The homepage was update last month. If you
click on "recent changes" the last wiki page edit was less than two
weeks ago, and there ahve been 19 posts to four differ
On Dec 7, 2010, at 5:39 AM, Octavian Rasnita wrote:
> Do you have, or can I find elsewhere a recommendation for books,tutorials and
> sites appropriate for beginners?
I have found that Python for Dummies is the book I use the most. It has lots of
examples that work and that I can build upon. T
Using the "binary" offered on sourceforge and calling
"python setup.py install"
Has the install asking for "vcsvarsall.bat" . So this does not seem to
be a binary build
On Dec 7, 1:27 pm, Ian wrote:
> On Dec 7, 11:02 am, harijay wrote:
>
>
>
>
>
>
>
>
>
> > Hi I am using Python 2.6.5 on Windo
You want something from here:
http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/
Which one you need will depend on your architecture
and the version of Python you're running
TJG
--
http://mail.python.org/mailman/listinfo/python-list
On 06/12/2010 15:37, Astan Chee wrote:
Hi,
I've got a lego mindstorm RCX 1.0 (but firmware is 2.0) that uses one of
those old serial IR towers to control the microcontroller. I've had a
look around at python's serial documentation as well as the RCX's
documentation and I'm trying to write somethi
Thanks Ian for your reply.
I downloaded the zip file linked by the "Download Binaries/View All
files link" . All that gave me was a zip file which unpacked to the
source and documentation implying I had to use distutils.
If instead I looked at the Build 214 link on sourceforge which
corresponds to
Thanks Tim for your reply. I did get that build .
Also thanks for the examples. Looking forward to using the module
Hari
On Dec 7, 3:22 pm, Tim Golden wrote:
> You want something from here:
>
> http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/
>
> Which one you need will depe
I am using tempfile.mkdtemp() to create a working directory on a
remote *nix system through a Samba share. When I use this on a Windows
box, it works, and I have full access to the created dir. When used on
a Linux box (through the same Samba share), the created directory
shows as "locked", and I a
On Dec 8, 5:51 am, Marco Hornung wrote:
> Hey,
>
> --
> questions
> --
> 1. What are the best tools to analyze pythons mem
All,
I've been using the trace module for python (as per
http://www.dalkescientific.com/writings/diary/archive/2005/04/20/tracing_python_code.html),
and would very much like to have a feature there that I've implemented
for perl already.
Namely, I would like output in the format as described on t
On Tue, 07 Dec 2010 00:53:27 -0800
John Nagle wrote:
> On 12/5/2010 2:49 PM, Martin Manns wrote:
> Probably because you seem to be trying to compute the intersection
> point for coincident lines, which is not well-defined.
I found the problem:
pygame returns one pixel more for the right bor
Octavian:
It's great that you want to let people know about bugs. Put yourself in
the position of the package maintainer, however. She or he doesn't spend
all day working on cxFreeze, and probably doesn't even do a Google
search on cxFreeze very often. So they are unlikely to find out about
this p
On 12/6/2010 4:17 PM, Steven D'Aprano wrote:
On Mon, 06 Dec 2010 08:59:12 -0800, TomF wrote:
I'm aggravated by this behavior in python:
x = "4"
print x< 7# prints False
I can't imagine why this design decision was made.
You've never needed to deal with an heterogeneous list?
data =
On 12/7/2010 9:53 AM, John Nagle wrote:
> On 12/5/2010 2:49 PM, Martin Manns wrote:
>> Hello,
>>
>> I am looking for a Python library for 2D collision checks of rotated
>> rectangles. Currently, I have found vizier 0.5b that is based on pygame.
>>
>> Since I do not want to add a pygame dependency t
On Dec 6, 4:17 pm, Steven D'Aprano wrote:
> On Mon, 06 Dec 2010 08:59:12 -0800, TomF wrote:
> > I'm aggravated by this behavior in python:
>
> > x = "4"
> > print x < 7 # prints False
> > I can't imagine why this design decision was made.
>
> You've never needed to deal with an heterogeneous li
On Dec 7, 3:08 pm, John Nagle wrote:
> The basic Boolean identities
>
> (a or b) == (b or a)
> not (a or b) == (not a) and (not b)
> not (not a) == a
>
> should all hold, or an type exception should be raised.
> With Python accepting both "True" and "1" as sort of
> equival
On 12/6/2010 8:00 PM, Antoine Pitrou wrote:
> On Sun, 05 Dec 2010 14:47:38 -0500
> Terry Reedy wrote:
>> On 12/5/2010 3:31 AM, Greg wrote:
>>
>> For future reference,
>>
>>> 1) At http://docs.python.org/py3k/reference/datamodel.html:
>>> 2) At http://docs.python.org/py3k/library/stdtypes.html:
>>
On 06/12/2010 15:37, Astan Chee wrote:
Hi,
I've got a lego mindstorm RCX 1.0 (but firmware is 2.0) that uses one of
those old serial IR towers to control the microcontroller. I've had a
look around at python's serial documentation as well as the RCX's
documentation and I'm trying to write somethi
On 12/7/2010 5:58 AM, John Nagle wrote:
>PEP 255, like too much Python literature, doesn't distinguish clearly
> between the language definition and implementation detail. It says
> "The mechanics of StopIteration are low-level details, much like the
> mechanics of IndexError in Python 2.1". A
On 12/7/2010 1:48 AM, MRAB wrote:
> Perhaps Python could use Guido's time machine to check whether the
> sequence will yield another object in the future. :-)
Since there's only one time machine that would effectively be a lock
across all Python interpreters.
regards
Steve
--
Steve Holden
John Nagle writes:
[Stepanov]
> makes the point that, for generic programs to work right, the basic
> operations must have certain well-defined semantics. Then the same
> algorithms will work right across a wide variety of objects.
>
> This is consistent with Python's "duck typing", but inconsis
Carl Banks writes:
> I think that feeling the need to sort non-homogenous lists is
> indictative of bad design.
Here's a reason you might want to.
You're given an object, and you want to compute a hash of it. (Maybe
you want to see whether someone else's object is the same as yours, but
don't
Carl Banks writes:
> On Dec 6, 4:17 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
> > Nevertheless, I agree that in hindsight, the ability to sort such
> > lists is not as important as the consistency of comparisons.
>
> I think that feeling the need to sort non-homogenous lists is
Ben Finney writes:
> but, if there is no ‘set’ type, it's fine to write::
> sorted(foolist) == sorted(barlist)
what about dictionaries?
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin writes:
> Ben Finney writes:
> > but, if there is no ‘set’ type, it's fine to write::
> > sorted(foolist) == sorted(barlist)
>
> what about dictionaries?
Creating a needless dict for each list would make the code even less
clear, I'd think. (We're talking here about design, which
"Carl Banks" wrote in message
news:bf4be9a7-a079-4454-9969-60e9be305...@k14g2000pre.googlegroups.com...
On Dec 6, 4:17 pm, Steven D'Aprano wrote:
On Mon, 06 Dec 2010 08:59:12 -0800, TomF wrote:
> I'm aggravated by this behavior in python:
> x = "4"
> print x < 7# prints False
> I can't
All,
Ok, it looks like in order to implement a tracer that does
interpolation, I'm going to have to hack around with frames.
Perl's interpolation is fairly straightforward, to do interpolation of
$a == 1 all you need to do is put quotes around "$a == 1" to have $a
evaluated.
So, I'd like to do t
Hi,
According to the doc, group(0) is the entire match.
>>> m = re.match(r"(\w+) (\w+)", "Isaac Newton, physicist")
>>> m.group(0) # The entire match 'Isaac Newton'
But if you do this:
>>> import re
>>> re.sub(r'(\d{3})(\d{3})', r'\0 to \1-\2', '757234')
'\x00 to 757-234'
where I expected
'7
I have two assembly data txt files, one has the structure:
0E1459D1Fh, 0AB58FAAEh, 4303E35Bh, 55FA3020h, 0E66D76ADh,
0EF434544h, ...
and the other has the structure:
53h, 6, 6Bh, 0D4h, 40h, 35h, 0B5h, 33h, 0AFh, 30h, 0B3h,
66h, ...
(I removed the dd and db with awk)
Now I want both of them in
On 08/12/2010 02:23, Yingjie Lan wrote:
Hi,
According to the doc, group(0) is the entire match.
m = re.match(r"(\w+) (\w+)", "Isaac Newton, physicist")
m.group(0) # The entire match 'Isaac Newton'
But if you do this:
import re
re.sub(r'(\d{3})(\d{3})', r'\0 to \1-\2', '757234')
'\x00 to 75
On Tue, Dec 7, 2010 at 6:36 PM, joblack wrote:
> I have two assembly data txt files, one has the structure:
>
> 0E1459D1Fh, 0AB58FAAEh, 4303E35Bh, 55FA3020h, 0E66D76ADh,
> 0EF434544h, ...
>
> and the other has the structure:
>
> 53h, 6, 6Bh, 0D4h, 40h, 35h, 0B5h, 33h, 0AFh, 30h, 0B3h,
> 66h, ...
>
On Dec 7, 4:11 pm, Steve Holden wrote:
> >>> timeit.timeit(fm)
> 0.58099985122680664
> >>> timeit.timeit(fd)
> 0.5524577636719
>
> Of course it's possible that the random number generation is dominating,
I think that it is. Moving the random number generation out into
setup:
>>> t1 = timeit
On 08/12/2010 02:36, joblack wrote:
I have two assembly data txt files, one has the structure:
0E1459D1Fh, 0AB58FAAEh, 4303E35Bh, 55FA3020h, 0E66D76ADh,
0EF434544h, ...
and the other has the structure:
53h, 6, 6Bh, 0D4h, 40h, 35h, 0B5h, 33h, 0AFh, 30h, 0B3h,
66h, ...
(I removed the dd and db
: Use \g<0>.
Thanks!
Though I wish all \1, \2, ..., should also be forbidden.
Such a mixture of things looks like a patch work.
No offense meant.
Yingjie
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-12-07 16:09:17 -0800, Mark Wooding said:
Carl Banks writes:
I think that feeling the need to sort non-homogenous lists is
indictative of bad design.
Here's a reason you might want to.
You're given an object, and you want to compute a hash of it. (Maybe
you want to see whether some
Steven D'Aprano writes:
> You don't need the space between strings and the attribute access:
> "1".zfill(2) is fine. You only need it for numbers, due to the ambiguity
> between the decimal point and dotted attribute access.
Personally I prefer parentheses: (1).conjugate
--
Piet van Oostrum
hi kee,
i'm a beginner too.. when i asked the same question, some python gurus
recommended these books and videos.
in fact it worked.. so now i'm forwarding the same to you...
1. Core Python Programming by Wesley J. Chun
2. python quick reference guide - *http://rgruet.free.fr/#QuickRef.*
3. Pyt
On Dec 7, 7:33 pm, Jean-Michel Pichavant
wrote:
> RedBaron wrote:
> > Hi,
> > I am beginner to python and i am writing a program that does a lot of
> > things. One of the requirements is that the program shud generate a
> > log file. I came across python loggging module and found it very
> > usefu
On 12/8/2010 2:49 AM, Edward Peschko wrote:
> All,
>
> Ok, it looks like in order to implement a tracer that does
> interpolation, I'm going to have to hack around with frames.
>
> Perl's interpolation is fairly straightforward, to do interpolation of
> $a == 1 all you need to do is put quotes ar
74 matches
Mail list logo