Re: default argument

2010-05-11 Thread Chris Rebert
On Tue, May 11, 2010 at 12:41 PM, Back9 backgoo...@gmail.com wrote: On May 11, 3:20 pm, Chris Rebert c...@rebertia.com wrote: On Tue, May 11, 2010 at 12:08 PM, Back9 backgoo...@gmail.com wrote: On May 11, 3:06 pm, Back9 backgoo...@gmail.com wrote: snip When i try it, it complains about

Re: default argument

2010-05-11 Thread j vickroy
Back9 wrote: Hi, Is this grammer working in Python? class test: self._value = 10 def func(self, self._value) When i try it, it complains about undefined self. i don't know why. TIA ... not exactly; try: class Test: _value = 10 def func(self): print id(self._value),

Re: Is Python a functional programming language?

2010-05-11 Thread Terry Reedy
On 5/11/2010 3:25 PM, Chris Rebert wrote: On Tue, May 11, 2010 at 11:13 AM, Terry Reedytjre...@udel.edu wrote: On 5/11/2010 7:11 AM, Lawrence D'Oliveiro wrote: In message7xvdavd4bq@ruckus.brouhaha.com, Paul Rubin wrote: Python is a pragmatic language from an imperative tradition ... I

Re: First Timer

2010-05-11 Thread Chris Rebert
On Tue, May 11, 2010 at 12:28 PM, Donna Lane bookexplo...@msisinc.com wrote: I have downloaded Python and I'm a beginner in every sense.  What I want to know now is when I am in Idle and have made a syntax error how do I repair? After the error I can't type in anything and I get this bing

Re: Is Python a functional programming language?

2010-05-11 Thread Nobody
On Tue, 11 May 2010 07:36:30 -0700, Paul Rubin wrote: Offhand I can't tell that imperative and procedural mean something different. Both basically mean that the programmer specifies a series of steps for the computer to carry out. Functional languages are mostly declarative; for example, an

Re: Is Python a functional programming language?

2010-05-11 Thread Lie Ryan
On 05/12/10 05:25, Chris Rebert wrote: On Tue, May 11, 2010 at 11:13 AM, Terry Reedy tjre...@udel.edu wrote: On 5/11/2010 7:11 AM, Lawrence D'Oliveiro wrote: In message7xvdavd4bq@ruckus.brouhaha.com, Paul Rubin wrote: Python is a pragmatic language from an imperative tradition ... I

Re: Is Python a functional programming language?

2010-05-11 Thread Nobody
On Tue, 11 May 2010 23:13:10 +1200, Lawrence D'Oliveiro wrote: But the beauty is that Python is multi-paradigm ... The trouble with “multi-paradigm” is that it offends the zealots on all sides. Is that how you view people who like languages to exhibit a degree of consistency? Some people

Re: documentation bug? (format spec mini language)

2010-05-11 Thread Alan G Isaac
On 5/11/2010 3:19 PM, MRAB wrote: You usually want numbers to be right-aligned so that the decimal points line up when writing a columns of them. Yes. I'm not questioning the wisdom of the implementation, just the documentation of it. Thanks, Alan --

Re: Picking a license

2010-05-11 Thread Patrick Maupin
On May 11, 5:24 am, Paul Boddie p...@boddie.org.uk wrote: On 10 Mai, 17:01, Patrick Maupin pmau...@gmail.com wrote: I'll be charitable and assume the fact that you can make that statement without apparent guile merely means that you haven't read the post I was referring to:

Re: default argument

2010-05-11 Thread Dave Angel
Back9 wrote: On May 11, 3:20 pm, Chris Rebert c...@rebertia.com wrote: On Tue, May 11, 2010 at 12:08 PM, Back9 backgoo...@gmail.com wrote: On May 11, 3:06 pm, Back9 backgoo...@gmail.com wrote: snip When i try it, it complains about undefined self. i don't know

Re: Picking a license

2010-05-11 Thread Patrick Maupin
On May 11, 5:34 am, Paul Boddie p...@boddie.org.uk wrote: On 10 Mai, 20:36, Patrick Maupin pmau...@gmail.com wrote: I've addressed this before.  Aahz used a word in an accurate, but to you, inflammatory, sense, but it's still accurate -- the man *would* force you to pay for the chocolate

