ANN: fancycompleter 0.2

2010-11-23 Thread Antonio Cuni
Hi, fancycompleter 0.2 has been released. http://bitbucket.org/antocuni/fancycompleter/src From the README: fancycompleter is a module to improve your experience in Python by adding TAB completion to the interactive prompt. It is an extension of the stdlib's rlcompleter module. Features: *

Re: Glob in python which supports the ** wildcard

2010-11-23 Thread Simon Brunning
On 22 November 2010 21:43, Martin Lundberg martin.lundb...@gmail.com wrote: Hi, I want to be able to let the user enter paths like this: apps/name/**/*.js and then find all the matching files in apps/name and all its subdirectories. However I found out that Python's glob function doesn't

Re: Glob in python which supports the ** wildcard

2010-11-23 Thread Simon Brunning
On 23 November 2010 09:26, Martin Lundberg martin.lundb...@gmail.com wrote: It does not seem to support the ** wildcard? It will recursively seek for files matching a pattern like *.js but it won't support /var/name/**/*.js as root, will it? I did say roughly. ;-) You'd need to do: for

Re: Reading bz2 file into numpy array

2010-11-23 Thread Peter Otten
Nobody wrote: On Mon, 22 Nov 2010 11:37:22 +0100, Peter Otten wrote: is there a convenient way to read bz2 files into a numpy array? Try f = bz2.BZ2File(filename) data = numpy.fromstring(f.read(), numpy.float32) That's going to hurt if the file is large. Yes, but memory usage will

Re: Python recursively __getattribute__

2010-11-23 Thread bruno.desthuilli...@gmail.com
On 22 nov, 21:44, Roman Dolgiy tost...@gmail.com wrote: http://stackoverflow.com/questions/4247036/python-recursively-getattr... I need to support a lot of legacy code, with THC4k's approach I'll have to modify project's existing code to use obj.attr1.val instead of obj.attr1 but this is not

Making module content available in parent module

2010-11-23 Thread Ulrich Eckhardt
Hi! Note up front: I'm using Python2.6 still, I guess with 2.7 test discovery, I could get better results easier, right? Now, my problem is I have a directory containing test scripts which I all want to run. I used to run them individually and manually, but want to avoid this overhead in the

Re: Making module content available in parent module

2010-11-23 Thread Gregor Horvath
Hi, On Tue, 23 Nov 2010 11:36:05 +0100 Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Now, my problem is I have a directory containing test scripts which I all want to run. I used to run them individually and manually, but want to avoid this overhead in the future. tests/

Re: Making module content available in parent module

2010-11-23 Thread Steven D'Aprano
On Tue, 23 Nov 2010 11:36:05 +0100, Ulrich Eckhardt wrote: tests/ foo.py # defines TestFoo1 and TestFoo2 bar.py # defines TestBar1 and TestBar2 What I would like to do now is this: from tests import * unittest.main() In other words, import all test files and run them. This

Re: unittests with different parameters

2010-11-23 Thread Jonathan Hartley
On Nov 22, 11:38 am, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Hi! I'm writing tests and I'm wondering how to achieve a few things most elegantly with Python's unittest module. Let's say I have two flags invert X and invert Y. Now, for testing these, I would write one test for

Re: Need advices regarding the strings (str, unicode, coding) used as interface for an external library.

2010-11-23 Thread jmfauth
Thanks for the reply. Subject closed. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python recursively __getattribute__

