Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Westley Martínez
On Sat, 2011-02-19 at 06:29 +, Steven D'Aprano wrote: > On Fri, 18 Feb 2011 18:14:32 -0800, Westley Martínez wrote: > > >> Besides, Windows and MacOS users will be scratching their head asking > >> "xorg? Why should I care about xorg?" > > Why should I care if my programs run on Windows and Ma

Re: Python Path registry Key

2011-02-18 Thread Sathish S
Hi, Thanks for replying. Yes sys.prefix works in the python shell window. But I have to find out python's path from another application running on windows. How can I access sys.prefix from that application. Thanks, Sathish On Sat, Feb 19, 2011 at 12:50 AM, Westley Martínez wrote: > On Fri, 201

Re: file/folder naming

2011-02-18 Thread ecu_jon
On Feb 19, 1:38 am, Steven D'Aprano wrote: > On Fri, 18 Feb 2011 22:13:42 -0800, ecu_jon wrote: > > ok changed the try/except to just a file copy and got this: > > sourcepath is : > > [u'I:\\college\\spring11\\capstone-project\\facbac-009.py'] > > Note that it's a list. > > >     shutil.copy2(sour

Re: file/folder naming

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 22:13:42 -0800, ecu_jon wrote: > ok changed the try/except to just a file copy and got this: > sourcepath is : > [u'I:\\college\\spring11\\capstone-project\\facbac-009.py'] Note that it's a list. > shutil.copy2(sourcepath, > os.path.join(destpath,os.p

Re: file/folder naming

2011-02-18 Thread Chris Rebert
On Fri, Feb 18, 2011 at 10:13 PM, ecu_jon wrote: > ok changed the try/except to just a file copy and got this: > sourcepath is : [u'I:\\college\\spring11\\capstone-project\ > \facbac-009.py'] > destpath is : V:\week3 > destpath is : V:\week3\facbac-009.py > Traceback (most recent call last): >  Fi

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 18:14:32 -0800, Westley Martínez wrote: >> Besides, Windows and MacOS users will be scratching their head asking >> "xorg? Why should I care about xorg?" > Why should I care if my programs run on Windows and Mac? Because I'm a > nice guy I guess Python is a programming lan

Re: Unit testing multiprocessing code on Windows

2011-02-18 Thread David
Il Thu, 17 Feb 2011 18:31:59 -0500, Matt Chaput ha scritto: > > The problem is that with both "python setup.py tests" and "nosetests", > Maybe multiprocessing is starting new Windows processes by copying the > command line of the current process? But if the command line is > "nosetests", it's

Re: Python subprocesses experience mysterious delay in receiving stdin EOF

2011-02-18 Thread Yang Zhang
After way too much time, I figured it out, after a quote from [this post](http://fixunix.com/questions/379652-sending-eof-named-pipe.html) jumped out at me: > See the "I/O on Pipes and FIFOs" section of pipe(7) ("man 7 pipe") > > "If all file descriptors referring to the write end of a pipe have >

Re: file/folder naming

2011-02-18 Thread ecu_jon
ok changed the try/except to just a file copy and got this: sourcepath is : [u'I:\\college\\spring11\\capstone-project\ \facbac-009.py'] destpath is : V:\week3 destpath is : V:\week3\facbac-009.py Traceback (most recent call last): File "I:\college\spring11\capstone-project\folder.py", line 53, i

Re: file/folder naming

2011-02-18 Thread ecu_jon
On Feb 18, 11:59 pm, Chris Rebert wrote: > On Fri, Feb 18, 2011 at 8:29 PM, ecu_jon wrote: > > im trying to use wxpython to get a source file/files, then a > > destination folder to write them to. the file and folder picker works. > > the problem is, actually copying (actually shutil.copy2() ). i

Re: Python leaks in cyclic garbage collection

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 20:49:09 -0800, Chris Rebert wrote: > And following the pointer to gc.garbage's docs: > http://docs.python.org/library/gc.html#gc.garbage : "Objects that have > __del__() methods and are part of a reference cycle ***cause the entire > reference cycle to be uncollectable*** [...

Re: file/folder naming

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 20:29:13 -0800, ecu_jon wrote: > im trying to use wxpython to get a source file/files, then a destination > folder to write them to. the file and folder picker works. the problem > is, actually copying (actually shutil.copy2() ). i get an except error, > as if the destination f

Re: email library, get_payload() bug?

2011-02-18 Thread aspineux
On 18 fév, 14:41, peterob wrote: > Helllo, > > I want to get the raw format of email body. the code Im using is > >         for part in email.walk(): >                 if part.get_content_maintype() == 'multipart': >                         continue >                 if part.get_content_type() ==

Re: file/folder naming

2011-02-18 Thread Chris Rebert
On Fri, Feb 18, 2011 at 8:29 PM, ecu_jon wrote: > im trying to use wxpython to get a source file/files, then a > destination folder to write them to. the file and folder picker works. > the problem is, actually copying (actually shutil.copy2() ). i get an > except error Please include the exact t

Re: Python leaks in cyclic garbage collection

2011-02-18 Thread Chris Rebert
On Fri, Feb 18, 2011 at 8:10 PM, moerchendiser2k3 wrote: > Hi, I have some problems with Python and the garbage collection. In > the following piece of code I create a simple gargabe collection but I > am still wondering why the finalizers are never called - at least on > exit of Py they should be

Re: Making Line Graphs

2011-02-18 Thread Waldemar Osuch
Standard answer in such a case is matplotlib http://matplotlib.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

file/folder naming

2011-02-18 Thread ecu_jon
im trying to use wxpython to get a source file/files, then a destination folder to write them to. the file and folder picker works. the problem is, actually copying (actually shutil.copy2() ). i get an except error, as if the destination file name is not correct. looking at the print lines the dest

Re: Python leaks in cyclic garbage collection

2011-02-18 Thread moerchendiser2k3
Thanks a lot for any help!!! Bye, moerchendiser2k3 -- http://mail.python.org/mailman/listinfo/python-list

Python leaks in cyclic garbage collection

2011-02-18 Thread moerchendiser2k3
Hi, I have some problems with Python and the garbage collection. In the following piece of code I create a simple gargabe collection but I am still wondering why the finalizers are never called - at least on exit of Py they should be called somehow. What do I miss here? I know, there is no determin

Re: How to use Python well?

2011-02-18 Thread Ben Finney
Roy Smith writes: > Whether it's a wiki or the generated output of sphinx/doxygen/etc, HTML > provides for a much richer presentation. Which is more convenient: > having the signal(3) man page reference "sigaction(2)" textually, or > having it be a clickable link that can take me right there?

Re: How to use Python well?

2011-02-18 Thread Roy Smith
In article <878vxcbudn@benfinney.id.au>, Ben Finney wrote: > This collection of a great deal of documentation for the operating > system into a single “manual” is one reason why users like man pages so > much: we want to find anything installed on the system documented in > that one plac

Re: How to use Python well?

2011-02-18 Thread Ben Finney
Westley Martínez writes: > From what I've seen, the man pages are supposed to be in depth > information that covers every nook and cranny of every option Those are man pages the document commands. There are many more man pages on a typical Unix-like system, which do not document commands. This

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Paul Rubin
Westley Martínez writes: > When I read Python code, I only > see text from Latin-1, which is easy to input and every *decent* font > supports it. When I read C code, I only see text from Latin-1. When I > read code from just about everything else that's plain text, I only see > text from Latin-1.

Re: How to use Python well?

2011-02-18 Thread Westley Martínez
On Sat, 2011-02-19 at 11:39 +1100, Ben Finney wrote: > Roy Smith writes: > > > In article , > > Jorgen Grahn wrote: > > > > > On Thu, 2011-02-17, Roy Smith wrote: > > > > These days, user documentation for me means good help text for > > > > argparse to use. > > > > > > Perhaps I'm old-fashion

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Westley Martínez
On Sat, 2011-02-19 at 01:01 +, Steven D'Aprano wrote: > On Fri, 18 Feb 2011 11:16:30 -0800, Westley Martínez wrote: > > > Allowing non-ascii characters as operators is a silly idea simply > > because if xorg breaks, which it's very likely to do with the current > > video drivers, I'm screwed.

Re: Making Line Graphs

2011-02-18 Thread Paul Rubin
spam head writes: > I'm looking for an easy way to display simple line graphs generated by > a python program in Windows. It could be done from within the > program, or I could write the information out to a file and call an > external program. Either is fine. I've used gnuplot and rrdtool for

Making Line Graphs

2011-02-18 Thread spam head
I'm looking for an easy way to display simple line graphs generated by a python program in Windows. It could be done from within the program, or I could write the information out to a file and call an external program. Either is fine. Does anybody have any recommendations for a good program from

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 11:16:30 -0800, Westley Martínez wrote: > Allowing non-ascii characters as operators is a silly idea simply > because if xorg breaks, which it's very likely to do with the current > video drivers, I'm screwed. And if your hard drive crashes, you're screwed too. Why stop at "x

Re: How to use Python well?

2011-02-18 Thread Ben Finney
Roy Smith writes: > In article , > Jorgen Grahn wrote: > > > On Thu, 2011-02-17, Roy Smith wrote: > > > These days, user documentation for me means good help text for > > > argparse to use. > > > > Perhaps I'm old-fashioned, but all other software I use (on Unix) > > has man pages. I /expect/

Re: How to use Python well?

2011-02-18 Thread Roy Smith
In article , Jorgen Grahn wrote: > On Thu, 2011-02-17, Roy Smith wrote: > > In article , > > Jorgen Grahn wrote: > > > >> - Write user documentation and build/installation scripts. Since I'm > >> on Unix, that means man pages and a Makefile. > > > > Wow, I haven't built a man page in eons.

Re: How to use Python well?

2011-02-18 Thread Jorgen Grahn
On Thu, 2011-02-17, Roy Smith wrote: > In article , > Jorgen Grahn wrote: > >> - Write user documentation and build/installation scripts. Since I'm >> on Unix, that means man pages and a Makefile. > > Wow, I haven't built a man page in eons. These days, user documentation > for me means good

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 04:43:13 -0800, Xah Lee wrote: > for example, when you type >= in python, the text editor can > automatically change it to ≥ (when it detects that it's appropriate, > e.g. there's a “if” nearby) You can't rely on the presence of an `if`. flag = x >= y value = lookup[x >= y] f

Re: Archiving Modules

2011-02-18 Thread Jorgen Grahn
On Fri, 2011-02-18, Alexander Kapps wrote: > On 18.02.2011 19:51, Westley Martínez wrote: >> On Fri, 2011-02-18 at 04:55 -0800, peter wrote: >>> On Feb 17, 9:55 pm, Jorgen Grahn wrote: >>> >>> RAR is a proprietary format, which complicates things. For example, Linux distributions like De

Re: Connecting to remote Oracle db via Python

2011-02-18 Thread Alexander Gattin
Hello, On Thu, Feb 17, 2011 at 02:40:22AM -0800, pstatham wrote: > I've installed the cx_Oracle module for Python > and I'm trying to connect to my remote Oracle > db. Can you tnsping your remote Oracle DB successfully? > >>> uid = "scott" > >>> pwd = "tiger" > >>> service = "10.5.1.12:1521:PR10

Re: client server socket interaction (inetd)

2011-02-18 Thread Nobody
On Fri, 18 Feb 2011 07:23:35 -0800, Tim wrote: > When LaTeX encounters a problem it stops processing, asks the user > what to do (like abort/retry, kind-of), and does whatever the user > says. The daemon.py script handles that okay from the command line, > but if I'm understanding you this will be

Re: Best way to gain root privileges

2011-02-18 Thread GSO
On 18 February 2011 20:23, Alexander Kapps wrote: ... > Don't know if this helps you, but at least for CentOS 5.4, gksudo is > available in the gksu package from rpmforge. It looks as though policykit includes similar functionality, namely the command pkexec replaces gksudo: http://hal.freedeskt

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-18 Thread Alexander Gattin
Hello, On Fri, Feb 18, 2011 at 09:40:19AM +0500, Andrea Gavana wrote: > Fails with a variety of errors depending on which port I use: > > - Port 80: urllib2.HTTPError: HTTP Error 407: Proxy Authentication > Required ( The ISA Server requires authorization to fulfill the > request. Access to the W

Re: Best way to gain root privileges

2011-02-18 Thread GSO
On 18 February 2011 20:21, Alexander Kapps wrote: ... > IIUC, than SELinux can also help, since it allows program-specific > permissions. But I could easily be wrong here since I have yet to really > learn SElinux. Who has, LOL! If you could post a (very very) quick 'I don't have a PhD in comput

Re: Best way to gain root privileges

2011-02-18 Thread Alexander Kapps
On 18.02.2011 15:42, GSO wrote: I note that policykit was created by redhat, and that RHEL6 does not include gksudo in with its gnome for some odd reason. Don't know if this helps you, but at least for CentOS 5.4, gksudo is available in the gksu package from rpmforge. -- http://mail.python.o

Re: Best way to gain root privileges

2011-02-18 Thread Alexander Kapps
On 18.02.2011 15:22, Adam Skutt wrote: On Feb 18, 9:04 am, Ricardo Aráoz wrote: Many a time I have wanted to allow access to certain privileges to a user but *only* through a program. As far as security is concerned it would be enough that only root has permission to give the said program run

Re: Archiving Modules

2011-02-18 Thread Alexander Kapps
On 18.02.2011 19:51, Westley Martínez wrote: On Fri, 2011-02-18 at 04:55 -0800, peter wrote: On Feb 17, 9:55 pm, Jorgen Grahn wrote: RAR is a proprietary format, which complicates things. For example, Linux distributions like Debian cannot distribute software which handles it. If Python inc

Open InvitationTo Join Fun Python based Project

2011-02-18 Thread zambr123
Sorry, for the double post, was not intended. Because of wrong subject name ! Hi there, We are currently looking for someone who has ideally several years coding experience, and who is familar with Network coding and the Python language. The project revolves around emulation and a chat based sy

Re: Python Path registry Key

2011-02-18 Thread Westley Martínez
On Fri, 2011-02-18 at 11:56 +0530, Sathish S wrote: > Hi Ppl, > > > I'm trying to launch IDLE from another application. For this I need > the python directory path. I have been trying to get the Active Python > versions path from the Windows registry. However, these registry > entries seem not be

Re: Closures in metaclasses

2011-02-18 Thread zambr123
Hi there, We are currently looking for someone who has ideally several years coding experience, and who is familar with Network coding and the Python language. The project revolves around emulation and a chat based system, altough the vast majority of the project is focused on the chat based

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Westley Martínez
On Fri, 2011-02-18 at 04:43 -0800, Xah Lee wrote: > On 2011-02-16, Xah Lee wrote: > │ Vast majority of computer languages use ASCII as its character set. > │ This means, it jams multitude of operators into about 20 symbols. > │ Often, a symbol has multiple meanings depending on contex. > > On 201

Re: Archiving Modules

2011-02-18 Thread Westley Martínez
On Fri, 2011-02-18 at 04:55 -0800, peter wrote: > On Feb 17, 9:55 pm, Jorgen Grahn wrote: > > > > RAR is a proprietary format, which complicates things. For example, > > Linux distributions like Debian cannot distribute software which > > handles it. If Python included such a module, they'd be

Re: Newbie getting desperate with for

2011-02-18 Thread Werner
On 18/02/11 07:29, Cameron Simpson wrote: > On 18Feb2011 08:40, I wrote: > | On 17Feb2011 18:40, Alister Ware wrote: > | | On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote: > | | > On 17/02/11 16:39, Chris Rebert wrote: > | | >> On Thu, Feb 17, 2011 at 12:27 AM, Werner wrote: > | | >>> I have a t

Re: Unit testing multiprocessing code on Windows

2011-02-18 Thread Matt Chaput
On 17/02/2011 8:22 PM, phi...@semanchuk.com wrote: Hi Matt, I assume you're aware of this documentation, especially the item entitled "Safe importing of main module"? http://docs.python.org/release/2.6.6/library/multiprocessing.html#windows Yes, but the thing is my code isn't __main__, my uni

Re: Newbie getting desperate with for

2011-02-18 Thread Noah Hall
On Fri, Feb 18, 2011 at 4:54 PM, Michael Torrie wrote: > On 02/17/2011 04:10 PM, Werner wrote: > Just for your information, your code is the equivalent of: > > while True: >    temp = range(2000) > > The for loop does absolutely nothing in your case.  After the range is > computed, the for loo

Re: Unit testing multiprocessing code on Windows

2011-02-18 Thread Matt Chaput
On 18/02/2011 2:54 AM, Terry Reedy wrote: On 2/17/2011 6:31 PM, Matt Chaput wrote: Does anyone know the "right" way to write a unit test for code that uses multiprocessing on Windows? I would start with Lib/test/test_multiprocessing. Good idea, but on the one hand it doesn't seem to be doing

Re: Newbie getting desperate with for

2011-02-18 Thread Michael Torrie
On 02/17/2011 09:15 PM, Larry Hudson wrote: > A true time waster indeed -- it's an infinite loop that will _never_ end. > > Others have already about the need of the shebang line to run as a python > script, but I'm > surprised no one mentioned how truly useless this code is. > > The i = 0 line

Re: Newbie getting desperate with for

2011-02-18 Thread Michael Torrie
On 02/17/2011 04:10 PM, Werner wrote: > It is meant to put load on a CPU, RAM and disk (swap). The code now > looks like this: > #!/usr/bin/python > while True: > i = 0 > for i in range(2000): > break Just for your information, your code is the equivalent of: while True: t

Re: client server socket interaction (inetd)

2011-02-18 Thread Martin Gregorie
On Fri, 18 Feb 2011 07:23:35 -0800, Tim wrote: > Thanks for helping me to understand. I don't know if you're familiar > with LaTeX, but that's part of what daemon.py calls via subprocess, and > that is the underlying process I wanted the user to be able to interact > with. > I've used nroff but ne

Re: Problem with giant font sizes in tkinter

2011-02-18 Thread Chris Jones
On Fri, Feb 11, 2011 at 09:35:56PM EST, Steven D'Aprano wrote: > On Fri, 11 Feb 2011 01:29:02 -0500, Chris Jones wrote: > > >> >> labelfont = '-Adobe-Helvetica-Bold-R-Normal-*-140-*' > > [...] > > First of all, you need to know precisely what the above font name coding > > means. > [...] > >

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Chris Jones
On Fri, Feb 18, 2011 at 06:40:17AM EST, Steven D'Aprano wrote: > On Fri, 18 Feb 2011 02:50:11 -0500, Chris Jones wrote: > > Always struck me as odd that a country like Japan for instance, with > > all its achievements in the industrial realm, never came up with one > > single major piece of softwa

Re: client server socket interaction (inetd)

2011-02-18 Thread Tim
On Feb 17, 6:09 pm, Martin Gregorie wrote: > On Thu, 17 Feb 2011 13:02:08 -0800, Tim wrote: > > But. The server may encounter a problem > > during the process and ask the user for more information like > > 'abort/retry' or something like that. > > Servers never ask the client for information: they

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Cthun
On 18/02/2011 7:43 AM, Xah Lee wrote: On 2011-02-17, Cthun wrote: │ And you omitted the #1 most serious objection to Xah's proposal, │ rantingrick, which is that to implement it would require unrealistic │ things such as replacing every 101-key keyboard with 10001-key keyboards What does your c

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Stephen Hansen
On 2/17/11 7:42 PM, Littlefield, Tyler wrote: >>My intention was to educate him on the pitfalls of multiplicity. > O. that's what you call that long-winded nonsense? Education? You must > live in America. Can I hazard a guess that your universal language might > be english? Has it not ever occured

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Steve Schafer
On Fri, 18 Feb 2011 06:22:32 -0800 (PST), rantingrick wrote: >Evolution is about one cog gaining an edge over another, yes. However >the system itself moves toward perfection at the expense of any and >all cogs. Um, do you actually know anything about (biological) evolution? There is no evidence

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread rantingrick
On Feb 18, 8:22 am, rantingrick wrote: > > Perfect is the enemy of good. Do you think that just because something has a negative impact towards you (or your existence) that the *something* is then evil? Take a animal for instance: We kill animals for sustenance. The act of killing the animal is

Re: Best way to gain root privileges

2011-02-18 Thread John Pinner
On Feb 17, 3:32 pm, GSO wrote: > > I'm having a awfully hard time figuring out why a home CCTV > > application might need privilege at all.  Are you sure you really need > > privilege?  It sounds to me like there may be some larger design > > issues mandating the need for privilege when it's not r

Re: Best way to gain root privileges

2011-02-18 Thread GSO
On 17 February 2011 18:39, Adam Skutt wrote: ... > As Terry suggests (and I fully concur), all of these issues are best > solved by having a privileged daemon (though it may not need to be > root or entirely root). > I think this could be done more or less with the multiprocessing module: http:/

Re: interrupted system call w/ Queue.get

2011-02-18 Thread Jean-Paul Calderone
On Feb 17, 8:46 pm, Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes.  Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > > What causes the exception?  Is it necessar

Re: Best way to gain root privileges

2011-02-18 Thread Adam Skutt
On Feb 18, 9:04 am, Ricardo Aráoz wrote: > I've always asked myself why can't a program be used by users of a > certain group but run with the privileges of some other user, not > necessarily the one that uses it, but one created specifically for the > tasks the program is responsible for. > > AF

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread rantingrick
On Feb 18, 7:55 am, Steve Schafer wrote: > On Thu, 17 Feb 2011 20:47:57 -0800 (PST), rantingrick > > wrote: > >What is evolution? > > >Evolution is the pursuit of perfection at the expense of anything and > >everything! > > No, evolution is the pursuit of something just barely better than what >

Re: interrupted system call w/ Queue.get

2011-02-18 Thread Roy Smith
In article , Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes. Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > > What causes the exception? Unix divides sys

Re: Best way to gain root privileges

2011-02-18 Thread Ricardo Aráoz
On 17/02/2011 06:46 p.m., Steven D'Aprano wrote: On Thu, 17 Feb 2011 19:44:20 +, Katie T wrote: Running any kind of script sudo'd is a bad idea, it's very very hard (in many cases impossible) to do securely. Root permissions in general should only be used for what they're needed for and not

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Steve Schafer
On Thu, 17 Feb 2011 20:47:57 -0800 (PST), rantingrick wrote: >What is evolution? > >Evolution is the pursuit of perfection at the expense of anything and >everything! No, evolution is the pursuit of something just barely better than what the other guy has. Evolution is about gaining an edge, not

email library, get_payload() bug?

2011-02-18 Thread peterob
Helllo, I want to get the raw format of email body. the code Im using is for part in email.walk(): if part.get_content_maintype() == 'multipart': continue if part.get_content_type() == 'text/plain': # print part

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Xah Lee
Chris Jones wrote: «.. from a quite different perspective it may be worth noting that practically all programming languages (not to mention the attached documentation) are based on the English language. And interestingly enough, most any software of note appears to have come out of cultures where

Re: Archiving Modules

2011-02-18 Thread peter
On Feb 17, 9:55 pm, Jorgen Grahn wrote: > RAR is a proprietary format, which complicates things. For example, > Linux distributions like Debian cannot distribute software which > handles it.  If Python included such a module, they'd be forced to > remove it from their version. Good point, and o

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Xah Lee
On 2011-02-16, Xah Lee  wrote: │ Vast majority of computer languages use ASCII as its character set. │ This means, it jams multitude of operators into about 20 symbols. │ Often, a symbol has multiple meanings depending on contex. On 2011-02-17, rantingrick wrote: … On 2011-02-17, Cthun wrote: │ A

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Giacomo Boffi
Steven D'Aprano writes: >> A dedicated concatenation operator would have avoided that mess. > > I don't quite agree that the mess is as large as you make out, but yes, > more operators would be useful. am i wrong, or "|" is still available? -- l'amore e' un sentimento a senso unico. a volte un

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Giacomo Boffi
Chris Jones writes: > [...] most any software of note appears to have come out of cultures > where English is either the native language, or where the native > language is either relatively close to English... i do acknowledge your "most", but how do you spell "Moon" in Portuguese? -- http://ma

mortar_rdb 1.0.0 released!

2011-02-18 Thread Chris Withers
Hi All, I'm very pleased to finally announce the release of mortar_rdb 1.0.0. This package ties together SQLAlchemy, sqlalchemy-migrate and the component architecture to make it easy to develop projects using SQLAlchemy through their complete lifecycle. While I'll be using it with Pyramid, the

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 02:50:11 -0500, Chris Jones wrote: > Always > struck me as odd that a country like Japan for instance, with all its > achievements in the industrial realm, never came up with one single > major piece of software. I think you are badly misinformed. The most widespread operatin

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Steven D'Aprano
On Thu, 17 Feb 2011 21:43:37 -0800, John Nagle wrote: > I've used both the "MIT Space Cadet" keyboard on a Symbolics LISP > machine, and the Stanford SAIL keyboard. There's something to be said > for having more mathematical symbols. Agreed. I'd like Python to support proper mathematical sym

Re: ctypes from_param() truncating 64 bit pointers to 32 bit

2011-02-18 Thread Joakim Hove
On 18 Feb, 10:55, Stefan Krah wrote: > Joakim Hove wrote: > > > and I actually don't know how this specific case works. > > > However, you are not providing a function signature for the "print_addr" C > > > function in the BugTest case, so my guess is that it assumes the standard > > > signature

Re: ctypes from_param() truncating 64 bit pointers to 32 bit

2011-02-18 Thread Joakim Hove
> Ok, then take care to post proper code next time. Details can be important, > especially when asking about non-obvious problems. Point taken - however the original context where the problem arose consists of several massive libraries, which would be quite impractical to post on a forum. The code

Re: ctypes from_param() truncating 64 bit pointers to 32 bit

2011-02-18 Thread Stefan Krah
Joakim Hove wrote: > > and I actually don't know how this specific case works. > > However, you are not providing a function signature for the "print_addr" C > > function in the BugTest case, so my guess is that it assumes the standard > > signature for C functions, which is "int func(int)". That

Re: ctypes from_param() truncating 64 bit pointers to 32 bit

2011-02-18 Thread Stefan Behnel
Joakim Hove, 18.02.2011 09:46: Thanks for answering; I rarely use ctypes You should :-) Apart from my current struggle I think ctypes is really good. I'm well aware that it's a very good solution for the cases where you can trade performance for minimizing your external dependencies. But b

Re: ctypes from_param() truncating 64 bit pointers to 32 bit

2011-02-18 Thread Joakim Hove
Thanks for answering; > I rarely use ctypes You should :-) Apart from my current struggle I think ctypes is really good. > and I actually don't know how this specific case works. > However, you are not providing a function signature for the "print_addr" C > function in the BugTest case, so my gu

Re: reimport module every n seconds

2011-02-18 Thread Santiago Caracol
> > Don't do that.  ;-)  I suggest using exec instead.  However, I would be > > surprised if import worked faster than, say, JSON (more precisely, I > > doubt that it's enough faster to warrnat this kludge). > > I'm with Aahz.  Don't do that. > > I don't know what you're doing, but I suspect an eve

Re: ctypes from_param() truncating 64 bit pointers to 32 bit

2011-02-18 Thread Stefan Behnel
Joakim Hove, 18.02.2011 09:29: I wonder if I am encountering a bug in ctypes; or if I am doing things wrong? I have written a small Python class wrapping a C library, the Python class has a from_param() method which passes a "raw pointer value" from Python to C. When reaching C the pointer has be

ctypes from_param() truncating 64 bit pointers to 32 bit

2011-02-18 Thread Joakim Hove
Hello, I wonder if I am encountering a bug in ctypes; or if I am doing things wrong? I have written a small Python class wrapping a C library, the Python class has a from_param() method which passes a "raw pointer value" from Python to C. When reaching C the pointer has been truncated to 32 bits.