Re: How to build Python 2.6.2 on HP-UX Itanium with thread support?

2009-05-13 Thread ajaksu
henning.vonbar wrote: > Traceback (most recent call last): >   File "", line 1, in >   File "/usr/local/lib/python2.6/threading.py", line 952, in _test >     t.start() >   File "/usr/local/lib/python2.6/threading.py", line 471, in start >     _start_new_thread(self.__bootstrap, ()) > thread.error:

Re: best way to compare contents of 2 lists?

2009-04-27 Thread ajaksu
On Apr 24, 4:41 pm, norseman wrote: > (How do I) ...explain these? [...] > I can get the sashimi and take it home and BBQ it, I can roast it, I can > steam it, I can wok it,..., but the other is what it is. (greasy) > > Besides, who says I like your cooking?  :) Err... http://mail.python.org/pipe

Re: Presentation software for Python code

2009-04-24 Thread ajaksu
alex23 wrote: >Michael Hoffman wrote: > > > That looks like it would be perfect. Unfortunately it doesn't seem to > > work on my Windows laptop: > > > I don't understand this. OpenGL Extensions Viewer says I have OpenGL 1.5 > > and the glGenBuffers function. > > That's a shame, if you feel like pur

Re: Cannot register to submit a bug report

2009-03-29 Thread ajaksu
John Posner wrote: > I've tried twice to register myself at bugs.python.org. But the confirmation > email message never arrives. (Yes, I checked my spam folder.) What do I do > now? We can try to debug this :) > E-mail message checked by Spyware Doctor (6.0.0.386) > Database version: 5.12060http:

Re: complaints about no replies last week

2009-03-28 Thread ajaksu
Aaron Brady wrote: > Hi, > c) It's not particularly applicable to Python at that point > (particularly) BTW, here's some interesting read: http://mail.python.org/pipermail/python-3000/2006-September/003855.html http://mail.python.org/pipermail/python-3000/2007-May/007129.html http://mail.python.or

Re: complaints about no replies last week

2009-03-28 Thread ajaksu
Hi! Aaron Brady wrote: > A week ago, I posted a question and an idea about Python's garbage > collector.  I got a few replies. Some very nice, too :) > Some days later, I posted a mock-up > implementation of it, and got *NO* replies.  Does this mean: It's not particularly clear to me what your

Re: Does Python have certificate?

2009-03-24 Thread ajaksu
"Hendrik van Rooyen" wrote: > I like the idea, but I would suggest that the award be > limited to the first 100 participants and that the title be: > > Very Important Python Early Responder I'd pay good money for that if the 'I' could be customized to stand for Ignorant :) Daniel -- http://mail.p

Re: "Byte" type?

2009-03-12 Thread ajaksu
On Feb 24, 1:21 am, John Nagle wrote: >      According to PEP 3137, there should be no distinction between > the two for read purposes.  In 2.6, there is.  That's a bug. No, it's not. It's well documented: http://docs.python.org/whatsnew/2.6.html#pep-3112-byte-literals If that's not precise eno

Re: "Byte" type?

2009-03-12 Thread ajaksu
On Feb 15, 3:10 am, John Nagle wrote: > With "bytearray", the element type is considered to be "unsigned byte", > or so says PEP 3137: "The element data type is always 'B' (i.e. unsigned > byte)." > > Let's try: > > Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)]

Re: Python AppStore / Marketplace

2009-02-24 Thread ajaksu
Steve Holden wrote: > And the "multiplatform client" that should "easily and elegantly allow > app browsing, downloading and installing those apps" would presumably > have to account for the many differences in package formats and install > requirements between the different platforms. And then yo

Re: nth root

2009-01-31 Thread ajaksu
On Jan 31, 12:03 pm, Mark Dickinson wrote: [...] > t1 = timeit.Timer("x = n**power", "n = > 4021503534212915433093809093996098953996019232; power = 1./13") > t2 = timeit.Timer("x = n**power", "n = > 4021503534212915433093809093996098953996019232.; power = 1./13") And by using a float literal in

Re: Where to host a (Python) project?

2009-01-31 Thread ajaksu
On Jan 31, 1:03 pm, andrew cooke wrote: > On Jan 31, 11:22 am, eliben wrote: > > > code.google.com provides all of these in a free and convenient manner. > > Recommended. > > unfortunately google don't seem that reliable ;o)  (have you tried a > google search today?) You can mirror at LP, bitbuc

