Re: inspect bug

2008-10-09 Thread Aaron Castironpi Brady
On Oct 9, 9:47 am, Gabriel Genellina [EMAIL PROTECTED] wrote: En Thu, 09 Oct 2008 00:24:20 -0300, Aaron Castironpi Brady   [EMAIL PROTECTED] escribió: Found this bug.  It's in 2.6, too bad. Posting here is not going to help much, it just will be lost. Would be   better to file a bug report

Re: default value in __init__

2008-10-09 Thread David C. Ullrich
In article [EMAIL PROTECTED], kenneth [EMAIL PROTECTED] wrote: On Oct 9, 10:14 am, Christian Heimes [EMAIL PROTECTED] wrote: kenneth wrote: the 'd' variable already contains the 'self.d' value of the first instance and not the default argument {}. Am I doing some stupid error, or

Re: NameError question - def(self,master) - master not in namespace within class?

2008-10-09 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : OT bieffe, please, learn to snip irrelevant material... /OT On 9 Ott, 17:43, harijay [EMAIL PROTECTED] wrote: (snip) NameError: name 'master' is not defined (snip) #File runner.py #!/usr/bin/python import master import child if __name__==__main__: print

Re: Inefficient summing

2008-10-09 Thread Terry Reedy
Matt Nordhoff wrote: Chris Rebert wrote: I personally would probably do: from collections import defaultdict label2sum = defaultdict(lambda: 0) FWIW, you can just use: label2sum = defaultdict(int) You don't need a lambda. Indeed, in this case, with two known keys, the defaultdict is not

Re: inspect feature

2008-10-09 Thread Aaron Castironpi Brady
On Oct 9, 3:48 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: Aaron Castironpi Brady a écrit : Hello, The 'inspect' module has this method: inspect.getargvalues(frame) It takes a frame and returns the parameters used to call it, including the locals as defined in the

Re: Safe eval of insecure strings containing Python data structures?

2008-10-09 Thread Aaron Castironpi Brady
On Oct 9, 1:44 pm, Jason Scheirer [EMAIL PROTECTED] wrote: On Oct 9, 9:01 am, Paul Rubin http://[EMAIL PROTECTED] wrote: Lie Ryan [EMAIL PROTECTED] writes: in python 2.6, ast.literal_eval may be used to replace eval() for literals. What happens on literal_eval('[1]*9') ? The

Re: Traceback not going all the way to the exception?

2008-10-09 Thread Terry Reedy
sert wrote: I just got an exception and the traceback wouldn't go all the way to the statement that threw the exception. I found that out by using the debugger. Contrast the traceback: http://tinyurl.com/5xglde with the debugger output (notice the arrow pointing to the last statement the

Re: no unbound methods in py3k

2008-10-09 Thread Terry Reedy
Thomas Heller wrote: Christian Heimes schrieb: Thomas Heller wrote: but this is very ugly, imo. Is there another way? The raw_func instances that I have are not descriptors (they do not implement a __get__() method...) I've written PyInstanceMethod_Type for this use case. It's not (yet)

Problem with cPickle and cElementTree

2008-10-09 Thread Barry
I recently tried switching from ElementTree to cElementTree. My application parses a collection of large XML files and creates indexes based on certain attributes. This entire collection is saved as an instance of my Database class. Using ElementTree and cPickle has allowed me to save these

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Thorsten Kampe
* Mensanator (Thu, 9 Oct 2008 11:03:45 -0700 (PDT)) On Oct 9, 12:36 pm, Thorsten Kampe [EMAIL PROTECTED] wrote: * Mensanator (Tue, 7 Oct 2008 10:58:24 -0700 (PDT)) On Oct 7, 12:40 pm, Thorsten Kampe [EMAIL PROTECTED] wrote: * Lawrence D'Oliveiro (Mon, 06 Oct 2008 23:18:10 +1300) In

Re: Traceback not going all the way to the exception?

2008-10-09 Thread Aaron Castironpi Brady
On Oct 9, 3:27 am, sert [EMAIL PROTECTED] wrote: I just got an exception and the traceback wouldn't go all the way to the statement that threw the exception. I found that out by using the debugger. Contrast the traceback: http://tinyurl.com/5xglde with the debugger output (notice the

python 3: sorting with a comparison function

2008-10-09 Thread Thomas Heller
Does Python 3 have no way anymore to sort with a comparison function? Both [].sort() and sorted() seem to accept only 'key' and 'reverse' arguments, the 'cmp' argument seems to be gone. Can that be? Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: no unbound methods in py3k