Re: Picking a license

2010-05-11 Thread Patrick Maupin
On May 11, 9:00 am, Paul Boddie p...@boddie.org.uk wrote: On 11 Mai, 15:00, Lie Ryan lie.1...@gmail.com wrote: Come on, 99%  of the projects released under GPL did so because they don't want to learn much about the law; they just need to release it under a certain license so their users

Re: Picking a license

2010-05-11 Thread Patrick Maupin
On May 11, 6:18 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: Last time I came home with chocolate, I tried that excuse on my wife. She didn't believe it for a second. Next time, I'll try claiming that I was obliged to eat the chocolate because of the GPL. Good luck with

Re: documentation bug? (format spec mini language)

2010-05-11 Thread Terry Reedy
On 5/11/2010 3:19 PM, MRAB wrote: Alan G Isaac wrote: The documentation at http://docs.python.org/py3k/library/string.html#format-specification-mini-language '' Forces the field to be left-aligned within the available space (This is the default.) The conflicting example::

Re: Upgrade Python 2.6.4 to 2.6.5

2010-05-11 Thread Martin v. Loewis
When will it install into system32? When you install for all users. Did the upgrade inform you that it was an upgrade, or did it warn you that you would overwrite the previous installation? It warned me that there is a previous installation. Hmm. You don't remember the exact message,

Re: default argument

2010-05-11 Thread Terry Reedy
On 5/11/2010 3:41 PM, Back9 wrote: self._value will be instance variable Then set it in the __init__ method. Read the tutorial and ref manual on Python class statements, which are a bit different from what you might be used to. -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrade Python 2.6.4 to 2.6.5

2010-05-11 Thread python
Martin, If we install over an existing version of Python 2.6.5, will our PTH files and site-packages be preserved? Or do we need to back out our 3rd party packages, install Python 2.6.5 and then manually restore our 3rd party packages? Thank you, Malcolm --

Re: First Timer

2010-05-11 Thread Terry Reedy
On 5/11/2010 3:28 PM, Donna Lane wrote: I have downloaded Python and I'm a beginner in every sense. Welcome. I hope you enjoy Python too. What I want to know now is when I am in Idle and have made a syntax error how do I repair? After the error I can't type in anything and I get this bing

open(False) in python3

2010-05-11 Thread geremy condra
I'm unsure if this qualifies as a bug (it is also clearly user error) but I just ran into a situation where open() was inadvertantly called on a False, and I was somewhat surprised to see that this didn't bail horribly, but rather hung forever. Here's some example sessions for python3.x and

py2exe help

2010-05-11 Thread jim-on-linux
python help, I'm open for suggestions. I'm using py2exe to compile a working program. The program runs and prints fine until I compile it with py2exe. After compiling the program, it runs fine until it tries to import the win32ui module, v2.6214.0. Then, I get a windows error message:

Re: Limitation of os.walk

2010-05-11 Thread Tim Chase
On 05/11/2010 02:49 PM, kj wrote: I want implement a function that walks through a directory tree and performs an analsysis of all the subdirectories found. The task has two essential requirements that, AFAICT, make it impossible to use os.walk for this: 1. I need to be able to prune certain

Re: Extract all words that begin with x

2010-05-11 Thread Bryan
Tycho Andersen wrote: Terry Reedy wrote:  ... word[0:1] does the same thing. All Python programmers should learn to use slicing to extract a  char from a string that might be empty. The method call of .startswith() will be slower, I am sure. Why? Isn't slicing just sugar for a method

Re: open(False) in python3

2010-05-11 Thread Gabriel Genellina
En Tue, 11 May 2010 18:40:36 -0300, geremy condra debat...@gmail.com escribió: I'm unsure if this qualifies as a bug (it is also clearly user error) but I just ran into a situation where open() was inadvertantly called on a False, and I was somewhat surprised to see that this didn't bail

Re: py2exe help

