right library.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
hon choses
that one when printing to the terminal. When printing to the file, the
application needs to make a choice.
If you have no idea what encoding to use, your best choice is the one
returned by locale.getpreferredencoding(). This is the encoding that
the user is most likely to expect.
Regards,
M
to have an error handler on
sys.stdout in interactive mode, which escapes characters that
cannot be encoded (perhaps in a different color, if the terminal
supports colors, to make it clear that it is an escape sequence)
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> I am very disappointed. Help me, please.
Try installing Python 2.6.1 "for all users".
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
at way since Python 1.4 or so:
.pyd files built for X.Y won't work for X.(Y+1), and vice versa.
It seems that you mean something specific with the word "installer";
I think you should elaborate what precisely you are referring to.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
s not expected to
have permissions to system32, hence the DLL is put into c:\python26.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
SxS) for the installer to run;
one way of installing the CRT is to install Python for all users,
another is to install it "just for me", and put \python26 into PATH
(so that the installer can find msvcr90.dll).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
a bound name - not necessarily an
imported function; it could also be something being set through
assignment (register = Registry()).
> Yet I cannot figure where this @ sign came from.
That's a function decorator; see PEP 318.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
On behalf of the EuroPython 2009 organisation it is my privilege and
honour to announce the 'Call for Participation' for EuroPython 2009!
EuroPython is the conference for the communities around Python,
including the Django, Zope and Plone communities.
This year's conference will be held in Birmin
On behalf of the EuroPython 2009 organisation it is my privilege and
honour to announce the 'Call for Participation' for EuroPython 2009!
EuroPython is the conference for the communities around Python,
including the Django, Zope and Plone communities.
This years conference will be held in Birming
ined, whereas python26.dll has.
It's a mistake if libpython26.a gets included in the Win64 installer
at all; this library is only provided for 32-bit systems. My copy of
mingw doesn't support Win64 at all.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ious major Python releases are available
from the Python 2.5 page, at
http://www.python.org/2.4/highlights.html
http://www.python.org/2.5/highlights.html
Enjoy this release,
Martin
Martin v. Loewis
mar...@v.loewis.de
Python Release Manager
(on behalf of the entire python-dev tea
> This is the only problem on python side of things to make extensions
> buildable on windows x64 (all the other problems I have encountered so
> far to make numpy build with mingw-w64 are numpy's or mingw-w64).
Thanks!
Martin
--
http://mail.python.org/mailman/listinfo/python-list
s...@pobox.com wrote:
Is there some online troll game
running where the players earn points for generating responses to their
posts?
You just got 10 points ;-)
--
mph
--
http://mail.python.org/mailman/listinfo/python-list
2.5.4, including download
links for various platforms, release notes, and known issues, please
see:
http://www.python.org/2.5.4
Highlights of the previous major Python releases are available
from the Python 2.5 page, at
http://www.python.org/2.5/highlights.html
Enjoy this release,
Martin
Mar
in this area, you do need to deep
understanding of OSX, so many Mac users are probably not
qualified - and neither are most of the Python core contributors.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
.
Hardware watchpoint 2: *(ssize_t *) 168605088
Old value = 2
New value = 1
0xb7d5f406 in list_clear (a=0xa041c74) at Objects/listobject.c:550
550 Py_XDECREF(item[i]);
As you can see: this specific object was stored in a list, and
the list is now being cleared.
H
locates stuff
and then releases it, then sys.getrefcount should be unchanged. If
it does change, you might have a reference leak.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> So, given that there are no actual errors during the compile, and the
> warnings are probably benign, does anyone know what would cause the
> resulting compiled module to NOT have the init function?
Can you do nm(1) on the module? It's now called _curses_failed.sl
Regards,
matically closed - so you don't absolutely
have to close them if your program exits abnormally. Likewise, database
connections will shut down properly, and windows will close just fine.
What kind of thing do you have that remains open even after the
process terminates?
Regards,
Martin
--
http://ma
that the master socket *doesn't* get closed?
I see that pexpect closes all file descriptors in the child before
invoking exec. Could it be that you are starting addition child
processes which inherit the master socket?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
, given a few
encrypted passwords.
If you want a good algorithm, you might chose AES,
with pure-Python implementations available here:
http://bitconjurer.org/rijndael.py
A simpler, yet supposedly secure algorithm is TEA:
http://mail.python.org/pipermail/python-list/2002-August/159138.html
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> i'd just ... much rather be completely independent of proprietary
> software when it comes to building free software.
I guess my question is then: why do you want to use Windows in the
first place?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> Why is Python overloading the meaning of the ulimit -s like this?
Why do you think Python is overloading the meaning of that? I ensure
you it isn't - it doesn't actively care what the limits are.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> But even if that worked, I'd be worried that python is doing something
> bad with the ulimit -s value under the covers.
Again: it definitely isn't.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
crash.
> It's quite surprising. Not to mention the poor error message.
AFAICT, you didn't even *report* yet what the error message is,
so I don't know whether it is poor.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> I see. I should be blaming the default behavior of pthreads.
You shouldn't blame anybody. Instead, you should sit down and study
the problem in detail, until you fully understand it. Then you should
start contributing fixes. Never ever should you spread blame.
Regards,
Martin
odule doesn't implement).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
of
particular interest.
Regards,
Martin
[1] http://svn.python.org/projects/python/branches/release25-maint/
[2] http://bugs.python.org/
--
http://mail.python.org/mailman/listinfo/python-list
last 2.5.x release in particular, we
will strictly enforce the "no new features" policy; users interested
in new features should switch to 2.6.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ugs.python.org. It doesn't matter
to me very much; English is not my native language (i.e. RELEASED is
about as good SEREALED).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
t
people can still read and understand it, the _ast module might be
inappropriate, as it drops all comments.
For code-rewriting applications, look at lib2to3 instead.
> Am I correct? Am I seriously confused? Please help!
I think you are a little confused.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
got disallowed, syntactically
(can't test 2.3, at the moment).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
CPython, just to make it clear that this is actually
but another implementation of the Python language).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
a different
way.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
s used both by python26.dll, and all extension modules), please
let me know.
IOW: HELP! HELP!! HELP!!!
Meanwhile: just say no to Vista.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
IDLE won't run
on Vista?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
reported the
problem; your message to comp.lang.python was not "reported"
(through the usual bug report channels). Somebody might have
told you what those channels are; it's unfortunate that nobody
did.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
e.aspx
> * http://en.wikipedia.org/wiki/User_Account_Control#Requesting_elevation
Unfortunately, these are irrelevant, since they talk about UAC wrt.
applications. However, an MSI file is not an application, so all these
settings and APIs don't apply.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
to do image
> manipulation on x64 using python? Are there alternatives?
I would install the 32-bit Python interpreter.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
or you?
No. After installing 2.6, 2.5 will still be around, with all its
add-ons. If you want 2.5 to disappear, you should uninstall
it first.
> I have wxPython, mod_python and Django installed. Will these have to
> reinstalled/reconfigured for 2.6?
Yes, that will be necessary.
Regard
textu.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
, you have the option to chose
whether the new version should associate itself with the .py extension
or not. Through APR (add-remove-programs), you can later change that
also - unselect it in one installation, then select it in the other
(or run the repair installation if you selected it twice).
Rega
ly, problems finding the header files, and that is most likely
because you don't have them on your disk.
Install the -dev packages that are prerequisites for the individual
modules, and it should work out fine.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
;s Open Source Repository?
Worth a try :-)
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ely, I think this is too long for the available space.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
W. eWatson wrote:
> I suspect something has been corrupted in Python 2.4. Can I just
> re-install on top of it
On Windows, you shouldn't reinstall, but instead run the "repair"
installation, from "Add and remove programs".
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> do I miss something (I do hope so) or is switching to Python3
> really hard for Latin1-users?
Why do you want to switch? sys.stdout.encoding should already be
iso-8859-1, if you are a Latin1-user.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
t;Remove and Add"?
I'm talking about the "Add or [not and] Remove Programs" control
panel item (ARP). You should not remove, then add, Python, but
instead, repair it.
> Where do I get a repair installation?
Launch ARP. Seek Python (wait while this list is being po
uot;.
In the specific case of Python, the typical choice is whether or not to
install the tests, and whether or not to install Tkinter.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
und
out that you usually use Latin-1, your system is misconfigured. If
Python could have found out, but failed to do so, it's a bug in Python.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
or variable? How can I go about
> debugging this problem?
In Python 2.6, there is the sys.getsizeof function. For
earlier versions, the asizeof package gives similar results.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
tion of a default encoding
has disappeared. You have to perform conversion between bytes
and strings now explicitly.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
gt; I wished I could override the locale settings within a Python script.
You can monkey-patch locale.getpreferredencoding, which is used when
determining what encoding to use when opening new files. I don't
recommend doing so, though.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> Would really appreciate any assistance.
You should change your project to create a .pyd file instead of a .dll
file.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> Step 4: Either wait for Python 2.7 or apply the patch to your own copy
> of zipfile ...
Actually, this is released in Python 2.6, see r62724.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ncluded in the zipfile.
Notice that Mac OS *.app dirs are *not* cross-platform, either - they
only work on Mac OS.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Python 3.0, this silliness goes away, because all strings are
> Unicode by default.
You still need to make sure that the editor's encoding and the declared
encoding match.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ftware (unaware of the UTF-8 bit) has a chance
of correctly guessing the file name (if it followed APPNOTE.TXT).
I (now) prefer the tradeoff being taken, as it's the one that
produces more reliable results in the long run (i.e. when more
and more zip readers support UTF-8).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> Oddly, os.getcwd() and os.getcwdu() both still exist in Python 3.0.
> Since the behavior is now identical it seems os.getcwdu() should be
> dropped.
It is dropped, and os.getcwdb() has been added.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ather than bytes?
Yes.
> I'm hoping that the answer is "no"
Then you need to switch to Python 3.0, when it comes out. Its string
literals denote unicode strings.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
for i in range(3):
t = threading.Thread(target=f, args=(threading.Event(),))
t.setDaemon(1)
t.start()
while not events:
print events
time.sleep(0.1)
events[0].set()
time.sleep(10)
HTH,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
rs, and that they are further
UTF-8 encoded. However, such a package doesn't need to be part of the
standard library.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ntelligent system that does
>> more of the grunt work for us.
It *is* important to understand the difference between an "UTF-8
string", and a "Unicode string". If the OP hadn't been confused
about the two, and fully understood the difference, he probably
wouldn't have needed to ask.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
tall Python, and
where are you clicking in what order?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
heart beat messages, and the
sender side resending everything that might have been lost since
the last heart beat.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
s
what has effect.
I don't think any of the current committers has a significant interest
in supporting multiple interpreters (and I say that as the one who wrote
and implemented PEP 3121). To make a significant change, you need to
start with a PEP, offer to implement it once accepted, and offer
et nowhere without contributions, then the
contributions will come in.
If there won't be any contributions, then the itch in the the
community isn't that strong that it needs scratching.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> yes, I know that :-), I ment everything that can be, my problem is more
> with PYTHONPATH and stuff like that.
Then I don't understand what you meant. What is it (specifically!) that
you do, what happens, what do you want to happen instead?
Regards,
Martin
--
http://mail.python.
e-collected properly.
However, I also kept the isolated interpreters feature in mind there.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
in parallel.
> As far as I can tell, it seems
> CPython's current state can't CPU bound parallelization in the same
> address space.
That's not true.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
lution. It's the right
one, but it will take five or ten years to implement.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
re and per-interpreter state in Python). I wasn't claiming that
it was impossible to solve that problem - just that it is not simple.
If you want to find out what all the problems are, please try
implementing it for real.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> I'd like to know which version of sqlite the python 2.6 sqlite3 module
> supports.
When you compile Python, you can chose any version of sqlite that you
want to.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
n implementation, I don't want to spend my time
explaining it to you.
> But the approach is sound; nearly any monolithic
> program can be turned into a multithreaded program containing one
> monolith per thread using such a technique.
I'm not debating that. I just claim th
C code. I don't see how Python is in the way at
all. Many people do that, and it works just fine. That's what
Jesse (probably) meant with his remark
>> A c-level module, on the other hand, can sidestep/release
>> the GIL at will, and go on it's merry way and process away.
Andy O'Meara wrote:
> On Oct 24, 9:52 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
>>>> A c-level module, on the other hand, can sidestep/release
>>>> the GIL at will, and go on it's merry way and process away.
>>> ...Unless part
> Because then we're back into the GIL not permitting threads efficient
> core use on CPU bound scripts running on other threads (when they
> otherwise could).
Why do you think so? For C code that is carefully written, the GIL
allows *very well* to write CPU bound scripts running on other threads.
to continue to use urllib, you'll have to override a
lot of classes, or monkey-patch, or use, e.g., PyContext to selectively
replace httplib.HTTPConnection.connect.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
but Python) from source is something that you
should completely avoid. Instead of installing zlib, you should have
just installed Debian's zlib1g-dev package. Likewise for any other
header files that you will need. The libraries provided by Debian are
sufficient for building Python 2.6 with all extension modules (that
can possibly work on Linux).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> Well, most others here seem to have a lot different definition of what
> qualifies as a "futile" discussion, so how about you allow the rest of
> us continue to discuss these issues and possible solutions. And, for
> the record, I've said multiple times I'm ready to contribute
> monetarily, professionally, and personally, so if that doesn't qualify
> as the precursor to "code contributions from one of the participants"
> then I don't know WHAT does.
Ok, I apologize for having misunderstood you here.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
etermine that the limit has been reached,
and raise an exception (say).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
eflected from the
method's __name__, so I don't need to pass it into the Action
constructor. To implement the decorator, I suggest to just set
a function attribute, and return the original function.
HTH,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> How should this issue be worked around or dealt with? Should users on
> Mac OS X 10.5 change the default value of LC_CTYPE? To what?
It would be best if a Mac user could propose a patch for that problem
before the release of Python 3.0.
Regards,
Martin
--
http://mail.python.org/m
ckage:
http://pypi.python.org/pypi/muppy
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ays picks up the libraries you want.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
httplib.
There is apparently a problem with this one, also: implementations
might define AI_ADDRCONFIG, but not implement it, but instead return
EAI_BADFLAGS. Not sure whether this is a real problem, though.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
rring in the input should get decoded -
as u"—" or as u"\u2014"? Most likely, decoding that output
is of no concern to you, in which case the approach with the error
handler is the best way (IMO).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Colin J. Williams wrote:
> Is _checkversion.py used at all currently?
I don't think so.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> I suggest that consideration be given to dropping it and and
> versionchecker from the distribution. I see that it still appears in
> versions 2.6 and 3.0.
Please submit a bug report to bugs.python.org to this effect.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
;the set of all capitals consists of Paris, London, Berlin,
Madrid, ..."
The definition in logic, in turn, matches my understanding of the
English word "to comprehend": If I know all attributes, marks,
etc of an object, I understand it fully, i.e. I comprehend it.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
xmlrpclib apparently is no longer
available.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
="en_US.UTF-8"
It's not a patch - as you say, it's a workaround. It's not clear to me
whether this has potentially negative side effects, such as other
programs now breaking.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> def comp(x1, x2):
>try:
>if x1return -1
>else:
>return 1
>except TypeError:
>if str(x1)return -1
>else:
>return 1
>
Please correct me if I'm wrong, but I think this is not transitive. If
strings and ints are
Of course, the peak memory usage is higher with the key
function (O(n), compared to O(1) for the cmp= function, assuming the
frame objects get deallocated and reused immediately).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
raceback (most recent call last):
File "", line 1, in ?
TypeError: no ordering relation is defined for complex numbers
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
go back to XP
4. go back to Python 2.5
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> In any case, would it be possible to add a cmp= function which did more
> or less what the current default cmp does now?
As somebody pointed out, it's possible to create a key= function that
provides arbitrary ordering: just return an object custom type whose
__lt__ never fails:
class AlwaysOrd
...].
The third element is semantically not different from the first element,
hence a list is appropriate.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> It installs fine for 'just me', so no problem.
It installs for 'just me', but it doesn't work. Just try starting
IDLE, or import the socket module.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
3301 - 3400 of 4331 matches
Mail list logo