2008-10-09 Thread Thomas Heller
Terry Reedy schrieb: Thomas Heller wrote: Christian Heimes schrieb: I've written PyInstanceMethod_Type for this use case. It's not (yet) available for Python code. Oh, wait - there's ctypes: Python 3.0rc1 (r30rc1:66507, Sep 18 2008, 14:47:08) [MSC v.1500 32 bit (Intel)] on win32 Type

Re: On the indexing order in (numpy) arrays

2008-10-09 Thread Robert Kern
Almar Klein wrote: Hi, I was wondering... Say we have a np.ndarray A of two dimensions (a grayscale image for example). If we want to access x:2, y:3, we have to do A[3,2]. Why is the order of x and y reversed? This is reversed in Matlab too, because Matlab is a matrix package and matrix

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Mensanator
On Oct 9, 2:09 pm, Thorsten Kampe [EMAIL PROTECTED] wrote: * Mensanator (Thu, 9 Oct 2008 11:03:45 -0700 (PDT)) On Oct 9, 12:36 pm, Thorsten Kampe [EMAIL PROTECTED] wrote: * Mensanator (Tue, 7 Oct 2008 10:58:24 -0700 (PDT)) On Oct 7, 12:40 pm, Thorsten Kampe [EMAIL PROTECTED] wrote:

Re: no unbound methods in py3k

2008-10-09 Thread Christian Heimes
Thomas Heller wrote: Ok, so one has to write an extension to access or expose it. Oh, wait - there's ctypes: I wrote the type to help the Pyrex and Cython developers to port their software to 3.0. I planed to expose the type as __builtin__.instancemethod but forgot it. Maybe we can convince

Re: Can anyone Pythonize this lexical algorithm?

2008-10-09 Thread Paul McGuire
On Oct 9, 7:29 am, ShashiGowda [EMAIL PROTECTED] wrote: I am writing a package manager and stuck unable to write the version sorting function the algorithm is herehttp://www.linux.gr/cgi-bin/man/man2html?deb-version+5 and all other info is also in it please tell me how to do lexical

book recommendation for Python newbie?

2008-10-09 Thread Joe Strout
I'm trying to (gently) convince my business partner that we should be adding Python to our core toolset. He's never used it before, apart from poking around in the tutorial a bit at my urging. But he's got a birthday coming up, and I'd like to get him a book that will help him make the

Re: Using subprocess module to launch a shell shell script that itself forks a process

2008-10-09 Thread Derek Martin
On Tue, Oct 07, 2008 at 05:43:41PM -0700, Samuel A. Falvo II wrote: p = subprocess.Popen( command, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True ) outputChannel = p.stdout

Re: no unbound methods in py3k

2008-10-09 Thread Thomas Heller
Christian Heimes schrieb: Thomas Heller wrote: Ok, so one has to write an extension to access or expose it. Oh, wait - there's ctypes: I wrote the type to help the Pyrex and Cython developers to port their software to 3.0. I planed to expose the type as __builtin__.instancemethod but

FLexible formatted text involving nested lists?

2008-10-09 Thread RossRGK
I'm having trouble getting my head around a solution for a situation where I need to flexibly format some text with a varying number of embedded fields. Here's a simplified description of my challenge... I have a list of lists called bigList: bigList = [ little, small, tiny] The sub-lists

Re: python 3: sorting with a comparison function

2008-10-09 Thread bearophileHUGS
Thomas Heller: the 'cmp' argument seems to be gone. Can that be? Yes, that's a wonderful thing, because from the code I see around 99.9% of people see the cmp and just use it, totally ignoring the presence of the 'key' argument, that allows better and shorter solutions of the sorting problem.

Re: book recommendation for Python newbie?

2008-10-09 Thread Mike Driscoll
On Oct 9, 3:00 pm, Joe Strout [EMAIL PROTECTED] wrote: I'm trying to (gently) convince my business partner that we should be   adding Python to our core toolset.  He's never used it before, apart   from poking around in the tutorial a bit at my urging.  But he's got a   birthday coming up, and

Re: Safe eval of insecure strings containing Python data structures?

2008-10-09 Thread Terry Reedy
Paul Rubin wrote: Lie Ryan [EMAIL PROTECTED] writes: in python 2.6, ast.literal_eval may be used to replace eval() for literals. What happens on literal_eval('[1]*9') ? Easy to try. Since it is not a literal or display, ValueError: malformed string, just as with set({1,2,3])