2010-05-11 Thread Rob Williscroft
jim-on-linux wrote in news:mailman.74.1273614703.32709.python-l...@python.org in comp.lang.python: python help, I'm open for suggestions. I'm using py2exe to compile a working program. The program runs and prints fine until I compile it with py2exe. After compiling the program, it

Version 0.3.9 of the Python config module has been released.

2010-05-11 Thread Vinay Sajip
Version 0.3.9 of the Python config module has been released. What Does It Do? The config module allows you to implement a hierarchical configuration scheme with support for mappings and sequences, cross-references between one part of the configuration and another, the ability to

Re: First Timer

2010-05-11 Thread Mensanator
On May 11, 4:37 pm, Terry Reedy tjre...@udel.edu wrote: On 5/11/2010 3:28 PM, Donna Lane wrote: I have downloaded Python and I'm a beginner in every sense. Welcome. I hope you enjoy Python too.   What I want to know now is when I am in Idle and have made a syntax error how do I repair?

Re: Limitation of os.walk

2010-05-11 Thread kj
In mailman.75.1273614838.32709.python-l...@python.org Tim Chase python.l...@tim.thechases.com writes: That said, the core source for os.walk() is a whole 23 lines of code, it's easy enough to just clone it and add what you need... Thanks, that was a good idea. ~K --

Re: py2exe help

2010-05-11 Thread jim-on-linux
I appreciate the help, it's working. jim-on-linux jim-on-linux wrote in news:mailman.74.1273614703.32709.python-l...@python.org in comp.lang.python: python help, I'm open for suggestions. I'm using py2exe to compile a working program. The program runs and prints fine until

Re: Is Python a functional programming language?

2010-05-11 Thread Paul Rubin
Nobody nob...@nowhere.com writes: is called an equation rather than an assignment. It declares x is equal to 3, rather than directing x to be set to 3. If someplace else in the program you say x = 4, that is an error, normally caught by the compiler, since x cannot be equal to both 3 and 4.

Re: Upgrade Python 2.6.4 to 2.6.5

2010-05-11 Thread Terry Reedy
On 5/11/2010 5:27 PM, pyt...@bdurham.com wrote: Martin, If we install over an existing version of Python 2.6.5, will our PTH files and site-packages be preserved? Or do we need to back out our 3rd party packages, install Python 2.6.5 and then manually restore our 3rd party packages? In my

Re: Limitation of os.walk

2010-05-11 Thread Terry Reedy
On 5/11/2010 3:49 PM, kj wrote: I want implement a function that walks through a directory tree and performs an analsysis of all the subdirectories found. The task has two essential requirements that, AFAICT, make it impossible to use os.walk for this: 1. I need to be able to prune certain

How to pass file descriptor through dbus call in python

2010-05-11 Thread Zhang, Zhenhua
Hi, Hi, DBus 1.3 supports passing file descriptor through dbus method call. So I am writing a python test case to verify my interface. Can someone answer my question: how to pass a file descriptor through python-dbus call? For example: import os m, s = os.openpty()

Re: Extract all words that begin with x

2010-05-11 Thread Terry Reedy
On 5/11/2010 6:01 PM, Bryan wrote: Tycho Andersen wrote: Terry Reedy wrote: ... word[0:1] does the same thing. All Python programmers should learn to use slicing to extract a char from a string that might be empty. The method call of .startswith() will be slower, I am sure. Why? Isn't

Re: First Timer

2010-05-11 Thread Terry Reedy
On 5/11/2010 7:03 PM, Mensanator wrote: On May 11, 4:37 pm, Terry Reedytjre...@udel.edu wrote: In the command line interpreter, you should be able to hit up arrow and have the line above copied to the current entry line for correction. In IDLE, this does not yet work, It doesn't have to.

Re: virtualenvwrapper for Windows (Powershell)

2010-05-11 Thread Lawrence D'Oliveiro
In message 973ca0fa-4a2f-4e3b-91b9-e38917885...@d27g2000yqc.googlegroups.com, Guillermo wrote: On May 11, 7:43 am, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message 22cf35af-44d1-43fe-8b90-07f2c6545...@i10g2000yqh.googlegroups.com, Guillermo wrote: If you've ever