Re: List comprehension - NameError: name '_[1]' is not defined ?

2009-01-16 Thread ajaksu
On Jan 16, 3:45 pm, mario ruggier wrote: > > '(x for x in ()).throw("bork")' > > What is the potential security risk with this one? I don't see a concrete issue, just found it tempting... raising hand- crafted objects :) > All the above attempts will be blocked this way. Any other disallow- > su

Re: List comprehension - NameError: name '_[1]' is not defined ?

2009-01-16 Thread ajaksu
On Jan 16, 5:09 am, mario ruggier wrote: > Laboriously doing all these > checks on each expr eval will be very performance heavy, so I hope to > be able to limit access to all these more efficiently. Suggestions? None regarding the general issue, a try:except to handle this one: '(x for x in ())

Re: List comprehension - NameError: name '_[1]' is not defined ?

2009-01-15 Thread ajaksu
On Jan 15, 8:21 pm, mario ruggier wrote: > OK! Here's a small script to make it easier... Thanks! I think I found a quick way around the restrictions (correct me if I borked it), but I think you can block this example by resetting your globals/builtins: exprs = [ '(x for x in range(1)).gi_fr

Re: List comprehension - NameError: name '_[1]' is not defined ?

2009-01-15 Thread ajaksu
On Jan 15, 1:56 pm, mario ruggier wrote: > As > I mentioned in another thread, the real application behind all this is > one of the *few* secure templating systems around. Some info on its > security is at:http://evoque.gizmojo.org/usage/restricted/ > Tell you what, if you find a security hole the

Re: urllib2 - 403 that _should_ not occur.

2009-01-14 Thread ajaksu
On Jan 14, 5:14 am, Steve Holden wrote: > ajaksu wrote: >> [snip evangelism stuff] > OK, but be aware that the PSF doesn't monitor the bugs looking for > actions to take on behalf of the Python user community. In fact we > aren't overtly "political" in

Re: urllib2 - 403 that _should_ not occur.

2009-01-13 Thread ajaksu
On Jan 13, 1:33 am, Philip Semanchuk wrote: > I don't think I understand you clearly. Whether or not Google et al   > whitelist the Python UA isn't a Python issue, is it? Hi, sorry for taking so long to reply :) I imagine it's something akin to Firefox's 'Report broken website': evangelism. IMH

Re: urllib2 - 403 that _should_ not occur.

2009-01-12 Thread ajaksu
On Jan 11, 11:59 pm, "James Mills" wrote: > Hey all, > > The following fails for me: > > >>> from urllib2 import urlopen > >>> f = > >>> urlopen("http://groups.google.com/group/chromium-announce/feed/rss_v2_0_msgs.xml";) > > Traceback (most recent call last): [...] > Any helpful ideas ? Maybe ra

Re: Testing if an index is in a slice

2009-01-03 Thread ajaksu
On Jan 3, 8:53 pm, Bryan Olson wrote: > If we add a parameter for the length of the list to which the slice is > applied, then inslice() is well-defined. Cool! > I thought it would easy to write, Heh, I gave up on the example I mentioned above :) > but that was hours ago when I knew > less abo

Re: Testing if an index is in a slice

2009-01-01 Thread ajaksu
On Jan 1, 4:12 pm, mma...@gmx.net wrote: > I would like to check if an index is in a slice or not without > iterating over the slice. > > Something like: > > >>> isinslice(36, slice(None, 34, -1)) > > True I think it'd be feasible for slices that can be mapped to ranges[1], but slices are more fle

Re: New Python 3.0 string formatting - really necessary?

2008-12-29 Thread ajaksu
On Dec 29, 7:37 pm, Luis M. González wrote: > I still can't get used to add the parenthesis to "print", and this is > the only thing I don't like, but I'm sure there's a good reason for > this change... I should know better than to post such an awful hack: __past__.py: from sys import excepthoo

Re: Easy-to-use Python GUI