Re: FLexible formatted text involving nested lists?

2008-10-09 Thread Kerri Reno
Ross, I'm no expert in python, so excuse me if this is inane. What I would do is have fmts be a dictionary where fmts = { 3 = 'oats %0d kilos over %0d days with %0d workers', 2 = 'barley %0d lbs for %0d hours', 1 = 'apples %0d baskets'} then something like for x in bigList:

Re: Inefficient summing

2008-10-09 Thread Alexander Schmolck
beginner [EMAIL PROTECTED] writes: Hi All, I have a list of records like below: rec=[{F1:1, F2:2}, {F1:3, F2:4} ] Now I want to write code to find out the ratio of the sums of the two fields. One thing I can do is: sum(r[F1] for r in rec)/sum(r[F2] for r in rec) But this is slow

Re: Can anyone Pythonize this lexical algorithm?

2008-10-09 Thread Terry Reedy
ShashiGowda wrote: I am writing a package manager and stuck unable to write the version sorting function the algorithm is here http://www.linux.gr/cgi-bin/man/man2html?deb-version+5 and all other info is also in it please tell me how to do lexical comparision in python it'll be cool if you just

Python HTML parser chokes on UTF-8 input

2008-10-09 Thread Johannes Bauer
Hello group, I'm trying to use a htmllib.HTMLParser derivate class to parse a website which I fetched via httplib.HTTPConnection().request().getresponse().read(). Now the problem is: As soon as I pass the htmllib.HTMLParser UTF-8 code, it chokes. The code is something like this: prs =

Re: On the indexing order in (numpy) arrays

2008-10-09 Thread Terry Reedy
Almar Klein wrote: Hi, I was wondering... Say we have a np.ndarray A of two dimensions (a grayscale image for example). If we want to access x:2, y:3, we have to do A[3,2]. Why is the order of x and y reversed? Because images are stored by rows, not by columns. So column 3, row 2, is row

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Jerry Hill
On Thu, Oct 9, 2008 at 3:48 PM, Mensanator [EMAIL PROTECTED] wrote: Fine. Can you then see to it that this is mentioned on the Python download page? I'm not sure if anyone has mentioned it in all of the invective, but the right thing to do is to report a bug on http://bugs.python.org. If the

Re: inspect bug

2008-10-09 Thread Terry Reedy
Aaron Castironpi Brady wrote: On Oct 9, 9:47 am, Gabriel Genellina [EMAIL PROTECTED] wrote: En Thu, 09 Oct 2008 00:24:20 -0300, Aaron Castironpi Brady [EMAIL PROTECTED] escribió: Found this bug. It's in 2.6, too bad. Posting here is not going to help much, it just will be lost. Would be

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Martin v. Löwis
I say, ignore this advice and disable UAC. Fine. Can you then see to it that this is mentioned on the Python download page? I think Thorsten's advice is helpful (in the sense that it solves the problem, and is IMO pragmatic also), but I *still* wouldn't put it on the Python download page,

Re: On the indexing order in (numpy) arrays

2008-10-09 Thread Almar Klein
Basically, we want a[i][j] == a[i,j]. Since there is no literal syntax for numpy arrays, we need to be able to convert from a sequence of sequences to an array. The indexing needs to correspond between the two. Thanks for the reply. I guess that explains the *why*... Adopt the numpy order.

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Martin v. Löwis
You can believe what you want. The people who developed UAC don't have to support it. I know for a fact that the implementation is incomplete. In Windows Installer, there is no way (that I know of) to create an MSI file that conditionally turns on UAC, only when the installation actually needs

Re: Traceback not going all the way to the exception?

