Re: Python usage numbers

2012-02-14 Thread jmfauth
On 13 fév, 04:09, Terry Reedy tjre...@udel.edu wrote: * The new internal unicode scheme for 3.3 is pretty much a mixture of the 3 storage formats (I am of course, skipping some details) by using the widest one needed for each string. The advantage is avoiding problems with each of the three.

Override the interpreter used by multiprocessing subprocesses?

2012-02-14 Thread Logan Pugh
Hello, I am using a product that has a built-in Python interpreter (ESRI ArcGIS Desktop 10.0 SP3) and have implemented multiprocessing in script that can be run by a tool within the application using the built-in interpreter. The way the built-in interpreter works is incompatible with

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread John O'Hagan
On Mon, 13 Feb 2012 13:01:05 -0800 (PST) Rick Johnson rantingrickjohn...@gmail.com wrote: On Feb 13, 12:38 pm, Ian Kelly ian.g.ke...@gmail.com wrote: I hate being suckered in by trolls, but this paragraph demands a response. Ditto... On Mon, Feb 13, 2012 at 9:01 AM, Rick Johnson

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread Tim Wintle
(Sorry for top-posting this bit, but I think it's required before the rest of my response) At the risk of wading into this from a UK citizen's perspective: You're imagining a public healthcare system as if it were private. Imagine you go to a doctor and say I've got the flu, can you give me

Re: how to tell a method is classmethod or static method or instance method

2012-02-14 Thread Cameron Simpson
On 14Feb2012 13:13, Zheng Li dllizh...@gmail.com wrote: | On 13Feb2012 15:59, Zheng Li dllizh...@gmail.com wrote: | | how to tell a method is class method or static method or instance method? | | Maybe a better question is: | under what circumstances do you need to figure this out? | | I

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread Duncan Booth
Rick Johnson rantingrickjohn...@gmail.com wrote: BS! With free healthcare, those who would have allowed their immune system fight off the flu, now take off from work, visit a local clinic, and get pumped full of antibiotics so they can create a new strain of antibiotic resistant flu virus!

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread Devin Jeanpierre
On Tue, Feb 14, 2012 at 6:31 AM, Duncan Booth duncan.booth@invalid.invalid wrote: Here's a clue: No flu viruses are treatable with antibiotics. Oh my god we're too late! Now they're ALL resistant! -- Devin -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread rusi
On Feb 13, 9:01 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: And just how much healthcare dollars are you entitled to exactly? Can you put your entitlement into some form of monetary value? Rick hats off to you man -- you are damn good! Did you study at a top- troll-school? eg.

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

2012-02-14 Thread Vinay Sajip
On Feb 14, 4:38 am, Devin Jeanpierre jeanpierr...@gmail.com wrote: Hey Pythonistas, Consider the regular expression $*. Compilation fails with the exception, sre_constants.error: nothing to repeat. Consider the regular expression (?=$)*. As far as I know it is equivalent. It does not fail

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

2012-02-14 Thread Devin Jeanpierre
On Tue, Feb 14, 2012 at 8:20 AM, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: $ is a meta character for regular expressions. Use '\$*', which does compile. I mean for it to be a meta-character. I'm wondering why it's OK for to repeat a zero-width match if it is a zero-width assertion. -- Devin

name of a sorting algorithm

2012-02-14 Thread Jabba Laci
Hi, Could someone please tell me what the following sorting algorithm is called? Let an array contain the elements a_1, a_2, ..., a_N. Then: for i = 1 to N-1: for j = i+1 to N: if a_j a_i then swap(a_j, a_i) It's so simple that it's not mentioned anywhere. I guess it's called

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

2012-02-14 Thread Vlastimil Brom
2012/2/14 Devin Jeanpierre jeanpierr...@gmail.com: Hey Pythonistas, Consider the regular expression $*. Compilation fails with the exception, sre_constants.error: nothing to repeat. Consider the regular expression (?=$)*. As far as I know it is equivalent. It does not fail to compile. Why

Re: Automatic Type Conversion to String

2012-02-14 Thread Ulrich Eckhardt
Am 14.02.2012 00:18, schrieb Bruce Eckel: I'm willing to subclass str, but when I tried it before it became a little confusing -- I think mostly because anytime I assigned to self it seemed like it converted the whole object to a str rather than a Path. I suspect I don't know the proper idiom

Re: name of a sorting algorithm

2012-02-14 Thread Mel Wilson
Jabba Laci wrote: Could someone please tell me what the following sorting algorithm is called? Let an array contain the elements a_1, a_2, ..., a_N. Then: for i in xrange (N-1): for j in xrange (i, N): if a[j] a[i]: a[i], a[j] = a[j], a[i] It's so simple that

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

2012-02-14 Thread Devin Jeanpierre
On Tue, Feb 14, 2012 at 10:05 AM, Vlastimil Brom vlastimil.b...@gmail.com wrote: However, is there any realistic usecase for repeated zero-width anchors? Maybe. There is a repeated zero-width anchor is used in the Python re test suite, which is what made me notice this. I assume that came from

RE: name of a sorting algorithm

2012-02-14 Thread Prasad, Ramit
for i in xrange (N-1): for j in xrange (i, N): if a[j] a[i]: a[i], a[j] = a[j], a[i] It's what Wikipedia says a selection sort is: put the least element in [0], the least of the remaining elements in [1], etc. If your only requirement to match to selection sort is

Re: name of a sorting algorithm

2012-02-14 Thread Ulrich Eckhardt
Am 14.02.2012 16:01, schrieb Jabba Laci: Could someone please tell me what the following sorting algorithm is called? Let an array contain the elements a_1, a_2, ..., a_N. Then: for i = 1 to N-1: for j = i+1 to N: if a_j a_i then swap(a_j, a_i) It's so simple that it's not

Re: name of a sorting algorithm

2012-02-14 Thread Arnaud Delobelle
On 14 February 2012 15:31, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Tue, 14 Feb 2012 16:01:05 +0100, Jabba Laci jabba.l...@gmail.com wrote: Could someone please tell me what the following sorting algorithm is called? Let an array contain the elements a_1, a_2, ..., a_N. Then: for i =

RE: name of a sorting algorithm

2012-02-14 Thread Mel Wilson
Prasad, Ramit wrote: for i in xrange (N-1): for j in xrange (i, N): if a[j] a[i]: a[i], a[j] = a[j], a[i] It's what Wikipedia says a selection sort is: put the least element in [0], the least of the remaining elements in [1], etc. If your only requirement to

Re: name of a sorting algorithm

2012-02-14 Thread Den
On Feb 14, 8:22 am, Arnaud Delobelle arno...@gmail.com wrote: On 14 February 2012 15:31, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Tue, 14 Feb 2012 16:01:05 +0100, Jabba Laci jabba.l...@gmail.com wrote: Could someone please tell me what the following sorting algorithm is called?

Re: name of a sorting algorithm

2012-02-14 Thread Mel Wilson
Den wrote: I disagree. In a bubble sort, one pointer points to the top element, while another descents through all the other elements, swapping the elements at the pointers when necessary. 'When I use a word,' Humpty Dumpty said, in rather a scornful tone, 'it means just what I choose it to

Re: name of a sorting algorithm

2012-02-14 Thread Ian Kelly
On Tue, Feb 14, 2012 at 9:55 AM, Den patents...@gmail.com wrote: On Feb 14, 8:22 am, Arnaud Delobelle arno...@gmail.com wrote: On 14 February 2012 15:31, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Tue, 14 Feb 2012 16:01:05 +0100, Jabba Laci jabba.l...@gmail.com wrote: Could someone

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

2012-02-14 Thread MRAB
On 14/02/2012 15:53, Devin Jeanpierre wrote: On Tue, Feb 14, 2012 at 10:05 AM, Vlastimil Brom vlastimil.b...@gmail.com wrote: However, is there any realistic usecase for repeated zero-width anchors? Maybe. There is a repeated zero-width anchor is used in the Python re test suite, which is

Re: name of a sorting algorithm

2012-02-14 Thread Jabba Laci
Hi, Either you're misremembering, or the algorithm you programmed 43 years ago was not actually bubble sort.  Quoting from Wikipedia: Bubble sort, also known as sinking sort, is a simple sorting algorithm that works by repeatedly stepping through the list to be sorted, comparing each pair

Re: Komodo 7 release (Python development tools)

2012-02-14 Thread Todd Whiteman
On 12-02-08 01:52 PM, Terry Reedy wrote: On 2/8/2012 3:14 PM, Todd Whiteman wrote: My name is Todd. I'm the lead developer for Komodo IDE (Interactive Development Environment) and Komodo Edit (a free, open-source editor) at ActiveState. I wanted to announce that the newest version, Komodo 7,

RE: name of a sorting algorithm

2012-02-14 Thread Prasad, Ramit
Prasad, Ramit wrote: My apologies, you are correct. It is a selection sort, just an inefficient one. Hmm, I think I should say it is neither since it reminds me of a hybrid of both (bubble/selection). The swapping seems very bubble sort, but the looking for the min / max case seems selection

RE: name of a sorting algorithm

2012-02-14 Thread Prasad, Ramit
Wilson, Mel wrote: Well, the classic bubble sort swaps adjacent elements until the extreme one gets all the way to the end. This sort continually swaps with the end element during one pass until the end element holds the extreme. Then it shrinks the range and swaps then next less extreme into

Re: name of a sorting algorithm

2012-02-14 Thread Ian Kelly
On Tue, Feb 14, 2012 at 11:10 AM, Jabba Laci jabba.l...@gmail.com wrote: Hi, Either you're misremembering, or the algorithm you programmed 43 years ago was not actually bubble sort.  Quoting from Wikipedia: Bubble sort, also known as sinking sort, is a simple sorting algorithm that works

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread Rick Johnson
On Feb 14, 2:41 am, John O'Hagan resea...@johnohagan.com wrote: 1. Publicly-funded healthcare is both cheaper and more effective than privatised systems. It's also the right thing to do (i.e. you don't have to stand by while someone dies because their illness is their fault). So you have no

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread Chris Angelico
On Wed, Feb 15, 2012 at 11:21 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: On Feb 14, 2:41 am, John O'Hagan resea...@johnohagan.com wrote: This is a failure to acknowledge the is/ought problem, and is usually compounded (Rick is no exception) by the equally mistaken view that there

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread Rick Johnson
On Feb 13, 10:41 am, Tim Wintle tim.win...@teamrubber.com wrote: Imagine you go to a doctor and say I've got the flu, can you give me antibiotics. In a Private healthcare system:  * The doctor gets paid for retaining a client.  * He is incentivised to do what you request. ... so he gives

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread Rick Johnson
On Feb 14, 5:31 am, Duncan Booth duncan.bo...@invalid.invalid wrote: Rick Johnson rantingrickjohn...@gmail.com wrote: BS! With free healthcare, those who would have allowed their immune system fight off the flu, now take off from work, visit a local clinic, and get pumped full of

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread Chris Angelico
On Wed, Feb 15, 2012 at 11:48 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: Duncan, your reading and comprehension skills are atrocious. Please re- read the paragraph you quoted, then spend some time comprehending it, then show me where i stated that antibiotics cure viral infections.

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-14 Thread Rick Johnson
On Feb 14, 6:44 pm, Chris Angelico ros...@gmail.com wrote: If you truly believe that only the best should be allowed to survive and that you are not of the best, then the logical thing to do is to immediately destroy yourself. Oddly enough, though, I don't see many eugenics proponents

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

2012-02-14 Thread Devin Jeanpierre
On Tue, Feb 14, 2012 at 1:05 PM, MRAB pyt...@mrabarnett.plus.com wrote: And yeah, even something as crazy as ()* works, but as soon as it becomes (a*)* it doesn't work. Weird. I think it's a combination of warning the user about something that's pointless, as in the case of $*, and producing

Re: how to tell a method is classmethod or static method or instance method

2012-02-14 Thread Zheng Li
thank you. I know the second way works. but in my case, i need method1 to be a class method, because I use it to create an object. I have a lot of classes that have __init__ with 2 arguments -- self, and user id. usually, SomeClass(user_id) is used to create an object of SomeClass, but if

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

2012-02-14 Thread MRAB
On 15/02/2012 01:43, Devin Jeanpierre wrote: On Tue, Feb 14, 2012 at 1:05 PM, MRABpyt...@mrabarnett.plus.com wrote: And yeah, even something as crazy as ()* works, but as soon as it becomes (a*)* it doesn't work. Weird. I think it's a combination of warning the user about something that's

TEST AN EXECUTABLE PYTHON SCRIPT SPEED UNDER A PYTHON SHELL

2012-02-14 Thread 88888 Dihedral
After my testing of JAVA, PYTHON, VB, C-sharp and Erlang like script languages, I noticed that script languages should be timed after the shell interpreter completed loaded. The start up loading time of script interpreters should be excluded in the measure of executing a byte code script.

Re: Python vs. C++11

2012-02-14 Thread Tim Roberts
sturlamolden sturlamol...@yahoo.no wrote: There are bigsimilarities between Python and the new C++ standard. Now we can actually use our experience as Python programmers to write fantastic C++ :-) This is more true than you might think. For quite a few years now, I've been able to do an almost

[issue13706] non-ascii fill characters no longer work in formatting

2012-02-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I'm using ps_AF for testing: $ ./localeconv_wchar ps_AF size of wchar_t: 32 bits decimal_point byte string: \xd9\xab (2 bytes) decimal_point wide string: L\u066b (1 characters) thousands_sep byte string: \xd9\xac (2 bytes) thousands_sep

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-02-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14006 ___

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-02-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14007 ___

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-02-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13248 ___

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-02-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-02-14 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: Both lxml and ElementTree have tutorials: http://effbot.org/zone/element.htm http://lxml.de/tutorial.html Here is another tutorial that may server as a source for an intro:

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-02-14 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: Oh, and here are the ReST sources of the lxml docs: https://github.com/lxml/lxml/tree/master/doc/ Specifically the tutorial: https://raw.github.com/lxml/lxml/master/doc/tutorial.txt and the parsing part:

[issue8739] Update to smtpd.py to RFC 5321

2012-02-14 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- nosy: +wooble ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list

[issue14001] CVE-2012-0845 Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-14 Thread Jan Lieskovsky
Jan Lieskovsky ian...@seznam.cz added the comment: The CVE identifier of CVE-2012-0845 has been assigned to this issue: [3] http://www.openwall.com/lists/oss-security/2012/02/13/4 -- title: Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed

[issue14008] Python uses the new source when reporting an old exception

2012-02-14 Thread Yuval Greenfield
New submission from Yuval Greenfield ubershme...@gmail.com: I ran the following code: import time time.sleep(10) print 1 / 0 And then modified the source before it hit the exception, python prints out the wrong lines from the new source file.

[issue14001] CVE-2012-0845 Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-14 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list

[issue14008] Python uses the new source when reporting an old exception

2012-02-14 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- resolution: - duplicate status: open - closed superseder: - Unupdated source file in traceback ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14008

[issue8087] Unupdated source file in traceback

2012-02-14 Thread Yuval Greenfield
Changes by Yuval Greenfield ubershme...@gmail.com: -- nosy: +ubershmekel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8087 ___ ___

[issue14001] CVE-2012-0845 Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___

[issue14009] Clearer documentation for cElementTree

2012-02-14 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: This patch should clarify how to use cElementTree usage, as well as improving indexing. -- assignee: docs@python components: Documentation messages: 153338 nosy: docs@python, eli.bendersky, eric.araujo priority: normal severity: normal

[issue14009] Clearer documentation for cElementTree

2012-02-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +patch Added file: http://bugs.python.org/file24519/doc-cET.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14009 ___

[issue13953] Get rid of doctests in packaging.tests.test_version

2012-02-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Does a doc test test the output literally? Yes, that’s the problem. See doctest documentation for more info about how it works and what problems it has. -- ___ Python tracker rep...@bugs.python.org

[issue13198] Remove duplicate definition of write_record_file

2012-02-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Damn, bitten by the use of universal newlines! I guess I should split on a literal '\n' instead of calling splitlines. Could you make that change in your clone and tell me if it does the trick? --

[issue14004] Distutils filelist selects too many files on Windows

2012-02-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This code just got changed (#13193) to use '/' instead of os.path.join, as it is documented that paths in MANIFEST.in must use only '/'. Can you build an up-to-date Python 2.7 from Mercurial and check again? Your report comes timely, as there

[issue13491] Fixes for sqlite3 doc

2012-02-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think you can commit your patch, with our without merging execute_[12].py, as you think best. Then you can do other patches (with or without pre-commit review) to fix or clean up the examples. --

[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2

2012-02-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The initial errors look like complaints about existing packages I have installed by other means They’re logging messages, not errors. They appear because distutils2 scans sys.path for egg-info and egg files/dirs and reports invalid versions

[issue14010] deeply nested filter segfaults

2012-02-14 Thread Alex Gaynor
New submission from Alex Gaynor alex.gay...@gmail.com: http://paste.pocoo.org/show/550884/ will reliably segfault Python3 on all platforms (similar versions for Python2 using itertools work) -- components: Interpreter Core messages: 153344 nosy: alex, benjamin.peterson priority: normal

[issue8087] Unupdated source file in traceback

2012-02-14 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: Martin v. Löwis (loewis) wrote: Displaying a warning whenever the code has changed on disk is clearly unacceptable As clarified, the request is only for when a traceback is being created (or perhaps even only for when one is being printed).

[issue14011] packaging should use shutil archiving functions transparently

2012-02-14 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: The packaging commands sdist and bdist can create various kinds of archives. The function used to create them is thankfully just a thin wrapper around shutil.make_archive (extracted from distutils), and sdist also uses

[issue14005] IDLE Crash when running/saving a file

2012-02-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Try running IDLE from a command prompt and report the error message you see. Start a python shell session and run: import idlelib.idle -- nosy: +serwy ___ Python tracker

[issue14012] Misc tarfile fixes

2012-02-14 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I found a few possible bugs in tarfile: - “mode in 'raw'” can give false positives for '' or 'ra'. Most of the code also checks for “len(mode) 1”, but I find clearer and safer to just use “mode in ('r', 'a', 'w')”. - To use the shadowed

[issue14011] packaging should use shutil archiving functions transparently

2012-02-14 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- components: +Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14011 ___ ___

[issue6715] xz compressor support

2012-02-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW, any plans on a PyPI backport for fun and profit? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue14010] deeply nested filter segfaults

2012-02-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14010 ___

[issue14013] tarfile should expose supported formats

2012-02-14 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: shutil contains high-level functions to create a zipfile or a tarball. When a new format is added to the tarfile module, then shutil needs to be updated manually. If tarfile exposed the names of the compressors it supports, then shutil

[issue14013] tarfile should expose supported formats

2012-02-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +patch Added file: http://bugs.python.org/file24521/add-tarfile.formats.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14013 ___

[issue5411] add xz compression support to shutil

2012-02-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: a) is #14013; b) is #14011. If Lars agrees to #14013, I will withdraw this patch in favor of another one that would make shutil automatically support all compressors that tarfile supports (my b) point). Note that this is not going to be

[issue6715] xz compressor support

2012-02-14 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: BTW, any plans on a PyPI backport for fun and profit? At present, no. I'll look into it later in the year, but at the moment I don't have the time to work on it - I suspect the parts written in C will require substantial changes to work

[issue14010] deeply nested filter segfaults

2012-02-14 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: The issue is a stack exhaustion. Examples can be trivially made for any iterator that takes another iterator as argument: itertools.takewhile(), zip() in Python3, etc. etc. It's just one of many places where CPython does a recursion

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2012-02-14 Thread Jim Jewett
New submission from Jim Jewett jimjjew...@gmail.com: def reset(self): Flushes and resets the codec buffers used for keeping state. Calling this method should ensure that the data on the output is put into a clean state, that allows appending of new

[issue13992] Segfault in PyTrash_destroy_chain

2012-02-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I'm running out of ideas to debug this, maybe Antoine or Amaury can help :-) One last idea (not sure it will work though): If Channel's finalizer gets called twice, inside Channel.__del__, you could save a string representation of the

[issue14001] CVE-2012-0845 Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: With test. test_xmlrpc has a timeout detection code which is simply broken (and it's actually documented): I just removed it, so if the server loops, the test will block. I think it's acceptable since other tests behave in the same

[issue13878] test_sched failures on Windows buildbot

2012-02-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Well, it's not really needed, as long as scheduler deals correctly with expired deadlines. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13878

[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2012-02-14 Thread Andrew McNabb
Andrew McNabb amcn...@mcnabbs.org added the comment: It looks like encodings/zlib_codec.py defines a custom IncrementalEncoder and IncrementalDecoder, but its StreamWriter and StreamReader rely on the standard implementation of codecs.StreamWriter and codecs.StreamReader. One solution might

[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2012-02-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13881 ___ ___ Python-bugs-list

[issue14015] surrogateescape largely missing from documentation

2012-02-14 Thread Jim Jewett
New submission from Jim Jewett jimjjew...@gmail.com: Recent discussion on the mailing lists and in http://bugs.python.org/issue13997 make it clear that the best way to get python2 results for ASCII-in-the-parts-I-might-process-or-change is to replace f = open(fname) with f =

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-14 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: See bugs/python.org/issue14015 for one reason that surrogateescape isn't better known. -- nosy: +Jim.Jewett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13997

[issue14016] Usage of socket.sendall() in multiple threads

2012-02-14 Thread Srikantha Kadur
New submission from Srikantha Kadur srikanthka...@gmail.com: Here is my code. Func1(): . . CliSock, addr = ServSocket.accept() print 'DataPortServ:Connected by', addr data.DataSendSock = CliSock for cnt in range(data.ThreadCnt):

[issue14016] Usage of socket.sendall() in multiple threads

2012-02-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This isn't really the place to get help on using python, but no, python doesn't do any implicit locking for you. -- nosy: +r.david.murray resolution: - invalid status: open - closed ___

[issue13198] Remove duplicate definition of write_record_file

2012-02-14 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Damn, bitten by the use of universal newlines!  I guess I should split on a literal '\n' instead of calling splitlines.  Could you make that change in your clone and tell me if it does the trick? Not for a few days, but I'll check when I'm

[issue14016] Usage of socket.sendall() in multiple threads

2012-02-14 Thread Srikantha Kadur
Srikantha Kadur srikanthka...@gmail.com added the comment: Thanks David, as the last available option i used this tool. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14016 ___

[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2

2012-02-14 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: On 14 February 2012 15:48, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added the comment: The initial errors look like complaints about existing packages I have installed by other means They’re logging messages,

[issue13878] test_sched failures on Windows buildbot

2012-02-14 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Ah, I suppose that makes sense. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13878 ___

[issue1326113] Letting build_ext --libraries take more than one lib

2012-02-14 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Ran into this bug today in 2.7 (building python-sybase with freetds). The fix in msg121260 took care of it (didn't try the patch). Thanks, Éric. Is this something that could get patched in the upcoming micro releases? It's not so

[issue9127] subprocess.Popen.communicate() and SIGCHLD handlers

2012-02-14 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: fixed via http://hg.python.org/cpython/rev/767420808a62 -- dependencies: +race condition in subprocess module nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org

[issue13703] Hash collision security issue

2012-02-14 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: On Mon, Feb 13, 2012 at 3:37 PM, Dave Malcolm dmalc...@redhat.com added the comment:  * added comments about the specialcasing of length 0:    /*      We make the hash of the empty string be 0, rather than using      (prefix ^ suffix),

[issue10287] NNTP authentication should check capabilities

2012-02-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think the patch is fine. Will apply soon (thanks!) . -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10287 ___

[issue14004] Distutils filelist selects too many files on Windows

2012-02-14 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I've been able to reproduce this on current builds of 2.7, 3.2 and 3.3. The problem seems to be that distutils.filelist pathnames using the OS directory separator, but the regexps used for matching paths are written to always assume /-based

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-14 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: -- nosy: +valhallasw ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list

[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2012-02-14 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: See also issue #7475. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13881 ___ ___

[issue10287] NNTP authentication should check capabilities

2012-02-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This issue can now be closed for good. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10287 ___

[issue10287] NNTP authentication should check capabilities

2012-02-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a7f1ffd741d6 by Antoine Pitrou in branch '3.2': Issue #10287: nntplib now queries the server's CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode.

[issue14001] CVE-2012-0845 Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch looks ok to me. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___

[issue14015] surrogateescape largely missing from documentation

2012-02-14 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14015 ___ ___ Python-bugs-list

[issue14017] io.TextIOWrapper should expose a documented write_through attribute

2012-02-14 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: io.TextIOWrapper acquired a new write_through argument for 3.3, but that is not exposed as a documented attribute. This is needed so that a text wrapper can be replaced with an equivalent that only alters selected settings (such as the

[issue14017] Make it easy to create a new TextIOWrapper based on an existing

2012-02-14 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Updating issue title, since I realised this doesn't work in 3.2 either (the newline argument also isn't available for introspection - newlines is not the same thing) Possible API signature: _missing = object() def rewrap(self,

  1   2   >