[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it

2009-04-06 Thread Ned Deily
Ned Deily added the comment: Closes duplicate Issue3586? -- nosy: +nad ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue5707] IDLE will not load

2009-04-06 Thread epitome83
New submission from epitome83 : I downloaded Python 3.0.1 and installed on Vista. I opened IDLE and it worked fine. I went into the Preferences to change the keybindings on the history scrollers. I changed history-next to Ctrl+Down Arrow, though when I pressed OK it listed only Control as the

[issue5630] Create alternatieve CObject API that is safe and clean

2009-04-06 Thread Larry Hastings
Larry Hastings added the comment: I discussed this off-list with GvR. He was primarily concerned with fixing the passing-around-a-vtable C API usage of CObject, but he wanted to preserve as much backwards compatibility as possible. In the end, he suggested I create a new API and leave CObject

[issue5708] Tiny code polishing to unicode_repeat

2009-04-06 Thread Larry Hastings
New submission from Larry Hastings : Two minor tweaks to unicode_repeat: * If the number of repeats (len) is < 1, we're always going to return the empty Unicode string. So I incr and return unicode_empty. * The current code has "if (done < nchars)" around the first copy. A little data-flow anal

[issue1745761] Bad attributes/data handling in SGMLib

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed in trunk. -- nosy: +ajaksu2 stage: -> needs patch type: -> behavior versions: +Python 2.6 -Python 2.5 ___ Python tracker ___ __

[issue1742205] ZipFile.writestr writes incorrect extended local headers

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed for trunk and py3k. -- nosy: +ajaksu2 stage: -> test needed type: -> behavior versions: +Python 2.6, Python 3.0 ___ Python tracker

[issue1735418] file.read() truncating strings under Windows

