[issue5750] weird seg fault

2009-04-13 Thread Peter Lonjers
Changes by Peter Lonjers : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue5750] weird seg fault

2009-04-13 Thread utilitarian
New submission from utilitarian : In python 2.5.2 on ubuntu Ibex. If your run the command python round_robin_seg.py smallest_tomog. Using the files provided. There is a segfault. It happens in the core interpreter. It happened when I added line 35 to the python code. Sorry I do not have time at

[issue5749] Allow bin() to have an optional "Total Bits" argument.

2009-04-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with closing this one. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue5730] setdefault speedup

2009-04-13 Thread Dan Schult
Dan Schult added the comment: Thank you... I stand corrected That's actually very helpful! Of course using defdict makes the default assignment take two hashes, two lookups, an attribute/function lookup (__missing__) and the extra function call, plus doesn't allow arguments to the objec

[issue5742] inspect.findsource() should look only for sources

2009-04-13 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: -> normal stage: -> test needed type: crash -> behavior ___ Python tracker ___ ___ Python-bugs

[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2009-04-13 Thread Victor Godoy Poluceno
Changes by Victor Godoy Poluceno : -- nosy: +victorpoluceno ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5749] Allow bin() to have an optional "Total Bits" argument.

2009-04-13 Thread R. David Murray
R. David Murray added the comment: A better (more flexible) way already exists (as of 2.6) to accomplish your goal: >>> "0b{0:08b}".format(127) '0b0111' -- nosy: +r.david.murray resolution: -> rejected stage: -> committed/rejected status: open -> closed _

[issue5725] process SysV-Semaphore support

2009-04-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray-old ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue5749] Allow bin() to have an optional "Total Bits" argument.

2009-04-13 Thread MechPaul
New submission from MechPaul : As it stands right now, bin() only shows the minimum number of bits to display the number, however I think having a "Total Bits" argument would be very, very useful for bin(). bin(value, [Total bits to display]) "Total bits to display" is an integer. Here's how i

[issue5725] process SysV-Semaphore support

2009-04-13 Thread R David Murray
R David Murray added the comment: On Sat, 11 Apr 2009 at 09:29, jvdias wrote: > jvdias added the comment: > > Thanks for responding ! You are welcome. If you want something to happen, though, you'll have to get support from the community and submit a patch. > Can't Python provide a better pr

[issue5746] socketserver problem upon disconnection (undefined member)

2009-04-13 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5748] Objects/bytesobject.c should include stringdefs.h, instead of defining its own macros

2009-04-13 Thread Eric Smith
New submission from Eric Smith : All of the macros it defines around line 565 should either already be in stringdefs.h, or they should be added there. The same issue exists in Objects/bytearrayobject.c. I haven't looked in 2.7, but I assume the same problem exists there. -- assignee: er

[issue3440] Starting any program as a subprocess fails when subprocess.Popen has env argument

2009-04-13 Thread Georg Brandl
Georg Brandl added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue3440] Starting any program as a subprocess fails when subprocess.Popen has env argument

2009-04-13 Thread R. David Murray
R. David Murray added the comment: As I said, if you replace the environment it is your responsibility to supply a working environment. I've attached a doc patch that adds a warning about this with the information that a valid SystemRoot is needed to run a side-by-side assembly (whatever that i

[issue5746] socketserver problem upon disconnection (undefined member)

2009-04-13 Thread Eric Blond
Changes by Eric Blond : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5746] socketserver problem upon disconnection (undefined member)

2009-04-13 Thread Eric Blond
Eric Blond added the comment: That's it actually. I forgot to call base class' setup() method when I redefined it in my subclass. When I properly call StreamRequestHandler.setup() on my derived class' setup(), everything works fine. I'm not a socketserver specialist, but I would have expecte

[issue5746] socketserver problem upon disconnection (undefined member)

2009-04-13 Thread Victor Godoy Poluceno
Victor Godoy Poluceno added the comment: Can you provide a small example of this error? This problem seems only occurer when a subclass of socketserver.StreamRequestHandler provide a blank method "setup". In your log error: >> AttributeError: 'RequestHandler' object has no attribute 'wfile'

[issue5747] knowing the parent command

2009-04-13 Thread Tarek Ziadé
New submission from Tarek Ziadé : Right now there's no way in a command to know that it was launched as a subcommand from another command. For instance every install_* command knows explicitely that it is launched as a subcommand of 'install' and takes back its options in finalize_options() usin

[issue5724] 2.6.2c1 fails to pass test_cmath on Solaris10

2009-04-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Accepted for 2.6.3. -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5724] 2.6.2c1 fails to pass test_cmath on Solaris10

2009-04-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: We'll omit this for 2.6.2. Mark, please feel free to apply it once 2.6.2 is released so that it makes it into 2.6.3. -- priority: release blocker -> high ___ Python tracker _

[issue5736] Add the iterator protocol to dbm modules

2009-04-13 Thread Akira Kitada
Akira Kitada added the comment: Yes, using a static variable there is wrong and actually I'm now working on "dbm_iterobject" just as Martin suggested. dbm iterator should behave just like one in dict. I think I can use Objects/dictobject.c as a good example for this. Attached is minimal tests

[issue5745] email document update (more links)

2009-04-13 Thread Georg Brandl
Georg Brandl added the comment: Thanks, committed in r71572. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue5736] Add the iterator protocol to dbm modules

2009-04-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: I agree with Skip that using a static variable is not appropriate. The proper solution probably would be to define a separate gdbm_iter object which always preserves the last key returned. -- ___ Python tracker

[issue5607] Lib/distutils/test/test_util: test_get_platform bogus for OSX

2009-04-13 Thread Tarek Ziadé
Tarek Ziadé added the comment: fixed in r71560 and r71565. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue5741] SafeConfigParser incorrectly detects lone percent signs

2009-04-13 Thread Georg Brandl
Georg Brandl added the comment: You're right, of course. Fixed in r71564. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5741] SafeConfigParser incorrectly detects lone percent signs

2009-04-13 Thread Márcio Faustino
Márcio Faustino added the comment: Shouldn't the "replace('%%', '')" take place before "_interpvar_re.sub"? For example, the value "%%(test)s" should be accepted as valid but it isn't because "_interpvar_re" has already changed it to "%". -- ___ P

[issue5735] Segfault when loading not recompiled module

2009-04-13 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: tarek -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5706] setuptools doesn't honor standard compiler variables

2009-04-13 Thread Tarek Ziadé
Tarek Ziadé added the comment: You can submit an entry at http://bugs.python.org/setuptools. Although, what you mean by "distutils does support the environment variables properly" -- components: +Distutils -Installation versions: -Python 2.4, Python 2.5 __

[issue5730] setdefault speedup

2009-04-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: > The missing key reports the default object, but doesn't set that key > or value object in the dict. That's just not true. Re-read the line in the doc string where it puts the default value into the dict, under the key being accessed. > For example, to rep

[issue5703] inside *currentmodule* some links is disabled

2009-04-13 Thread Georg Brandl
Georg Brandl added the comment: If you want that level of control, it may be better to just write :meth:`Message.add_header() `. -- ___ Python tracker ___ ___