Re: Limitation of os.walk

2010-05-11 Thread Tim Chase
05/11/2010 09:07 PM, Terry Reedy wrote: PS: I never understood why os.walk does not support hooks for key events during such a tree traversal. Either 1) it is intentionally simple, with the expectation that people would write there own code for more complicated uses or 2) no one has submitted

Re: HTTP Post Request

2010-05-11 Thread Kushal Kumaran
On Tue, May 11, 2010 at 3:59 PM, kak...@gmail.com kak...@gmail.com wrote: On May 11, 10:56 am, kak...@gmail.com kak...@gmail.com wrote: On May 11, 5:06 am, Kushal Kumaran kushal.kumaran+pyt...@gmail.com wrote: On Mon, May 10, 2010 at 8:26 PM, kak...@gmail.com kak...@gmail.com wrote: On

Re: Picking a license

2010-05-11 Thread Lie Ryan
On 05/12/10 07:02, Patrick Maupin wrote: On May 11, 9:00 am, Paul Boddie p...@boddie.org.uk wrote: On 11 Mai, 15:00, Lie Ryan lie.1...@gmail.com wrote: Come on, 99% of the projects released under GPL did so because they don't want to learn much about the law; they just need to release it

Re: Upgrade Python 2.6.4 to 2.6.5

2010-05-11 Thread Martin v. Löwis
If we install over an existing version of Python 2.6.5, will our PTH files and site-packages be preserved? Or do we need to back out our 3rd party packages, install Python 2.6.5 and then manually restore our 3rd party packages? An upgrade installation will only replace the Python files, and

Why the inconsistent of those two base64 methods?

2010-05-11 Thread Leo Jay
I'd like to encode a string in base64, but I found a inconsistent of two methods: 'aaa'.encode('base64') 'YWFh\n' import base64 base64.b64encode('aaa') 'YWFh' as you can see, the result of 'aaa'.encode('base64') has a '\n' at the end, but the other method doesn't. Why the inconsistent?

Re: Fastest way to calculate leading whitespace

2010-05-11 Thread dasacc22
On May 10, 2:25 am, Stefan Behnel stefan...@behnel.de wrote: Stefan Behnel, 10.05.2010 08:54: dasacc22, 08.05.2010 19:19: This is a simple question. I'm looking for the fastest way to calculate the leading whitespace (as a string, ie ' '). Here is an (untested) Cython 0.13 solution:

PEP 3119 ABC - And how I learned to love the Abstract Bomb

2010-05-11 Thread Hatem Nassrat
Today I was doing a major re-write of a library I called yajl-py that wraps the json 'sax-like' c-parser yajl, and decided I should look into absract base classes since I knew they had been added to py26. Truthfully, I was surprised when I found out that the BDFL accepted this PEP, but hey were in

Re: Extract all words that begin with x

2010-05-11 Thread Aahz
In article mailman.84.1273630878.32709.python-l...@python.org, Terry Reedy tjre...@udel.edu wrote: .startswith and .endswith are methods that wrap the special cases of slice at an end and compare to one value. There are not necessary, and save no keystrokes, but Guido obviously thought they

Re: PEP 3119 ABC - And how I learned to love the Abstract Bomb

2010-05-11 Thread Gabriel Genellina
En Wed, 12 May 2010 01:38:47 -0300, Hatem Nassrat hnass...@gmail.com escribió: 1. To create a YajlContentHandler class that forces all sub-classers to implement a certain set of methods. (Great, thats what ABC is for) There is a certain set of mutually exclusive callbacks, i.e. if you

[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: I am using cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003] .. with the following options. cc +DD64 -Ae -D_REENTRANT +Z -c -g -DNDEBUG -O -I. -IInclude -I./Include -DPy_BUILD_CORE -o Modules/gcmodule.o Modules/gcmodule.c So

[issue8678] crashers in rgbimg

2010-05-11 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Because it's a crasher it could still be patched if someone chose to do the work. -- components: +Extension Modules ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8678

[issue8690] multiprocessing.dummy.Queue does not expose same interface as multiprocessing.Queue

