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:
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
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
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:
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
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
"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
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
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)]
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
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
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
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
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 ())
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
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
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
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
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
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
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
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
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
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
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
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
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 :)
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
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
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
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
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
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,
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
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
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
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
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
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
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
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?
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
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
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
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
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 =
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
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:/
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
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
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
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
> > >>>
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
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
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
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
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
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
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]):
>
> 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
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
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.
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
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
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
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
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
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
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
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
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
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
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.
>
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
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
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):
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
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
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
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
80 matches
Mail list logo