2008-12-24 Thread ajaksu
On Dec 24, 9:47 pm, "Joel Koltner" wrote: >  Dim dlg As UserDialog > >  dlg.genDrill = 1 >  ReDim DrillStyle(1) >  DrillStyle(0) = "All Via Layers In One File" >  DrillStyle(1) = "One File Per Via Layer" >  dlg.drillStyle = 1 > >  func=Dialog(dlg) > > --- > > This is pretty darned easy for me und

Re: no sign() function ?

2008-12-24 Thread ajaksu
On Dec 24, 5:59 am, pdora...@pas-de-pub-merci.mac.com (Pierre-Alain Dorange) wrote: > > For me sign_0 is the simplest one to understood. > So in the domain of my little arcade game, this is what i'll use. > I don't need the accuraccy of sign_1, because in the application i just > need to know if th

Re: python web programming for PHP programmers

2008-12-24 Thread ajaksu
On Dec 24, 12:40 pm, Nikola Skoric wrote: > I0m a python newbie with PHP background. I've tried to make a web app > from one of my python scripts (which I haven't done before) and I > ended up with: > > echo shell_exec("python foobar.py"); > ?> > which works really nice :-D Clever :) Python can

Re: no sign() function ?

2008-12-23 Thread ajaksu
On Dec 23, 2:45 pm, Mark Dickinson wrote: > On Dec 23, 4:27 pm, ajaksu wrote: > > > Is "x ** 0 > 0." instead of "atan2(x, -1.) > 0." unreliable across > > platforms? > > x**0 doesn't distinguish between x = -0.0 and x = 0.0. > > I susp

Re: python3 urlopen(...).read() returns bytes

2008-12-23 Thread ajaksu
On Dec 23, 12:51 pm, Christian Heimes wrote: > If you want to do it right ... It should be a clean patch against the > py3k svn branch including documentation and a unit test. Got all three at http://bugs.python.org/issue4733 . Probably got all three wrong too, so any feedback is very welcome :)

Re: python3 urlopen(...).read() returns bytes

2008-12-23 Thread ajaksu
On Dec 23, 12:51 pm, Christian Heimes wrote: > If you want to do it right ... It should be a clean patch against the > py3k svn branch Done > including documentation This thread is a good start :) > and a unit test. Doing this now. Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: no sign() function ?

2008-12-23 Thread ajaksu
On Dec 22, 9:18 am, Christian Heimes wrote: > Sure? :) Are you aware that the IEEE 754 standard makes a difference > between the floats +0.0 and -0.0? > > from math import atan2 > def sign(x): >     if x > 0 or (x == 0 and atan2(x, -1.) > 0.): >         return 1 >     else: >         return -1 Is

Re: python3 urlopen(...).read() returns bytes

2008-12-22 Thread ajaksu
On Dec 22, 9:05 pm, Christian Heimes wrote: > ajaksu schrieb: > > > That said, a "decode to declared HTTP header encoding" version of > > urlopen could be useful to give some users the output they want (text > > from network io) or to make it clear why bytes is

Re: I always wonder ...

2008-12-22 Thread ajaksu
On Dec 22, 9:24 pm, r wrote: > You know what i hate more than a troll, a spineless jellyfish who goes > around rating peoples post with one star. You are the lowest form of > life. You are the same type of person who would key someones car in > the parking lot. You do not have the balls to face yo

Re: python3 urlopen(...).read() returns bytes

2008-12-22 Thread ajaksu
On Dec 22, 8:25 pm, Christian Heimes wrote: > It's not possible unless you know the encoding of the bytes. Network io > only returns byte and you must encode it explicitly. [...] > There is no generic and simple way to detect the encoding of a remote > site. Sometimes the encoding is mentioned in

Re: I always wonder ...

2008-12-22 Thread ajaksu
On Dec 22, 3:53 pm, s...@pobox.com wrote: > ... shouldn't people who spend all their time trolling be doing something > else: studying, working, writing patches which solve the problems they > perceive to exist in the troll subject?   Sure. So should I. Hmm. Shutting-up-and-back-to-work-ly y'rs,

Re: Python's popularity

2008-12-22 Thread ajaksu
On Dec 22, 4:44 pm, r wrote: > Oh Steve... Listen, my words are ment as a wake-up-call to all who r, can you do me a favor? Go read the archives of this newsgroup for a month or two, then come back with some perspective. I hope that will make your posts a little less nonsensical and annoying. My

