[issue14993] GCC error when using unicodeobject.h
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14993] GCC error when using unicodeobject.h
Martin v. Löwis mar...@v.loewis.de added the comment: Compilation with gcc -std=c89 is not supported. Just drop this option. While Python strives to use C89, we will not distort to meet some abstract language compliance goal. OTOH, I fail to see why they need to be bitfields: a plain unsigned char field should work as well (as would an int bitfield). Victor? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14993] GCC error when using unicodeobject.h
André Malo n...@perlig.de added the comment: I'm not talking about compiling python but my extension module. I *do* try supporting c89. Also relying on implementation extensions is bad style. I think, there's a huge difference between public header files (standards are good) and linked C code (do whatever you like, although standards are good here as well). OTOH, is there a real difference between char:1 and int:1? That's what we're actually discussing here. If not, I suggest simply using int:1 and be done with it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14998] pprint._safe_key is not always safe enough
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11959] smtpd cannot be used without affecting global state
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- hgrepos: +129 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11959] smtpd cannot be used without affecting global state
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- keywords: +patch Added file: http://bugs.python.org/file25815/fa55dc894947.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11959] smtpd cannot be used without affecting global state
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13598] string.Formatter doesn't support empty curly braces {}
Ramchandra Apte maniandra...@gmail.com added the comment: Added a new patch which addresses Éric's comments. -- Added file: http://bugs.python.org/file25816/issue13598.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13598] string.Formatter doesn't support empty curly braces {}
Changes by Ramchandra Apte maniandra...@gmail.com: Added file: http://bugs.python.org/file25817/test_string.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] IDLE in Python 3.2.3 freezes when saving a .py program
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: pthon 3.2.3 freezes when saving a .py program - IDLE in Python 3.2.3 freezes when saving a .py program ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] IDLE in Python 3.2.3 freezes when saving a .py program
Ramchandra Apte maniandra...@gmail.com added the comment: Can you run IDLE from the cmd line and send the output of the cmd line when it crashes? -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14997] Syntax Error in Python Version Number
Ramchandra Apte maniandra...@gmail.com added the comment: Can you please run IDLE from the cmd line and send the output of it in the cmd line. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] pthon 3.2.3 freezes when saving a .py program
Maureen Cuomo mcu...@prestonhs.org added the comment: I am running python in Windows 7, I installed python from python.org. I tried both of the following with the same results Python 3.2.3 Windows x86 MSI Installerhttp://www.python.org/ftp/python/3.2.3/python-3.2.3.msi(Windows binary -- does not include source) Python 3.2.3 Windows X86-64 MSI Installerhttp://www.python.org/ftp/python/3.2.3/python-3.2.3.amd64.msi(Windows AMD64 / Intel 64 / X86-64 binary [1] http://www.python.org/download/#id10 -- does not include source) Cannot save any file. Maureen Cuomo On Sun, Jun 3, 2012 at 9:41 PM, Ned Deily rep...@bugs.python.org wrote: Ned Deily n...@acm.org added the comment: We need more information to be able to help. What platform and OS version are you running on? Where did you install Python 3.2.3 from? Exactly what happens when you try to save a file, i.e. are you using a mouse or a keyboard accelerator, what messages do you see, etc? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ -- title: IDLE in Python 3.2.3 freezes when saving a .py program - pthon 3.2.3 freezes when saving a .py program ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] Python 3.2.3 freezes when saving a .py program
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: pthon 3.2.3 freezes when saving a .py program - Python 3.2.3 freezes when saving a .py program ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6808a72fc9ec by Hynek Schlawack in branch 'default': #14814: Use correct comparison for IP addresses http://hg.python.org/cpython/rev/6808a72fc9ec -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14215] http://www.python.org/dev/peps/ title is python.org
Ramchandra Apte maniandra...@gmail.com added the comment: What it the status of this bug? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14215 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14215] http://www.python.org/dev/peps/ title is python.org
R. David Murray rdmur...@bitdance.com added the comment: Presumably the PEP 0 generator needs a patch, but that's not something most of us ever touch. I've added Nick to nosy, I think he made changes to it last. -- nosy: +ncoghlan, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14215 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9c445f4695c1 by Barry Warsaw in branch 'default': Eric Snow's implementation of PEP 421. http://hg.python.org/cpython/rev/9c445f4695c1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Barry A. Warsaw ba...@python.org added the comment: I'm resolving this as Fixed since I've just committed the code to 3.3, but I'm also leaving its status open and assigning it to mvl for verification of the Windows build. Martin, if you'd rather not do that, please unassign it from yourself. I've also added Brian to the nosy list. -- assignee: - loewis nosy: +brian.curtin resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Barry A. Warsaw ba...@python.org added the comment: I completely agree. As easy (but obscure) as it is, it seems quite silly to have to go through time.mktime(dt.timetuple()) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7559] TestLoader.loadTestsFromName swallows import errors
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Because we don't know if the rest of the test code will adhere to this, we might want to consider clearing the cache before each test as well. Alternatively, we could avoid having to call importlib.invalidate_caches() at all (and having to think about for which tests it is necessary) if we do each test in a different directory and with a different name for the test package. We could do the former as follows: with support.temp_cwd(support.TESTFN): dir_name = self.id().split('.')[-1] # test method name with support.temp_cwd(dir_name) as cwd: with support.DirsOnSysPath(cwd): # Create package and run test. An approach like this might be less prone to issues that are hard to troubleshoot. I verified that it works. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7559] TestLoader.loadTestsFromName swallows import errors
R. David Murray rdmur...@bitdance.com added the comment: That would probably be OK, but I don't see why clearing the cache in those same methods (that create directories on the path) would be any harder. (It isn't necessary to clear the cache *afterward*, only before, as far as I can see, since the case of a directory not existing that the cache thinks exists should be handled correctly by importlib). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7559] TestLoader.loadTestsFromName swallows import errors
Chris Jerdonek chris.jerdo...@gmail.com added the comment: That sounds fine. I just got the sense from above that there was a desire to call invalidate_caches() as few times as possible. And yes, I agree only before is necessary. I had just taken what you said above literally (that [the cache] should be reset by tests that change what's on the path), thinking that you wanted to maintain the principle that tests should leave things as they were at the beginning. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Barry, Did you review the long discussion under issue 2736? Specifically, please note the part about mxDateTime, ticks() and gmticks(). I am -0 on adding ticks() and gmticks() and as far as I can tell no one has implemented these methods for datetime without introducing some subtle bugs. I also suspect that those who ask for a timestamp() method expect that it will do more than EPOCH = datetime(1970, 1, 1) def timestamp(t): return (t - EPOCH).total_seconds() For example, account for leap seconds or magically guess the DST offset. If we introduce a method that implements the code above, we have to prepare to explain why it does not do those things. If instead we introduce a shortcut for time.mktime(t.timetuple()), we will have to deal with the fact that mktime() behaves differently on different systems. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Barry A. Warsaw ba...@python.org added the comment: On Jun 04, 2012, at 03:45 PM, Alexander Belopolsky wrote: Did you review the long discussion under issue 2736? Specifically, please note the part about mxDateTime, ticks() and gmticks(). I am -0 on adding ticks() and gmticks() and as far as I can tell no one has implemented these methods for datetime without introducing some subtle bugs. I skimmed it, but I don't have time to read the whole bug. I'll note that I've recently had to convert a bunch of code from using mxDateTime to datetime+time, for the only reason that we had to support Python 3 and mxDT isn't yet ported. I also suspect that those who ask for a timestamp() method expect that it will do more than EPOCH = datetime(1970, 1, 1) def timestamp(t): return (t - EPOCH).total_seconds() Not really. For example, account for leap seconds or magically guess the DST offset. If we introduce a method that implements the code above, we have to prepare to explain why it does not do those things. That's fine, explain away! If instead we introduce a shortcut for time.mktime(t.timetuple()), we will have to deal with the fact that mktime() behaves differently on different systems. Not really. If developers even care, they will know that the epoch is different for different systems. We don't have to deal with it, we just have to mention it. Let them use more verbose correct code if they care. Seriously, we should not over-engineer this. It's purely a more discoverable convenience and I think implementing the moral equivalent to time.mktime(t.timetuple()) is exactly the right thing to do. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Mon, Jun 4, 2012 at 11:57 AM, Barry A. Warsaw rep...@bugs.python.org wrote: I've recently had to convert a bunch of code from using mxDateTime to datetime+time, That's a valuable experience. How big of a deal was the lack of .ticks() and .gmticks()? How did you work around it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Barry A. Warsaw ba...@python.org added the comment: On Jun 04, 2012, at 04:03 PM, Alexander Belopolsky wrote: That's a valuable experience. How big of a deal was the lack of .ticks() and .gmticks()? How did you work around it? It was *much* less of an issue than all the magic date format parsing that mxDT supports. That's actually something that I think is a more serious deficiency, since .strptime() is pretty limited (e.g. how would you parse ISO 8601 dates both with and without the 'T'?). A Python 3 compatible time format parser would make for a very nice separate library (PyPI) and/or addition to the stdlib (eventually). FWIW, here's the changeset. http://bazaar.launchpad.net/~gwibber-committers/gwibber/trunk/revision/1354 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count
Larry Hastings la...@hastings.org added the comment: Second pass at my patch. Incorporates suggestions from Serhiy's review--thanks, Serhiy! Still not ready for checkin. 80 col lines, no docs, docstrings are messy. But code is ready for (further) review. Code passes regression test suite without errors. -- Added file: http://bugs.python.org/file25818/larry.os.keyword.arguments.collapse.2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14626 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7559] TestLoader.loadTestsFromName swallows import errors
R. David Murray rdmur...@bitdance.com added the comment: Ah, yes, I wasn't clear. Sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset df6d1a4d83fa by Hynek Schlawack in branch 'default': #14814: Remove dead code from ipaddress http://hg.python.org/cpython/rev/df6d1a4d83fa -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count
Serhiy Storchaka storch...@gmail.com added the comment: Well, I'm going to ignore the long lines and documentation. The patch is really big and impressive. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14626 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count
Larry Hastings la...@hastings.org added the comment: I'm not sure that long and impressive are words that go together when describing a patch ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14626 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13959] Re-implement parts of imp in pure Python
Brett Cannon br...@python.org added the comment: Need to update the docstrings for imp.find_module() and load_module() to mention the functions are deprecated since there is no specific raised deprecation, only documented deprecation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14997] Syntax Error in Python Version Number
cuulblu k...@fivefingerdesigns.com added the comment: Can you please run IDLE from the cmd line and send the output of it in the cmd line. How do I do that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Alexandre Zani alexandre.z...@gmail.com added the comment: I think the easiest and most intuitive approach is to simply define timestamp() as being the reverse of fromtimestamp(). Don't worry about leap seconds and all that stuff. If non-1970 epochs are a concern, this could be renamed to posix_timestamp or some such with perhaps a generic timestamp function that takes both a time and epoch. But let's not let such a useful function not happen just because it won't solve everyone's problem. -- nosy: +Alexandre.Zani ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Richard Oudkerk shibt...@gmail.com added the comment: The Windows buildbots were failing compilation. I've added Object/namespaceobject.c and Include/namespaceobject.h to PCbuild/pythoncore.vcxproj in changeset ee7cd7d51ed6. -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Mon, Jun 4, 2012 at 1:33 PM, Alexandre Zani rep...@bugs.python.org wrote: I think the easiest and most intuitive approach is to simply define timestamp() as being the reverse of fromtimestamp(). I would like to invite everyone to review the discussion leading to closing of issue 2736. We cannot implement the reverse of fromtimestamp() because fromtimestamp() is not reversible in presence of DST and because float cannot represent all values that datetime supports. Both issues can be resolved, but I did not see any solution that I would call intuitive. Is anyone motivated enough to port mxDT's ticks() method to datetime? I don't think we need to reinvent the wheel. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15000] posixsubprocess module broken on x32
New submission from Mike Frysinger vap...@users.sourceforge.net: the direct call to the getdents syscall is broken on x32. there, the first two args are not unsigned long, but unsigned long long. patch attached to fix the issue. -- components: Extension Modules files: python-3.2.3-x32.patch keywords: patch messages: 162281 nosy: vapier priority: normal severity: normal status: open title: posixsubprocess module broken on x32 versions: Python 3.2 Added file: http://bugs.python.org/file25819/python-3.2.3-x32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15000 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Alexandre Zani alexandre.z...@gmail.com added the comment: I'm still reading through the issue you mentioned. (It's a painful read I have to admit) One major obstacle seems to be that during the DST switch over, an hour gets repeated and so the datetime object is ambiguous. (are you on the first or second hour?) I would argue that it isn't a problem that this function needs to solve. The ambiguity isn't tied to the conversion. It's tied to the datetime object itself. Let's add an optional parameter to specify the DST status, doc the pitfall and not worry overmuch about it. Side note: Let me know if I misunderstood Alexander, but if I didn't this should be documented with the datetime object. Based upon my understanding, the datetime object is a bad choice if you care about that ambiguity. That's not really clear. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14965] super() and property inheritance behavior
Daniel Urban urban.dani...@gmail.com added the comment: I'm attaching a patch implementing super.__setattr__ (and __delattr__). The implementation in the patch only works, if super can find a data descriptor in the MRO, otherwise it throws an AttributeError. As it can be seen in the tests, in some cases this may result in counter-intuitive behaviour. But I wasn't able to find another behaviour, that is consistent with both super.__getattr__ and normal __setattr__ semantics. -- keywords: +patch nosy: +daniel.urban Added file: http://bugs.python.org/file25820/super_setattr.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14965 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14965] super() and property inheritance behavior
Changes by Daniel Urban urban.dani...@gmail.com: -- components: +Extension Modules -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14965 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15001] segmentation fault with del sys.module['__main__']
New submission from Amaury Forgeot d'Arc amaur...@gmail.com: This simple script segfaults the interpreter (all versions), at least when run with ./python myscript.py myscript.py:: import sys del sys.module['__main__'] -- messages: 162284 nosy: amaury.forgeotdarc priority: normal severity: normal status: open title: segmentation fault with del sys.module['__main__'] type: crash versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15001] segmentation fault with del sys.module['__main__']
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8739] Update to smtpd.py to RFC 5321
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 079c1942eedf by R David Murray in branch 'default': #8739: fix omission of DEBUGSTREAM reset in new test in test_smtpd. http://hg.python.org/cpython/rev/079c1942eedf -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15001] segmentation fault with del sys.module['__main__']
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15001] segmentation fault with del sys.module['__main__']
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Many paths in pythonrun.c contains these lines: m = PyImport_AddModule(__main__); d = PyModule_GetDict(m); both return borrowed references, from sys.modules. in most cases, d is simply passed to PyEval_EvalCode() and not used afterwards, *except* in PyRun_SimpleFileExFlags which calls PyDict_DelItemString(d, __file__); this is where the crash occurs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15002] urllib2 does not download 4 MB file fully using ftp
New submission from sspapilin sspapi...@gmail.com: File test.py is #!/usr/bin/env python import urllib2 print urllib2.urlopen('ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-extended-latest').read() When I issue python test.py out.txt , I get file about 100KB in size, the beginning of the actual file. I repeated it a hundred times, and almost every time I get 98305 byte file, and a couple of times a 49153 bytes or 188417 bytes file. When I replace urllib2 with urllib in test.py, I get full (4 MB) file. I have Ubuntu 12.04 64-bit, Python 2.7.3 (from default Ubuntu repository, up-to-date as of 4-june-2012) and slow, 64KB/s, Internet connection. However, I asked my friend with Windows and faster connection to check it, and he got partial download as well, while he had another size of partial file (50109 bytes). I do not know his OS ant Python versions. -- components: Library (Lib) files: test.py messages: 162287 nosy: sspapilin priority: normal severity: normal status: open title: urllib2 does not download 4 MB file fully using ftp type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file25821/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15002 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15002] urllib2 does not download 4 MB file completely using ftp
Changes by sspapilin sspapi...@gmail.com: -- title: urllib2 does not download 4 MB file fully using ftp - urllib2 does not download 4 MB file completely using ftp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15002 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Mon, Jun 4, 2012 at 3:21 PM, Alexandre Zani rep...@bugs.python.org wrote: Let me know if I misunderstood Alexander, but if I didn't this should be documented with the datetime object. Based upon my understanding, the datetime object is a bad choice if you care about that ambiguity. That's not really clear. The datetime object is neither good nor bad if you want to deal with the DST ambiguity. If you want to store times as local time, the best practice is to include the UTC offset. The datetime module now provides the facilities to do so. If you neglect the timezone and deal with naive datetime objects instead, you should probably avoid mixing it with POSIX timestamps in the same application. Here is an example where naive datetime is quite appropriate: a timekeeping application for a small business with a single location. If you need to generate opening hours for a given week, [datetime(y,m,d, 9, 0) + datetime(i) for i in range(5)] is an adequate solution, but if you compare it to [datetime.fromtimestamp(x + 24*3600*i) for i in range(5)], you may be off by one hour if your week spans the DST change. In most applications, however, keeping local time without UTC offset is a bad choice. POSIX's timestamp only advantage is that it does no allow keeping local time at all. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Martin v. Löwis mar...@v.loewis.de added the comment: I think Richard fixed it already, thanks. -- assignee: loewis - status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] Python 3.2.3 freezes when saving a .py program
Ned Deily n...@acm.org added the comment: It is still difficult to understand what problem you are seeing as others are using IDLE from the 3.2.3 installers on Windows 7. There is at least one open issue in this area on Windows: http://bugs.python.org/issue12988. Does that describe what you are seeing? If now, a few things to check: if you get to the Save dialog, try choosing another folder to save to, ilke Desktop; also, try a simple file name with .py at the end. If that doesn't help, please give a step-by-step procedure to reproduce the problem, including what you see on the screen. -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14993] GCC error when using unicodeobject.h
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 09736ae1c314 by Victor Stinner in branch 'default': Issue #14993: Use standard unsigned char instead of a unsigned char bitfield http://hg.python.org/cpython/rev/09736ae1c314 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14993] GCC error when using unicodeobject.h
STINNER Victor victor.stin...@gmail.com added the comment: OTOH, I fail to see why they need to be bitfields: a plain unsigned char field should work as well (as would an int bitfield). Victor? I chose a bitfield to have a more compact structure. I didn't know that a bitfield using unsigned char is a GCC extension: it compiles on Visual Studio 2008, isn't it? The size of _PyUnicodeWriter doesn't really matter, so I replace the two fields with simple types. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] Python 3.2.3 freezes when saving a .py program
Ned Deily n...@acm.org added the comment: Also, you could try temporarily renaming the .idlerc folder in your User folder; this is where IDLE stores several configuration files which can be a cause of problems if they have incorrect values. And you could also try to run IDLE from the Python command line. Launch Python 3.2 - Python (command line), then in the interactive interpreter enter: import idlelib.PyShell idlelib.PyShell.main() Additional error messages may show up in the command line window. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14993] GCC error when using unicodeobject.h
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14997] Syntax Error in Python Version Number
Ned Deily n...@acm.org added the comment: Try launching Python 2.7 - Python (command line), then in the interactive interpreter enter: import idlelib.PyShell idlelib.PyShell.main() Additional error messages may show up in the command line window. But also try renaming or deleting the .idlerc folder in your User folder. You may have an IDLE configuration file with an unexpected value. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14907] SSL module cannot handle unicode filenames
Martin v. Löwis mar...@v.loewis.de added the comment: I'm closing it as won't fix. I don't think it needs to be documented, but I won't mind if it is. -- nosy: +loewis resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14907 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I added an updated patch which uses ld, and added a test (Linux/Unix only). -- hgrepos: +130 stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: Added file: http://bugs.python.org/file25822/ce3be1c1091a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14998] pprint._safe_key is not always safe enough
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +rhettinger stage: - needs patch type: - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14989] http.server option to run CGIHTTPRequestHandler
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14989 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Eric Snow ericsnowcurren...@gmail.com added the comment: presumably PEP 421 can be marked as final now? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14993] GCC error when using unicodeobject.h
Martin v. Löwis mar...@v.loewis.de added the comment: I don't think the change had any effect on memory consumption: because of alignment, padding is inserted either way to fill the flags to four (32-bit) or eight bytes. So with the bit field, there were 7 bytes of padding on 64-bit systems, and now there are only 6 bytes of padding. Yes, Visual C also supports the same extension. See the Microsoft specific section in http://msdn.microsoft.com/en-us/library/yszfawxh(v=vs.80).aspx -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Barry A. Warsaw ba...@python.org added the comment: On Jun 04, 2012, at 09:39 PM, Eric Snow wrote: presumably PEP 421 can be marked as final now? Done. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8745] zipimport is a bit slow
Catalin Iacob iacobcata...@gmail.com added the comment: I updated Goplat's patch to the default branch. It now needs to read 4 dummy bytes instead of 6 since an extra PyMarshal_ReadShortFromFile was added to the default branch in the mean time. I added an explicit dummy buffer instead of reading the dummy bytes into name (for cleanness and because name would overflow on hypothetical platforms where MAXPATHLEN + 5 8). Also added tests for the loop that skips the rest of the header by creating some zips with file comments; without the extra test, commenting out the loop didn't fail test_zipimport. Running Goplat's test in msg106191 on Windows I get 0.032 sec before and 0.015 sec after. On Linux I see no significant difference. AFAIK Mercurial (for example) ships with a zipped stdlib on Windows and they care quite a lot about startup time. Can this make it into 3.3? -- nosy: +catalin.iacob versions: +Python 3.3 -Python 3.2 Added file: http://bugs.python.org/file25823/zipimport_speedup-v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8745 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15000] posixsubprocess module broken on x32
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15000 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Hynek Schlawack h...@ox.cx added the comment: Dear friends of ip addresses, I made something: refactor dup code, minor janitoring, bump coverage - remove duplicate netmask/hostmask code (it was identical in ipv4address interface) - make two ifs more pythonic - Refactor and fix packed property for ipv6 addresses and networks. Apparently nobody has ever used this. :) - Test coverage is now at 97%, the rest are mostly unreachable safeguards. Please have a look at it if you will. The test suite passes of course. That said, I'm pretty sure the constructor for IPv6Network is broken (particularly constructing from int and packed – also the the strict tests in these two cases don't make any sense as net mask is always ALL_ONES). I'll be dreaming of ip addresses tonight. ;) -- Added file: http://bugs.python.org/file25824/ipaddress-refactor-and-bump-coverage.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14993] GCC error when using unicodeobject.h
STINNER Victor victor.stin...@gmail.com added the comment: I don't think the change had any effect on memory consumption: because of alignment, padding is inserted either way to fill the flags to four (32-bit) or eight bytes. So with the bit field, there were 7 bytes of padding on 64-bit systems, and now there are only 6 bytes of padding. Oh, interesting information. I forgot the alignment thing. Yes, Visual C also supports the same extension. See the Microsoft specific section in http://msdn.microsoft.com/en-us/library/yszfawxh(v=vs.80).aspx Oh, what is the C language nowadays?... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15001] segmentation fault with del sys.module['__main__']
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14990] detect_encoding should fail with SyntaxError on invalid encoding
STINNER Victor victor.stin...@gmail.com added the comment: The patch is correct according to the PEP 263: If a source file uses both the UTF-8 BOM mark signature and a magic encoding comment, the only allowed encoding for the comment is 'utf-8'. Any other encoding will cause an error. The fix should also be applied to 3.2. (Note: Python 3.1 doesn't accept bugfixes anymore.) -- components: +Unicode nosy: +ezio.melotti, haypo versions: -Python 3.1 Added file: http://bugs.python.org/file25825/detect_encoding.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14904] test_unicode_repr_oflw (in test_bigmem) crashes
STINNER Victor victor.stin...@gmail.com added the comment: Someone needs to debug this (someone with enough RAM). I tried to reproduce the bug, but I got a bug in my filesystem :-p A memory allocation failed in the kernel and btrfs didn't handle it correctly. 12 GB of RAM (and no swap) is maybe not enough. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14904 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14428] Implementation of the PEP 418
STINNER Victor victor.stin...@gmail.com added the comment: I'm closing again this issue. @neologix: Please open a new issue if you disagree with me on the definition of seconds for time.process_time(). -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14805] Support display of both __cause__ and __context__
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14805 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14711] Remove os.stat_float_times
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14711 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14711] Remove os.stat_float_times
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7cb15b47c70e by Victor Stinner in branch 'default': Issue #14711: os.stat_float_times() has been deprecated. http://hg.python.org/cpython/rev/7cb15b47c70e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14711 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6745] (curses) addstr() takes str in Python 3
STINNER Victor victor.stin...@gmail.com added the comment: The issue #12567 fixed this one: - umlaut3x.py now works in Python 3.3 with an encoding different than UTF-8: Python automatically detects (and uses) the locale encoding - getkey_sample.py can be patched to handle Unicode correctly using get_wch() instead of getkey() -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6745 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Nick Coghlan ncogh...@gmail.com added the comment: Hynek's latest patch mostly looks good to me, but I think the packed property on network definitions just needs to go away. The original ipaddr API that is the basis for ipaddress doesn't really have a clear distinction between network definitions and IP addresses, and I think the current network code is still showing some of the legacies of that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Nick Coghlan ncogh...@gmail.com added the comment: Also noting a TODO item here: currently, the address-producing operations on network objects just produce vanilla address objects of the appropriate version. My question is, should we have those operations create interface objects instead? My current thought is that the latter would lose less information, since you can easily strip the network details later if desired. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15000] posixsubprocess module broken on x32
Gregory P. Smith g...@krypto.org added the comment: What is x32? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15000 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11022] locale.getpreferredencoding() must not set temporary LC_CTYPE
Changes by STINNER Victor victor.stin...@gmail.com: -- title: locale.setlocale() doesn't change I/O codec, os.environ does - locale.getpreferredencoding() must not set temporary LC_CTYPE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11022 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] Python 3.2.3 freezes when saving a .py program
Maureen Cuomo mcu...@prestonhs.org added the comment: Yes it looks like that. I Open a new window in python, type into the new window. I try to save it so I can run the program and I get the twirling circle until the dialog box come up saying pythow.exe has stopped working. Maureen Cuomo On Mon, Jun 4, 2012 at 4:39 PM, Ned Deily rep...@bugs.python.org wrote: Ned Deily n...@acm.org added the comment: It is still difficult to understand what problem you are seeing as others are using IDLE from the 3.2.3 installers on Windows 7. There is at least one open issue in this area on Windows: http://bugs.python.org/issue12988. Does that describe what you are seeing? If now, a few things to check: if you get to the Save dialog, try choosing another folder to save to, ilke Desktop; also, try a simple file name with .py at the end. If that doesn't help, please give a step-by-step procedure to reproduce the problem, including what you see on the screen. -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15000] posixsubprocess module broken on x32
Gregory P. Smith g...@krypto.org added the comment: Answering my own question I believe x32 is the new ABI being worked on as described in http://lwn.net/Articles/456731/. In that light, your patch makes sense assuming the __ILP32__ define is something gcc's cpp will always be defining when targeting x32. I will apply it. -- assignee: - gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15000 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15000] posixsubprocess module broken on x32
Gregory P. Smith g...@krypto.org added the comment: for reference - https://sites.google.com/site/x32abi/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15000 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] Python 3.2.3 freezes when saving a .py program
Maureen Cuomo mcu...@prestonhs.org added the comment: I can save to the desktop, but nowhere else. Will this be fixed? I teach python at my school and next year all my computers will have windows 7. I also have a program called deep freeze that erases any files saved on a computer including the desktop. This prevents viruses. Mareen Cuomo On Mon, Jun 4, 2012 at 7:53 PM, Maureen Cuomo rep...@bugs.python.orgwrote: Maureen Cuomo mcu...@prestonhs.org added the comment: Yes it looks like that. I Open a new window in python, type into the new window. I try to save it so I can run the program and I get the twirling circle until the dialog box come up saying pythow.exe has stopped working. Maureen Cuomo On Mon, Jun 4, 2012 at 4:39 PM, Ned Deily rep...@bugs.python.org wrote: Ned Deily n...@acm.org added the comment: It is still difficult to understand what problem you are seeing as others are using IDLE from the 3.2.3 installers on Windows 7. There is at least one open issue in this area on Windows: http://bugs.python.org/issue12988. Does that describe what you are seeing? If now, a few things to check: if you get to the Save dialog, try choosing another folder to save to, ilke Desktop; also, try a simple file name with .py at the end. If that doesn't help, please give a step-by-step procedure to reproduce the problem, including what you see on the screen. -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] Python 3.2.3 freezes when saving a .py program
Ned Deily n...@acm.org added the comment: Windows experts: any suggestions here? -- nosy: +brian.curtin, loewis, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7
Changes by Ned Deily n...@acm.org: -- title: Python 3.2.3 freezes when saving a .py program - IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Barry, I looked at your changeset at http://bazaar.launchpad.net/~gwibber-committers/gwibber/trunk/revision/1354 and at the specification at http://developers.facebook.com/docs/reference/api/event/. Am I correct that you are parsing string containing an ISO-8601 formatted date/time or a UNIX timestamp; if it contains a time zone (not recommended), it will be converted to Pacific time before being stored and displayed? If so, it looks like converting input to POSIX timestamps is the wrong thing to do because users who specify naive time expect it to be displayed without conversion. The way I read the specs, a better implementation would store input in naive datetime objects, converting UNIX timestamps or TZ-aware strings to Pacific timezone. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15000] posixsubprocess module broken on x32
Mike Frysinger vap...@users.sourceforge.net added the comment: $ echo | gcc -m32 -E -P -dD - | grep LP nothing $ echo | gcc -m64 -E -P -dD - | grep LP #define _LP64 1 #define __LP64__ 1 $ echo | gcc -mx32 -E -P -dD - | grep LP #define _ILP32 1 #define __ILP32__ 1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15000 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7
Terry J. Reedy tjre...@udel.edu added the comment: Maureen, I have saved and run a file from the Idle editor perhaps a thousand times over the years with multiple Python versions, including 3.2.3 (retried just now) on both Windows XP and Win7. (Note: on the General tab of the Preferences dialog, one can make saving automatic for named files.) Like many others, I have had no problems, so there is something peculiar about your system or installation. For us to be of any help, please provide the information Ned already requested. 1. Start Python (command line) from Start/3.2 menu. 2. Enter from idlelib import idle to start Idle. 3. Either open a new or existing file and make a change. 4. Try to save and tell us *exactly* the directory you are in and the filename you enter. 5. If Idle closes, does it just go 'poof' or is there a Windows error message box? 6. If there is a box, what does it say? 7. If there is a traceback, copy *all* of it and paste into a message here. If you have to do anything different than the above to get an error, please be specific. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15002] urllib2 does not download 4 MB file completely using ftp
R. David Murray rdmur...@bitdance.com added the comment: The same problem exists in Python3. -- nosy: +orsenthil, r.david.murray stage: - needs patch versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15002 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15002] urllib2 does not download 4 MB file completely using ftp
Senthil Kumaran sent...@uthcode.com added the comment: That's surprising! I shall test it with http debug mode and see what's happening. -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15002 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1028] Tkinter binding involving Control-spacebar raises unicode error
Mike Perry m...@cogsmos.com added the comment: Looking good in 3.2.3! Tested on Debian Wheezy using packages python3-tk 3.2.3-1 and idle3 3.2.3~rc1-2. /* * Mike Perry * m...@cogscom */ On Sun, May 27, 2012 at 4:10 PM, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy tjre...@udel.edu added the comment: On Win 7, acntl-space brings up the box on all the latest releases: 2.7.3, 3.2.3, and 3.3.0a3. (These all come with recent tk 8.5.x.) Mike, please retest with 3.2.3 and specify os and tk version and exactly what you entered if there is still a problem. -- nosy: +terry.reedy versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1028 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7
Changes by Roger Serwy roger.se...@gmail.com: -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15003] make PyNamespace_New() public
New submission from Eric Snow ericsnowcurren...@gmail.com: The type is available as types.SimpleNamespace, and there's no reason to hold PyNamespace_New() back. -- components: Library (Lib) messages: 162322 nosy: amaury.forgeotdarc, eric.snow priority: normal severity: normal stage: needs patch status: open title: make PyNamespace_New() public type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15003 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15004] add weakref support to types.SimpleNamespace
New submission from Eric Snow ericsnowcurren...@gmail.com: Currently types.SimpleNamespace does not support weak references. Amaury asked for this in #14673, but I'd like to see more discussion. What are the use cases for weak references in this case? The type is a simple wrapper around dict, which does not support weak references. In fact most of the builtin types do not support them. However, I freely admit that I haven't used weak references very much and am not familiar with the use cases. -- messages: 162323 nosy: amaury.forgeotdarc, eric.snow priority: normal severity: normal stage: needs patch status: open title: add weakref support to types.SimpleNamespace type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12510] IDLE: calltips mishandle raw strings and other examples
Roger Serwy roger.se...@gmail.com added the comment: The reoganization in i12510.test.diff will make back-porting to 2.7 slightly more difficult since old and new style classes exist. I do agree with your reasoning for re-factoring the code. (Also, as an extremely minor point, running reindent.py adjusts pos = 70.) I applied the patch and it works under 11.04 Ubuntu. All the tests pass and the behavior of the CallTip gives reasonable results when used interactively. I did manage to find a corner-case where a CallTip should arise: class A: def __init__(self, a=None): print('init') def __call__(self, b=None): print('call') c = A( Gives (a=None) as the call-tip. However, once the object is created, giving the __call__ argument doesn't work, i.e. c( doesn't give a call-tip. This behavior is also the same without the patch. I'll keep playing with the patch to see what else needs improving with CallTips. We might as well fix it completely. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15003] make PyNamespace_New() public
Raymond Hettinger raymond.hettin...@gmail.com added the comment: SimpleNamespaces also need to be picklable. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15003 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15004] add weakref support to types.SimpleNamespace
Raymond Hettinger raymond.hettin...@gmail.com added the comment: The only reason some of the builtin types don't support weakrefs is to save space. That reason doesn't apply here. Most types should support weakrefs unless there is a compelling reason not to. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com