2009-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's a bug in the program's logic. The program assumes that the file pointer will have advanced by the same number of bytes as were returned by read(), but it is false when opened in text mode ('r') since text mode under Windows will convert Windows newlines ('\

[issue1744752] Newline skipped in "for line in file"

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Windows nosy: +benjamin.peterson, pitrou stage: -> test needed type: -> behavior versions: +Python 2.6, Python 3.1 -Python 2.5 ___ Python tracker __

[issue1747670] Limiting data copy in xmlrpclib

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> resource usage versions: +Python 2.7, Python 3.1 ___ Python tracker ___ __

[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker ___ _

[issue1748960] os.path.expandvars: expand string without modifying the environment

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed title: Extra optional argument to os.path.expandvars -> os.path.expandvars: expand string without modifying the environment type: -> feature request versions: +Python 2.7, Python 3.1 ___ Python tra

[issue1744382] Read Write lock

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker ___ _

[issue1749512] imaplib cannot handle mailboxes with ACL: lrs

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +patch stage: -> test needed type: -> behavior versions: +Python 2.6 ___ Python tracker ___ ___

[issue1749662] New byte packing format for the struct module

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> patch review type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker ___

[issue1590] "make altinstall" installs pydoc, idle, smtpd.py

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Installation dependencies: +"make altinstall" installs pydoc, idle, smtpd.py with broken shebang lines keywords: +patch priority: normal -> high stage: -> test needed versions: +Python 2.7, Python 3.1 -Python 2.5 __

[issue1778410] removeTest() method patch for unittest.TestSuite

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +michael.foord stage: -> test needed type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker ___

[issue1744752] Newline skipped in "for line in file"

2009-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1744752] Newline skipped in "for line in file"

2009-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: The only difference between "r" and "rb" (in Python 2.x) is that under Windows, "r" mode converts "\r\n" line endings into "\n". But it's the Windows C stdlib which does that, not Python. So maybe a bug in Windows itself? -- ___

[issue3873] Unpickling is really slow

2009-04-06 Thread STINNER Victor
STINNER Victor added the comment: Create a read buffer (4096 bytes) in unpickler class. Using [0]*10**7 or [1000]*10**7, load() is from 6 to 8 times faster. I removed last_string attribute because it wasn't used. If there are "tail" bytes, seek backward. -- keywords: +patch Added file

[issue3873] Unpickling is really slow

2009-04-06 Thread STINNER Victor
STINNER Victor added the comment: I don't know why, but python-trunk is *much* slower than py3k (eg. with dump: 1000 ms vs 24 ms for py3k, or with load: 1500ms vs 186ms). -- ___ Python tracker _

[issue3873] Unpickling is really slow

2009-04-06 Thread STINNER Victor
STINNER Victor added the comment: My version of pickletest.py: - make sure that file position is correct after the load() - some benchmark. most interesting numbers: without the patch : version | data | dump ms | load ms | py3k | 0,10^6 | 230 |1500 | py3k | 1000, 10^6

[issue1735418] file.read() truncating strings under Windows

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Is this valid? -- nosy: +ajaksu2, benjamin.peterson, pitrou stage: -> test needed type: -> behavior versions: +Python 2.6, Python 3.1 ___ Python tracker

[issue1738179] help() can't find right source file

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> behavior versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker ___

[issue1672568] silent error in email.message.Message.get_payload

2009-04-06 Thread Renaud Blanch
Renaud Blanch added the comment: good idea, why not something like sketched in the attached patch? it does not break any existing code, while providing a way for new users to have a chance to get the decoding errors. of course, the doc should be updated accordingly, and tests should be added. -

[issue1739118] Investigated ref leak report related to thread(regrtest.py -

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Attaching Hirokazu's tests and experimental patch as plaintext. -- keywords: +patch nosy: +ajaksu2 stage: -> patch review type: -> resource usage Added file: http://bugs.python.org/file13628/test_leak.py ___ Python t

[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Kenneth: can you confirm this is a valid issue? -- nosy: +ajaksu2 stage: -> test needed type: -> behavior versions: +Python 2.7, Python 3.1 -Python 2.4 ___ Python tracker __

[issue3873] Unpickling is really slow

2009-04-06 Thread STINNER Victor
STINNER Victor added the comment: Note about my patch: the buffer should be truncated after PyBytes_Concat(&self->buffer.pybytes, data) to avoid very long buffer. Something like: self->buffer.pybytes += data; self->buffer.pybytes = self->buffer.pybytes[index:]; self->buffer.index=0; --

[issue1733259] ZipFile CallBack Needed...

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list ma

[issue1734860] sitecustomize.py not found

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Closing as it's a documented change. -- nosy: +ajaksu2 resolution: -> invalid stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker _

[issue1774840] Not exiting when running tests

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list ma

[issue1565509] Repair or Change installation error

2009-04-06 Thread Tim Golden
Tim Golden added the comment: Well it may be uncommon, but it's perfectly easily reproducible: Just try to reinstall / repair from a file not called python-2.5.2.msi. Maybe uninstall: haven't tried. If Martin doesn't get there, I'll try to look at the log and see if there's something straightf

[issue3873] Unpickling is really slow

2009-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't know why, but python-trunk is *much* slower than py3k (eg. with > dump: 1000 ms vs 24 ms for py3k, or with load: 1500ms vs 186ms). Perhaps you tried with the pure Python version (pickle) rather than the C one (cPickle)? -- __

[issue1744456] Patch for feat. 1713877 Expose callbackAPI in readline module

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> patch review title: Patch for feat. 713877 Expose callbackAPI in readline module -> Patch for feat. 1713877 Expose callbackAPI in readline module type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.6

[issue3744] make altinstall installs pydoc instead of pydoc3.0

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Closing as duplicate of issue 1590, which has a patch and some discussion. -- dependencies: -make altinstall installs pydoc instead of pydoc3.0 nosy: +ajaksu2 resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed super

[issue1761028] pickle - cannot unpickle circular deps with custom __hash__

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +collinwinter stage: -> needs patch versions: +Python 3.1 -Python 2.5 ___ Python tracker ___ ___

[issue1202] zlib.crc32() and adler32() return value

2009-04-06 Thread J. David Ibáñez
J. David Ibáñez added the comment: There it is. -- Added file: http://bugs.python.org/file13630/Document.odt ___ Python tracker ___ __

[issue1752252] tkFileDialog closes Python when used

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Tkinter -None stage: -> test needed type: -> behavior versions: +Python 2.6, Python 3.0 ___ Python tracker ___ _

[issue1739118] Investigated ref leak report related to thread regrtest.py

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- title: Investigated ref leak report related to thread(regrtest.py - -> Investigated ref leak report related to thread regrtest.py Added file: http://bugs.python.org/file13629/experimental.patch ___ Python tracker

[issue1458] installer crashes on attempted cancellation

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Joseph: can you reproduce this with the 2.6 installers? -- nosy: +ajaksu2 stage: -> test needed versions: +Python 2.6 -Python 2.5 ___ Python tracker

[issue1713877] Expose callback API in readline module

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- dependencies: +Patch for feat. 713877 Expose callbackAPI in readline module versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker ___ __

[issue1685962] socket.getaddrinfo() should take an address tuple.

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list ma

[issue1756343] Python 2.5.1 fails to build on AIX

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: normal -> low stage: -> test needed status: open -> pending type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker _

[issue5676] Fix "make clean" in py3k/trunk

2009-04-06 Thread Larry Hastings
Larry Hastings added the comment: So what's the fix? I upgraded to r71304 and it still does this. Worse, it adds all sorts of complaints to "make test"--and it actually slows down hg. (hg can't cd into that directory, so it gives up on creating its inotify socket.) Can whoever added "@test"

[issue1730480] dict init/update accesses internal items of dict derivative

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: IIRC, the same behavior is present for subclasses of other builtin types. -- nosy: +ajaksu2 stage: -> test needed type: -> feature request versions: +Python 2.7, Python 3.1 ___ Python tracker

[issue1748960] os.path.expandvars: expand string without modifying the environment

2009-04-06 Thread R. David Murray
R. David Murray added the comment: Python has had a way to do this since python 2.4: >>> from string import Template >>> fullPath = Template("$ROOT/${SUBDIR/some/path").substitute(dict(ROOT='/users/geof', SUBDIR='subdir')) >>> fullPath '/users/geof/subdir/some/path' -- components: +Lib

[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response

2009-04-06 Thread Kenneth Loafman
Kenneth Loafman added the comment: Yes, there is no 1xx response. I've attached a log between ncftp client and ProFTPd 1.3.1-6ubuntu1 that clearly shows no 1xx after the 226. -- Added file: http://bugs.python.org/file13634/trace ___ Python tracker

[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response

2009-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I keep saying this is not a valid issue. The 1xx response is supposed to be sent by the server *before* the 226 response, and that's what your log shows: 07:55:03 Cmd: PASV 07:55:03 227: Entering Passive Mode (192,168,1,13,160,7). 07:55:03 Cmd: LIST 07:55

[issue5676] Fix "make clean" in py3k/trunk

2009-04-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/4/6 Larry Hastings : > > Larry Hastings added the comment: > > So what's the fix?  I upgraded to r71304 and it still does this.  Worse, > it adds all sorts of complaints to "make test"--and it actually slows > down hg.  (hg can't cd into that directory,

[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response

2009-04-06 Thread Kenneth Loafman
Kenneth Loafman added the comment: Clearly not valid if you are strictly RFC compliant, however, if you want to be functional in the real world then it needs to be addressed. ProFTPd is not the only server that handles things this way, so from a functionality and compatibility standpoint, it sh

[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response

2009-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: According to the log file you have attached Proftpd always sends 1xx before 226 which is the RFC-compliant and widely adopted behavior, *also* when it's listing the content of an empty directory. See: 07:55:19 Cmd: LIST 07:55:19 150: Opening ASCII mode d

[issue1774840] Not exiting when running tests

2009-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +fuzzyman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1774840] Not exiting when running tests

2009-04-06 Thread Michael Foord
Changes by Michael Foord : -- nosy: +michael.foord -fuzzyman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1774840] Not exiting when running tests

2009-04-06 Thread Michael Foord
Changes by Michael Foord : -- stage: test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response

2009-04-06 Thread Kenneth Loafman
Kenneth Loafman added the comment: It's been a couple of years since I reported this and its entirely possible that the updated ProFTPd I'm now testing against has been fixed, and that ftplib has evolved since then. Short of one of you testing the current ftplib against a current ProFTPd, I wou

[issue1774840] Not exiting when running tests

2009-04-06 Thread Michael Foord
Michael Foord added the comment: Seems like a straightforward request although TestProgram is pretty horrible in my opinion. I'll add an exit argument to TestProgram.__init__ - don't look forward to testing it though. -- ___ Python tracker

[issue3586] pwd.getpwnam('nobody') produces incorrect results if sizeof(uid_t) < sizeof(long)

2009-04-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed via issue5705 which I filed not having seen this one. -- assignee: -> gregory.p.smith dependencies: +os.getpwent returns unsigned 32bit value, os.setuid refuses it keywords: +64bit nosy: +gregory.p.smith resolution: -> fixed status: open -> cl

[issue4591] 32-bits unsigned user/group identifier

2009-04-06 Thread STINNER Victor
STINNER Victor added the comment: See also #3586: "pwd.getpwnam('nobody') produces incorrect results if sizeof(uid_t) < sizeof(long)" (now closed). -- ___ Python tracker ___

[issue5709] PyObject_TypeCheck crashes the intepreter on extension callback functions

2009-04-06 Thread Te-jé Rodgers
New submission from Te-jé Rodgers : When a python callable is called from an extension module using PyEval_CallObjectWithKeywords, and that callable calls a function in the extension module that uses PyObject_TypeCheck (or *ParseTuple with "O!"), the interpreter crashes. -- components: E

[issue5709] PyObject_TypeCheck crashes the intepreter on extension callback functions

2009-04-06 Thread Te-jé Rodgers
Te-jé Rodgers added the comment: Sorry about that; my err. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue3873] Unpickling is really slow

2009-04-06 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5709] PyObject_TypeCheck crashes the intepreter on extension callback functions

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

[issue5672] Implement a way to change the python process name

2009-04-06 Thread Marcelo Fernández
Marcelo Fernández added the comment: This patch (to python 2.7 trunk) allows to call prctl() function from Linux kernel to change the process name. It adds two methods to the os module: os.getprocname() and os.setprocname(). Working example: marc...@marcelo-laptop:~/src/pytrunk$ ./python Pytho

[issue5710] ctypes should return composite types from callbacks

2009-04-06 Thread Greg Holling
New submission from Greg Holling : We have an application that calls a 3rd party library that returns a structure (by value) from a callback. I'm including some sample code that duplicates the behavior. The problem is that return types from callbacks cannot be anything other than simple datatyp

[issue5672] Implement a way to change the python process name

2009-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: As for os.getprocname() I think you can borrow some code from psutil project [1] to implement it on FreeBSD, OS X and even Windows platforms. [1] http://code.google.com/p/psutil -- ___ Python tracker

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2009-04-06 Thread daku9999
New submission from daku : from tkFileDialog import askopenfilenames a = askopenfilenames() print a print type(a) ''' --output-- J:/PortablePython_1.1_py2.6.1/Aatest26/tk_new/rgb2hex.py J:/PortablePython_1.1_py2.6.1/Aatest26/tk_new/bluebtn.jpg J:/PortablePython_1.1_py2.6.1/Aatest26/tk_new/r

[issue5672] Implement a way to change the python process name

2009-04-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Some remarks about the patch: 1 - this line causes a buffer overrun: strncpy(argv[0], name , strlen(name)); A possible solution is to do like posix_putenv(): have a static PyString that holds the memory, and just change the pointer argv[0]: argv[0]

[issue5711] socket.create_connection not in __all__

2009-04-06 Thread Kevin Watters
New submission from Kevin Watters : socket.create_connection was added in 2.6, but does not get exposed in socket's __all__. Attached is the simple fix against 2.6's socket.py. -- components: Library (Lib) files: socket-all-26.diff keywords: patch messages: 85656 nosy: kevinwatters sev

[issue5707] IDLE will not load

2009-04-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Reproduced with the console python.exe. Click an item in the list on the right to choose the key ("down arrow") Exception in Tkinter callback Traceback (most recent call last): File "c:\Python30\lib\tkinter\__init__.py", line 1405, in __call__ retur

[issue2953] _zip_directory_cache untested and undocumented

2009-04-06 Thread Brett Cannon
Brett Cannon added the comment: 2009/4/5 <"Tarek Ziadé "@psf.upfronthosting.co.za> > > Tarek Ziadé added the comment: > > > Does distutils use _zip_directory_cache in any way? > > Not at all. But pkgutil does, Ah, OK. > and uses to get a dirlist, Couldn't one just open the zip file with z

[issue5672] Implement a way to change the python process name

2009-04-06 Thread Marcelo Fernández
Marcelo Fernández added the comment: Great, it's my first patch to python and I'm very happy with your comments. :-) Thanks Amaury, do you think is better that I should take out getprocname() if setprocname() changes sys.argv too? When I got some spare time, I'll take a look at your suggestion

[issue1748960] os.path.expandvars: expand string without modifying the environment

2009-04-06 Thread Geoffrey Bache
Geoffrey Bache added the comment: Thanks, didn't know about that feature. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5559] IDLE Output Window 's goto fails when path has spaces

2009-04-06 Thread Claudio Canepa
Claudio Canepa added the comment: On a second look: 1. the code in OutputWindow.py for the 'goto' action looks for a match with the first regex in file_line_pats = [ r'file "([^"]*)", line (\d+)', r'([^\s]+)\((\d+)\)', r'([^\s]+):\s*(\d+):', ] and it assumes the

[issue5676] Fix "make clean" in py3k/trunk

2009-04-06 Thread Larry Hastings
Larry Hastings added the comment: % rm -rf @test rm: cannot remove `...@test': Permission denied And, before you helpfully chime in with "chmod", yes I know how to run that too. I stuck in and figured it out. The bug: "test_on_error" in "test_shutil" is out of sync with how "shutil.rmtree" ru

[issue5676] Fix "make clean" in py3k/trunk

2009-04-06 Thread Larry Hastings
Larry Hastings added the comment: Crapdoodles, I didn't update the patch to get the "regrtest" change I threw in at the last minute. Please see the "v2" patch. -- Added file: http://bugs.python.org/file13640/lch.test_shutil.r71304.v2.diff ___ Python

[issue5713] smtplib gets out of sync if server returns a 421 status

2009-04-06 Thread Mark Sapiro
New submission from Mark Sapiro : RFC821 upon which smtplib was originally based does not define a 421 status code and implies the server should only disconnect in response to a QUIT command. Subsequent extensions in RFC2821 (and now RFC5321) define situations under which the server may return a

[issue5672] Implement a way to change the python process name

2009-04-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: Please don't provide a wrapper around ptrctrl. Instead, expose prctl as is (similar to how ioctl and fcntl get wrapped). It's ok to make some convenience adjustments (e.g. allowing fewer parameters than the actual call), and it's also ok to filter by option (fo

[issue5707] IDLE will not load

2009-04-06 Thread epitome83
epitome83 added the comment: Thank you for the patch. I have applied it (which is to say, swapped out return filter(None, modList) for return [mod for mod in modList if mod] in keybindingDialog.py), but the problem persists. python.exe continues to load fine, but pythonw.exe still fails at st

[issue5579] Display for OrderedDict

2009-04-06 Thread Todd Weiler
Todd Weiler added the comment: Let me defend my idea a little bit. Some people hand code their UI's, some people put them into XML UI files then load those files. I'd like to create them using an OrderedDict. I'm using the pyQT for a gui. Attached is a really simple example program that crea

[issue1742205] ZipFile.writestr writes incorrect extended local headers

2009-04-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This header is optional. From http://www.pkware.com/documents/casestudies/APPNOTE.TXT Although not originally assigned a signature, the value 0x08074b50 has commonly been adopted as a signature value for the data descriptor record. I

[issue3586] pwd.getpwnam('nobody') produces incorrect results if sizeof(uid_t) < sizeof(long)

2009-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: I'd completely forgotten about this issue! Indeed, test_httpservers now seems to be passing on a 64-bit build on my machine. Thank you! -- ___ Python tracker

[issue5707] IDLE will not load

2009-04-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The incorrect settings have been saved in your %USERPROFILE%\.idlerc directory. Try deleting the idle-extensions.cfg there. BTW, "pythonw.exe" is not IDLE. It's a plain python interpreter without a console. When used with no argument it can only exit qu

[issue5711] socket.create_connection not in __all__

2009-04-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r71329. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5502] io-c: TextIOWrapper is faster than BufferedReader but not protected by a lock

2009-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch which provides a significant speedup (up to 30%) on small operations (small reads, iteration) on binary files. Please test. -- keywords: +patch Added file: http://bugs.python.org/file13642/speedup-bufio.patch ___

[issue5579] Display for OrderedDict

2009-04-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: The proposal for a custom syntax has nearly zero chance of success. FWIW, the JSON module provides an alternative way to get a the same result using the new object_pairs_hook (being added to Py2.7 and Py3.1). -- nosy: +rhettinger __

[issue504152] rfc822 long header continuation broken

2009-04-06 Thread R. David Murray
R. David Murray added the comment: The source lines mentioned in this issue have not been changed in trunk, and the feedparser line has not been changed in py3k as of r71355 (rfc822 no longer exists, so I'm not sure if the replacement code in py3k has the issue or not). -- nosy: +r.davi

[issue5579] Display for OrderedDict

2009-04-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: For this usage I'd suggest a class. See http://www.python.org/dev/peps/pep-3115/ the example containing "OrderedClass". With a little work, your code could look like: class Interface(TabbedPane): class FirstTab(Pane): label = 'First Tab'

[issue1697175] winreg module for cygwin?

2009-04-06 Thread Simon Law
Simon Law added the comment: zooko: You may be interested in http://pypi.python.org/pypi/cygwinreg/ -- nosy: +sfllaw ___ Python tracker ___ ___

[issue5714] CGIHTTPServer._url_collapse_path_split should live elsewhere

2009-04-06 Thread Gregory P. Smith
New submission from Gregory P. Smith : CGIHTTPServer._url_collapse_path_split should probably live in a more general library and become a documented API. Perhaps in urlparse? -- keywords: easy messages: 85679 nosy: gregory.p.smith priority: normal severity: normal status: open title: C

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

2009-04-06 Thread Donghyun Kim
New submission from Donghyun Kim : During implement simple forking TCP server, I got the hang-up child process binding listen socket which caused parent(listen/accept) restarting failed. (port in use) Because child process does something with connected socket, there's no need to bind listen sock

[issue1752919] Exception in HTMLParser for special JavaScript code

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed in trunk, py3k. -- nosy: +ajaksu2 stage: -> test needed type: -> behavior versions: +Python 2.6, Python 3.1 -Python 2.4 ___ Python tracker

[issue1690201] Added support for custom readline functions

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.3 ___ Python tracker ___ _

[issue1760089] Cross Compiling Python

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Closing as invalid, please reopen if you can explain what 'python-patch' is and how this is a Python issue. -- components: +Build -None nosy: +ajaksu2 resolution: -> invalid stage: -> committed/rejected status: open -> closed __

[issue1768858] Python - Operation time out problem

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Unless someone can spot a Python bug here, this issue will be closed. -- nosy: +ajaksu2 stage: -> test needed status: open -> pending title: Python - Operation time out problem -> Python - Operation time out problem type: -> behavior versions: +Python

[issue1772721] [python-mode] Properly highlight lambda with no arguments

2009-04-06 Thread Daniel Diniz
Daniel Diniz added the comment: Many changes have landed in Misc/python-mode.el since rev 56963, can anyone confirm the described behavior? -- nosy: +ajaksu2 stage: -> test needed status: open -> pending type: -> feature request versions: +Python 2.7 _

[issue1776674] glob.glob inconsistent

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Windows stage: -> test needed type: -> behavior versions: +Python 2.6 -Python 2.5 ___ Python tracker ___ ___

[issue1776160] Buffer overflow when listing deeply nested directory

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: normal -> low stage: -> test needed type: -> behavior versions: +Python 2.6, Python 3.1 ___ Python tracker ___

[issue1217246] proposed patch for tls wrapped ssl support added to smtplib

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- dependencies: +documentation for new SSL module stage: -> test needed type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.4 ___ Python tracker _

[issue1054] scriptsinstall target fails in alternate build dir

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Installation stage: -> test needed versions: +Python 3.0 ___ Python tracker ___ ___ Python-b

[issue1115] Minor Change For Better cross compile

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Build type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker ___

[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> behavior versions: +Python 2.6, Python 3.0 -Python 2.5 ___ Python tracker ___ ___

  1   2   >