[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
New submission from steve21 : $ python3.1 Python 3.1 (r31:73572, Jul 6 2009, 21:21:12) [GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import math >>> math.log10(1000) 3.0 >>> math.log(1000, 10) 2.9996 You

[issue4485] fast swap of "default" Windows python versions

2009-08-23 Thread Daniel Harding
Daniel Harding added the comment: I have created a script that does essentially what Mark Tolonen suggests. When it is provided a script to run, it looks for a #! line and if it exists, attempts to use that to determine which version of python.exe to use. It also has the ability to install its

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: Well, that's floating-point arithmetic for you. log(x, y) simply computes log(x)/log(y) behind the scenes; since both log computations and the floating-point division can introduce errors, the result will frequently not be correctly rounded. I don't really

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2009-08-23 Thread Carlos
New submission from Carlos : It's not possible to modify a dict inside a dict using a manager from multiprocessing. Ex: from multiprocessing import Process,Manager def f(d): d['1'] = '1' d['2']['1'] = 'Try To Write' if __name__ == '__main__': manager = Manager() d = manager.

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2009-08-23 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> jnoller nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6767] Python as zip package

2009-08-23 Thread Joe
New submission from Joe : It would be nice, if you could offer the Windows version also as a zi package, besides the msi installer. -- components: Windows messages: 91890 nosy: Joe severity: normal status: open title: Python as zip package type: feature request _

[issue6767] Python as zip package

2009-08-23 Thread Joe
Joe added the comment: I meant as a zip archive package -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-23 Thread Guido van Rossum
Guido van Rossum added the comment: Some (supportive) discussion on python-dev at http://mail.python.org/pipermail/python-dev/2009-August/091324.html . -- nosy: +gvanrossum ___ Python tracker __

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-23 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6768] asyncore file_wrapper leaking file descriptors?

2009-08-23 Thread Daniel Keysers
New submission from Daniel Keysers : I'm not very experienced in Python, but while tracking down an issue with a "too many open files" error I think I found a missing resource release in asyncore's file_wrapper. Since Rev. 64062 added the os.dup() in __init__ this class reads as follows: if o

[issue1875] "if 0: return" not raising SyntaxError

2009-08-23 Thread Lino Mastrodomenico
Changes by Lino Mastrodomenico : -- nosy: +mastrodomenico ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6767] Python as zip package

2009-08-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Why would you want to have such a thing? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-li

[issue6769] in xmlrpclib.py: NameError: global name 'HTTPSConnection' is not defined

2009-08-23 Thread ivank
New submission from ivank : Line 1491 of xmlrpclib.py should be self._connection = host, httplib.HTTPSConnection(chost, None, **(x509 or {})) instead of self._connection = host, HTTPSConnection(chost, None, **(x509 or {})) File "/opt/Python-latest/lib/python2.7/site-packages/bzrlib/plugins/

[issue6769] in xmlrpclib.py: NameError: global name 'HTTPSConnection' is not defined

2009-08-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +krisvale priority: -> normal type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list m

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-23 Thread Peter Manis
Peter Manis added the comment: I don't think I will be able to provide a patch. If I am correct this would live in Modules/zipimport.c and I do not have enough experience in C/C++ to add in the feature. If in the end zipimport ends up using Lib/zipfile.py then I can work on adding the featu

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: The decryption provided by the zipfile module is for the worthless 32-bit crc based "encryption" of zipfiles. I think promoting the use of that is a bad idea. zipfile can be used by people to get their data out of such files. We should not encourage them to

[issue6770] PDF download links of docs for 3.1.1 are broken

2009-08-23 Thread Radiant
New submission from Radiant : At this time I cannot download any of the PDF documentation files for Python 3.1.1 because I get the "Not Found" error for all four of them. I'm referring to the files linked at http://docs.python.org/3.1/download.html -- assignee: georg.brandl components: D

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-23 Thread Nick Coghlan
Nick Coghlan added the comment: You would also run in to the usual problems with any form of DRM: the password *will* exist in memory in order for zipimport to be able to use it, so anyone that really wants the password will be able to get hold of it. It also isn't as simple as just providing a

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
steve21 added the comment: Mark, "... that's what log10 is there for". That would be a good point if the documentation said that. However, all the docs for log10 say is: math.log10(x) Return the base-10 logarithm of x. So we have a python function log10() which looks like it is redundant s

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-23 Thread Peter Manis
Peter Manis added the comment: My thinking behind this was not to be the ultimate security against someone getting the source, but more of a very high wall to keep out the majority of people. It seems like the best way to determine what file should be decrypted and when a password should be

[issue6767] Python as zip package

2009-08-23 Thread Joe
Joe added the comment: Because, I don't need/want an installation. I only need the files whith its directory structure. -- ___ Python tracker ___