Re: StringIO in 2.6 and beyond

2008-12-09 Thread ajaksu
On Dec 9, 5:24 pm, Bill McClain <[EMAIL PROTECTED]> wrote: > On 2008-12-09, MRAB <[EMAIL PROTECTED]> wrote: > > > In Python 2.x unmarked string literals are bytestrings. In Python 3.x > > they're Unicode. The intention is to make the transition from 2.x to 3.x > > easier by adding some features of

Re: HELP!...Google SketchUp needs a Python API

2008-12-01 Thread ajaksu
r, you could just calm down, stop your trolling and wait to see if more people like greg are able to see a good idea behind your awful delivery. Seriously, you're talking nonsense to people that have actively promoted, taught, developed with and helped develop Python for years. You're mistaking la

Re: MESSAGE RESPONSE

2008-04-25 Thread ajaksu
On Apr 23, 1:27 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 23, 2008 at 10:24 AM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > > > Blubaugh, David A. schrieb: > > > > Is there a way to block these messages.   I do not want to be caught > > > with filth such as this material.  I could

Re: Any reliable obfurscator for Python 2.5

2008-04-20 Thread ajaksu
On Apr 20, 3:31 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > JB "My first post on c.l.py" Stern wrote: > > Curious Steve, how do you pay the rent and by what authority do you > > speak for "The Python world"? [snip] > I don't claim to speak *for* the > whole Python world, but as chairman of the Py

Re: What can we do about all the spam that the list is getting?

2008-04-18 Thread ajaksu
On 16 abr, 14:01, [EMAIL PROTECTED] wrote: > What can we do about all the spam that comp.lang.python is getting? > Things are getting pretty bad. I'm reporting most spam, but I don't have high hopes Google cares. We could start a new group (non-usenet Google Groups allow message removal), but I gu

Re: py3k s***s

2008-04-15 Thread ajaksu
On Apr 14, 11:07 pm, Sverker Nilsson <[EMAIL PROTECTED]> wrote: > What serious reports? You almost had me collecting a list of reports/references. Almost :) Google and you'll find them. Regards, Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k s***s

2008-04-14 Thread ajaksu
On Apr 14, 8:10 pm, Sverker Nilsson <[EMAIL PROTECTED]> wrote: > do i dare to open  a thread about this? Yeah, you sure do! > come on you braver men Yeah! > we are at least not bought by g***le Hell no! > but why? others have said it so many times i think Huh?! > :- ?! Whatever! > but why?

Re: displaying execution of Python code

2008-04-03 Thread ajaksu
On Apr 3, 6:13 pm, noahwatkins <[EMAIL PROTECTED]> wrote: > I'll start my question by describing my desired result. I will > construct a GUI which will be used to open a Python script. I would > then like to be able to display the Python script, execute it, and > highlight the lines of the Python a

Re: Python in High School

2008-04-03 Thread ajaksu
On Apr 2, 5:01 pm, John Henry <[EMAIL PROTECTED]> wrote: > However, once I start teaching him variables, expressions, loops, and > what not, I found that (by surprise) he had great difficulties > catching on.  Not soon after that, we had to quit. This makes me curious: how much of videogamer are y

Re: Recursive function won't compile

2008-04-02 Thread ajaksu
On Apr 2, 5:23 pm, [EMAIL PROTECTED] wrote: > #include > #include > > def RecursiveFact(n): >     if(n>1): >         return n*RecursiveFact(n-1) >     else: >         return 1 > > fact = RecursiveFact(31) > print fact The output is 822283865417792281772556288000 and is correct. But the "#incl

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread ajaksu
On Apr 1, 10:15 pm, AK <[EMAIL PROTECTED]> wrote: > Hello, Hiya > I find that I learn easier when I go from specific examples to a more > general explanation of function's utility and I made a reference guide > that will eventually document all functions, classes and methods in > Python's Standard

Re: A question about a metacharacter

2008-03-20 Thread ajaksu
On Mar 20, 8:19 am, igbt <[EMAIL PROTECTED]> wrote: > However, if you don't enter anything the > script works but if you enter a dot (.) the script does not work. Have you tried it with other non-metacharacter values? > sss = entryName.get_text()      # The script gets the text >         if sss =

Re: Dear David (was: MyHDL project)

