[issue3210] subprocess.Popen does not release process handles if process cannot be started
Geoffrey Bache [EMAIL PROTECTED] added the comment: A note on workarounds, the garbage collector seems to release the handles when the function exits, so removing the file in a caller works for me. However Tim's proposed fix with os.close didn't do so. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.
Robert Schuppenies [EMAIL PROTECTED] added the comment: You are right, the rule is to not include referenced objects. But, and this has been rather informal up to now, I handled transparently cached information as something that is added to the memory used by an object (see unicode.defenc). The same I applied to MatchObject.regs. The rational being that the user cannot know wether the match positions are cached or not. What do you think? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I don't understand the relation between the member is cached and it counts in the object's sizeof. What does cached mean? Does 'self.x = 3' create a cached member? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Caching itself is no criteria, but allocating memory without giving the user a chance to find out should be (in this context). ... calling match.regs creates a tuple which is not there before, but cannot be removed afterwards. This is why I handled it separately. Well, so why only include the tuple, and not objects inside the tuple? They may also count in allocated memory (not often: small numbers are shared) Does the same criteria apply to function.func_defaults and function.doc members? Both can be None, sizeof(None) would be added twice. Would you say the same for property members? class C(object): def setx(self): self.__x = 42 x = property(lambda self: self.__x) the value is not there before you call o.setx(), and cannot be removed afterwards. IMO, the criteria (to decide whether a container should include a particular PyObject member in its sizeof) should not include the way the member is created, or who created it, but only the current layout in memory. For example: can other objects hold references to this member, does it appear in gc.objects... And I propose this simple algorithm: do not include any referenced PyObject :-) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.
Mark Dickinson [EMAIL PROTECTED] added the comment: Trailing 'L's removed in r64557. A couple more minor issues: (1) fractions.gcd is exported but not documented. I'll add some documentation for it, unless anyone feels that it shouldn't have been exported in the first place. If so, please speak up! (2) The Fraction constructor is a little more lenient than it ought to be. For example: Fraction('1.23', 1) Fraction(123, 100) I think this should really be a TypeError: a second argument to the constructor should only be permitted when the first argument is an integer. However, it seems fairly harmless, so I'm inclined to just leave this as it is and not mess with it. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.
Mark Dickinson [EMAIL PROTECTED] added the comment: Hmm. I don't much like this, though: Fraction('1.23', 1.0) Fraction(123, 100) Fraction('1.23', 1+0j) Fraction(123, 100) I'd say these should definitely be TypeErrors. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3197] Documentation for fractions module needs work
Mark Dickinson [EMAIL PROTECTED] added the comment: Here's an updated doc patch; it fixes an indentation issue in the previous patch, and adds documentation for the exported gcd function. Added file: http://bugs.python.org/file10750/fractions_doc2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3197 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails
Martijn Pieters [EMAIL PROTECTED] added the comment: I've created a python 2.4 compatible distribution of the python 2.5 urllib2 and httplib modules with the patch attached to this issue. This has proven especially useful in zc.buildout or other setuptools environments: http://pypi.python.org/pypi/httpsproxy_urllib2 -- nosy: +mjpieters ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1424152 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.
Robert Schuppenies [EMAIL PROTECTED] added the comment: Okay, I get the point. With including unicode.defenc I already included a referenced object which was ruled out in the first place. And this for a good reason. What bugs me, though, is that this leaves out a potentially significant amount of memory. I know that this is already the case for shared objects (e.g. the above mentioned numbers) or malloc overhead, but adding yet another exception bothers me. On the other hand, since it's hidden behind the C API, I don't know how to address this problem. Maybe just give it some text in the documentation is sufficient. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3215] Can't import sqlite3 in Python 2.6b1
New submission from Craig Holmquist [EMAIL PROTECTED]: This is observed on Windows XP; I don't know if it affects other platforms. Trying to import sqlite3 gives this error: import sqlite3 Traceback (most recent call last): File pyshell#1, line 1, in module import sqlite3 File C:\Python26\Lib\sqlite3\__init__.py, line 24, in module from dbapi2 import * File C:\Python26\lib\sqlite3\dbapi2.py, line 27, in module from _sqlite3 import * ImportError: DLL load failed: The specified module could not be found. A look at the dependencies for _sqlite3.pyd shows that it's trying to link to a file called sqlite3.pyd, which doesn't exist. Renaming sqlite3.dll to sqlite3.pyd doesn't work either, because then import sqlite3 causes Python to try to import that file as a Python module (instead of C:\Python26\Lib\sqlite3\__init__.py). In Python 2.5.2, the _sqlite3.pyd module correctly links to sqlite3.dll. If there's already an issue regarding this I couldn't find it. -- components: Extension Modules, Windows messages: 68827 nosy: craigneuro severity: normal status: open title: Can't import sqlite3 in Python 2.6b1 type: behavior versions: Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3215 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3215] Can't import sqlite3 in Python 2.6b1
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Confirmed here. As a workaround, you may rename sqlite3.dll to SQLITE3.pyd, with some uppercase letters: the dll loader won't care, but the python import does check for case consistency. There is a problem in PCBuild/sqlite3.vcproj, which is supposed to build sqlite3.dll: OutputFile is defined to a name ending with .dll for Relase and Debug builds, but not for the PGInstrument and PGUpdate builds: this property is inherited from pyd.vcprops, which defines a name ending with .pyd. Of course, the distribution is a PGUpdate build... Martin, I suspect that you already corrected this in your distribution workspace, but the _sqlite3.pyd file was not rebuilt: dir c:\python26\DLLs\*sqlite3* [...] 2008-06-19 13:56 247,296 sqlite3.dll 2008-06-19 13:53 40,960 _sqlite3.pyd The .dll is newer that the .pyd, when the project dependencies are in the other direction. -- assignee: - loewis nosy: +amaury.forgeotdarc, loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3215 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3216] errors in msilib documentation
New submission from Sjoerd Mullender [EMAIL PROTECTED]: There are several errors in the msilib documentation. I'm sure I haven't found them all, but here are some: - add_data is documented to have two arguments. In reality it has three. - Execute on a View object is documented to have an optional argument. In reality it has a single required argument whose value may be None. - When I click on any of the references to Microsoft documentation, I get a page in Japanese. This is possibly more due to Microsoft than anything else (the links do contain en-us so it is a tad surprising). - There is extremely little information on how to actually use the module. -- assignee: georg.brandl components: Documentation messages: 68831 nosy: georg.brandl, sjoerd severity: normal status: open title: errors in msilib documentation versions: Python 2.5 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3216 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3217] make text is broken
New submission from Benjamin Peterson [EMAIL PROTECTED]: Traceback (most recent call last): File /temp/python/trunk/Doc/tools/sphinx/__init__.py, line 135, in main app.builder.build_update() File /temp/python/trunk/Doc/tools/sphinx/builder.py, line 199, in build_update 'out of date' % len(to_build)) File /temp/python/trunk/Doc/tools/sphinx/builder.py, line 238, in build self.write(docnames, updated_docnames, method) File /temp/python/trunk/Doc/tools/sphinx/builder.py, line 274, in write self.write_doc(docname, doctree) File /temp/python/trunk/Doc/tools/sphinx/builder.py, line 1116, in write_doc self.writer.write(doctree, destination) File /temp/python/trunk/Doc/tools/docutils/writers/__init__.py, line 78, in write self.translate() File /temp/python/trunk/Doc/tools/sphinx/textwriter.py, line 33, in translate self.document.walkabout(visitor) File /temp/python/trunk/Doc/tools/docutils/nodes.py, line 159, in walkabout child.walkabout(visitor) File /temp/python/trunk/Doc/tools/docutils/nodes.py, line 159, in walkabout child.walkabout(visitor) File /temp/python/trunk/Doc/tools/docutils/nodes.py, line 159, in walkabout child.walkabout(visitor) File /temp/python/trunk/Doc/tools/docutils/nodes.py, line 159, in walkabout child.walkabout(visitor) File /temp/python/trunk/Doc/tools/docutils/nodes.py, line 159, in walkabout child.walkabout(visitor) File /temp/python/trunk/Doc/tools/docutils/nodes.py, line 159, in walkabout child.walkabout(visitor) File /temp/python/trunk/Doc/tools/docutils/nodes.py, line 159, in walkabout child.walkabout(visitor) File /temp/python/trunk/Doc/tools/docutils/nodes.py, line 151, in walkabout visitor.dispatch_visit(self) File /temp/python/trunk/Doc/tools/docutils/nodes.py, line 1502, in dispatch_visit return method(node) File /temp/python/trunk/Doc/tools/sphinx/textwriter.py, line 598, in unknown_visit raise NotImplementedError(Unknown node: + node.__class__.__name__) NotImplementedError: Unknown node: subscript -- assignee: georg.brandl components: Documentation tools (Sphinx) messages: 68832 nosy: benjamin.peterson, georg.brandl severity: normal status: open title: make text is broken versions: Python 2.6, Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3217 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3197] Documentation for fractions module needs work
Jeffrey Yasskin [EMAIL PROTECTED] added the comment: [sign] integer '.' [fraction] | [sign] ['.'] fraction Shouldn't make the second '.' optional or this will match plain numerators too. Otherwise, looks good. Thanks for fixing this! ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3197 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3154] Quick search box renders too long on FireFox 3
Terry J. Reedy [EMAIL PROTECTED] added the comment: It would have been helpful if you had given the url in your message instead of requiring respondents to read a fuzzy image. In any case, there is no gray box on Windows XP with FF3 at any zoom level nor with IE7. I suggest closing this as idiosyncratic. -- nosy: +tjreedy ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3197] Documentation for fractions module needs work
Mark Dickinson [EMAIL PROTECTED] added the comment: Shouldn't make the second '.' optional or this will match plain numerators too. Thanks. Fixed, and committed in r64561 (trunk), and r64562 (py3k). -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3197 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3167] math test fails on Solaris 10
Terry J. Reedy [EMAIL PROTECTED] added the comment: Does that mean that both do the right thing or the wrong thing? -- nosy: +tjreedy ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3167] math test fails on Solaris 10
Jean Brouwers [EMAIL PROTECTED] added the comment: The 64-bit version did the right thing, all along. The 32-bit result is correct only when compiled with option -xlibmieee. But the latter sets errno value to EDOM and that should be 0, rather remain unmodified. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3168] cmath test fails on Solaris 10
Terry J. Reedy [EMAIL PROTECTED] added the comment: Nasty. Here is the test extracted from test/test_cmath.py import math, cmath test_values = [0.01, 0.1, 0.2, 0.5, 0.9, 0.99] positive = test_values + [1.] + [1./x for x in test_values] for base in [0.5, 2., 10.]: for v in positive: z = cmath.log(v, base) x = math.log(v,base) print(base, v, z, x, z.real-x) On Winxp 3.0b1, |difference| is usually 0.0, else 2.8e-17 6.6438561897747244 is, for instance, log2(100). It is also the first pair tested: log(.01, base=.5) 0.7124414133982310 is not close to any valid test output. On your system, is cmath64.log totally broken or just for base 1? -- nosy: +tjreedy ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2235] __eq__ / __hash__ check doesn't take inheritance into account
Guido van Rossum [EMAIL PROTECTED] added the comment: Thanks for giving this some time. I think that backwards compatibility should be a higher priority than being able to issue -3 warnings -- if the warnings can't be generated, too bad, we'll just have to document it. (I don't think that checking things at class scope is an easy task in 2to3, though I may be underestimating it.) So, concluding, insofar as the proposal is to revert 2.6 to the 2.5 semantics where it comes to __eq__ and __hash__, I'm okay with that if there's no other way to maintain backwards compatibility, even though my preference would be to still flag this when -3 is specified. (There may be similar backwards compatibility issues caused by stricted arg checking in __new__ and __init__ -- the same remarks apply there.) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2235 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3218] 2to3 Fix_imports optimization
New submission from Nick Edds [EMAIL PROTECTED]: This is an optimization in pytree.py specifically for the bare_name pattern from fix_imports.py. It also has the isinstance change I previously suggested piggybacked onto it. Because the bare_name pattern is so massive (764 nodes!), it is very slow to call _recursive_matches on it. This fix has a special bare_name_matches fix that uses an iterative matching solution specifically tailored to the bare_name pattern. From preliminary testing, it appears to be roughly 25-30% faster than the previous version of 2to3. If I uncomment the fix_imports test, it fails 6 of them, but they are the same ones failed by the current version of 2to3 and it fails them in the same way, so I think it works. As with my previous isinstance chance, a one line change to test_pytree is required. -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) files: pytree.py messages: 68840 nosy: collinwinter, nedds severity: normal status: open title: 2to3 Fix_imports optimization type: performance Added file: http://bugs.python.org/file10751/pytree.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3218 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue754016] urlparse goes wrong with IP:port without scheme
Senthil [EMAIL PROTECTED] added the comment: I am attaching the modified patch, which addresses the port issue properly and handles 'http:', 'https:' only URLS. Also included the tests for it. Facundo, I gave sufficient thought on raising an Exception for URLS not staring with '//', and I am -1 for it. As urlparse module is used for handling both absolute URLs as well as relative URLS, this suggestion IMHO, would break the urlparse handling of all relative urls. For e.g, cases which are mentioned in the RFC 1808 (Section 5.1 Normal Examples). The way to inform the users to use '//net_loc' when they want net_loc, would be Docs/Help message (included in the patch) and otherwise urlparse following RFC1808, will treat it as the path. This case may seem absurd when 'www.python.org' is treated as path but perfect for parsing relative urls like just 'a'. More over this makes sense when we have relative urls with parameters and query, for e.g.'g:h','?x' Another way to handle this would be split urlparse into two methods: urlparse.absparse() urlparse.relparse() and let the user decide what he wants to do. I am passing a message to Web-SIG to discuss this further. Irrespective of this, if the patch looks okay for handling the port issue for 2.6 with the Doc/Help message, then we should close this bug and take the discussion further in Web-SIG. (I shall provide the patch for 3.0 as well) Comments Please. Added file: http://bugs.python.org/file10752/issue754016-py26.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue754016 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3154] Quick search box renders too long on FireFox 3
Miki Tebeka [EMAIL PROTECTED] added the comment: I see the big search box on http://docs.python.org/dev/. The gray box is just me highlighting the problematic area in the picture, not in the actual web site. Sorry I wasn't clear about that. My settings is FF3 on Untuntu 8.04 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.
Guido van Rossum [EMAIL PROTECTED] added the comment: I think it's okay to accept Fraction('1.23', 1) -- if only because rejecting it means changing the default for the 2nd arg to None and that would slow it down again. I agree that if the type of the 2nd arg isn't int or long it should be rejected. That should not slow down the common path (two ints). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3154] Quick search box renders too long on FireFox 3
Miki Tebeka [EMAIL PROTECTED] added the comment: Changing the default font in FF to 14 points seems to fix the problem (my default is 22). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3112] implement PEP 3134 exception reporting
Antoine Pitrou [EMAIL PROTECTED] added the comment: Here is the final patch. Features: - cleanup of internal APIs - standardize traceback indentation (source lines are prefixed with 4 spaces) - break cycles along the context chain (a synthetic benchmark with a 6-level deep context chain shows a very moderate slowdown of 10-15%) Added file: http://bugs.python.org/file10753/exc_reporting.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3154] Quick search box renders too long on FireFox 3
Benjamin Peterson [EMAIL PROTECTED] added the comment: In that case, I think we can only advise to change the font size and/or make a Firefox bug report. -- resolution: - works for me status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3219] repeated keyword arguments
New submission from ganges master [EMAIL PROTECTED]: under python 2.5 (and possibly 2.6 beta), the following code runs successfully: def f(**kwargs): ... print kwargs ... f(a=5,b=7,a=8) {'a': 8, 'b': 7} while in python 2.4, it fails as expected (complaining that a is given twice) http://mail.python.org/pipermail/python-dev/2008-June/080782.html -- components: Interpreter Core messages: 68847 nosy: gangesmaster severity: normal status: open title: repeated keyword arguments type: behavior versions: Python 2.5, Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3219 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3167] math test fails on Solaris 10
Mark Dickinson [EMAIL PROTECTED] added the comment: Jean, Could you try the attached patch and see if it fixes the problem? And I'd welcome comments from others on the patch---I'm not much of an autoconf hacker. -- keywords: +patch Added file: http://bugs.python.org/file10754/issue3167.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.
Mark Dickinson [EMAIL PROTECTED] added the comment: I agree that if the type of the 2nd arg isn't int or long it should be rejected. That should not slow down the common path (two ints). Sounds good. Some care might be needed to avoid invalidating Fraction(n, d) where n and d are instances of numbers.Integral but not of type int or long. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3219] repeated keyword arguments
Benjamin Peterson [EMAIL PROTECTED] added the comment: The attached patch gives a SyntaxError. -- keywords: +patch nosy: +benjamin.peterson priority: - critical Added file: http://bugs.python.org/file10755/repeated_kwargs.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3219 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3222] inf*inf gives inf, but inf**2 gives overflow error
New submission from Mike Speciner [EMAIL PROTECTED]: Tried this on wintel 32-bit (3.0b1 (r30b1:64403M, Jun 19 2008, 14:56:09) [MSC v.1500 32 bit (Intel)] -- messages: 68853 nosy: ms severity: normal status: open title: inf*inf gives inf, but inf**2 gives overflow error type: behavior versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3168] cmath test fails on Solaris 10
Mark Dickinson [EMAIL PROTECTED] added the comment: This one's quite baffling. Jean, can you confirm whether cmath.log(0.01, 0.5) and cmath.log(100., 2.0) give the correct answer or not? They should both give (6.6438561897747244-0j) (the sign on the imaginary part might turn out as + instead of -; that's okay.) -- priority: - high ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3215] Can't import sqlite3 in Python 2.6b1
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- priority: - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3215 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3219] repeated keyword arguments
Guido van Rossum [EMAIL PROTECTED] added the comment: Don't do this for 2.5 please. -- nosy: +gvanrossum versions: +Python 3.0 -Python 2.5 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3219 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails
Christopher Li [EMAIL PROTECTED] added the comment: Hi NL, Can you please try this patch on top of the original patch? Thanks Chris --- .pc/fix-up/urllib2.py 2008-02-06 01:13:10.0 -0800 +++ urllib2.py 2008-06-27 15:45:34.0 -0700 @@ -253,7 +253,7 @@ class Request: return self.__r_host def set_proxy(self, host, type): -if self.type == 'https' and not self._tunnel_host: +if self.get_type() == 'https' and not self._tunnel_host: self._tunnel_host = self.host else: self.type = type On Fri, Jun 27, 2008 at 3:22 PM, nfl [EMAIL PROTECTED] wrote: nfl [EMAIL PROTECTED] added the comment: Hi, looks like the attached patch only works if I use urllib2.ProxyHandler({'https' : proxy}) at the start, but not when I use request.set_proxy(proxy, 'https') per request. I tested with Python 2.5.1 on Win32. -- nosy: +nfl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1424152 ___ ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1424152 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3168] cmath test fails on Solaris 10
Jean Brouwers [EMAIL PROTECTED] added the comment: 3 different Python 2.6b1 builds: 1) 64-bit Python 2.6b1 on Solaris 10 built with SUN C (no -xlibmieee): Python 2.6b1 (r26b1:64398, Jun 19 2008, 20:27:39) [C] on sunos5 Type help, copyright, credits or license for more information. import cmath cmath.log(0.01, 0.5) (0.71244141339823108+2.0556715512777863j) cmath.log(100.0, 2.0) (0.71244151439608006-2.0556716794852954j) 2) 32-bit Python 2.6b1 on Solaris 10 built with SUN C -xlibmieee: Python 2.6b1 (r26b1:64398, Jun 24 2008, 13:50:09) [C] on sunos5 Type help, copyright, credits or license for more information. import cmath cmath.log(0.01, 0.5) (6.6438561897747244-0j) cmath.log(100.0, 2.0) (6.6438561897747253+0j) 3) 32-bit Python 2.6b1 on MacOS X 10.4.11 (Intel): Python 2.6b1 (r26b1:64398, Jun 23 2008, 18:36:08) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type help, copyright, credits or license for more information. import cmath cmath.log(0.01, 0.5) (6.6438561897747244-0j) cmath.log(100.0, 2.0) (6.6438561897747253+0j) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3154] Quick search box renders too long on FireFox 3
Adam Olsen [EMAIL PROTECTED] added the comment: I've checked it again, using the font preferences rather than the zoom setting, and I can reproduce the problem. Part of the problem stems from using pixels to set the margin, rather than ems (or whatever the text box is based on). However, although the margin (at least visually) scales up evenly, the fonts themselves do not. Arguably this is a defect in Firefox, or maybe even the HTML specs themselves. Additionally, that only seems to control the visual margin. I've yet to figure out what controls the layout (such as wrapping the Go button). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2235] __eq__ / __hash__ check doesn't take inheritance into account
Changes by Nick Coghlan [EMAIL PROTECTED]: -- assignee: - ncoghlan ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2235 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3167] math test fails on Solaris 10
Jean Brouwers [EMAIL PROTECTED] added the comment: The patch http://bugs.python.org/file10754/issue3167.patch does not work. The -xlibmieee flag is included in the cc command lines, like cc -c -xtarget=native -xlibmieee -DNDEBUG -xO5 -I. However, the resulting build produces to wrong result: Python 2.6b1 (r26b1:64398, Jun 27 2008, 18:04:19) [C] on sunos5 Type help, copyright, credits or license for more information. import math math.log(float('-inf')) -inf ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3224] Small typo in 2.6 what's new
New submission from Chris AtLee [EMAIL PROTECTED]: Index: Doc/whatsnew/2.6.rst === --- Doc/whatsnew/2.6.rst(revision 64571) +++ Doc/whatsnew/2.6.rst(working copy) @@ -1284,7 +1284,7 @@ Here are all of the changes that Python 2.6 makes to the core Python language. * The :func:`hasattr` function was catching and ignoring all errors, - under the assumption that they meant a :meth:`__getattr__` method has + under the assumption that they meant a :meth:`__getattr__` method was failing somewhere and the return value of :func:`hasattr` would therefore be ``False``. This logic shouldn't be applied to :exc:`KeyboardInterrupt` and :exc:`SystemExit`, however; Python 2.6 will -- assignee: georg.brandl components: Documentation messages: 68868 nosy: catlee, georg.brandl severity: normal status: open title: Small typo in 2.6 what's new versions: Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3224 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com