Reminder: 6 days left for EuroPython 2010 talk submissions

2010-04-25 Thread Alex Willmer
The EuroPython 2010 call for papers closes this Friday on 30th April. We've already had many submissions covering Python 3, Python 2.7, IronPython, Game Programming, Testing, Behavior Driven Development, NoSQL, Accessiblilty and others. We still are looking for talks and tutorials on Django,

[ANN] pyjamas 0.7 released

2010-04-25 Thread Luke Kenneth Casson Leighton
pyjamas - the stand-alone python-to-javascript compiler, and separate GUI Widget Toolkit, has its 0.7 release, today. this has been much delayed, in order to allow the community plenty of time between the 0.7pre2 release and the final release, to review and test all the examples. pyjamas allows

Announcing Pyevolve 0.6rc1

2010-04-25 Thread Christian S. Perone
Pyevolve is an evolutionary computation framework written in pure Python. This is the first release candidate before the 0.6 official release. See more information about this release on the official announce at (http://pyevolve.sourceforge.net/wordpress/?p=1164) or in the Documentation site at

Re: NameError: how to get the name?

2010-04-25 Thread Chris Rebert
On Sat, Apr 24, 2010, Yingjie Lan lany...@yahoo.com wrote: On Sun, 4/25/10, Chris Rebert c...@rebertia.com wrote: On Sat, Apr 24, 2010, Yingjie Lan lany...@yahoo.com wrote: On Sat, 4/24/10, Gary Herron gher...@islandtraining.com wrote: Yingjie Lan wrote: On Sat, 4/24/10, Steven D'Aprano

Re: NameError: how to get the name?

2010-04-25 Thread Yingjie Lan
--- On Sun, 4/25/10, Chris Rebert c...@rebertia.com wrote: From: Chris Rebert c...@rebertia.com Subject: Re: NameError: how to get the name? To: Yingjie Lan lany...@yahoo.com Cc: python list python-list@python.org Date: Sunday, April 25, 2010, 10:09 AM On Sat, Apr 24, 2010, Yingjie Lan

Re: how to debug python application crashed occasionally

2010-04-25 Thread jacky wang
could anyone help me? On Apr 21, 2:55 pm, jacky wang bugking.w...@gmail.com wrote: Hello   recently, I met a problem with one python application running with python2.5 | debian/lenny adm64 system: it crashed occasionally in our production environment. The problem started to happen just

Re: Deleting more than one element from a list

2010-04-25 Thread Raymond Hettinger
On Apr 21, 12:56 pm, candide cand...@free.invalid wrote: Is the del instruction able to remove _at the same_ time more than one element from a list ? For instance, this seems to be correct :   z=[45,12,96,33,66,'c',20,99]   del z[2], z[6],z[0]   z [12, 33, 66, 'c', 20]  

Re: [Python3] Reading a binary file and wrtiting the bytes verbatim?in an utf-8 file

2010-04-25 Thread fab
Another possibility is to open the file in binary mode and do the encoding yourself when writing text. This might actually be a better solution, since I'm not sure RTF uses utf-8 by default. Yes, thanks for this suggestion, it seems the best to me. Actually RTF is not UTF-8 encoded, it's

exceptions from daemon threads which access the global namespace at interpreter shutdown (how to squelch output?)

2010-04-25 Thread Ben Cohen
I've got an application which makes fairly heavy use of daemon threads to perform 'background' processing and various other long-running tasks that are likely to block. I originally thought I could safely fire off a daemon threading.Thread and essentially forget about managing the thread's

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Chris Rebert wrote: On Sat, Apr 24, 2010 at 1:53 PM, Jonathan Fine jf...@pytex.org wrote: Hi I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is

How to choose a debugger

2010-04-25 Thread sanam singh
Hi, I want to debug my c++blocks which are dynamically loaded into python for execution. I am using wingide for debugging python. But its limitation is that when c++module is called in python script it doent take me into c++ module. What I want is that I should be able to visually see the c++

(snmp code) perl to python

2010-04-25 Thread Shabbir Ahmed
hi hope all are doing good, i have code written in perl which quries too many devices and then stores the result in mysqldb, whiel shifting to python and googling i heared of and studied google asynch python code, now i wanted to use it n convert my perl code to it but i have some problem. 1.

Fix bugs without breaking down existing code

2010-04-25 Thread Elvis
Say, a Standard Library function works in a way it was not supposed to. Developers (who use Python) handle this issue themselves. And then, you (a python-core developer) fix the behavior of the function. Although you have “fixed” the bug, anyone who upgrades, will be in trouble. Their code may

Re: csv.py sucks for Decimal

2010-04-25 Thread John Machin
On Apr 23, 9:23 am, Phlip phlip2...@gmail.com wrote: When I use the CSV library, with QUOTE_NONNUMERIC, and when I pass in a Decimal() object, I must convert it to a string. Why must you? What unwanted effect do you observe when you don't convert it? the search for an alternate CSV module,

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Aahz wrote: In article u_idnaxonvb9x07wnz2dnuvz8kmdn...@brightview.co.uk, Jonathan Fine jf...@pytex.org wrote: I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies

ANN: Oktest-0.2.2 - a new-style testing library

2010-04-25 Thread Makoto Kuwata
Hi, I released Oktest 0.2.2. http://packages.python.org/Oktest/ http://pypi.python.org/pypi/Oktest/ Overview Oktest is a new-style testing library for Python. :: from oktest import ok ok (x) 0 # same as assert_(x 0) ok (s) == 'foo'# same as

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Makoto Kuwata
On Sun, Apr 25, 2010 at 5:53 AM, Jonathan Fine jf...@pytex.org wrote: I'm hoping to avoid reinventing a wheel (or other rolling device).  I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is processed. I think I could

[ANN] pyjamas 0.7 released

2010-04-25 Thread Luke Kenneth Casson Leighton
pyjamas - the stand-alone python-to-javascript compiler, and separate GUI Widget Toolkit, has its 0.7 release, today. this has been much delayed, in order to allow the community plenty of time between the 0.7pre2 release and the final release, to review and test all the examples. pyjamas allows

Re: Fix bugs without breaking down existing code

2010-04-25 Thread exarkun
On 10:02 am, elvismoodbi...@gmail.com wrote: Say, a Standard Library function works in a way it was not supposed to. Developers (who use Python) handle this issue themselves. And then, you (a python-core developer) fix the behavior of the function. Although you have 1Cfixed 1D the bug, anyone

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Eduardo Schettino
On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine jf...@pytex.org wrote: Hi I'm hoping to avoid reinventing a wheel (or other rolling device).  I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is processed. I think I

Need help with basic DOM XML tree traversing

2010-04-25 Thread Barak, Ron
Hi, This is my first try at XML with Python, and though I tried to read on the web, I'm unable to traverse a DOM tree, as my top element seems to be DOCUMENT_NODE and I cannot find a way to get to the nodes below it. Below is a sample data, script and execution. Could you point to where I'm

Re: Need help with basic DOM XML tree traversing

2010-04-25 Thread Stefan Behnel
Barak, Ron, 25.04.2010 17:06: This is my first try at XML with Python, and though I tried to read on the web, I'm unable to traverse a DOM tree, as my top element seems to be DOCUMENT_NODE and I cannot find a way to get to the nodes below it. You might find the xml.etree.ElementTree package

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Makoto Kuwata wrote: On Sun, Apr 25, 2010 at 5:53 AM, Jonathan Fine jf...@pytex.org wrote: I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Eduardo Schettino wrote: On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine jf...@pytex.org wrote: Hi I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is

Re: ANN: Oktest-0.2.2 - a new-style testing library

2010-04-25 Thread Jonathan Fine
Makoto Kuwata wrote: Hi, I released Oktest 0.2.2. http://packages.python.org/Oktest/ http://pypi.python.org/pypi/Oktest/ Overview Oktest is a new-style testing library for Python. :: from oktest import ok ok (x) 0 # same as assert_(x 0) ok (s) == 'foo'

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Eduardo Schettino
On Sun, Apr 25, 2010 at 11:44 PM, Jonathan Fine jf...@pytex.org wrote: Eduardo Schettino wrote: On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine jf...@pytex.org wrote: Hi I'm hoping to avoid reinventing a wheel (or other rolling device).  I've got a number of dependencies and, if possible,

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Jonathan Fine
Eduardo Schettino wrote: On Sun, Apr 25, 2010 at 11:44 PM, Jonathan Fine jf...@pytex.org wrote: Eduardo Schettino wrote: On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine jf...@pytex.org wrote: Hi I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of

Re: Wanted: Python solution for ordering dependencies

2010-04-25 Thread Lie Ryan
On 04/26/10 02:37, Jonathan Fine wrote: I don't know if the quadratic running time is an issue for my purpose. It's not until you decide it's yes. -- http://mail.python.org/mailman/listinfo/python-list

Re: (snmp code) perl to python

2010-04-25 Thread lkcl
On Apr 25, 9:41 am, Shabbir Ahmed shabbir1...@gmail.com wrote: hi hope all are doing good, i have code written in perl which quries too many devices and then stores the result in mysqldb, whiel shifting to python and googling i heared of and studied google asynch python code, now i wanted to

Re: Interacting With Another Script

2010-04-25 Thread lkcl
On Mar 11, 2:16 am, alex23 wuwe...@gmail.com wrote: Victor Subervi victorsube...@gmail.com wrote: There's a program (vpopmail) that has commands which, when called, request input (email address, password, etc.) from the command line. I would like to build a TTW interface for my clients

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Daniel Fetchinson
for fits and giggles, to show what's possible in only 400 lines of python, here is a game of asteroids, written by joe rumsey. yes, it runs under pyjamas-desktop too. http://pyjs.org/examples/asteroids/public/Space.html This URL returns a blank page for me on firefox 3.3.5 (linux) with

Re: (snmp code) perl to python

2010-04-25 Thread John Bokma
Shabbir Ahmed shabbir1...@gmail.com writes: hi hope all are doing good, i have code written in perl which quries too many devices and then stores the result in mysqldb, whiel shifting to python and googling i heared of and studied google asynch python code, now i wanted to use it n convert my

ANN: pyevolve 0.6rc1 released !

2010-04-25 Thread Christian S. Perone
Pyevolve is an evolutionary computation framework written in pure Python. This is the first release candidate before the 0.6 official release. See more information about this release on the official announce at (http://pyevolve.sourceforge.net/wordpress/?p=1164) or in the Documentation site at

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Terry Reedy
On 4/25/2010 2:07 PM, Daniel Fetchinson wrote: for fits and giggles, to show what's possible in only 400 lines of python, here is a game of asteroids, written by joe rumsey. yes, it runs under pyjamas-desktop too. http://pyjs.org/examples/asteroids/public/Space.html This URL returns a

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Terry Reedy
On 4/25/2010 3:43 PM, Terry Reedy wrote: On 4/25/2010 2:07 PM, Daniel Fetchinson wrote: for fits and giggles, to show what's possible in only 400 lines of python, here is a game of asteroids, written by joe rumsey. yes, it runs under pyjamas-desktop too.

Threading problem

2010-04-25 Thread sdistefano
I have the following issue: My program runs a thread called the MainThread, that loops trough a number of URLs and decides when it's the right time for one to be fetched. Once a URL has to be fetched, it's added to a Queue object, where the FetchingThread picks up and does the actual work.

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Alf P. Steinbach
* Luke Kenneth Casson Leighton: http://pyjs.org/examples/asteroids/public/Space.html result An error has been encountered in accessing this page. 1. Server: pyjs.org 2. URL path: /examples/asteroids/public/examples/asteroids/public/bootstrap.js 3. Error notes: NONE 4. Error type: 404 5.

Confusing SyntaxError while entering non-indented code in interactive interpreter on continuation line.

2010-04-25 Thread Colin Howell
[I originally sent this to python-help; the volunteer who responded thought it was OK to repost it here.] I'm sure this has been discussed somewhere before, but I can't find it in the Python issue tracker. The following behavior from the interactive interpreter is rather confusing. (I've seen

Re: pyjamas 0.7 released

2010-04-25 Thread Patrick Maupin
On Apr 25, 8:49 am, Luke Kenneth Casson Leighton l...@lkcl.net wrote: pyjamas - the stand-alone python-to-javascript compiler, and separate GUI Widget Toolkit, has its 0.7 release, today.  this has been much delayed, in order to allow the community plenty of time between the 0.7pre2 release

Re: Confusing SyntaxError while entering non-indented code in interactive interpreter on continuation line.

2010-04-25 Thread Patrick Maupin
On Apr 25, 3:31 pm, Colin Howell colin.d.how...@gmail.com wrote: [I originally sent this to python-help; the volunteer who responded thought it was OK to repost it here.] I'm sure this has been discussed somewhere before, but I can't find it in the Python issue tracker. The following behavior

Re: [ANN] pyjamas 0.7 released

2010-04-25 Thread Wolfgang Strobl
Daniel Fetchinson fetchin...@googlemail.com: for fits and giggles, to show what's possible in only 400 lines of python, here is a game of asteroids, written by joe rumsey. yes, it runs under pyjamas-desktop too. http://pyjs.org/examples/asteroids/public/Space.html This URL returns a

can't get python 2.5.5 to work on mac os x 10.4.11

2010-04-25 Thread new2Cocos
Hi everyone, I posted this in the cocos2d and pyglet discussion group, I thought I'll get a response right away since my problem is quite general but I got no response. I hope you will help me!!! this is the original post

Re: Threading problem

2010-04-25 Thread Patrick Maupin
On Apr 25, 2:55 pm, sdistefano sdistef...@gmail.com wrote: I have the following issue: My program runs a thread called the MainThread, that loops trough a number of URLs and decides when it's the right time for one to be fetched.  Once a URL has to be fetched, it's added to a Queue object,

Re: Confusing SyntaxError while entering non-indented code in interactive interpreter on continuation line.

2010-04-25 Thread John Bokma
Colin Howell colin.d.how...@gmail.com writes: I know that Dive Into Python is quite old and there have been many improvements in the language since, FYI There is a Dive Into Python 3. -- John Bokma j3b Hacking Hiking in Mexico -

Setting a python application as the default app to open a file on a mac?

2010-04-25 Thread Vincent Davis
I have been using ulipad to edit .rst and .py files. I have currently been launching using terminal python32 ulipad.py and then opening the file I what to edit. I would like to be able to set ulipad as the defualt editor for .rst and .py files. I posted this question on superuser.com and got a

Re: Urllib2 urlopen and read - difference

2010-04-25 Thread Aahz
In article mailman.1917.1271357827.23598.python-l...@python.org, J. Cliff Dyer j...@sdf.lonestar.org wrote: On Thu, 2010-04-15 at 11:25 -0700, koranthala wrote: Suppose I am doing the following: req = urllib2.urlopen('http://www.python.org') data = req.read() When is the actual data

Engineering numerical format PEP discussion

2010-04-25 Thread Keith
I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. Background (for those who don't already know about engineering notation): Engineering notation (EN) is type of floating point representation. The idea with EN is that the

Urgent

2010-04-25 Thread frankly1
http://www.scribd.com/doc/30492594/If-Not-Busy-You-Could-Prevent-the-FINAL-WAR-Today This is not a Drill … PRIORITY ONE -- http://mail.python.org/mailman/listinfo/python-list

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Chris Rebert
On Sun, Apr 25, 2010 at 8:36 PM, Keith keith.braff...@gmail.com wrote: I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. Background (for those who don't already know about engineering notation): Engineering notation

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Steven D'Aprano
On Sun, 25 Apr 2010 20:36:22 -0700, Keith wrote: I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. [...] For instance, no one talks about 4.7e-5F, as they would rather see 47e-6 (micro). Instead of 2.2e-2, engineers

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Keith
On Apr 26, 12:02 am, Chris Rebert c...@rebertia.com wrote: On Sun, Apr 25, 2010 at 8:36 PM, Keith keith.braff...@gmail.com wrote: I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. snip Relevant related information:

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Keith
On Apr 26, 12:29 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sun, 25 Apr 2010 20:36:22 -0700, Keith wrote: no one talks about 4.7e-5F, as they would rather see 47e-6 (micro). Instead of 2.2e-2, engineers need to see 22.0e-3 (milli). I'd be cautious about making claims

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Chris Rebert
On Sun, Apr 25, 2010 at 9:42 PM, Keith keith.braff...@gmail.com wrote: On Apr 26, 12:02 am, Chris Rebert c...@rebertia.com wrote: On Sun, Apr 25, 2010 at 8:36 PM, Keith keith.braff...@gmail.com wrote: I am considering writing a PEP for the inclusion of an engineering format specifier, and

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Xavier Ho
On Mon, Apr 26, 2010 at 3:19 PM, Chris Rebert c...@rebertia.com wrote: Apparently either you and the General Decimal Arithmetic spec differ on what constitutes engineering notation, there's a bug in the Python decimal library, or you're hitting some obscure part of the spec's definition. I

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Chris Rebert
On Sun, Apr 25, 2010 at 10:25 PM, Xavier Ho cont...@xavierho.com wrote: On Mon, Apr 26, 2010 at 3:19 PM, Chris Rebert c...@rebertia.com wrote: Apparently either you and the General Decimal Arithmetic spec differ on what constitutes engineering notation, there's a bug in the Python decimal

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Keith
On Apr 26, 1:19 am, Chris Rebert c...@rebertia.com wrote: Apparently either you and the General Decimal Arithmetic spec differ on what constitutes engineering notation, there's a bug in the Python decimal library, or you're hitting some obscure part of the spec's definition. snip The

Re: Engineering numerical format PEP discussion

2010-04-25 Thread Xavier Ho
On Mon, Apr 26, 2010 at 3:39 PM, Chris Rebert c...@rebertia.com wrote: The conversion **exactly follows the rules for conversion to scientific numeric string** except in the case of finite numbers **where exponential notation is used.** Well, then maybe the conversion doesn't exactly follow

[issue8525] Small enhancement to help()

2010-04-25 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - georg.brandl nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8525 ___

[issue7865] io close() swallowing exceptions

2010-04-25 Thread Pascal Chambon
Changes by Pascal Chambon chambon.pas...@gmail.com: Removed file: http://bugs.python.org/file17046/release_io_close_exceptions.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7865 ___

[issue7865] io close() swallowing exceptions

2010-04-25 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: SHould be better this way then B-) -- Added file: http://bugs.python.org/file17077/no_swallow_on_close2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7865

[issue8528] typo in argparse documentation

2010-04-25 Thread akira
New submission from akira 4kir4...@gmail.com: `messges` should be replaced by `messages` on http://docs.python.org/dev/library/argparse.html#upgrading-optparse-code page. -- assignee: d...@python components: Documentation messages: 104144 nosy: akira, d...@python severity: normal

[issue8528] typo in argparse documentation

2010-04-25 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r80460. -- assignee: d...@python - nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8528

[issue8522] enhacement proposal in howto/doanddont

2010-04-25 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, applied in r80461. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8522

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2010-04-25 Thread Dan Kenigsberg
Changes by Dan Kenigsberg dan...@redhat.com: -- nosy: +danken ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4147 ___ ___ Python-bugs-list mailing

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-25 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___ Python-bugs-list mailing list

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Please follow the naming convention used in os.path. The functions would have to be called os.path.fsencode() and os.path.fsdecode(). Ok Other than that, I'm +0 on the patch: the sys.filesystemencoding logic doesn't really work

[issue8529] subclassing builtin class (str, unicode, list...) needs to override __getslice__

2010-04-25 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: It looks like a bug, because __getslice__ is deprecated since 2.0. If you subclass a builtin type and override the __getitem__ method, you need to override the (deprecated) __getslice__ method too. And if you run your program with

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Alex
New submission from Alex alex.gay...@gmail.com: In Objects/stringlib/fastsearch.h the lines: if (!STRINGLIB_BLOOM(mask, s[i-1])) and if (!STRINGLIB_BLOOM(mask, s[i-1])) can read beyond the front of the array that is passed to it when the loop enters with i =

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Interpreter Core nosy: +flox priority: - normal stage: - needs patch type: - behavior versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I guess we don't have the same issue with the find() implementation? if (!STRINGLIB_BLOOM(mask, s[i+m])) Because: * len(s) = n = (w + m) * the loop condition is (i = w) == s[w+m] is beyond the array, but it is '\0' probably Is

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Alex
Alex alex.gay...@gmail.com added the comment: Yes, as the comment of the top of the file notes, reading to s[n] (where n == len(s)) is safe because strings are null padded. -- ___ Python tracker rep...@bugs.python.org

[issue8510] update to autoconf2.65

2010-04-25 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: r80474: Replace AC_HELP_STRING with AS_HELP_STRING -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8510 ___

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This patch should fix it. Since there's no failure, I don't find any test to add. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file17078/issue8530_rfind.diff

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-25 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: The attached patch caches the result of FQDN lookup. -- keywords: +patch Added file: http://bugs.python.org/file17079/base_http_server_fqdn_lag.diff ___ Python tracker rep...@bugs.python.org

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I can't manage to trigger any crash on a Linux machine, so I think we'll live without a test. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8530

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Of course your patch might slow down the loop, so perhaps you want to run some benchmarks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8530

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8530 ___ ___

[issue8510] update to autoconf2.65

2010-04-25 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: r80475: s/AC_AIX/AC_USE_SYSTEM_EXTENSIONS/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8510 ___

[issue8526] msilib doesn't support multiple CAB instances in same installer

2010-04-25 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: I'm certainly using the API provided by msilib, but perhaps I'm using it badly. Which API did you have in mind? I'm using msilib directly, not through bdist_msi. This seems like an artificial limitation to put on the Python library; the

[issue8523] shutil.rmtree and os.listdir cannot recover on error conditions

2010-04-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - tarek nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8523 ___ ___

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-25 Thread Santoso Wijaya
Santoso Wijaya santa@me.com added the comment: Doesn't that only cache the first remote client it encounters, though? Maybe a dictionary of caches? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6085

[issue8526] msilib doesn't support multiple CAB instances in same installer

2010-04-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I still don't see the need to create multiple CABs. Just use the Directory class to add files, and that will automatically record them in the singleton CAB. -- ___ Python tracker

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-25 Thread Charles-Francois Natali
Changes by Charles-Francois Natali neolo...@free.fr: Removed file: http://bugs.python.org/file17079/base_http_server_fqdn_lag.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6085 ___

[issue6483] Modules are not deallocated correctly if m_size = -1

2010-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, in 2.x you didn't even have the choice. The dict of an extension module was always copied, becoming essentially immortal. In 3.x you can use an m_size=0 so as to disable this behaviour. -- nosy: +pitrou versions: +Python 3.2

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-04-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: New patch updated to at least r80476. -- Added file: http://bugs.python.org/file17080/subprocess_shutdown.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5099

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-04-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file16976/subprocess__del__.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5099 ___

[issue8510] update to autoconf2.65

2010-04-25 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: r80478 converts all obsolete AC_TRY_* macros to AC_*_IFELSE, the outcome is ... nothing (but whitespace changes): $ svn diff --diff-cmd diff -x -uEwB configure Index: configure ===

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-25 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Doesn't that only cache the first remote client it encounters, though? Maybe a dictionary of caches? A BaseHTTPRequestHandler is instantiated every time a client connects, so there should be only one client per handler, no (the

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Why add a bounds check if it can't be caused to fail. How about just a comment? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8530

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Alex
Alex alex.gay...@gmail.com added the comment: Well, the fact that it hasn't been shown to fail doesn't mean it can't fail. It relies on reading undefined memory, which is usually bad ;). However, since we're at i=0, regardless of what we add to the value it's going to end up terminating the

[issue8510] update to autoconf2.65

2010-04-25 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: r80481: configure.in: Avoid autoconf warning: Assume C89 semantics that RETSIGTYPE is always void (issue #8510). Keep the definition, although the python code itself doesn't use it anymore. -- ___

[issue8510] update to autoconf2.65

2010-04-25 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: r80483: Makefile.pre.in (autoconf): Call autoconf/autoheader with -Wall to help the configure script to stay warning free. -- ___ Python tracker rep...@bugs.python.org

[issue8530] Stringlib fastsearch can read beyond the front of an array

2010-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It could read into an invalid page and segfault. It depends on specifics of the memory allocator. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8530

[issue8529] subclassing builtin class (str, unicode, list...) needs to override __getslice__

2010-04-25 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is because unicode implements __getslice__. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8529] subclassing builtin class (str, unicode, list...) needs to override __getslice__

2010-04-25 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: OK, but it yields Python 3 DeprecationWarning in the subclass. And there's no workaround to get rid of the deprecation. If it is the correct behaviour, maybe some words could be added about subclassing builtin types:

[issue8529] subclassing builtin class (str, unicode, list...) needs to override __getslice__

2010-04-25 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: OK, I said nothing, it is already in the doc. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8529 ___

[issue2302] Uses of SocketServer.BaseServer.shutdown have a race

2010-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed with a test in r80484 (trunk), r80486 (2.6), r80487 (py3k), r80491 (3.1). -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7319] Silence DeprecationWarning by default

2010-04-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: -Q now works like -3 by causing the DeprecationWarning silencing to be skipped. Committed in r80492. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8391] os.execvpe() doesn't support surrogates in env

2010-04-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I blocked the fix in Python 3.1 because it's non trivial and I prefer to avoid complex changes in Python 3.1. But then I realized that Python 3.1 has two bugs about environment variables. It uses

[issue7288] Detect improper leading whitespace in C files for Vim

2010-04-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7288 ___

  1   2   >