2008-02-07 Thread ajaksu
On Feb 7, 10:05 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: > I do not understand why people such as yourself cannot construct > anything but insults and complaints. I can help with that. People asked politely a few days ago. Didn't you see it? It happens because you're not following basic

Re: Dear David (was: MyHDL project)

2008-02-07 Thread ajaksu
On Feb 7, 4:48 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: > sir, > > Is there still a possibility to collaborate??? > > David Blubaugh Dear David A. Blubaugh, Could you please make it a little less painful to read your messages? You're giving a bad name to Belcan, too. Daniel -- http:/

Re: print 'hello' -> SyntaxError: invalid syntax

2008-02-07 Thread ajaksu
On Feb 7, 12:52 pm, [EMAIL PROTECTED] wrote: > I try to install Python in a Dell D620 with XP PRO version 5.1.2600 > and I am getting this error. I assume that some dlls are missing but I > installed form a fresh python-2.5.1.msi without errors msg. > > Thanks > > Roberto What is the install path

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread ajaksu
On Jan 30, 10:40 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: > I do not understand why no one has answered the following question: > > Has anybody worked with Gene Expression Programming > > David Blubaugh I see. You don't understand. That's a fact. I'm sure there are free online resou

Re: Python Standardization: Wikipedia entry

2008-01-27 Thread ajaksu
On Jan 27, 10:32 pm, Paddy <[EMAIL PROTECTED]> wrote: > I would value the opinion of fellow Pythoneers who have also > contributed to Wikipedia, on the issue of "Is Python Standardized". > Specifically in the context of this table: > http://en.wikipedia.org/wiki/Comparison_of_programming_languages

Re: optional static typing for Python

2008-01-27 Thread ajaksu
On Jan 27, 9:13 pm, "Russ P." <[EMAIL PROTECTED]> wrote: > On Jan 27, 3:08 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > > Russ P. pisze: > > > >>> I noticed that Guido has expressed further interest in static typing > > >>> three or four years ago on his blog. Does anyone know the current > > >>>

Re: translating Python to Assembler

2008-01-27 Thread ajaksu
This message got huge :/ Sorry for being so cryptic and unhelpful. I now believe that you're incurring in a (quite deep) misunderstanding and wish to make things clear for both of us :) On Jan 27, 6:58 am, [EMAIL PROTECTED] wrote: > On Fri, 25 Jan 2008 17:44:07 -0800 (PST), ajaksu

Re: translating Python to Assembler

2008-01-25 Thread ajaksu
On Jan 25, 11:36 pm, ajaksu <[EMAIL PROTECTED]> wrote: > On Jan 25, 11:10 pm, [EMAIL PROTECTED] wrote: [...] Gaah, is this what's going on? [EMAIL PROTECTED]:~$ cat error.txt This is not assembler... [EMAIL PROTECTED]:~$ ndisasm error.txt 54push sp 00

Re: translating Python to Assembler

2008-01-25 Thread ajaksu
On Jan 25, 11:10 pm, [EMAIL PROTECTED] wrote: > Once a python py file is compiled into a pyc file, I can disassemble > it into assembler. Assembler is nothing but codes, which are > combinations of 1's and 0's. You can't read a pyc file in a hex > editor, but you can read it in a disassembler. It d

Re: Python 3000 and import __hello__

2008-01-19 Thread ajaksu
On Jan 19, 7:54 pm, Brad <[EMAIL PROTECTED]> wrote: > Just playing around with Python3000 a2 release on Windows XP 32-bit x86. > > import __hello__ > > doesn't print 'hello world...' as it does on 2.5 Thanks for spoiling this easter egg for me! ;) -- http://mail.python.org/mailman/listinfo/p

Re: I'm searching for Python style guidelines

2008-01-07 Thread ajaksu
On Jan 7, 11:25 am, [EMAIL PROTECTED] wrote: > There's a lot of dumb stuff out there. "Algorithms should be coded > efficiently ..." Thanks, I'll keep that in mind. > > van Rossum's guidelines tend toward "pick something and stick to it" > which is OK if you have enough experience to pick something

Re: TIOBE declares Python as programming language of 2007!

