PyPy winter sprint in Leysin, Switzerland

2010-12-09 Thread Armin Rigo
= PyPy Leysin Winter Sprint (16-22nd January 2011) = The next PyPy sprint will be in Leysin, Switzerland, for the seventh time. This is a fully public

Re: Comparisons of incompatible types

2010-12-09 Thread Steven D'Aprano
On Wed, 08 Dec 2010 20:16:57 -0800, John Nagle wrote: Here's an example where this issue produces invalid results in Python. NaN = float(nan) arr = [1.0, 4.0, 3.0, 2.0, 5.0, NaN, 6.0, 3.0, NaN, 0.0, 1.0, 4.0, 3.0, 2.0, 5.0, NaN, 6.0, 3.0, NaN, 0.0] sorted(arr) [0.0, 0.0,

Re: Comparisons of incompatible types

2010-12-09 Thread Terry Reedy
On 12/9/2010 2:58 AM, Steven D'Aprano wrote: On Wed, 08 Dec 2010 20:16:57 -0800, John Nagle wrote: Here's an example where this issue produces invalid results in Python. NaN = float(nan) arr = [1.0, 4.0, 3.0, 2.0, 5.0, NaN, 6.0, 3.0, NaN, 0.0, 1.0, 4.0, 3.0, 2.0, 5.0, NaN,

Re: trace cmd line args

2010-12-09 Thread Terry Reedy
On 12/9/2010 1:10 AM, rusi wrote: I am unable to get trace to not trace system modules. Try it with 3.2b1, just released. Multiple bugs were fixed in trace. Some fixes might also be in recent 2.7.1 and 3.1.3. Not sure. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: is py2exe still active ?

2010-12-09 Thread Octavian Rasnita
Hi Philip, I thought that pypi works like cpan for Perl, but now I understand. Thank you for clarifications. -- Octavian --- From: Philip Semanchuk phi...@semanchuk.com On Dec 8, 2010, at 5:09 AM, Octavian Rasnita wrote: Hi Steve, I may put some stupid questions because I am very

Re: Using a window style in a Toplevel window

2010-12-09 Thread Eric Brunel
In article mailman.185.1291395907.2649.python-l...@python.org, craf p...@vtr.net wrote: Hi. I use Python 3.1 and Tkinter.ttk 8.5 on Ubuntu 9.10. CODE: module:FMain.py from tkinter import ttk from FSecondWindow import * class

run a function in another processor in python

2010-12-09 Thread Astan Chee
Hi, I've got a python script that calls a function many times with various arguments and returns a result. What I'm trying to do is run this function each on different processors and compile the result at the end based on the function result. The script looks something like this: import time

Re: run a function in another processor in python

2010-12-09 Thread Jean-Michel Pichavant
Astan Chee wrote: Hi, I've got a python script that calls a function many times with various arguments and returns a result. What I'm trying to do is run this function each on different processors and compile the result at the end based on the function result. The script looks something like

packaging python code in zip file

2010-12-09 Thread mark jason
hi, I have created a python app in eclipse pydev .The app is structured as below.. mypackage |__ __init__.py |__ driver.py |__ helper.py |__ utils.py The driver.py has the main program.I have added if __name__==__main__ block in the driver.py and pydev's run

Re: packaging python code in zip file

2010-12-09 Thread Nitin Pawar
have u tried using setuptools and distutils they are used for python package distributions On Thu, Dec 9, 2010 at 5:02 PM, mark jason markjaso...@gmail.com wrote: hi, I have created a python app in eclipse pydev .The app is structured as below.. mypackage |__ __init__.py |__

[Fwd: Re: Using a window style in a Toplevel window]

2010-12-09 Thread craf
- Mensaje reenviado De: Eric Brunel eric.bru...@pragmadev.nospam.com Para: python-list@python.org Asunto: Re: Using a window style in a Toplevel window Fecha: Thu, 09 Dec 2010 10:00:39 +0100 Grupos de noticias: comp.lang.python In article

Re: trace cmd line args

2010-12-09 Thread rusi
On Dec 9, 1:39 pm, Terry Reedy tjre...@udel.edu wrote: On 12/9/2010 1:10 AM, rusi wrote: I am unable to get trace to not trace system modules. Try it with 3.2b1, just released. Multiple bugs were fixed in trace. Some fixes might also be in recent 2.7.1 and 3.1.3. Not sure. -- Terry Jan

Re: Using a window style in a Toplevel window

2010-12-09 Thread python
Eric, Besides style support, what are the advantages of ttk.Frame vs. Tkinter.Frame? Thanks, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: A web site using Python

2010-12-09 Thread Stefaan Himpe
1. Pick a web framework, I'd suggest looking at: web2py: http://web2py.com - probably the easiest to install (no configuration needed) and learn. Suitable for both small and big projects. No worries when upgrading to a newer version as backward compatibility is an explicit design goal. --

Re: Comparisons of incompatible types

2010-12-09 Thread Mark Wooding
John Nagle na...@animats.com writes: NaN = float(nan) arr = [1.0, 4.0, 3.0, 2.0, 5.0, NaN, 6.0, 3.0, NaN, 0.0, 1.0, 4.0, 3.0, 2.0, 5.0, NaN, 6.0, 3.0, NaN, 0.0] sorted(arr) [0.0, 0.0, 1.0, 1.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 4.0, 5.0, nan, 5.0, 6.0, nan, 4.0, nan, 6.0, nan] The sorted

Re: run a function in another processor in python

2010-12-09 Thread Astan Chee
Thanks but I'm having trouble with that module too. Currently what I have is something like this: import sys import os import multiprocessing import time def functionTester(num): return ((num+2)/(num-2))**2 num_args = [61,62,33,7,12,16,19,35,36,37,38,55,56,57,63] max_result = 0 start =

Re: packaging python code in zip file

2010-12-09 Thread Peter Otten
mark jason wrote: hi, I have created a python app in eclipse pydev .The app is structured as below.. mypackage |__ __init__.py |__ driver.py |__ helper.py |__ utils.py The driver.py has the main program.I have added if __name__==__main__ block in the

Re: Re: 64 bit memory usage

2010-12-09 Thread Heather Brown
On 01/-10/-28163 02:59 PM, Dennis Lee Bieber wrote: On Wed, 8 Dec 2010 14:44:30 +, Rob Randallrob.randa...@gmail.com declaimed the following in gmane.comp.python.general: I am trying to understand how much memory is available to a 64 bit python process running under Windows XP 64 bit.

Re: Replacing globals in exec by custom class

2010-12-09 Thread Jonathan S
Thanks for your response! (And sorry about the syntax error, I forgot to test my code after cleaning up some debug statements before posting, the else should have been elif indeed.) It's very interesing, how Python works internally. According to a thread on the Python mailing list in 2002, it

Re: kinterbasdb error connection

2010-12-09 Thread Uwe Grauer
On 12/07/2010 04:35 PM, Ale Ghelfi wrote: (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 : You are not using the current kinterbasdb version. See:

Re: Can't deepcopy bytes-derived class

2010-12-09 Thread Dan
On Dec 8, 9:05 pm, Terry Reedy tjre...@udel.edu wrote: On 12/8/2010 7:11 PM, Ned Deily wrote: In articleidosir$45...@dough.gmane.org, Terry Reedytjre...@udel.edu  wrote: On 12/8/2010 2:42 PM, Dan wrote: I have a simple type derived from bytes... class atom(bytes): pass ...

Re: run a function in another processor in python

2010-12-09 Thread Peter Otten
Astan Chee wrote: Thanks but I'm having trouble with that module too. Currently what I have is something like this: import sys import os import multiprocessing import time def functionTester(num): return ((num+2)/(num-2))**2 num_args =

Re: completely implicit interpolation based on a frame object

2010-12-09 Thread nn
On Dec 9, 2:29 am, Edward Peschko horo...@gmail.com wrote: Any ideas would be great on this, including pitfalls that people see in implementing it. http://docs.python.org/library/string.html#template-strings regards  Steve Steve, Thanks for the tip, I did look at templates and

Re: Can't deepcopy bytes-derived class

2010-12-09 Thread Terry Reedy
On 12/9/2010 9:19 AM, Dan wrote: I tested the 4 line change anyway...removing it from 3.2 had no detrimental effect, adding it to 3.1 had no effect. It must be something else. Then there must have been a change in the bytes object, which is deeper than I want to go. 3.2 has a LOT of little

Re: trace cmd line args

2010-12-09 Thread Terry Reedy
On 12/9/2010 7:12 AM, rusi wrote: On Dec 9, 1:39 pm, Terry Reedytjre...@udel.edu wrote: On 12/9/2010 1:10 AM, rusi wrote: I am unable to get trace to not trace system modules. Try it with 3.2b1, just released. Multiple bugs were fixed in trace. Some fixes might also be in recent 2.7.1 and

Re: 64 bit memory usage

2010-12-09 Thread Nobody
Rob Randall rob.randa...@gmail.com wrote: I am trying to understand how much memory is available to a 64 bit python process running under Windows XP 64 bit. When I run tests just creating a series of large dictionaries containing string keys and float values I do not seem to be able to grow

Re: 64 bit memory usage

2010-12-09 Thread Antoine Pitrou
On Wed, 8 Dec 2010 14:44:30 + Rob Randall rob.randa...@gmail.com wrote: I am trying to understand how much memory is available to a 64 bit python process running under Windows XP 64 bit. When I run tests just creating a series of large dictionaries containing string keys and float values

Re: Using a window style in a Toplevel window

2010-12-09 Thread Eric Brunel
In article mailman.346.1291897180.2649.python-l...@python.org, pyt...@bdurham.com wrote: Eric, Besides style support, what are the advantages of ttk.Frame vs. Tkinter.Frame? I'd say none. They are both just containers for other widgets, support the same layout managers, and so on. For me,

Re: run a function in another processor in python

2010-12-09 Thread geremy condra
On Thu, Dec 9, 2010 at 5:03 AM, Astan Chee astan.c...@gmail.com wrote: Thanks but I'm having trouble with that module too. Currently what I have is something like this: import sys import os import multiprocessing import time def functionTester(num):    return ((num+2)/(num-2))**2

Re: 64 bit memory usage

2010-12-09 Thread Rob Randall
But the C++ program using up memory does not slow up. It has gone to 40GB without much trouble. Does anyone have a 64 bit python application that uses more the 2GB? On 9 December 2010 16:54, Antoine Pitrou solip...@pitrou.net wrote: On Wed, 8 Dec 2010 14:44:30 + Rob Randall

Re: 64 bit memory usage

2010-12-09 Thread Rob Randall
Basically the process runs at around 1% and it never seems to grow in size again. When running the C++ with python app the process slows when a new 'page' is required but then goes back to 'full' speed. It does this until basically all the virtual memory is used. I have had memory exceptions when

Re: 64 bit memory usage

2010-12-09 Thread John Nagle
On 12/8/2010 11:40 PM, Ian Kelly wrote: Since a process need not have all its pages in physical memory simultaneously, there is no reason to suppose that a single process could not consume the entirety of the available virtual memory (minus what is used by the operating system) on a 64-bit

Re: 64 bit memory usage

2010-12-09 Thread Benjamin Kaplan
On Thursday, December 9, 2010, Rob Randall rob.randa...@gmail.com wrote: But the C++ program using up memory does not slow up. It has gone to 40GB without much trouble. Your C++ program probably doesn't have a garbage collector traversing the entire allocated memory looking for reference

Re: Comparisons of incompatible types

2010-12-09 Thread John Nagle
On 12/9/2010 12:36 AM, Terry Reedy wrote: On 12/9/2010 2:58 AM, Steven D'Aprano wrote: On Wed, 08 Dec 2010 20:16:57 -0800, John Nagle wrote: I believe that is that exactly one of ,=. are true. Not for NaNs. NaN = float('nan') NaN == NaN False NaN NaN False NaN NaN False That's

Re: trace cmd line args

2010-12-09 Thread rusi
On Dec 9, 9:03 pm, Terry Reedy tjre...@udel.edu wrote: On 12/9/2010 7:12 AM, rusi wrote: On Dec 9, 1:39 pm, Terry Reedytjre...@udel.edu  wrote: On 12/9/2010 1:10 AM, rusi wrote: I am unable to get trace to not trace system modules. Try it with 3.2b1, just released. Multiple bugs were

Re: trace cmd line args

2010-12-09 Thread rusi
On Dec 9, 10:37 pm, rusi rustompm...@gmail.com wrote: On Dec 9, 9:03 pm, Terry Reedy tjre...@udel.edu wrote: On 12/9/2010 7:12 AM, rusi wrote: On Dec 9, 1:39 pm, Terry Reedytjre...@udel.edu  wrote: On 12/9/2010 1:10 AM, rusi wrote: I am unable to get trace to not trace system

Condition signals and restarts, resumable exceptions (was: Comparison with False - something I don't understand)

2010-12-09 Thread Teemu Likonen
* 2010-12-06 00:14 (-0800), Paul Rubin wrote: You know, I've heard the story from language designers several times over, that they tried putting resumable exceptions into their languages and it turned out to be a big mess, so they went to termination exceptions that fixed the issue. Are there

Re: 64 bit memory usage

2010-12-09 Thread Rob Randall
I will give it a try with the garbage collector disabled. On 9 December 2010 17:29, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Thursday, December 9, 2010, Rob Randall rob.randa...@gmail.com wrote: But the C++ program using up memory does not slow up. It has gone to 40GB without much

Re: 64 bit memory usage

2010-12-09 Thread Antoine Pitrou
On Thu, 9 Dec 2010 17:18:58 + Rob Randall rob.randa...@gmail.com wrote: Basically the process runs at around 1% and it never seems to grow in size again. When running the C++ with python app the process slows when a new 'page' is required but then goes back to 'full' speed. It does this

Reference counting problems?

2010-12-09 Thread Eric Frederich
I am attempting to automate the building of binding for a 3rd party library. The functions I'm wrapping all return an integer of whether they failed and output are passed as pointers. There can be multiple return values. So the code that I generate has a PyObject* called python__return_val that I

Added Python, WSGI to XAMPP

2010-12-09 Thread Gerry Reno
If you have any need of a portable LAMP stack, I just finished writing some How-To's for getting Python, VirtualEnv and WSGI frameworks running with XAMPP: How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP http://www.apachefriends.org/f/viewtopic.php?f=17t=42981 How-To: Add VirtualEnv

Re: completely implicit interpolation based on a frame object (nn)

2010-12-09 Thread Edward Peschko
a bit closer here, but I'm not sure if they are workable (or usable) with 2.5... which is where I need to work. Ed One of the solutions from here might work for you: http://wiki.python.org/moin/Templating Ok, cool. A couple of followups - I'd be interested in knowing which of the

***locale.Error: unsupported locale setting***

2010-12-09 Thread Anurag Chourasia
Hi All, When i try to set a locale manually, i get this error. import locale locale.setlocale(locale.LC_ALL, 'es_cl.iso88591') Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python2.7/locale.py, line 531, in setlocale return _setlocale(category,

Re: 64 bit memory usage

2010-12-09 Thread John Nagle
On 12/8/2010 10:42 PM, Dennis Lee Bieber wrote: On Wed, 8 Dec 2010 14:44:30 +, Rob Randallrob.randa...@gmail.com declaimed the following in gmane.comp.python.general: I am trying to understand how much memory is available to a 64 bit python process running under Windows XP 64 bit. When I

Re: Comparisons of incompatible types

2010-12-09 Thread Steven D'Aprano
On Thu, 09 Dec 2010 12:21:45 +, Mark Wooding wrote: John Nagle na...@animats.com writes: sort has failed because it assumes that a b and b c implies a c. But that's not a valid assumption here. It's not good to break trichotomy. You're confused. The property a b and b

Re: Comparisons of incompatible types

2010-12-09 Thread Steven D'Aprano
On Thu, 09 Dec 2010 09:34:19 -0800, John Nagle wrote: (The best coverage of this whole topic was the Apple Numerics Manual for the original Mac. Apple hired the floating point expert from Berkeley to get this right. Then Apple went from the M68xxx series to the IBM PowerPC, and 80-bit

Request for feedback on API design

2010-12-09 Thread Steven D'Aprano
I am soliciting feedback regarding the API of my statistics module: http://code.google.com/p/pycalcstats/ Specifically the following couple of issues: (1) Multivariate statistics such as covariance have two obvious APIs: A pass the X and Y values as two separate iterable arguments, e.g.:

Re: Reference counting problems?

2010-12-09 Thread MRAB
On 09/12/2010 20:23, Eric Frederich wrote: I am attempting to automate the building of binding for a 3rd party library. The functions I'm wrapping all return an integer of whether they failed and output are passed as pointers. There can be multiple return values. So the code that I generate has

Re: ***locale.Error: unsupported locale setting***

2010-12-09 Thread Vlastimil Brom
2010/12/9 Anurag Chourasia anurag.choura...@gmail.com: Hi All, When i try to set a locale manually, i get this error. import locale locale.setlocale(locale.LC_ALL, 'es_cl.iso88591') Traceback (most recent call last):   File stdin, line 1, in module   File /usr/local/lib/python2.7/locale.py,

Proposed changes to logging defaults

2010-12-09 Thread Vinay Sajip
Some changes are being proposed to how logging works in default configurations. Briefly - when a logging event occurs which needs to be output to some log, the behaviour of the logging package when no explicit logging configuration is provided will change, most likely to log those events to

Re: Proposed changes to logging defaults

2010-12-09 Thread Ethan Furman
Vinay Sajip wrote: Some changes are being proposed to how logging works in default configurations. I like the changes proposed. Question about the handler of last resort: is there only one of them, or will each library have its own so it can decide what the minimum severity should be for

Re: Request for feedback on API design

2010-12-09 Thread Tim Chase
On 12/09/2010 05:44 PM, Steven D'Aprano wrote: (1) Multivariate statistics such as covariance have two obvious APIs: A pass the X and Y values as two separate iterable arguments, e.g.: cov([1, 2, 3], [4, 5, 6]) B pass the X and Y values as a single iterable of tuples, e.g.:

Re: win32 design pattern: COM localserver?

2010-12-09 Thread Mark Hammond
If you are implementing a COM object using win32com, then Python will never be unloaded from the host process, which works in your favour. Just have the COM object use a thread and a queue for this processing. The 'report' method would just stick the params and filenames in the queue and

dns library

2010-12-09 Thread Paulo da Silva
Hi. Is there a python library/module to handle both the server and client sides of dns protocol? I have googled for it but I only found client side ones (at least from the superficial readings I did). Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposed changes to logging defaults

2010-12-09 Thread Vinay Sajip
On Dec 10, 12:48 am, Ethan Furman et...@stoneleaf.us wrote: I like the changes proposed. Question about the handler of last resort:  is there only one of them, or will each library have its own so it can decide what the minimum severity should be for itself? Libraries decide their

Re: dns library

2010-12-09 Thread Jean-Paul Calderone
On Dec 9, 8:15 pm, Paulo da Silva psdasilva.nos...@netcabonospam.pt wrote: Hi. Is there a python library/module to handle both the server and client sides of dns protocol? I have googled for it but I only found client side ones (at least from the superficial readings I did). Thanks.

Deprecation warnings (2.7 - 3 )

2010-12-09 Thread rusi
In trying to get from 2.x to 3 Terry suggested I use 2.7 with deprecation warnings Heres the (first) set DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x DeprecationWarning: callable() not supported in 3.x; use isinstance(x, collections.Callable) Is there one

Re: little emacs lisp tutorial on turning a url into a link

2010-12-09 Thread small Pox
On Dec 4, 1:38 am, Xah Lee xah...@gmail.com wrote: On Dec 3, 8:20 pm, duckblue cdep...@gmail.com wrote: why is xah lee posting this information? sites with more external links pointing to them are given a higher ranking by search engines such as google. as a result they appear

Re: little emacs lisp tutorial on turning a url into a link

2010-12-09 Thread small Pox
On Dec 9, 7:32 pm, small Pox smallpox...@gmail.com wrote: On Dec 4, 1:38 am, Xah Lee xah...@gmail.com wrote: On Dec 3, 8:20 pm, duckblue cdep...@gmail.com wrote: why is xah lee posting this information? sites with more external links pointing to them are given a higher

Re: little emacs lisp tutorial on turning a url into a link

2010-12-09 Thread small Pox
On Dec 9, 7:32 pm, small Pox smallpox...@gmail.com wrote: On Dec 4, 1:38 am, Xah Lee xah...@gmail.com wrote: On Dec 3, 8:20 pm, duckblue cdep...@gmail.com wrote: why is xah lee posting this information? sites with more external links pointing to them are given a higher

Re: Deprecation warnings (2.7 - 3 )

2010-12-09 Thread Terry Reedy
On 12/9/2010 10:15 PM, rusi wrote: In trying to get from 2.x to 3 Terry suggested I use 2.7 with deprecation warnings Heres the (first) set DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x DeprecationWarning: callable() not supported in 3.x; use isinstance(x,

printing error message from an Exception

2010-12-09 Thread mark jason
hi I was trying out some file operations and was trying to open a non existing file as below def do_work(filename): try: f = open(filename,r); print 'opened' except IOError, e: print 'failed',e.message finally: f.close() print 'closed' if

Re: dns library

2010-12-09 Thread Paulo da Silva
Em 10-12-2010 02:59, Jean-Paul Calderone escreveu: On Dec 9, 8:15 pm, Paulo da Silva psdasilva.nos...@netcabonospam.pt wrote: Hi. Is there a python library/module to handle both the server and client sides of dns protocol? I have googled for it but I only found client side ones (at least

Re: printing error message from an Exception

2010-12-09 Thread Steven D'Aprano
On Thu, 09 Dec 2010 22:16:17 -0800, mark jason wrote: hi I was trying out some file operations and was trying to open a non existing file as below def do_work(filename): try: f = open(filename,r); print 'opened' except IOError, e: print

Re: Request for feedback on API design

2010-12-09 Thread Steven D'Aprano
On Thu, 09 Dec 2010 18:48:10 -0600, Tim Chase wrote: On 12/09/2010 05:44 PM, Steven D'Aprano wrote: (1) Multivariate statistics such as covariance have two obvious APIs: A pass the X and Y values as two separate iterable arguments, e.g.: cov([1, 2, 3], [4, 5, 6]) B

[issue10657] os.lstat/os.stat/os.fstat don't set st_dev (st_rdev) on Windows

2010-12-09 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I noticed st_dev is not set yet. Attached patch fill this value, but sometimes it becomes negative value because dwVolumeSerialNumber is large enough. Maybe st_dev should be declared as unsigned int. # I think this is not new

[issue1571170] Some numeric characters are still not recognized

2010-12-09 Thread Anders Chrigström
Anders Chrigström ander...@users.sourceforge.net added the comment: This is indeed a duplicate of #1571184 -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1571170

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-12-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: This is updated version. Can you test this? (I only fixed leak, deferred other fixes to future) -- Added file: http://bugs.python.org/file19985/py3k_fix_leak_around_GetFinalPathNameByHandle_v2.patch

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-12-09 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file18979/py3k_fix_leak_around_GetFinalPathNameByHandle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927

[issue10653] test_time test_strptime fails on windows

2010-12-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: 1. Decoding the output of wcsftime(). Python expects mbcs (which I believe is an UTF16-like wide char encoding) while Windows apparently puts cp932 there in your locale. I don't have expertise to address this issue. No, mbcs

[issue10658] Link to source code is broken

2010-12-09 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: http://docs.python.org/library/queue.html -- assignee: d...@python components: Documentation messages: 123677 nosy: d...@python, techtonik priority: normal severity: normal status: open title: Link to source code is broken

[issue10658] Link to source code is broken

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r87143. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10658 ___

[issue10655] Wrong powerpc define in Python/ceval.c

2010-12-09 Thread adrian
adrian adr...@lisas.de added the comment: Here is a patch that I had to include in my Linux PowerPC build of 2.7 and 3.2 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -31,10 +31,12 @@ typedef unsigned long long uint64; -#if defined(__ppc__) /* - Don't know if this is the correct symbol;

[issue10659] Hook scripts for immediate doc build system

2010-12-09 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: When a new revision is committed to documentation, it will be nice to have hook scripts that start documentation build process on development server. Another hook script may also analyze commit message, extract ticket number, branch

[issue9523] Improve dbm modules

2010-12-09 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Here is the updated patch, which fixed: 1. remove get() method of gdbm since issue6045 has already add it. 2. method keys() and items() of dbm object return set instead of list. Since pep3119 said keys() and items() should return collections.Set

[issue10516] Add list.clear() and list.copy()

2010-12-09 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: eli, you should also add New in version 3.3 to the doc of the tow new list methods. -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516

[issue10659] Hook scripts for immediate doc build system

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The development docs are rebuilt twice a day; that should be enough. As for tracker integration with version control, that is already an issue for the meta tracker at http://psf.upfronthosting.co.za/roundup/meta/issue20 (which you should know,

[issue10660] format() to lower and uppercase

2010-12-09 Thread Hervé Cauwelier
New submission from Hervé Cauwelier he...@itaapy.com: Hexadecimals can be formatted to lower and uppercase: '{0:x}'.format(123) '7b' '{0:X}'.format(123) '7B' I would like the same thing for strings: '{0.lastname:u} {0.firstname}'.format(user) 'DOE John' I first thought using S for

[issue10660] format() to lower and uppercase

2010-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The format support is written specifically so that it is extensible. You can write your own string subclass that extends the formatting mini-language with whatever features you find useful. There are too many variations on what might

[issue6422] timeit called from within Python should allow autoranging

2010-12-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6422 ___

[issue10660] format() to lower and uppercase

2010-12-09 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I agree with David. Here's an example of using such a subclass. It extends the format string for strings to begin with an optional 'u' or 'l': --- class U(str): def __format__(self, fmt): if fmt[0] == 'u':

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone inva...@example.invalid: This is somewhat unfortunate behavior: from xml.etree.ElementTree import QName QName('foo') xml.etree.ElementTree.QName instance at 0x10049c830 It becomes even more apparent when encountered in a situation like this: print

[issue10662] Typo in concurrent.futures, seperate

2010-12-09 Thread Christian Oudard
New submission from Christian Oudard christian.oud...@gmail.com: Found the misspelling seperate in two places in the concurrent.futures library module. Patch attached, correcting the spelling to separate. -- files: seperate.patch keywords: patch messages: 123688 nosy: Christian.Oudard

[issue10662] Typo in concurrent.futures, seperate

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r87146. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10662 ___

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Added in r87147. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10661 ___

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This should be either: 'QName %r' % (self.text,) or: 'QName {!r}'.format(self.text) If self.text is a tuple (which granted is its own error), then the version checked in will raise an exception. -- nosy: +eric.smith resolution: fixed -

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Granted. Since the rest of the file uses old-style format, I've kept to it, r87148. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10661

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-12-09 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: With Georg's approval, I am reopening this issue until a decision is made on whether {str,bytes,bytearray}.{transform,untransform} methods should go into 3.2. I am adding Guido to nosy because the decision may turn on

[issue10453] Add -h/--help option to compileall

2010-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, here is what I hope is a comprehensive set of CLI tests, and fixes for the bugs revealed thereby. Except for the new test added by Georg after the original patch here was committed, all of the tests either pass using the old

[issue10663] configure shouldn't set a default OPT

2010-12-09 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: The configure.in sets a default OPT of -O if none was set by the user, but I think that's wrong. The user could simply pass optimization flags as part of CFLAGS instead, and then the contents of OPT could conflict with that of CFLAGS (which

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: for what it is worth, I am +1 on having completion and history file work by default. The sqlite3 command line does this, for example. I think it is what unix user expect nowadays, and I think it is reasonable. Looking at my home

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Okay, that’s one question answered. Still to solve: How to bind the right key? (“But perhaps tab isn’t the right key to bind. I think inputrc could set it to something different, perhaps shell rc files too. Is there an API to get this setting,

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think TAB is the key expected by most people, so let's make it the default. As for the location, site.py is an adequate one IMO. -- components: +Library (Lib) -Interpreter Core versions: +Python 3.2

[issue10664] xml.sax.expatreader should support namespace prefixes

2010-12-09 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. fdr...@acm.org: The xml.sax.expatreader module pre-dates prefix reporting from Expat, and should be modified to support the feature_namespace_prefixes feature instead of complaining that Expat doesn't support prefixes. -- assignee: fdrake

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: unicodedata module documentation has not been updated to reflect transition to 6.0. Attached patch fixes the version and unicode.org links and starts making the documentation rely less on the unicode.org pages for

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- components: +Unicode ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10665 ___

[issue10666] OS X installer variants have confusing readline differences

2010-12-09 Thread Ned Deily
New submission from Ned Deily n...@acm.org: 32-bit-only OS X installers build and link to a copy of the GNU readline library for use by the readline module in the standard library. But, the newer 64-bit/32-bit installer variants for 2.7 and 3.2 link to the OS X supplied BSD editline

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Keep in bind that there the Python readline module may be linked to either GNU readline or the BSD editline (libedit) library and they have different command strings. Note the warning here: http://docs.python.org/dev/py3k/library/readline.html

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Keep in mind that the Python readline module may be linked to either GNU readline or the BSD editline (libedit) library and they have different command strings. Note the warning here: http://docs.python.org/dev/py3k/library/readline.html Here's a

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- Removed message: http://bugs.python.org/msg123702 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5845 ___ ___

  1   2   >