[issue2254] Python CGIHTTPServer information disclosure
Changes by Gregory P. Smith g...@krypto.org: Removed file: http://bugs.python.org/file9628/CGIHTTPServer_is_cgi_fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2254 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it
Gregory P. Smith g...@krypto.org added the comment: merged into release26-maint. release30-maint still needed. -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5705 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2254] Python CGIHTTPServer information disclosure
Gregory P. Smith g...@krypto.org added the comment: Fixed in trunk r71303. This potentially changes the behavior of CGIHTTPServer (for the better) so this is probably not appropriate to backport to a release branch unless someone really considers the security of this to be severe. If backported, the new module function should be expanded inline to avoid adding a new (though undocumented) API. Closing. -- resolution: - fixed status: open - closed versions: +Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2254 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5700] io.FileIO calls flush() after file closed
Brian Quinlan br...@sweetapp.com added the comment: Discussion about this bug is ongoing in python-dev. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5700 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5707] IDLE will not load
New submission from epitome83 schadenfreud...@gmail.com: 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 binding. I then tried to change history-prev to Ctrl+Up Arrow, but when I pressed OK, it gave an error that that binding was already taken. The program then crashed. Since then whenever I try to open IDLE, the pythonw.exe process appears in my Task Manager briefly, but then it exits, and I never see any other evidence the program has opened. The command line still works fine. I tried repairing the installation, uninstalling, restarting the computer, and removing the leftover registry keys for a completely clean install, but nothing has worked to be able to reopen the program. -- components: IDLE messages: 85618 nosy: epitome83 severity: normal status: open title: IDLE will not load type: crash versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5707 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5630] Create alternatieve CObject API that is safe and clean
Larry Hastings la...@hastings.org 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 unchanged. I've done that, incorporating many of GvR's suggestions, though the blame for the proposed new API is ultimately mine. The new object is called a Capsule. (I *had* wanted to call it Wrapper, but there's already a PyWrapper_New in descrobject.h.) Highlights of the new API: * PyCapsule_New() replaces PyCObject_FromVoidPtr. * It takes a void * pointer, a const char *name, and a destructor. * The pointer must not be NULL. * The name may be NULL; if it is not NULL, it must be a valid C string which outlives the capsule. * The destructor takes a PyObject *, not a void *. * PyCapsule_GetPointer() replaces PyCObject_AsVoidPtr. * It takes a PyObject * and a const char *name. * The name must compare to the name inside the object; either they're both NULL or they strcmp to be the same. * PyCapsule_Import() replaces PyCObject_Import. * It takes three arguments: const char *module_name, const char *attribute_name, int no_block. * It ensures that the name of the Capsule is modulename.attributename. * If no_block is true, it uses PyModule_ImportModuleNoBlock. * The PyCapsule structure is private. There are accessors for all fields: pointer, name, destructor, and context * The context is a second void * you can set / get. I've attached a patch to implement this; it was written against svn r71304. The patch isn't ready to be applied--there is no documentation for the new API beyond the header file. GvR and I disagree on one point: he thinks that we should leave CObject in forever, undeprecated. I think we should deprecate it now and remove it... whenever we'd do that. The new API does everything the old one does, and more, and it's cleaner and safer. -- title: Update CObject API so it is safe and regular - Create alternatieve CObject API that is safe and clean Added file: http://bugs.python.org/file13626/lch.capsule.r71304.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5630 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5708] Tiny code polishing to unicode_repeat
New submission from Larry Hastings la...@hastings.org: 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 analysis of the code will show you that done is always 0 and nchars is always = str-length. So the check is unnecessary--we're always going to do that first copy. I removed the if and set done to str-length directly. Hope I got it right! -- components: Interpreter Core files: lch.unicoderepeat.r71304.diff keywords: patch messages: 85620 nosy: lhastings severity: normal status: open title: Tiny code polishing to unicode_repeat versions: Python 3.1 Added file: http://bugs.python.org/file13627/lch.unicoderepeat.r71304.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5708 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1745761] Bad attributes/data handling in SGMLib
Daniel Diniz aja...@gmail.com added the comment: Confirmed in trunk. -- nosy: +ajaksu2 stage: - needs patch type: - behavior versions: +Python 2.6 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745761 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1742205] ZipFile.writestr writes incorrect extended local headers
Daniel Diniz aja...@gmail.com added the comment: Confirmed for trunk and py3k. -- nosy: +ajaksu2 stage: - test needed type: - behavior versions: +Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1742205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1735418] file.read() truncating strings under Windows
Antoine Pitrou pit...@free.fr 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 ('\r\n') into C newlines ('\n'). Also, please note this is a feature of Windows itself, *not* of Python. That's why you don't see it happening on e.g. Mac OS X. And that's why the fix, short of changing the program's logic, is to open in binary mode ('rb'). -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1735418 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744752] Newline skipped in for line in file
Changes by Daniel Diniz aja...@gmail.com: -- components: +Windows nosy: +benjamin.peterson, pitrou stage: - test needed type: - behavior versions: +Python 2.6, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1747670] Limiting data copy in xmlrpclib
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - resource usage versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1747670 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1748064 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1748960] os.path.expandvars: expand string without modifying the environment
Changes by Daniel Diniz aja...@gmail.com: -- 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 tracker rep...@bugs.python.org http://bugs.python.org/issue1748960 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744382] Read Write lock
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744382 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1749512] imaplib cannot handle mailboxes with ACL: lrs
Changes by Daniel Diniz aja...@gmail.com: -- keywords: +patch stage: - test needed type: - behavior versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1749512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1749662] New byte packing format for the struct module
Changes by Daniel Diniz aja...@gmail.com: -- stage: - patch review type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1749662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1590] make altinstall installs pydoc, idle, smtpd.py
Changes by Daniel Diniz aja...@gmail.com: -- 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1590 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1778410] removeTest() method patch for unittest.TestSuite
Changes by Daniel Diniz aja...@gmail.com: -- nosy: +michael.foord stage: - test needed type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1778410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744752] Newline skipped in for line in file
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 2.7 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744752] Newline skipped in for line in file
Antoine Pitrou pit...@free.fr 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? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3873] Unpickling is really slow
STINNER Victor victor.stin...@haypocalc.com 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: http://bugs.python.org/file13632/pickle_read_buffer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3873] Unpickling is really slow
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3873] Unpickling is really slow
STINNER Victor victor.stin...@haypocalc.com 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 | 255 |1780 | py3k | 0,10^7 |2360 | 16044 | py3k | 1000, 10^7 |2615 | 19380 | with the patch: version | data | dump ms | load ms | speed up: py3k | 0,10^6 | 237 | 183 | x8 py3k | 1000, 10^6 | 241 | 248 | x7 py3k | 0,10^7 |2420 |1860 | x8 py3k | 1000, 10^7 |2850 |3100 | x6 (data: 0, 10^6 means: [0]*10^6) -- Added file: http://bugs.python.org/file13633/pickletest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1735418] file.read() truncating strings under Windows
Daniel Diniz aja...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue1735418 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1738179] help() can't find right source file
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - behavior versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1738179 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1672568] silent error in email.message.Message.get_payload
Renaud Blanch rndbl...@gmail.com 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. -- Added file: http://bugs.python.org/file13631/unsilent_get_payload_decoding_errors.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1672568 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1739118] Investigated ref leak report related to thread(regrtest.py -
Daniel Diniz aja...@gmail.com 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 tracker rep...@bugs.python.org http://bugs.python.org/issue1739118 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response
Daniel Diniz aja...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue1726451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3873] Unpickling is really slow
STINNER Victor victor.stin...@haypocalc.com 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; -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1733259] ZipFile CallBack Needed...
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1733259 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1734860] sitecustomize.py not found
Daniel Diniz aja...@gmail.com added the comment: Closing as it's a documented change. -- nosy: +ajaksu2 resolution: - invalid stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1734860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1774840] Not exiting when running tests
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1774840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1565509] Repair or Change installation error
Tim Golden m...@timgolden.me.uk 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 straightforward which can fix it. Obviously, there's an easy workaround: rename the file you're running to python-2.5.2.msi. So I wouldn't consider it a major priority. Just a nuisance. -- nosy: +tim.golden status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1565509 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3873] Unpickling is really slow
Antoine Pitrou pit...@free.fr 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)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744456] Patch for feat. 1713877 Expose callbackAPI in readline module
Changes by Daniel Diniz aja...@gmail.com: -- 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744456 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3744] make altinstall installs pydoc instead of pydoc3.0
Daniel Diniz aja...@gmail.com 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 superseder: - make altinstall installs pydoc, idle, smtpd.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3744 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1761028] pickle - cannot unpickle circular deps with custom __hash__
Changes by Daniel Diniz aja...@gmail.com: -- nosy: +collinwinter stage: - needs patch versions: +Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1761028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1202] zlib.crc32() and adler32() return value
J. David Ibáñez jda...@itaapy.com added the comment: There it is. -- Added file: http://bugs.python.org/file13630/Document.odt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1202 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1752252] tkFileDialog closes Python when used
Changes by Daniel Diniz aja...@gmail.com: -- components: +Tkinter -None stage: - test needed type: - behavior versions: +Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1752252 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1739118] Investigated ref leak report related to thread regrtest.py
Changes by Daniel Diniz aja...@gmail.com: -- 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 rep...@bugs.python.org http://bugs.python.org/issue1739118 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1458] installer crashes on attempted cancellation
Daniel Diniz aja...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue1458 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1713877] Expose callback API in readline module
Changes by Daniel Diniz aja...@gmail.com: -- dependencies: +Patch for feat. 713877 Expose callbackAPI in readline module versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1713877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1685962] socket.getaddrinfo() should take an address tuple.
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1685962 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1756343] Python 2.5.1 fails to build on AIX
Changes by Daniel Diniz aja...@gmail.com: -- priority: normal - low stage: - test needed status: open - pending type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1756343 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5676] Fix make clean in py3k/trunk
Larry Hastings la...@hastings.org 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 fix it please--or tell me what I could possibly be doing wrong? Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1730480] dict init/update accesses internal items of dict derivative
Daniel Diniz aja...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue1730480 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5676] Fix make clean in py3k/trunk
Benjamin Peterson benja...@python.org added the comment: 2009/4/6 Larry Hastings rep...@bugs.python.org: Larry Hastings la...@hastings.org 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 fix it please--or tell me what I could possibly be doing wrong? Thanks. $ rm -rf @test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response
Giampaolo Rodola' billiej...@users.sourceforge.net 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 data connection for file list 07:55:19 226: Transfer complete 07:55:19 Remote listing contents { 07:55:19 } There's really no reason for an FTP server to send 1xx after 226, no matter if the listed directory is empty or not. It just doesn't make sense. Plus, Proftpd clearly *not* behave as such, as it is shown by your log file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1726451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1774840] Not exiting when running tests
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +fuzzyman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1774840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1774840] Not exiting when running tests
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: +michael.foord -fuzzyman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1774840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1774840] Not exiting when running tests
Changes by Michael Foord mich...@voidspace.org.uk: -- stage: test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1774840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response
Kenneth Loafman loaf...@users.sourceforge.net 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 would have to say that the problem has now been resolved. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1726451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1774840] Not exiting when running tests
Michael Foord mich...@voidspace.org.uk 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 rep...@bugs.python.org http://bugs.python.org/issue1774840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3586] pwd.getpwnam('nobody') produces incorrect results if sizeof(uid_t) sizeof(long)
Gregory P. Smith g...@krypto.org 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 - closed versions: +Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3586 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4591] 32-bits unsigned user/group identifier
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #3586: pwd.getpwnam('nobody') produces incorrect results if sizeof(uid_t) sizeof(long) (now closed). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5709] PyObject_TypeCheck crashes the intepreter on extension callback functions
New submission from Te-jé Rodgers cont...@tejerodgers.com: 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: Extension Modules messages: 85651 nosy: trodgers severity: normal status: open title: PyObject_TypeCheck crashes the intepreter on extension callback functions versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5709] PyObject_TypeCheck crashes the intepreter on extension callback functions
Te-jé Rodgers cont...@tejerodgers.com added the comment: Sorry about that; my err. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3873] Unpickling is really slow
Changes by Collin Winter coll...@gmail.com: -- nosy: +collinwinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5709] PyObject_TypeCheck crashes the intepreter on extension callback functions
Changes by Benjamin Peterson benja...@python.org: -- resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5672] Implement a way to change the python process name
Marcelo Fernández fernandez...@yahoo.com.ar 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 Python 2.7a0 (trunk:71261M, Apr 5 2009, 16:32:55) [GCC 4.3.2] on linux2 Type help, copyright, credits or license for more information. import os [34831 refs] os.getprocname() './python' [34833 refs] os.getpid() 5601 [34833 refs] os.setprocname('hello_process_name') [34833 refs] os.getprocname() 'hello_process_name' [34833 refs] Before changing the process name: marc...@marcelo-laptop:~/src/pytrunk$ ps -fax | grep 5601 Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 5601 pts/2S+ 0:00 | \_ ./python 5611 pts/3S+ 0:00 \_ grep 5601 After changing the process name: marc...@marcelo-laptop:~/src/pytrunk$ ps -fax | grep 5601 Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 5601 pts/2S+ 0:00 | \_ hello_process_name 5635 pts/3S+ 0:00 \_ grep 5601 And killall hello_process_name works, Gnome Process monitor shows it fine too. By now this is Linux only, but I hope to implement it also for BSD (FreeBSD has it[1], OpenBSD [2] and NetBSD [3] too). [1] http://fxr.watson.org/fxr/source/gen/setproctitle.c?v=FREEBSD-LIBC [2] http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/setproctitle.c?rev=1.11;content-type=text%2Fx-cvsweb-markup [3] http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gen/setproctitle.c?rev=1.22content-type=text/x-cvsweb-markuponly_with_tag=MAIN Regards -- keywords: +patch Added file: http://bugs.python.org/file13635/issue5672_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5672 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5710] ctypes should return composite types from callbacks
New submission from Greg Holling gholl...@vni.com: 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 datatypes (c_int, c_float, ..., c_void_p). For other datatypes (STRUCTURE, POINTER, ...), ctypes returns the following error: invalid result type for callback function The error message comes from callback.c, in function AllocFunctionCallback. I think this may be a duplicate of issue #1574584. I've tested this on Windows and linux; I'm including a Makefile and source code that works on Windows/cygwin. -- file: Makefile all: hello.dll hello.exe hello_dll.exe clean: rm *.exe *.dll hello.exe: hello.h hello.c hello_main.c gcc hello.c hello_main.c -o hello.exe --save-temps hello.dll: hello.h hello.c gcc -mno-cygwin -shared hello.c -o hello.dll --save-temps hello_dll.exe: hello.h hello.c gcc hello_main.c -L. -lhello -o hello_main.exe -- file: hello.h struct helloStruct { int i; float f; int i2; int i3; }; float fxn (struct helloStruct callback()); -- file: hello.c #include stdio.h #include hello.h float fxn (struct helloStruct callback()) { struct helloStruct result = callback(); printf (i: %d\n, result.i); printf (f: %f\n, result.f); return result.f * result.i; } -- file: hello_main.c #include stdio.h #include hello.h struct helloStruct callback(); int main (int argc, char **argv) { float f; struct helloStruct result; printf (Hello world\n); f = fxn (callback); printf (Callback result: %f\n, f); } struct helloStruct callback () { struct helloStruct result; result.i = 10; result.f = 3.14159; return result; } int int_callback () { return 42; } -- file: hello.py from ctypes import cdll, c_char, c_int, c_float, Structure, CFUNCTYPE, POINTER, c_char_p class helloStruct (Structure): pass helloStruct._fields_ = [ ('i', c_int), ('f', c_float)] def callback(): print (callback()) hs = helloStruct() hs.i = 10 hs.f = 25.5 return hs libc = cdll.msvcrt #helloLib = libc.load_library(hello) #helloLib = libc.hello helloLib = cdll.hello helloLib.fxn.restype = helloStruct # It looks like only simple return types are supported for # callback functions. simple = c_int, c_float, ... # Python bug # 1574584 - status: closed. #Suggests posting to ctypes-users, but I don't see any recent activity. # TMP_FCN = CFUNCTYPE (POINTER(c_char)) # Error message #TMP_FCN = CFUNCTYPE (c_char_p) # Runs, but invalid result #TMP_FCN = CFUNCTYPE (c_void_p) # Runs, but invalid result #TMP_FCN = CFUNCTYPE (c_int) # Runs, but invalid result #TMP_FCN = CFUNCTYPE (POINTER(c_int)) # Error message #TMP_FCN = CFUNCTYPE (POINTER(helloStruct)) # Error message #TMP_FCN = CFUNCTYPE (helloStruct)# Error message callback_fcn = TMP_FCN (callback) result = helloLib.fxn (callback_fcn) # 2.5 #print result: , result # 3.0 print (result: , result) -- assignee: theller components: ctypes messages: 85654 nosy: gholling, theller severity: normal status: open title: ctypes should return composite types from callbacks versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5710 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5672] Implement a way to change the python process name
Giampaolo Rodola' billiej...@users.sourceforge.net 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 rep...@bugs.python.org http://bugs.python.org/issue5672 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release
New submission from daku daku9...@gmail.com: 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/redbtn.jpg type 'unicode' ''' behaviour seen on windows xp 2.6.1 python release. Linux distributions seem fine. parsing above string (as it's not a tuple anymore) is difficult as it is a list of filenames separated by a space but spaces can be in the middle of filenames. -- components: Tkinter messages: 85658 nosy: daku severity: normal status: open title: tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5672] Implement a way to change the python process name
Amaury Forgeot d'Arc amaur...@gmail.com 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] = PyString_AS_STRING(name); 2 - The function should update sys.argv as well. In this case, os.getprocname is not necessary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5672 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5711] socket.create_connection not in __all__
New submission from Kevin Watters kevinwatt...@gmail.com: 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 severity: normal status: open title: socket.create_connection not in __all__ type: behavior versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file13636/socket-all-26.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5711 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5707] IDLE will not load
Amaury Forgeot d'Arc amaur...@gmail.com 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__ return self.func(*args) File c:\Python30\lib\idlelib\keybindingDialog.py, line 158, in FinalKeySelected self.BuildKeyString() File c:\Python30\lib\idlelib\keybindingDialog.py, line 165, in BuildKeyString keyList.append(finalKey) AttributeError: 'filter' object has no attribute 'append' Then it is still possible to save these settigs, but the binding contains event==Control, and IDLE fails on startup: Traceback (most recent call last): File c:\afa\python\py3k\lib\runpy.py, line 128, in _run_module_as_main __main__, fname, loader, pkg_name) File c:\afa\python\py3k\lib\runpy.py, line 34, in _run_code exec(code, run_globals) File c:\afa\python\py3k\lib\idlelib\idle.py, line 22, in module idlelib.PyShell.main() File c:\afa\python\py3k\lib\idlelib\PyShell.py, line 1375, in main shell = flist.open_shell() File c:\afa\python\py3k\lib\idlelib\PyShell.py, line 276, in open_shell self.pyshell = PyShell(self) File c:\afa\python\py3k\lib\idlelib\PyShell.py, line 800, in __init__ OutputWindow.__init__(self, flist, None, None) File c:\afa\python\py3k\lib\idlelib\OutputWindow.py, line 16, in __init__ EditorWindow.__init__(self, *args) File c:\afa\python\py3k\lib\idlelib\EditorWindow.py, line 117, in __init__ self.apply_bindings() File c:\afa\python\py3k\lib\idlelib\EditorWindow.py, line 943, in apply_bindings text.event_add(event, *keylist) File c:\afa\python\py3k\lib\idlelib\MultiCall.py, line 359, in event_add widget.event_add(self, virtual, seq) File c:\afa\python\py3k\lib\tkinter\__init__.py, line 1353, in event_add self.tk.call(args) _tkinter.TclError: bad event type or keysym Control Simple patch attached. -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file13637/idle_bindings.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5707 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2953] _zip_directory_cache untested and undocumented
Brett Cannon br...@python.org added the comment: 2009/4/5 Tarek Ziadé rep...@bugs.python.org@psf.upfronthosting.co.za Tarek Ziadé ziade.ta...@gmail.com 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 zipfile to get the directory list? Is there any real requirement that the cache must be used? so I guess a new API should be created in zipimport to handle this case as well. (I think it's some setuptools code originallyt, that landed in pkgutil) Probably. -- Added file: http://bugs.python.org/file13638/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___brbrdiv class=gmail_quote2009/4/5 span dir=ltrlt;quot;Tarek Ziadé lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;quot;@a href=http://psf.upfronthosting.co.za;psf.upfronthosting.co.za/agt;/spanbr blockquote class=gmail_quote style=border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;br Tarek Ziadé lt;a href=mailto:ziade.ta...@gmail.com;ziade.ta...@gmail.com/agt; added the comment:br div class=imbr gt; Does distutils use _zip_directory_cache in any way?br br /divNot at all. But pkgutil does,/blockquotedivbrAh, OK.br /divblockquote class=gmail_quote style=border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex; and uses to get a dirlist,/blockquote divbrCouldn#39;t one just open the zip file with zipfile to get the directory list? Is there any real requirement that the cache must be used?br /divblockquote class=gmail_quote style=border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex; br so I guess a new API should be created in zipimport to handle this casebr as well. (I think it#39;s some setuptools code originallyt, that landed inbr pkgutil)/blockquotedivbrProbably. br/div/divbr ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5672] Implement a way to change the python process name
Marcelo Fernández fernandez...@yahoo.com.ar 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 and the psutil project. Thanks again -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5672 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1748960] os.path.expandvars: expand string without modifying the environment
Geoffrey Bache gjb1...@users.sourceforge.net added the comment: Thanks, didn't know about that feature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1748960 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5559] IDLE Output Window 's goto fails when path has spaces
Claudio Canepa ccanep...@gmail.com 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 first group gives a valid filename, the second a line number. 2. the potential target lines produced by GrepDialog.py are writen by: sys.stdout.write(%s: %s: %s\n % (fn, lineno, line)) where: fn :a valid filename ( because an open(fn) was issued before), not guaranted an abspath lineno : unsigned int line: a text line in an arbitrary file, but mostly an *.py Clearly the 3rd regex is the only one that can hit the line produced by GrepDialog, and clearly will fail in any OS that allows spaces in a valid path: the regex breaks the first group at the first whitespace. The tentative fix propossed in the initial post was a minimal change that allow spaces in the path, but was very ugly and not comunicates a clear intention. I like more: r'(?:\s*)(.+):\s+(\d+):' wich discards leading whitespace ( feature unused by GrepDialog but probably handy in pyShell, wich subclasses OutputWindow ) It is a better regex that the original in IDLE, meaning it would hit more positives, but can fail sometimes: Supose the GrepDialog found a hit at line 111 in the file c:\foo.py , with the text a = 1 # see 24: 32: 1 The line sent to OutputWindow would be c:\foo.py: 111: a = 1 # see 24: 32: 1 and the regex will capture the groups: filename = c:\foo.py: 111: a = 1 # see 24 linenum = 32 The first group fails to capture the filename. I can live with such special case failures, but anyway: In windows, changing the regex to break the first group at the first ': ' would fix the thing ( ': ' cant happen in a fn that pass open (fn) ) How about other OSes ? -- -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5676] Fix make clean in py3k/trunk
Larry Hastings la...@hastings.org 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 runs. test_on_error deliberately constructs a directory that is not executable to the current user, then calls shutil.rmtree to delete it, passing in an onerror callback of check_args_to_onerror so it can observe how it fails. check_args_to_onerror. expects to be called twice; the first time it expects the failing function to be os.remove. In fact, the first failure is os.listdir. This fails, throws an exception, and the test is over. Which means the cleanup code in test_on_error (the subsequent chmod and rmtree calls) don't get executed, the @test with mode 400 is left behind, and now we have cascading errors. Attached is a patch that fixes check_args_to_onerror on my machine. For good measure, it also changes cleanup_test_droppings in regrtest cleanup code so it chmods a directory to 0o700 before attempting to remove it. The patch was written against py3k/trunk r71304. I find it hard to believe that I'm the only person running make test in py3k/trunk not on Windows and not as root. So I theorize os.listdir behaves differently on different OSes. I'm on Ubuntu 9.04, and os.listdir fails if called on a directory that is not executable. Perhaps, on the omnipresent Macs, this is permissible? If so, the tests in check_args_on_error when errorState is 0 should be rewritten, either to accept any of the possible arguments or to branch on sys.platform and accept specific arguments. -- Added file: http://bugs.python.org/file13639/lch.test_shutil.r71304.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5676] Fix make clean in py3k/trunk
Larry Hastings la...@hastings.org 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 tracker rep...@bugs.python.org http://bugs.python.org/issue5676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5713] smtplib gets out of sync if server returns a 421 status
New submission from Mark Sapiro m...@msapiro.net: 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 421 status and disconnect. This leads to the following problem. An smtplib.SMTP() instance is created and its sendmail() method is called with a list of recipients which contains several invalid, local addresses. sendmail() processes the recipient list, calling the rcpt() method for each. Some of these may be accepted with a 250 or 251 status and some may be rejected with a 550 or other status. The rejects are kept in a dictionary to be eventually returned as the sendmail() result. However, with the Postfix server at least, after 20 rejects, the server sends a 421 Too many errors reply and disconnects, but sendmail continues to process and this results in raising SMTPServerDisconnected(Connection unexpectedly closed) and the response dictionary containing the invalid addresses and their responses is lost. The caller may see the exception as retryable and may retry the send after some delay, but since the caller has received no information about the invalid addresses, it sends the same recipient list and the scenario repeats. -- components: Library (Lib) messages: 85666 nosy: msapiro severity: normal status: open title: smtplib gets out of sync if server returns a 421 status type: behavior versions: Python 2.4, Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5672] Implement a way to change the python process name
Martin v. Löwis mar...@v.loewis.de 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 (for type safety), and be lazy by not implementing all controls. However, renaming the system call is not good, IMO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5672 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5707] IDLE will not load
epitome83 schadenfreud...@gmail.com 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 startup. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5707 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5579] Display for OrderedDict
Todd Weiler twei...@raggedcreek.com 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 creates little window that doesn't really do anything except set up the interface. Note the use of a dictionary to set up the interface. The OrderedDict is more concise than XML, is Python Code not a separate file and easy to read. This was inspired by the builder concept in Groovy. Thanks for your time. -- Added file: http://bugs.python.org/file13641/od_sample.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5579 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3586] pwd.getpwnam('nobody') produces incorrect results if sizeof(uid_t) sizeof(long)
Mark Dickinson dicki...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue3586 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5707] IDLE will not load
Amaury Forgeot d'Arc amaur...@gmail.com 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 quickly... To see the IDLE error messages, I often type this in a console window: c:\python30\python.exe -m idlelib.idle -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5707 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5711] socket.create_connection not in __all__
Benjamin Peterson benja...@python.org added the comment: Fixed in r71329. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5711 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5502] io-c: TextIOWrapper is faster than BufferedReader but not protected by a lock
Antoine Pitrou pit...@free.fr 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5579] Display for OrderedDict
Raymond Hettinger rhettin...@users.sourceforge.net 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5579 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue504152] rfc822 long header continuation broken
R. David Murray rdmur...@bitdance.com 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.david.murray stage: - test needed type: - behavior versions: +Python 2.7, Python 3.1 -Python 2.3, Python 2.4, Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue504152 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5579] Display for OrderedDict
Amaury Forgeot d'Arc amaur...@gmail.com 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' LineEdit('First Name', length=20) LineEdit('Last Name', length=30) ComboBox('Title', length=10, list=['Mr', 'Mrs', 'Ms', 'Dr', 'BDFL']) class SecondTab(Pane): label = 'Second Tab' LineEdit('City', length=20) LineEdit('Street', length=30) -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5579 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1697175] winreg module for cygwin?
Simon Law sfl...@sfllaw.ca added the comment: zooko: You may be interested in http://pypi.python.org/pypi/cygwinreg/ -- nosy: +sfllaw ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1697175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5714] CGIHTTPServer._url_collapse_path_split should live elsewhere
New submission from Gregory P. Smith g...@krypto.org: 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: CGIHTTPServer._url_collapse_path_split should live elsewhere type: feature request versions: Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5714 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()
New submission from Donghyun Kim uryan...@gmail.com: 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 socket in child process. (finish_request() calls RequestHandlerClass with connected socket(=request)) Simply add self.socket.close() in the beginning of forked child process. SocketServer.ForkingMixIn : def process_request(self, request, client_address): Fork a new subprocess to process the request. self.collect_children() pid = os.fork() if pid: # Parent process if self.active_children is None: self.active_children = [] self.active_children.append(pid) self.close_request(request) return else: # Child process. # This must never return, hence os._exit()! self.socket.close() # close parent's listen socket in child try: self.finish_request(request, client_address) os._exit(0) except: try: self.handle_error(request, client_address) finally: os._exit(1) -- components: Library (Lib) messages: 85680 nosy: ryan003 severity: normal status: open title: listen socket close in SocketServer.ForkingMixIn.process_request() type: behavior versions: Python 2.4, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1752919] Exception in HTMLParser for special JavaScript code
Daniel Diniz aja...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue1752919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1690201] Added support for custom readline functions
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1690201 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1760089] Cross Compiling Python
Daniel Diniz aja...@gmail.com 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1760089 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1768858] Python - Operation time out problem
Daniel Diniz aja...@gmail.com 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 2.6 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1768858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1772721] [python-mode] Properly highlight lambda with no arguments
Daniel Diniz aja...@gmail.com 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1772721 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1776674] glob.glob inconsistent
Changes by Daniel Diniz aja...@gmail.com: -- components: +Windows stage: - test needed type: - behavior versions: +Python 2.6 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1776674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1776160] Buffer overflow when listing deeply nested directory
Changes by Daniel Diniz aja...@gmail.com: -- priority: normal - low stage: - test needed type: - behavior versions: +Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1776160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1217246] proposed patch for tls wrapped ssl support added to smtplib
Changes by Daniel Diniz aja...@gmail.com: -- dependencies: +documentation for new SSL module stage: - test needed type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1217246 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1054] scriptsinstall target fails in alternate build dir
Changes by Daniel Diniz aja...@gmail.com: -- components: +Installation stage: - test needed versions: +Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1115] Minor Change For Better cross compile
Changes by Daniel Diniz aja...@gmail.com: -- components: +Build type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1115 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - behavior versions: +Python 2.6, Python 3.0 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1128] msilib.Directory.make_short only handles file names with a single dot in them
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - behavior versions: +Python 2.6, Python 3.0 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1155] Carbon.CF memory management problem
Changes by Daniel Diniz aja...@gmail.com: -- nosy: +ronaldoussoren priority: normal - low status: open - pending versions: +Python 2.6 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1155 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com