2010-11-23 Thread Roman Dolgiy
Thanks to Andreas Waldenburger, THC4k (http://stackoverflow.com/ questions/4247036/python-recursively-getattribute) and others for their tips. I was able to find solution: class Null(object): def __repr__(self): return Null def __str__(self): return '' def

Re: Scheme as a virtual machine?

2010-11-23 Thread Keith H Duggar
On Nov 22, 5:12 pm, Raffael Cavallaro raffaelcavall...@pas.despam.s.il.vous.plait.mac.com wrote: On 2010-11-22 11:25:34 -0500, scattered said: And you don't think that [JH] could write a book about Haskell if he honestly came to think that it were a superior all-aroung language? Until he

Re: Scheme as a virtual machine?

2010-11-23 Thread Raffael Cavallaro
On 2010-11-23 10:08:12 -0500, Keith H Duggar said: There is a well-known name for such illogical reasoning: ad hominem. You don't understand ad hominem: The ad hominem is a classic logical fallacy,[2] but it is not always fallacious. For in some instances, questions of personal conduct,

Re: Making module content available in parent module

2010-11-23 Thread Ulrich Eckhardt
Steven D'Aprano wrote: On Tue, 23 Nov 2010 11:36:05 +0100, Ulrich Eckhardt wrote: PS: I've been trying a few things here, and stumbled across another thing that could provide a solution. I can from tests import *, but then all these modules will pollute my namespace. I can import tests, but

Re: Scheme as a virtual machine?

2010-11-23 Thread Keith H Duggar
On Nov 23, 10:34 am, Raffael Cavallaro raffaelcavall...@pas.despam.s.il.vous.plait.mac.com wrote: On 2010-11-23 10:08:12 -0500, Keith H Duggar said: On Nov 22, 5:12 pm, Raffael Cavallaro raffaelcavall...@pas.despam.s.il.vous.plait.mac.com wrote: On 2010-11-22 11:25:34 -0500, scattered

Re: Scheme as a virtual machine?

2010-11-23 Thread D'Arcy J.M. Cain
On Tue, 23 Nov 2010 10:34:22 -0500 Raffael Cavallaro raffaelcavall...@pas.despam.s.il.vous.plait.mac.com wrote: On 2010-11-23 10:08:12 -0500, Keith H Duggar said: There is a well-known name for such illogical reasoning: ad hominem. You don't understand ad hominem: Perhaps you don't understand

Time and date operation

2010-11-23 Thread huisky
Hi everyone, Could you anybody shed lights to me? Say I have two dics. cstart defaultdict(type 'int', {15424: ['Dec', '6', '18:57:40'], 552: ['Dec', '7', '09:31:00'], 15500: ['Dec', '6', '20:17:02'], 18863: ['Dec', '7', '13:14:47'], 18291: ['Dec', '6', '21:01:17'], 18969: ['Dec', '7',

Re: Time and date operation

2010-11-23 Thread Chris Rebert
On Tue, Nov 23, 2010 at 9:47 AM, huisky hui...@gmail.com wrote: Hi everyone, Could you anybody shed lights to me? Say I have two dics. cstart defaultdict(type 'int', {15424: ['Dec', '6', '18:57:40'], 552: ['Dec', '7', '09:31:00'], 15500: ['Dec', '6', '20:17:02'], 18863: ['Dec', '7',

Re: Time and date operation

2010-11-23 Thread Chris Rebert
-Original Message- From: c...@rebertia.com [mailto: c...@rebertia.com] Sent: 2010年11月23日 19:12 To: huisky Cc: python-list@python.org Subject: Re: Time and date operation On Tue, Nov 23, 2010 at 9:47 AM, huisky hui...@gmail.com wrote: Hi everyone, Could you anybody shed lights to

Subprocess Call works on Windows, but not Ubuntu

2010-11-23 Thread Brett Bowman
I ran into an interesting problem trying to spawn a subprocess, so I thought I'd ask if the experts could explain it to me. I'm spawning a subprocess to run pdf2txt.py, which is a tool that is distributed with PDFminer to do moderately advanced text-dumps of PDFs. Yet when I run the same code on

Re: Subprocess Call works on Windows, but not Ubuntu

2010-11-23 Thread Chris Rebert
On Tue, Nov 23, 2010 at 11:28 AM, Brett Bowman bnbow...@gmail.com wrote: I ran into an interesting problem trying to spawn a subprocess, so I thought I'd ask if the experts could explain it to me.  I'm spawning a subprocess to run pdf2txt.py, which is a tool that is distributed with PDFminer to

Collect output to string

2010-11-23 Thread Burton Samograd
Hello, I was wondering if there is any way in python to 'collect output to string' as in some lisps/schemes. Output being, printed output to the console using print. Thanks. -- Burton Samograd -- http://mail.python.org/mailman/listinfo/python-list

Re: Collect output to string

2010-11-23 Thread Chris Rebert
On Tue, Nov 23, 2010 at 11:53 AM, Burton Samograd bur...@userful.com wrote: Hello, I was wondering if there is any way in python to 'collect output to string' as in some lisps/schemes.  Output being, printed output to the console using print. Rebind sys.stdout to a StringIO object.

Re: Subprocess Call works on Windows, but not Ubuntu

2010-11-23 Thread Brett Bowman
Ah, that fixed it. Thank you. On Tue, Nov 23, 2010 at 11:37 AM, Chris Rebert c...@rebertia.com wrote: On Tue, Nov 23, 2010 at 11:28 AM, Brett Bowman bnbow...@gmail.com wrote: I ran into an interesting problem trying to spawn a subprocess, so I thought I'd ask if the experts could explain

Re: Collect output to string

2010-11-23 Thread Burton Samograd
Chris Rebert c...@rebertia.com writes: On Tue, Nov 23, 2010 at 11:53 AM, Burton Samograd bur...@userful.com wrote: Hello, I was wondering if there is any way in python to 'collect output to string' as in some lisps/schemes.  Output being, printed output to the console using print. Rebind

Re: Collect output to string

2010-11-23 Thread MRAB
On 23/11/2010 20:59, Burton Samograd wrote: Chris Rebertc...@rebertia.com writes: On Tue, Nov 23, 2010 at 11:53 AM, Burton Samogradbur...@userful.com wrote: Hello, I was wondering if there is any way in python to 'collect output to string' as in some lisps/schemes. Output being, printed

progamming approach review, child processes

2010-11-23 Thread astar
So I have not done much with child processes before. I have an input of programs to be updated, a child process that does the compiles and links (with a log output to an individual file), and a process wait at the end. Except the child process can hang (at the moment, the problem that might show

Re: Collect output to string

2010-11-23 Thread Ian
On Nov 23, 1:59 pm, Burton Samograd bur...@userful.com wrote: Thanks for the tip.  Here's my function: def with_output_to_string(f, args):      oldstdout = sys.stdout      buffer = StringIO.StringIO()      sys.stdout = buffer      apply(f, args)      sys.stdout = oldstdout      return

Re: Collect output to string

2010-11-23 Thread Chris Rebert
On Tue, Nov 23, 2010 at 1:15 PM, Ian ian.g.ke...@gmail.com wrote: On Nov 23, 1:59 pm, Burton Samograd bur...@userful.com wrote: Thanks for the tip.  Here's my function: def with_output_to_string(f, args):      oldstdout = sys.stdout      buffer = StringIO.StringIO()      sys.stdout = buffer

Re: Collect output to string

2010-11-23 Thread Terry Reedy
On 11/23/2010 3:02 PM, Chris Rebert wrote: On Tue, Nov 23, 2010 at 11:53 AM, Burton Samogradbur...@userful.com wrote: Hello, I was wondering if there is any way in python to 'collect output to string' as in some lisps/schemes. Output being, printed output to the console using print. Rebind

Re: Scheme as a virtual machine?

2010-11-23 Thread Ertugrul Söylemez
Keith H Duggar dug...@alum.mit.edu wrote: It is a common refuge of those who cannot support their position with fact and logic. On more than one occasion Jon Harrop has all but crushed Ertugrul in this very forum with /source code/; that is as objective as it gets. Since Jon has financial

Re: CGI FieldStorage instances?

2010-11-23 Thread Gnarlodious
On Nov 22, 11:32 pm, Dennis Lee Bieber wrote:         Or upgrade to some modernistic framework wherein the application is a monolithic program and the name/ portion maps to methods/functions within the application... Yes, that describes what I am looking for! Is there such a modernistic

Re: CGI FieldStorage instances?

2010-11-23 Thread Ian Kelly
On 11/23/2010 7:01 PM, Gnarlodious wrote: On Nov 22, 11:32 pm, Dennis Lee Bieber wrote: Or upgrade to some modernistic framework wherein the application is a monolithic program and the name/ portion maps to methods/functions within the application... Yes, that describes what I am

Arrays

2010-11-23 Thread Garland Fulton
Is there a way I can define an Array of and unknown size so I can add and remove to or from it? Are arrays immutable? -- http://mail.python.org/mailman/listinfo/python-list

Re: Arrays

2010-11-23 Thread Ian Kelly
On 11/23/2010 10:55 PM, Garland Fulton wrote: Is there a way I can define an Array of and unknown size so I can add and remove to or from it? Do you mean the arrays of the array module, or NumPy arrays, or something else entirely? In the first case, yes; arrays behave more or less like

Ensuring symmetry in difflib.SequenceMatcher

2010-11-23 Thread John Yeung
I'm generally pleased with difflib.SequenceMatcher: It's probably not the best available string matcher out there, but it's in the standard library and I've seen worse in the wild. One thing that kind of bothers me is that it's sensitive to which argument you pick as seq1 and which you pick as

[issue10508] compiler warnings about formatting pid_t as an int

2010-11-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, I can't see a problem with it. Backported in r86706, r86707. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10508

[issue10511] heapq docs clarification

2010-11-23 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: On the python-docs mailing list, a user suggested to rewrite the first paragraph of the heapq docs like this. Are you okay with this change, Raymond? Heaps are trees for which every parent node has a value less than or equal to any of its

[issue10504] Trivial mingw compile fixes

2010-11-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why exactly are you skeptical? Because it doesn't fix everything in one go? The other changes are also minimal (I'm not even sure if it requires more source changes, maybe I have just to get my #defines right). If you prefer to see a

[issue10511] heapq docs clarification

2010-11-23 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: That looks fine. Perhaps s/trees/binary trees -- assignee: rhettinger - georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10511

[issue10511] heapq docs clarification

2010-11-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Great! Applied in r86708. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10511 ___

[issue10504] Trivial mingw compile fixes

2010-11-23 Thread Johann Hanne
Johann Hanne pyt...@jf.hanne.name added the comment: Well... ok. Although I already regard the patch as a strict bugfix (it fixes compilation of some C modules on MinGW), I'll go forward and create a patch for Python 3.2 which fixes compilation of all C modules on MinGW (all which are

[issue10483] http.server - what is executable on Windows

2010-11-23 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Martin, you are splitting hairs about the reported problem. The original message does have a paragraph about the executable bits being wrong. But the bulk of the message is commenting about the difficulty of figuring out what to

[issue10512] regrtest ResourceWarning - unclosed socket

2010-11-23 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: When running make test on Python3, test_socket reports a number of ResourceWarnings due to unclosed sockets. Attached is a patch that changes the relevant tests so that they close all the created sockets. test_multiprocessing and

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thank you for the report. This is how I understand the part of the spec you quoted: Strictly valid HTTP uses CRLF, but servers and clients should be liberal in what they accept and deal with LF too. Senthil, do you agree with that? There are

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +loewis versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10500 ___ ___

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What file specifically did you download? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10500 ___

[issue10504] Trivial mingw compile fixes

2010-11-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: But a strict bugfix should fix something. Is there something that did not work before, and will work after this patch? IOW, how do you compile posixmodule.c with MinGW and does it produce a working module? Now, I *am* interested in a

[issue10513] sqlite3.InterfaceError after commit

2010-11-23 Thread Anders Blomdell
New submission from Anders Blomdell anders.blomd...@control.lth.se: With version 2.7 (and 2.7.1rc1), the following sequence (see attached test): c = cursor.execute(' select k from t where k == ?;', (1,)) conn.commit() r = c.fetchone() Traceback (most recent call last): File

[issue10499] Modular interpolation in configparser

2010-11-23 Thread Alexander Solovyov
Changes by Alexander Solovyov pira...@piranha.org.ua: -- nosy: +asolovyov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10499 ___ ___

[issue10514] configure does not create accurate Makefile

2010-11-23 Thread Keith Meyer
New submission from Keith Meyer meyer.ke...@gmail.com: When running configure on AIX 5.3 using: OPT=-O2 LDFLAGS=-s ./configure --with-gcc=xlc_r -q64 --with-cxx-main=xlC_r -q64 --disable-ipv6 AR=ar -X64 The Makefile still contains g++ as the CXX compiler to be used. -- components:

[issue10435] Document unicode C-API in reST

2010-11-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Wed, Nov 17, 2010 at 5:20 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. -/* Encodes a Unicode object and returns the

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2010-11-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: I had a report from a user on IRC during the bug weekend that they could not reproduce the failure on windows. So it may be dependent on the windows

[issue7094] Add alternate float formatting styles to new-style formatting.

2010-11-23 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- stage: unit test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7094 ___ ___

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2010-11-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: I had a report from a user on IRC during the bug weekend that they could

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-23 Thread Jerzy Kozera
Jerzy Kozera jerzy.koz...@gmail.com added the comment: Running gcc -Wl,-R/usr/local/lib,-R/usr/lib -o python Python/pymath.o Modules/python.o libpython2.7.a -lresolv -lsocket -lnsl -lrt -ldl -lpthread -lm mv build/lib.solaris-2.8-sun4u-2.7/math_failed.so

[issue10087] HTML calendar is broken

2010-11-23 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I don't think we *need* to have the encoding in the HTML calendar, but I doubt we could remove it at this point, deprecate maybe, but since I don't use the module I don't have a sense for how often the need for encoding comes up. The

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-23 Thread Brian Jones
Brian Jones bkjo...@gmail.com added the comment: In truth, I don't personally know if the other PyPI server implementations also have to work around this issue. Other comments on that are welcome. As for my own implementation, I've implemented a workaround to this, but I'm working around and

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-23 Thread Steve Moran
Steve Moran s...@uw.edu added the comment: Forgive me if this is just a stupid oversight. I'm a linguist and use UTF-8 for special characters for linguistics data. This often includes multi-byte Unicode character sequences that are composed as one grapheme. For example the í̵ (if it's

[issue1859] textwrap doesn't linebreak on \n

2010-11-23 Thread Phillip M. Feldman
Phillip M. Feldman phillip.m.feld...@gmail.com added the comment: I would like to unsubscribe from this thread, but haven't been able to figure out how to do it. Phillip On Mon, Nov 22, 2010 at 11:50 PM, Georg Brandl rep...@bugs.python.orgwrote: Georg Brandl ge...@python.org added the

[issue1859] textwrap doesn't linebreak on \n

2010-11-23 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: -phillip.m.feld...@gmail.com ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1859 ___ ___

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-23 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I think, it is better that distutils.command.register and distutils.command.upload use CRLF as the line terminator for header values. It just helps in many cases, we can safely side by this case, but not relying LR or CR only may not be

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-23 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: looks good. checked with a plain and a debug build and installation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9807 ___

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Please don't change the type, this issue is about the feature request of adding this regex engine to the stdlib. I'm sure Matthew will get back to you about your question. -- type: behavior - feature request

[issue10513] sqlite3.InterfaceError after commit

2010-11-23 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Also fails with 3.2 as in 2.7 and works in 3.1 as in 2.6. -- nosy: +ghaering, ned.deily stage: - needs patch type: crash - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-23 Thread Martin Budaj
New submission from Martin Budaj m.bu...@gmail.com: The method Sniffer._guess_quote_and_delimiter() in the module csv.py contains a bug in a regexp which checks for quotes around the last item of the line (example: a,b,c,d\n). the pattern '(?Pdelim[^\w\n\'])(?Pspace

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-23 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20101123.zip is a new version of the regex module. Oops, sorry, the weird behaviour of msg11 was a bug. :-( -- Added file: http://bugs.python.org/file19786/issue2636-20101123.zip

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-23 Thread Doug Shea
Doug Shea doug.s...@gmail.com added the comment: It's actually not quite a solution, either. Working your changes into the build process, I *do* get a math module... but it does *not* have a round function. python Python 2.7 (r27, Nov 23 2010, 11:54:39) [GCC 3.3.2] on sunos5 Type help,

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-23 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the report. It would be helpful if you could supply a patch including a unit test for this against 3.2 and/or 2.7. Note only security issues are accepted for 2.6. -- nosy: +ned.deily stage: - unit test needed versions: +Python 3.2

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Savio Sena
Savio Sena savio.s...@acm.org added the comment: Attaching a more concise patch, as requested by georg.brandl. -- Added file: http://bugs.python.org/file19787/issue1745035-101123-saviosena.diff ___ Python tracker rep...@bugs.python.org

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I think data_size_limit and command_size_limit should be class attributes instead of instance attributes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745035

[issue10399] AST Optimization: inlining of function calls

2010-11-23 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: If this a work in progress, you could create an SVN branch in the sandbox (you can then use svnmerge to avoid diverging too much from mainline) or an hg repo. Good idea; I've created branch dmalcolm-ast-optimization-branch (of py3k) on

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-23 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I *do* get a math module... but it does *not* have a round function. Not a problem: the math module isn't supposed to have a round function. :-) The round function is used as part of the calculations that produce the gamma function. So

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Savio Sena
Savio Sena savio.s...@acm.org added the comment: Previous patch was incorrect. I'm attaching another one, I'm really sorry. @giampaolo, about making the limits class attributes, it's not a good idea IMHO. According to RFC1869 command sizes can change depending on which Service Extensions are

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2010-11-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Attached is a patch that fixes the warnings in test_xmlrpc, along with some other file- and socket-related warnings in test_normalization, test_timeout and test_tk that only show up when regrtest is run with -uall. The warning in

[issue10399] AST Optimization: inlining of function calls

2010-11-23 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: py3k-ast-pyoptimize-2010-11-19-006.patch fixed up and committed to the branch as r86715; I'll work on that branch for the time being. -- ___ Python tracker rep...@bugs.python.org

[issue2001] Pydoc interactive browsing enhancement

2010-11-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I am reviewing this and making some edits to the patch. Will post this week. -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Savio Sena
Savio Sena savio.s...@acm.org added the comment: size_limits are not class attributes instead of instance attributes, as suggested by giampaolo.rodola. -- Added file: http://bugs.python.org/file19790/issue1745035-101123-saviosena.diff ___ Python

[issue1676121] Problem linking to readline lib on x86(64) Solaris

2010-11-23 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Hmm why you dont use LDFLAGS ? It is well documented what to expect during configuration and build phase. -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org

[issue1859] textwrap doesn't linebreak on \n

2010-11-23 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file19785/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1859 ___

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: AFAICT patch looks ok to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745035 ___

[issue1859] textwrap doesn't linebreak on \n

2010-11-23 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: textwrap_2010-11-23.diff is my attempt to provide a fix, if it's wanted/needed. -- Added file: http://bugs.python.org/file19791/textwrap_2010-11-23.diff ___ Python tracker

[issue9189] Improve CFLAGS handling

2010-11-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Since I was the one who reopened this: The issues I found were fixed in r85358 and #9047 seems to be ok now. Setting to pending. -- resolution: - fixed stage: - committed/rejected status: open - pending

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745035 ___ ___ Python-bugs-list

[issue1859] textwrap doesn't linebreak on \n

2010-11-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Doc patch applied to 3.2, 3.1, 2.7 in r86717, r86718, r86719 Jeremy Thurgood added to 3.2 Misc/ACKS in r86720. (I know, I should have added this first before committing.) I am leaving this open for a possible behavior patch. Mathew: look at

[issue1859] textwrap doesn't linebreak on \n

2010-11-23 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/issue1859 ___ ___ Python-bugs-list

[issue1508475] transparent gzip compression in urllib

2010-11-23 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nvawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1508475 ___ ___ Python-bugs-list

[issue9915] speeding up sorting with a key

2010-11-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The Rietveld issue is here: http://codereview.appspot.com/3269041 I ended up loading my incremental patches in, but it's easy enough to diff the base with the last patch. If for some reasons it doesn't work as conveniently as I expect, let

[issue1859] textwrap doesn't linebreak on \n

2010-11-23 Thread Tom Lynn
Tom Lynn tl...@users.sourceforge.net added the comment: I've also been attempting to look into this and came up with an almost identical patch, which is promising: https://bitbucket.org/tlynn/issue1859/diff/textwrap.py?diff2=041c9deb90a2diff1=f2c093077fbf I missed the wordsep_simple_re though.

[issue9915] speeding up sorting with a key

2010-11-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I ended up loading my incremental patches in, but it's easy enough to diff the base with the last patch. If for some reasons it doesn't work as conveniently as I expect, let me know and I will upload it to Rietveld again as one big patch.

[issue9915] speeding up sorting with a key

2010-11-23 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Antoine Pitrou wrote: Next time, please upload a single patch. Really. I haven't used Rietveld that much yet, and I'm still learning best-practices. I apologize for the painful experience. For anyone else planning to take a look at

[issue9915] speeding up sorting with a key

2010-11-23 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Antoine, My original patch was much more focused, but had a slightly larger performance penalty for sorting random keys (see http://bugs.python.org/msg122178). Do you think the performance tradeoff there was still worthwhile? Ihave

[issue9915] speeding up sorting with a key

2010-11-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: My original patch was much more focused, but had a slightly larger performance penalty for sorting random keys (see http://bugs.python.org/msg122178). Do you think the performance tradeoff there was still worthwhile? I am not objecting

[issue10516] Add list.clear()

2010-11-23 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: Add list.clear() method with obvious semantics. Pro: 1. parallel to set/dict/defaultdict/deque.clear(), usable in generic mutable collection function; 2. makes it easier to switch between list and other collection class; 3. current

[issue10516] Add list.clear()

2010-11-23 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Guido's email is archived at: http://mail.python.org/pipermail/python-ideas/2010-November/008732.html -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516

[issue9404] IDLE won't launch on XP

2010-11-23 Thread demarcus
demarcus pyt...@dmarkphotography.com added the comment: Had this issue.. figured out what's causing it... definitively. I had an earlier version of python installed, and I created a pythonhome user variable: c:\python24. I'm now using Python 2.5, and that old variable was: 1.) Keeping me from

[issue10517] test_concurrent_futures crashes with Fatal Python error: Invalid thread state for this thread

2010-11-23 Thread Łukasz Langa
New submission from Łukasz Langa luk...@langa.pl: py3k built from trunk on Centos 5.5 freezes during regrtest on test_concurrent_futures with Fatal Python error: Invalid thread state for this thread. A set of hopefully useful diagnostic logs attached as patch. -- assignee: bquinlan

[issue10517] test_concurrent_futures crashes with Fatal Python error: Invalid thread state for this thread

2010-11-23 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: A colorful example: http://bpaste.net/show/11493/ (just in case if downloading and extracting logs is not feasible) Some clarification: as in a typical concurrent problem, subsequent calls freeze in different test cases, but the freeze itself is

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-23 Thread Andrew McNamara
Changes by Andrew McNamara andr...@object-craft.com.au: -- nosy: +andrewmcnamara ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10515 ___ ___

[issue3061] time.strftime() always decodes result with UTF-8

2010-11-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3061 ___ ___ Python-bugs-list mailing list

  1   2   >