2008-01-07 Thread ajaksu
On Jan 7, 9:53 am, Berco Beute <[EMAIL PROTECTED]> wrote: > Cool! We knew it would happen one day :) > What could be the reason? Python 3? Jython 2.2? Java's loss of > sexiness? > > What I would like to know is what it was that boosted Python's > popularity in 2004 (seehttp://www.tiobe.com/tiobe_in

Re: fastest method to choose a random element

2008-01-06 Thread ajaksu
On Jan 5, 11:36 pm, [EMAIL PROTECTED] wrote: > > This one is good. Someone commented that you destroy the list, but > that can be fixed: > > def pick_random(seq, prop): > L = len(seq) > for i in xrange(L): > r = random.randrange(L - i) > if prop(seq[r]): >

Re: fastest method to choose a random element

2008-01-05 Thread ajaksu
> OTOH, if you do know that the chances are high enough, you can try > choosing items randomly without substitution (adapted from random.py's > sample): Sorry, this works: def randpickuntil(lst, prop=bool): selected = set() n = len(lst) for i in xrange(n): j = int(random() * n

Re: fastest method to choose a random element

2008-01-05 Thread ajaksu
Hi there :) On Jan 5, 2:14 pm, [EMAIL PROTECTED] wrote: > On Jan 5, 5:07 pm, [EMAIL PROTECTED] wrote: > > > Hello, Paul and Arnaud. > > While I think about your answers: do you think there is any way to > > avoid shuffle? > > It may take unnecessary long on a long list most of whose elements > > h

Re: interactive mode in python with ctypes???

2007-12-27 Thread ajaksu
You should get it to work with this loop (from run()): while libbuf != "quit": lib.libCallCommand(libinf,libbuf,0,pointer(result)) print "result: ",result.value if libbuf == "Exit": break libbuf = raw_input("lib>") -- http://mail.python.

Re: Speed of Python

2007-09-07 Thread ajaksu
type analysis..] ** iterations: 2 templates: 44 [generating c++ code..] [EMAIL PROTECTED]:~/sandbox$ make bench.so g++ -O3 -s -pipe -fomit-frame-pointer -I/home/ajaksu/shedskin-0.0.22/ lib -g -fPIC -I/usr/include/python2.5 -D__SS_BIND /home/ajaksu/ shedskin-0.0.22/lib/builtin.cpp /home/aja

Re: pyodbc on linux

2007-07-21 Thread ajaksu
On Jul 21, 5:54 pm, Sean Davis <[EMAIL PROTECTED]> wrote: > I have read a couple of blogs suggesting that pyodbc is buildable > under linux. It is, following these wise words: "Aargghh! I see that possibly there was a typo in cursor.cpp at line 1385: Py_UNICODE* pNull = (Py_UNICODE*)wmemchr(pT, 0

Re: How to override PyGridTableBase.SetColLabelValue()?

2007-07-08 Thread ajaksu
On Jul 9, 12:27 am, [EMAIL PROTECTED] wrote: > Dear all, > > the doc is missing, and i failed to find the solution on google search. > anyone know how to override the function SetColLabel() inside > the class PyGridTableBase or the class GridTableBase? Some docs to back up the old code that follow

Re: Job Jar

2006-08-22 Thread ajaksu
Hi there Steve D wrote: > (...) Basically, I'd like to > create a web-based "job jar", that users in my office can access in > order to view, and "take ownership" of, misc. office tasks. I've seen this kind of feature working in Trac [1], but what you really want is task management software. Of t

Re: What do you want in a new web framework?

2006-08-21 Thread ajaksu
Hello Emrah :) I'd love to have a good framework with focus on static-content. Something simple and useful like rest2web (http://www.voidspace.org.uk/python/rest2web/) that could parse some of the many templates available and output nice (X)HTML+CSS. Bundle a simple GUI and you have something very

Re: "wxmsw26uh_vc.dll not found" when using wxAgg backend

2006-08-17 Thread ajaksu
Hi Sam, Sam wrote: > I've installed matplotlib recently because I want to add graphing > functionality to a GUI that i'm making. Have you considered wxmpl? I'm leaning towards using it, " Painless matplotlib embedding in wxPython" sounds good (and it even works). More information and downloads at

Re: wxPython Grid Question

