Re: Python/Fortran interoperability

2009-08-23 Thread sturlamolden
On 24 Aug, 02:57, nos...@see.signature (Richard Maine) wrote: Yes, it is no surprise that the C interop stuff fails to address this, since it isn't in C. Something different/extra would be needed, which is exactly what Nick said. I'm going to jump out of the middle of this now. The only

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-23 Thread greg
J. Cliff Dyer wrote: What happens if you use a literal like 0x10f 304? To me the obvious thing to do is concatenate them textually and then treat the whole thing as a single numeric literal. Anything else wouldn't be sane, IMO. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the recommended library for xml parsing?

2009-08-23 Thread bot
voodoorai2000 on gmail.com has asked me for the current status of our votation.. so here you go: +1 = 1 vote -1 = 0 votes Time Line: -- (2009-08-24 01:25:11) Raimond Garcia: +1 Visit the fancy votation page: * http://letsdecide.us/4130bc4e0051016cb377d3436f4e8e683ed820ed --

Re: Python/Fortran interoperability

2009-08-23 Thread Richard Maine
sturlamolden sturlamol...@yahoo.no wrote: Does anyone use OOP in Fortran anyway? Presumably not many people yet because... And Fortran 2003 compilers are not ubiquitous. I'd not only agree, I'd say that was quite a bit understated. Last time I checked, the number of Fortran 2003 compilers

Re: Is Python what I need?

2009-08-23 Thread Dave Angel
newbie wrote: Hi all I'm interested in developing computer based, interactive programs for students in a special school who have an aversion to pen and paper. I've searched the net to find ready made software that will meet my needs but it is either written to a level much higher than these

Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-23 Thread John Machin
Dave Angel davea at ieee.org writes: John Machin wrote: Erik Max Francis max at alcyone.com writes: I also suspect the pipe symbol. I don't know if it's an invalid character to Windows, but it's certainly a bad idea. The '|' character means something special to the shell. The pipe

Re: Is python faster than java?

2009-08-23 Thread sturlamolden
On 23 Aug, 21:59, Emile van Sebille em...@fenx.com wrote: Speed of what? Development? User interaction? Responsiveness to queries? My personal view on the 'Is Python faster than Java' question: - Coding? Yes, if you program 'pythonic'. - String handling? Often. - I/O and networking? Often.

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-23 Thread Ben Finney
Max Erickson maxerick...@gmail.com writes: At some point, abandoning direct support for literals and just having a function that can handle different bases starts to make a lot of sense to me: int('100', 8) 64 int('100', 10) 100 int('100', 16) 256 int('100', 2) 4 int('100', 3)

Re: __import__(x) VS __import__(x, {}, {}, [''])

2009-08-23 Thread greg
Phil wrote: I am trying to understand the difference between __import__(x) and __import__(x, {}, {}, ['']). The documentations wording was a bit weird for me to understand: The standard implementation does not use its locals argument at all, and uses its globals only to determine the package

Literal concatenation, strings vs. numbers (was: Numeric literals in other than base 10 - was Annoying octal notation)

2009-08-23 Thread Ben Finney
greg g...@cosc.canterbury.ac.nz writes: J. Cliff Dyer wrote: What happens if you use a literal like 0x10f 304? To me the obvious thing to do is concatenate them textually and then treat the whole thing as a single numeric literal. Anything else wouldn't be sane, IMO. Yet, as was pointed

Re: __import__(x) VS __import__(x, {}, {}, [''])

2009-08-23 Thread Phil
If you call it without a value for 'globals', it uses the current value of globals(). Thanks, this is what I was trying to ask. I typed my question up way too fast before dinner. You've been great help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Most active coroutine library project?

2009-08-23 Thread Doron Tal
On Sun, Aug 23, 2009 at 6:02 PM, Phillip B Oldham phillip.old...@gmail.comwrote: I've been taking a look at the multitude of coroutine libraries available for Python, but from the looks of the projects they all seem to be rather quiet. I'd like to pick one up to use on a current project but

sgmllib.py

2009-08-23 Thread elsa
Hi all, I'm new to both this forum and Python, and I've got a bit stuck trying to learn how to parse HTML here is my problem I'm using a textbook that uses sgmllib.py for all its examples. I'm aware that sgmllib is not in the current release, however I want to get it to work, as I have

Re: Need cleanup advice for multiline string

2009-08-23 Thread Mensanator
On Aug 23, 2:25�pm, Stefan Behnel stefan...@behnel.de wrote: Mensanator wrote: asking how many Jews you can fit into a Volswagen. None, because it's already full. A spelling error does not make it any less offensive. (or voll as those who design Volkswagens would put it...) Stefan --

Re: Is Python what I need?

2009-08-23 Thread c
I'm interested in developing computer based, interactive programs That is so open-ended it could mean anything. If you give a much more specified idea of what you are imagining creating, people could be helpful. for students in a special school who have an aversion to pen and paper. academic

Re: basic thread question

2009-08-23 Thread John Nagle
Jan Kaliszewski wrote: 18-08-2009 o 22:10:15 Derek Martin c...@pizzashack.org wrote: I have some simple threaded code... If I run this with an arg of 1 (start one thread), it pegs one cpu, as I would expect. If I run it with an arg of 2 (start 2 threads), it uses both CPUs, but utilization

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
New submission from steve21 steve872929...@yahoo.com.au: $ 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)

[issue4485] fast swap of default Windows python versions

2009-08-23 Thread Daniel Harding
Daniel Harding dhard...@gmail.com 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

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2009-08-23 Thread Carlos
New submission from Carlos carlo...@gmail.com: 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 =

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

2009-08-23 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - jnoller nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6766 ___

[issue6767] Python as zip package

2009-08-23 Thread Joe
New submission from Joe us3...@web.de: 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 us3...@web.de added the comment: I meant as a zip archive package -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6767 ___ ___

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

2009-08-23 Thread Guido van Rossum
Guido van Rossum gu...@python.org 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 rep...@bugs.python.org

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

2009-08-23 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: -gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6749 ___ ___ Python-bugs-list

[issue6768] asyncore file_wrapper leaking file descriptors?

2009-08-23 Thread Daniel Keysers
New submission from Daniel Keysers dkeys...@gmail.com: 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

[issue1875] if 0: return not raising SyntaxError

2009-08-23 Thread Lino Mastrodomenico
Changes by Lino Mastrodomenico l.mastrodomen...@gmail.com: -- nosy: +mastrodomenico ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1875 ___ ___

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6765 ___

[issue6767] Python as zip package

2009-08-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why would you want to have such a thing? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6767 ___

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

2009-08-23 Thread ivank
New submission from ivank i...@ludios.org: 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

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

2009-08-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +krisvale priority: - normal type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6769 ___

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

2009-08-23 Thread Peter Manis
Peter Manis peter.ma...@gmail.com 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

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

2009-08-23 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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

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

2009-08-23 Thread Radiant
New submission from Radiant newyorkdude...@yahoo.com: 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:

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

2009-08-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue6765] math.log, log10 inconsistency

2009-08-23 Thread steve21
steve21 steve872929...@yahoo.com.au 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

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

2009-08-23 Thread Peter Manis
Peter Manis peter.ma...@gmail.com 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

<    1   2