2008-10-09 Thread sert
Terry Reedy [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: You forgot to specify which version of Python on which computer system. It's on Python 2.6. -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3: sorting with a comparison function

2008-10-09 Thread Terry Reedy
Thomas Heller wrote: Does Python 3 have no way anymore to sort with a comparison function? Both [].sort() and sorted() seem to accept only 'key' and 'reverse' arguments, the 'cmp' argument seems to be gone. Can that be? Yes. When this was discussed, no one could come up with an actual use

Re: template strings for matching?

2008-10-09 Thread MRAB
On Oct 9, 5:20 pm, Joe Strout [EMAIL PROTECTED] wrote: Wow, this was harder than I thought (at least for a rusty Pythoneer   like myself).  Here's my stab at an implementation.  Remember, the   goal is to add a match method to Template which works like   Template.substitute, but in reverse:

Re: Python HTML parser chokes on UTF-8 input

2008-10-09 Thread Terry Reedy
Johannes Bauer wrote: Hello group, I'm trying to use a htmllib.HTMLParser derivate class to parse a website which I fetched via httplib.HTTPConnection().request().getresponse().read(). Now the problem is: As soon as I pass the htmllib.HTMLParser UTF-8 code, it chokes. The code is something like

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Thorsten Kampe
* Martin v. Löwis (Thu, 09 Oct 2008 23:32:42 +0200) I say, ignore this advice and disable UAC. Fine. Can you then see to it that this is mentioned on the Python download page? I think Thorsten's advice is helpful (in the sense that it solves the problem, and is IMO pragmatic also), I

Re: Traceback not going all the way to the exception?

2008-10-09 Thread sert
sert [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: It's on Python 2.6. On Windows. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python HTML parser chokes on UTF-8 input

2008-10-09 Thread Johannes Bauer
Terry Reedy schrieb: Johannes Bauer wrote: Hello group, I'm trying to use a htmllib.HTMLParser derivate class to parse a website which I fetched via httplib.HTTPConnection().request().getresponse().read(). Now the problem is: As soon as I pass the htmllib.HTMLParser UTF-8 code, it chokes.

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Mensanator
On Oct 9, 4:41 pm, Martin v. Löwis [EMAIL PROTECTED] wrote: You can believe what you want. The people who developed UAC don't have to support it. I know for a fact that the implementation is incomplete. In Windows Installer, there is no way (that I know of) to create an MSI file that

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Martin v. Löwis
I posted a problem with Vista on Jul 6 concerning not being able to run IDLE in 2.6b1. No replies. Where did you post that? On python-dev? What am I supposed to do? File bug reports on things I don't even know are bugs? You mean, it might have been intentional that IDLE won't run on Vista?

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Thorsten Kampe
* Martin v. Löwis (Thu, 09 Oct 2008 23:41:44 +0200) You can believe what you want. The people who developed UAC don't have to support it. I know for a fact that the implementation is incomplete. In Windows Installer, there is no way (that I know of) to create an MSI file that

Re: Inefficient summing

2008-10-09 Thread beginner
On Oct 9, 3:53 pm, Alexander Schmolck [EMAIL PROTECTED] wrote: beginner [EMAIL PROTECTED] writes: Hi All, I have a list of records like below: rec=[{F1:1, F2:2}, {F1:3, F2:4} ] Now I want to write code to find out the ratio of the sums of the two fields. One thing I can do is:

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Mensanator
On Oct 9, 5:48 pm, Martin v. Löwis [EMAIL PROTECTED] wrote: I posted a problem with Vista on Jul 6 concerning not being able to run IDLE in 2.6b1. No replies. Where did you post that? On python-dev? No, right here on comp.lang.python. I don't even know what you're referring to. What am

subdirectories for sys.path import?

2008-10-09 Thread mh
I'm currently sharing a directory on sys.path with another group. We don't have the option to modify sys.path. In order to reduce conflicts between the two group's code, installation procedures, etc, I'd like to make a subdirectory for each group, and have each group manage their own

Re: subdirectories for sys.path import?

2008-10-09 Thread mh
[EMAIL PROTECTED] wrote: Is there a way to import a module from one of these subdirectories? Any other more pythonic ways to approach the situation? ah, the magic of __init__.py. Thanks all! -- Mark Harrison Pixar Animation Studios -- http://mail.python.org/mailman/listinfo/python-list

Re: On the indexing order in (numpy) arrays

2008-10-09 Thread Robert Kern
Almar Klein wrote: Basically, we want a[i][j] == a[i,j]. Since there is no literal syntax for numpy arrays, we need to be able to convert from a sequence of sequences to an array. The indexing needs to correspond between the two. Thanks for the reply. I guess that explains

Re: Python HTML parser chokes on UTF-8 input

2008-10-09 Thread Jerry Hill
On Thu, Oct 9, 2008 at 4:54 PM, Johannes Bauer [EMAIL PROTECTED] wrote: Hello group, Now when I take website directly from the parser, everything is fine. However I want to do some modifications before I parse it, namely UTF-8 modifications in the style: website = website.replace(uföö,

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Craig Allen
as a 20 year observer of microsoft, I have to say this is not amazing at all... and I do not mean that as a random put down of Microsoft. Microsoft often develops things in response to demand... but they don't always fit in their system well, and thus are not really used in the spirit of the

Re: About print exception message

2008-10-09 Thread WaterWalk
On Oct 9, 9:46 pm, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Thu, 9 Oct 2008 06:37:04 -0700 (PDT), WaterWalk [EMAIL PROTECTED] wrote: Until Python 2.5, the exception object still uses ansi string.  Thus, in the following example: f = open(u\u6d4b.log) Suppose the file to open does not

Crunchy 1.0 alpha 1 released

2008-10-09 Thread André
Hi everyone, Crunchy version 1.0 alpha 1 has been released. Crunchy is an application that transforms normally static Python tutorial (html files, or reStructuredText ones - if docutils is installed on your computer) into interactive sessions within your browser (Firefox). It is available from

!!! ...YOU MUST KNOW THIS MAN

2008-10-09 Thread the . great . win . aljana
In The Name Of Allaah, Most Gracious, Most Merciful YOU MUST KNOW THIS MAN MUHAMMAD (May peace and blessings of God Almighty be upon him) You may be an atheist or an agnostic; or you may belong to anyone of the religious denominations that exist in the world today. You may be a Communist or a

Twelve Proofs that Muhammad is a True Prophet

2008-10-09 Thread the . great . win . aljana
My brothers and sisters everywhere! With this essay, I am not singling out the adherents of Islam - to which I ascribe - but rather I am writing this essay to every man and woman throughout the whole world. I ask Allah that He facilitates tat this essay reaches every ear, falls under the sight of

Excuse me Would you stop for a moment?!

2008-10-09 Thread the . great . win . aljana
Excuse me!! Would you stop for a moment?! O...man...Haven't you thought-one day- about yourself ? Who has made it? Have you seen a design which hasn't a designer ?! Have you seen a wonderful,delicate work without a worker ?! It's you and the whole universe!.. Who has made them all ?!! You know who

Re: Python HTML parser chokes on UTF-8 input

2008-10-09 Thread Terry Reedy
Johannes Bauer wrote: Terry Reedy schrieb: Johannes Bauer wrote: Hello group, I'm trying to use a htmllib.HTMLParser derivate class to parse a website which I fetched via httplib.HTTPConnection().request().getresponse().read(). Now the problem is: As soon as I pass the htmllib.HTMLParser

ANNOUNCE: new package posix_ipc 0.1 available

2008-10-09 Thread Philip Semanchuk
The package posix_ipc provides a Python interface to POSIX shared memory and named semaphores on platforms that support them (i.e. most Unices). Platform details, source code, sample code and usage instructions are provided at the link below. This package is GPLed.

epoll socket server

2008-10-09 Thread James Mills
Does anyone have any simple examples of using Python 2.6/3.0's epoll with a simpler socket (tcp) server ? Thanks, cheers James -- -- -- Problems are solved by method -- http://mail.python.org/mailman/listinfo/python-list

!!!!...Hi Hi Hi

2008-10-09 Thread the great win
Hi My name is fatima I’ve seen many places of the world on TV screen and few that I’ve visited either for fun or/and business As you know when we travel we meet a lot of different cultures and people, I found in many places I’ve been to; that people stereotyped Islam (that's my religion) they

This can't get more amazing see for yourself! http://tardis-db.co.uk/

2008-10-09 Thread Wonderluder
This can't get more amazing see for yourself! http://tardis-db.co.uk/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with cPickle and cElementTree

2008-10-09 Thread Stefan Behnel
Barry wrote: I recently tried switching from ElementTree to cElementTree. My application parses a collection of large XML files and creates indexes based on certain attributes. This entire collection is saved as an instance of my Database class. Using ElementTree and cPickle has allowed me

urlparse import Faillure

2008-10-09 Thread Robert Hancock
Python 2.5.2 (r252:60911, Aug 28 2008, 23:51:17) [GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2 Type help, copyright, credits or license for more information. import CGIHTTPServer Traceback (most recent call last): File stdin, line 1, in module File

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Jason Day
Changes by Jason Day [EMAIL PROTECTED]: -- title: ntpath.abspath can fail on Win Server 2008 (64-bit) - ntpath.abspath fails for long str paths ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4071

[issue4083] try statement in language reference not updated for v2.6

2008-10-09 Thread Davi Post
New submission from Davi Post [EMAIL PROTECTED]: Language Reference for the try statement does not show changes for v2.6, specifically the PEP 3110: Exception-Handling Changes. At least, the grammar should include the except ... as syntax.

[issue4084] Decimal.max(NaN, x) gives incorrect results when x is finite and long

2008-10-09 Thread Mark Dickinson
New submission from Mark Dickinson [EMAIL PROTECTED]: Here's a snippet from Python 2.6: from decimal import Decimal, getcontext getcontext().prec = 3 Decimal('NaN').max(Decimal('1234')) Decimal('sNaN234') The result here should be Decimal('1.23E+3')---the specification says that the result

[issue4085] 2.5.2 whatsnew document corrupts names, by having broken HTML, at least on the Web.

2008-10-09 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Your analysis is correct -- the HTML is invalid. However, this problem doesn't occur in new documentation since we don't use the system used until 2.5 anymore. -- resolution: - wont fix status: open - closed

[issue3741] DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception

2008-10-09 Thread Christian Boos
Christian Boos [EMAIL PROTECTED] added the comment: Hit the same issue, which is actually only a typo, as self.__path is used nowhere. diff -r 4d10dcbd5f63 Lib/distutils/msvc9compiler.py --- a/Lib/distutils/msvc9compiler.pyThu Oct 09 11:19:40 2008 +0200 +++ b/Lib/distutils/msvc9compiler.py

[issue1905] PythonLauncher not working correctly on OS X 10.5/Leopad

2008-10-09 Thread The Lawnmower man
The Lawnmower man [EMAIL PROTECTED] added the comment: Sorry, but I still have the same problem as Kevin Walzer and I can't understand the solution proposed by Ronald Oussoren. Where is the patch? How can I install it? What I am supposed to do? Thank you very much! -- nosy:

[issue4086] support %z format in time.strftime and _strptime?

2008-10-09 Thread Skip Montanaro
New submission from Skip Montanaro [EMAIL PROTECTED]: While responding to a c.l.py question just now I discovered that numeric timezone offsets don't appear to be supported by either the time.strftime function or the _strptime module. I noticed on my Mac's strftime(3) man page that it supports

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: I build the installation myself and used make altinstall, too. Even the latest checkout of the 2.6 branch fails to print the site information. $ ./configure ... $ make ... $ ./python -m site $ ./python -m platform

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-09 Thread Ulrich Eckhardt
Ulrich Eckhardt [EMAIL PROTECTED] added the comment: Roumen, just and explanation on the TCHAR/WCHAR/CHAR issue under win32... In the old days, DOS/Windows was built with 8-bit characters using codepages. So functions like CreateFile() took a char string that used the current local codepage as

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python',

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python',

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-09 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: Which CE version ? Is the patch required for previous/next CE version ? If the CE can't work with char why the compiler don't threat strings as wide characters always ? -- nosy: +rpetrov ___ Python

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4087] equality involving Decimals is not transitive; strange set behaviour results

2008-10-09 Thread Mark Dickinson
New submission from Mark Dickinson [EMAIL PROTECTED]: The Decimal module breaks transitivity of equality: Decimal(2) == 2 and 2 == float(2), but Decimal(2) != float(2). The Python set and dict implementations rely on transitivity of equality for correct operation. These two facts together

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-09 Thread Ulrich Eckhardt
Ulrich Eckhardt [EMAIL PROTECTED] added the comment: Actually, even _Py_NegativeRefcount() passes a statically sized buffer with 300 chars. Other than that, there is get_ref_type() which uses one with 350 chars, but AFAICT, that's the largest one. Attached accordingly modified patch.

[issue3724] math.log(x, 10) gives different result than math.log10(x)

2008-10-09 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Mark, is some of the inaccuracy due to double rounding? No, I don't think so; at least, not in the sense of rounding the same value twice (with different precisions). I get similar results on my Core 2 Duo machine, which should be immune

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Hmm, that makes for absolutely identical base systems except that mine is i686 where yours is x86_64. What do you see if you stick some debugging messages at module level in site.py? (e.g. printing out __name__) (I'll be going offline shortly -

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: I already added a print __name__ right before the if __name__ == __main__ block. Python 2.5, trunk and 3.0 print: site __main__ while Python 2.6 just prints: site Christian ___ Python tracker [EMAIL

[issue4076] Cannot build non-framework tkinter Python on Mac OS X.5

2008-10-09 Thread Dan OD
Dan OD [EMAIL PROTECTED] added the comment: Confusion - apologies - please remove this report. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4076 ___ ___

[issue3727] poplib module broken by str to unicode conversion

2008-10-09 Thread Giampaolo Rodola'
Giampaolo Rodola' [EMAIL PROTECTED] added the comment: As for issue #3911 this is another module for which an actual test suite would be very necessary. -- nosy: +giampaolo.rodola ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: I'm setting up a 2.6 working area now - we'll see what's to be seen once I have that up and running. None of the runpy or pkgutil stuff has been touched in months though (since PEP 366 was implemented), so I'm a little puzzled how it could be

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python',

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: No joy. 32-bit Ubuntu here, and ./python -m site works fine on the 2.6 branch, as does python2.6 -m site after a make altinstall. Is this an installation you built yourself, or was it packaged by someone else?

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: It's an *installation* of Python 2.6.0 (r26:66714, Oct 2 2008) on Ubuntu Linux AMD64. The feature is broken on the release26-maint branch but it works fine on the trunk. -- versions: -Python 2.7

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python',

[issue4012] Minor errors in multiprocessing docs

2008-10-09 Thread David Ripton
David Ripton [EMAIL PROTECTED] added the comment: Also, two of the example code blurbs in that page still refer to the module as processing instead of multiprocessing. (Search for import processing to find them.) -- nosy: +dripton ___ Python tracker

[issue4085] 2.5.2 whatsnew document corrupts names, by having broken HTML, at least on the Web.

2008-10-09 Thread David Jones
New submission from David Jones [EMAIL PROTECTED]: Consider the web page: http://www.python.org/doc/2.5.2/whatsnew/acks.html (the problem appears throughout the whatsnew document, but that page happens to be short and have more than one instance). On my browser, Safari 3.1.2 on Intel OS X

[issue4088] Patch to implement a real poplib test suite

2008-10-09 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' [EMAIL PROTECTED]: poplib module is currently lacking a test suite which actually connects to a server and uses the POP3 class methods and facilities. Bug #3727, discovered just a bunch of days before the stable release of Python 3.0 is an example of how

[issue4089] linking python2.6.dll crash on windows xp

2008-10-09 Thread Manuel
New submission from Manuel [EMAIL PROTECTED]: On some machines, the application (makehuman, an open source software) crash, immediately, as soon the user try to double click on the exe. The problem happen with the version compiled using python 2.6, while the one compiled with 2.5 work fine. We

[issue4089] linking python2.6.dll crash on windows xp

2008-10-09 Thread Manuel
Manuel [EMAIL PROTECTED] added the comment: gdb output from one of our users: warning: LDR: LdrpWalkImportDescriptor() failed to probe python26.dll for its manifest, ntstatus 0xc0150002 Program received signal SIGSEGV, Segmentation fault. Program received

[issue4089] linking python2.6.dll crash on windows xp

2008-10-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' [EMAIL PROTECTED]: -- nosy: +giampaolo.rodola ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4089 ___ ___ Python-bugs-list

[issue3724] math.log(x, 10) gives different result than math.log10(x)

2008-10-09 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: +1 on a log2 function, especially one that has been generalized to work with long integers. It would help with the numbits problem that comes-up all the time. ___ Python tracker [EMAIL PROTECTED]

[issue4090] Documenting set comparisons and operations

2008-10-09 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: RefMan Expressions Comparisons has a subsection headed Comparison of objects of the same type depends on the type with entries for numbers, bytes, strings, tuples, lists, mappings, and most_other (compared by id). Sets (and dict views) are

[issue4087] equality involving Decimals is not transitive; strange set behaviour results

2008-10-09 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: There are two issues involved: 1. documenting set behavior 2. what to do, if anything, about Decimals and other numbers Since users are free to create similar problems, and since sets are missing from the Reference section on comparisons, I

[issue4087] equality involving Decimals is not transitive; strange set behaviour results

2008-10-09 Thread Facundo Batista
Facundo Batista [EMAIL PROTECTED] added the comment: (Ok, remember that I'm not a numeric guy before start hitting me, :p ) I think that if we have Decimal(1)==1, and 1==1.0, to have Decimal(1)==1.0. We always rejected comparison with unsupported types, but having this situation, I'd propose

<    1   2   3   >