2006-08-17 Thread ajaksu
Jordan wrote: > Hey Peoples, > I'm wonderg if there is a way to make a subclass of wx.grid.Grid in > which the coloumn labels for the grid appear on the bottom of the grid > instead of the top. Hi Jordan :) Not quite what you want, but I'm about to try faking labels in a grid. The reason is that

Re: OT: p-gal website

2006-08-17 Thread ajaksu
John Bokma wrote: > "ajaksu" <[EMAIL PROTECTED]> wrote: > > > Don't :) > > Even Firefox developers will tell you to avoid this. Develop for > > standards compliant browsers (including Firefox) by testing against > > the standards. Neither your

Re: Compiling wxPython app for Windows; Single EXE

2006-08-17 Thread ajaksu
GHUM wrote: > and with py2exe: > Changes in 0.6.1: > > * py2exe can now bundle binary extensions and dlls into the > library-archive or the executable itself. This allows to > finally build real single-file executables. > > The bundled dlls and pyds are loaded at runtime by s

Re: Mega Newbie Questions: Probably FAQs

2006-08-14 Thread ajaksu
Zeph wrote: > 1) I want to write high-level apps that are db connected, networkable > and cross-platform: Linux, Mac OSX, Windows. I know there are apps that > can convert to Linux or Windows as stand-alone executables, is there > also one that will permit me to convert to MacOSX? Yes, py2app (http

OT: p-gal website

2006-08-14 Thread ajaksu
Sorry for the OT post... Paolo Pantaleo wrote: > 14 Aug 2006 10:16:37 -0700, ajaksu <[EMAIL PROTECTED]>: > > The homepage (http://paolopan.freehostia.com/p-gal/ ) looks weird in my > > SeaMonkey 1.0.4, contents appear below GoogleAds instead of at the > > right. >

Re: p-gal: photo gallery generator with templating support

2006-08-14 Thread ajaksu
Paolo Pantaleo wrote: > www.sf.net/projects/ppgal Ciao Paolo! The homepage (http://paolopan.freehostia.com/p-gal/ ) looks weird in my SeaMonkey 1.0.4, contents appear below GoogleAds instead of at the right. Some feedback and a couple of questions at http://tinyurl.com/qgbth (points to http://s

Re: Compiling wxPython app for Windows; Single EXE

2006-08-14 Thread ajaksu
Vincent Delporte wrote: > - py2exe is still the best tool in town to compile Python scripts to > run on a Windows host that doesn't have Python installed, including > wxWidgets/wxPython Hi Vincent and c.l.p-ers I'm using PyInstaller (http://pyinstaller.hpcf.upr.edu/) precisely to "compile" a wxPy

Re: matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread ajaksu
It seems to work (only tested with embedding_in_wx4.py). I guess it's something related to things nesting in a slightly wrong way, right enough to show up but wrong enough to only show up :) I hope this helps. Daniel Substitute embedding_in_wx4.py's CanvasFrame with: class CanvasFrame(wxFrame):

Re: matplotlib, wxPanel inside a wxPanel

2006-08-12 Thread ajaksu
Sam wrote: > Hello, Hi there Sam :) > I'm beginning to think that what i'm trying to do isn't actually > possible, and that i'll need to put it in a frame instead, which is a > pity. Indeed, if that is the case... as I'll need to do exactly that! But see below ;) > On the other hand, when i cre

Re: long(Decimal) performance

2006-08-12 Thread ajaksu
Hi Aahz, thanks for the feedback! Aahz wrote: > I'm not sure why it's coded that, but it's somewhat irrelevant: right > now, work is being done to convert decimal.py to C code, which will > almost certainly be much faster than your code. Generally speaking, you > should not be using Decimal now w

Re: long(Decimal) performance

2006-08-11 Thread ajaksu
Sorry... I'm ashamed to submit such awful code in my first post. Let me try again... from decimal import Decimal def dec2long(number): """ Convert decimal.Decimal to long """ longstring = str(number) if "e" in longstring: radix, exponent = longstring.split("e") elif "E" in

long(Decimal) performance

2006-08-11 Thread ajaksu
t old hack, but it makes decimal somewhat more interesting for me. The answer to this message might be "decimal will be written in C very soon, so nevermind", but I'd love to hear that in fact the following function is wrong and there is a good reason long(Decimal) works based on str