2010-05-11 Thread Jason Baker
New submission from Jason Baker amnorv...@gmail.com: The multiprocessing.dummy.Queue class is merely an import of Queue.Queue. There are a few methods that this does not provide however: close, join_thread, and cancel_join_thread. I don't know what the best way to handle this is, but it

[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Using OPT=-O1 fixes this issue. Please feel free to close it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8683 ___

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-11 Thread angri
Changes by angri gene...@angri.ru: -- nosy: +angri ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8689 ___ ___ Python-bugs-list mailing list

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: What specific breakage do you expect resulting from my patch being backported? There is no behaviour change here, except to the minimal extent that all bug fixes involve behaviour change. This seems a clear-cut backport candidate.

[issue8691] Doc: left alignment is not the default for numbers

2010-05-11 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: As reported on python-list by Alan G Isaac, Lib Ref 6.1.3.1. Format Specification Mini-Language, for instance http://docs.python.org/dev/py3k/library/string.html#formatstrings wrongly says in the alignment section ''Forces the field to

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Daniel Stutzbach
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: (Making an educated guess about who to add to the Nosy list) Attached is a patch to improve math.factorial by using a divide-and-conquer algorithm. The old algorithm performs n-1 multiplications, mostly on numbers with a

[issue4653] Patch to fix typos for Py3K

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4653 ___ ___

[issue965065] document docs.python.org in PEP-101

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: PEP 101 now says ___ If this is a final release, also unpack the HTML docs to /data/ftp.python.org/pub/docs.python.org/release/X.Y[.Z]. ___ If this is a major release: Tell the DE to adapt redirects for

[issue2716] Reimplement audioop because of copyright issues

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2716 ___

[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1397 ___

[issue3006] subprocess.Popen causes socket to remain open after close

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3006 ___

[issue1745035] DoS smtpd vulnerability

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745035 ___

[issue1615] descriptor protocol bug

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1615 ___ ___

[issue1868] threading.local doesn't free attrs when assigning thread exits

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1868 ___

[issue3657] pickle can pickle the wrong function

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 'works for me' contradicts 'open', so I unset that -- nosy: +tjreedy resolution: works for me - versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3657

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5180 ___ ___

[issue886488] WinPython 2.3.3 crashes using popen2 to spawn lots of child

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue886488 ___ ___ Python-bugs-list

[issue2437] Distutils runtime_library_dirs broken on Windows

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 2.3, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2437 ___

[issue8575] Update/reorganize _winreg documentation

2010-05-11 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Committed in r81088-r81091. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8575

[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-05-11 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: bsddb3 isn't in py3k. -- priority: high - normal versions: -Python 2.5, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1397

[issue3699] test_bigaddrspace broken

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3699 ___ ___

[issue1451466] reading very large files

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Is this still an issue for 2.7? -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1451466 ___

[issue8681] Make the zlib module emit more detailed error messages

2010-05-11 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: zliberrors.patch looks good to me. On Mon, May 10, 2010 at 3:37 PM, Antoine Pitrou rep...@bugs.python.org wrote: New submission from Antoine Pitrou pit...@free.fr: This is a patch to use our own error descriptions when the zlib doesn't

[issue1599254] mailbox: other programs' messages can vanish without trace

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1599254 ___ ___

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) sizeof(long)

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1646068 ___

[issue1669539] Change (fix!) os.path.isabs() semantics on Win32

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1669539 ___

[issue4608] urllib.request.urlopen does not return an iterable object

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4608 ___ ___

[issue5945] PyMapping_Check returns 1 for lists

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5945 ___ ___

[issue1598083] Top-level exception handler writes to stdout unsafely

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1598083 ___ ___

[issue1621] Do not assume signed integer overflow behavior

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.2 -Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1621 ___

[issue1621] Do not assume signed integer overflow behavior

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1621 ___ ___ Python-bugs-list

[issue2122] mmap.flush does not check for errors on windows

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2122 ___ ___

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5219 ___ ___ Python-bugs-list

[issue8672] Error decompressing valid zlib data

2010-05-11 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: patch looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8672 ___ ___

[issue2620] Multiple buffer overflows in unicode processing

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Neal committed changes for 2.4,2.5, so I removed those. 3.0 is dead. Is this an issue for 3.1,3.2 or should it be closed? -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org

[issue7152] urllib2.build_opener() skips ProxyHandler

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7152 ___ ___ Python-bugs-list

[issue8575] Update/reorganize _winreg documentation

2010-05-11 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I should also note that the 2.6 and 3.1 commits also exposed the *ReflectionKey documentation. That documentation was added as part of a feature for 2.7/3.2, but those documentation pieces should have been backported on their own but were not.

[issue779285] Carbon Event ReceiveNextEvent

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I have the strong impression that Carbon is no longer used (or is being phased out) in modern Mac ports of Python. Reopen is this is wrong and there is a problem in 2.6,7 or 3.1,2. -- nosy: +tjreedy resolution: - out of date status:

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I've noticed that your patch changes math.factorial(2.**63) Traceback (most recent call last): File stdin, line 1, in module OverflowError: Python int too large to convert to C long to math.factorial(2.**63)

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't expect anything; I had written that it looked OK to me but apparently I accidentally deleted that text before posting. But I'm not someone who has ever programmed using cookielib so I wouldn't expect my opinion to count for too

[issue8016] Support for cp858

2010-05-11 Thread Tim Hatch
Tim Hatch t...@timhatch.com added the comment: Uploading corrected diff -- the old one missed a couple of instances of DOTLESS I - EURO. -- versions: +Python 2.7 Added file: http://bugs.python.org/file17301/cp858.diff ___ Python tracker

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: On Tue, May 11, 2010 at 4:18 PM, Alexander Belopolsky rep...@bugs.python.org wrote: While the error message is wrong in both cases, I think OverflowError is a better exception in this case and there should not be a difference

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yes, I'm interested in seeing the pure Python version. It could go into test_math, and would be a useful form of documentation. Are there sufficient tests already in test_math.py to exercise the code thoroughly, or are more needed? I'll

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I also started to wonder if a tighter upper limit for an acceptable argument can be found. In discussion of issue2138 I saw the following exchange: Should there be some upper limit on the argument math.factorial would

[issue7897] Support parametrized tests in unittest

2010-05-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: No, I'm saying I don't see summarising the parameterised tests separately from the overall test run as a particularly important feature, since you can test multiple parameters in a single test manually now. The important part is for the

[issue8256] TypeError: bad argument type for built-in operation

2010-05-11 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Amaury, could you elaborate a little more on this? I am pretty new to all this and I would happily write the patch, if only you could give me some clue on how I should approach this. -- ___

[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I'm closing. Thank you for testing Python, anyway! -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8683

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: On Tue, May 11, 2010 at 11:33 PM, Alexander Belopolsky rep...@bugs.python.org wrote: It seems to me that the value of n for which number of digits will exceed sys.maxsize can be estimated fairly accurately using Stirling formula.  Only

[issue8672] Error decompressing valid zlib data

2010-05-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch was committed in r81094 (2.7), r81095 (2.6), r81096 (3.2) and r81097 (3.1). Thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: On Tue, May 11, 2010 at 5:33 PM, Alexander Belopolsky rep...@bugs.python.org wrote: It seems to me that the value of n for which number of digits will exceed sys.maxsize can be estimated fairly accurately using Stirling

[issue8681] Make the zlib module emit more detailed error messages

2010-05-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r81098 (2.7), r81099 (2.6), r81100 (3.2), r81101 (3.1). Thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue8679] write a distutils to distutils2 converter

2010-05-11 Thread Dan Buch
Changes by Dan Buch daniel.b...@gmail.com: -- nosy: +meatballhat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8679 ___ ___ Python-bugs-list

[issue8680] Add a sandbox in Distutils2

2010-05-11 Thread Dan Buch
Changes by Dan Buch daniel.b...@gmail.com: -- nosy: +meatballhat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8680 ___ ___ Python-bugs-list

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-05-11 Thread Dan Buch
Changes by Dan Buch daniel.b...@gmail.com: -- nosy: +meatballhat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8688 ___ ___ Python-bugs-list

<    1   2   3   >