Your win 10, 000$ in my groups Pls register your name and address in below of the website http://www.geocities.com/cathrina39

2008-07-19 Thread hot rathi
Your win 10,000$ in my groups Pls register your name and address in below of the website http://www.geocities.com/cathrina39 -- http://mail.python.org/mailman/listinfo/python-list

Buy/sell/trade your used stuff and promote your small business to people in california

2008-07-19 Thread busybeejoe
Buy/sell/trade your used stuff and promote your small business to people in california I created a NEW forum where you can buy/sell/trade your used stuff and for small business owners to promote their services to others in their area... Its a simple and easy way to let everyone know about your

Re: Best Python packages?

2008-07-19 Thread Stefan Behnel
Iain King wrote: Well, if you're looking for a list of excellent 3rd party Python libraries, then I can give you the ones I like and use a lot: [...] BeautifulSoup : for real-world (i.e. not-at-all-recommendation- compliant) HTML processing You forgot lxml.html, which is much faster, more

Your win 10, 000$ in my groups Pls register your name and address in below of the website http://www.geocities.com/cathrina39 http://namithawithyou.blogspot.com/

2008-07-19 Thread hot rathi
Your win 10,000$ in my groups Pls register your name and address in below of the website http://www.geocities.com/cathrina39 http://namithawithyou.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Best Python packages?

2008-07-19 Thread Iain King
On Jul 19, 8:56 am, Stefan Behnel [EMAIL PROTECTED] wrote: Iain King wrote: Well, if you're looking for a list of excellent 3rd party Python libraries, then I can give you the ones I like and use a lot: [...] BeautifulSoup : for real-world (i.e. not-at-all-recommendation- compliant) HTML

Re: Rotating a cube

2008-07-19 Thread Lie
On Jul 17, 3:11 pm, J-Burns [EMAIL PROTECTED] wrote: On Jul 17, 12:53 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: J-Burns wrote: Is there a built in Python function for this? for answering questions that have nothing to do with programming, and looks quite a bit like homework?  don't

Question

2008-07-19 Thread perl_wizard
Why is Perl so much better than python? -- http://mail.python.org/mailman/listinfo/python-list

Re: Amazon: Practical Django Projects by James Bennett (June 2008)

2008-07-19 Thread Stefan Scholl
Fredrik Lundh [EMAIL PROTECTED] wrote: (and the stable release and much will change stuff is pure FUD, of course. what competing project will I find if I google your name?) Found something? Maybe this could help me to choose a web framework. -- Web (en): http://www.no-spoon.de/ -*- Web

RE: __del__ methods

2008-07-19 Thread Robert Rawlins
Yes. Objects that have __del__() methods and are part of a reference cycle cause the entire reference cycle to be uncollectable, including objects not necessarily in the cycle but reachable only from it. Python doesn't collect such cycles automatically because, in general, it isn't possible

Re: Question

2008-07-19 Thread Peter Otten
[EMAIL PROTECTED] wrote: Why is Perl so much better than python? Because you have the video: http://mail.python.org/pipermail/python-list/2004-March/253370.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Change PC to Win or Windows

2008-07-19 Thread Lie
On Jul 19, 6:14 am, Derek Martin [EMAIL PROTECTED] wrote: On Fri, Jul 18, 2008 at 03:46:13PM -0700, Joel Teichroeb wrote: Calling Windows PC seems to be something that Apple did so they would not have to directly mention Windows. Actually it's something IBM did when they created the IBM PC.

Re: Question

2008-07-19 Thread Venky K Shankar
On Saturday 19 July 2008 03:14:20 pm Peter Otten wrote: [EMAIL PROTECTED] wrote: Why is Perl so much better than python? Because you have the video: http://mail.python.org/pipermail/python-list/2004-March/253370.html what about this ? i feel python's better :)

Re: How to process a very large (4Gb) tarfile from python?

2008-07-19 Thread Lars Gustäbel
On Thu, Jul 17, 2008 at 11:41:50PM -0700, Uwe Schmitt wrote: On 17 Jul., 22:21, Lars Gustäbel [EMAIL PROTECTED] wrote: Maybe we should post this issue to python-dev mailing list. Parsing large tar-files is not uncommon. This issue is known and was fixed for Python 3.0,

ftdi chip + ctypes + ftd2xx... need help with reading chipid!

2008-07-19 Thread Egor Zindy
Dear List, This one is way beyond my comprehension skills, I just don't understand what I'm doing wrong. I am trying to read the chipid from an FTDI chip based USB key (DLP-D, http://www.ftdichip.com/Products/EvaluationKits/DLP-D.htm ), using: - the ftd2xx module

Re: ftdi chip + ctypes + ftd2xx... need help with reading chipid! (now with the right source code!)

2008-07-19 Thread Egor Zindy
Egor Zindy wrote: Dear List, This one is way beyond my comprehension skills, I just don't understand what I'm doing wrong. I am trying to read the chipid from an FTDI chip based USB key (DLP-D, http://www.ftdichip.com/Products/EvaluationKits/DLP-D.htm ), using: - the ftd2xx module

Re: Question

2008-07-19 Thread Bruno Desthuilliers
Peter Otten a écrit : [EMAIL PROTECTED] wrote: Why is Perl so much better than python? Because you have the video: http://mail.python.org/pipermail/python-list/2004-March/253370.html KEYBOARD !-) -- http://mail.python.org/mailman/listinfo/python-list

Missing sqlite3.h Error when Building Debug Python -- Windows Vista

2008-07-19 Thread Bev in TX
I am a complete newbie at building Python. I am trying to build it under MS Windows Vista (64-bit AMD) with MS VS2005. I'm doing that because I need debug libraries, which I did not see in the standard distribution. I downloaded the source and found the MSVS8 solution/project files. However,

Help with displaying images in CherryPy

2008-07-19 Thread David Lyon
Hi all, I have a very simple question about configuration under CherryPy - it is such a simple one but I have been struggling to find an answer for a few days. All I want is a sample configuration file that will allow me to display a page with a jpeg on it. Whilst there are some examples

Re: Amazon: Practical Django Projects by James Bennett (June 2008)

2008-07-19 Thread Bruno Desthuilliers
Torsten Bronger a écrit : Hallöchen! [EMAIL PROTECTED] writes: On 16 juil, 10:35, Stefan Scholl [EMAIL PROTECTED] wrote: Dave U. Random [EMAIL PROTECTED] wrote: http://snipr.com/PracticalDjango June 2008 is a bit too early. Django isn't ready. Oh, really ? Too bad. But, wait... If

Re: Amazon: Practical Django Projects by James Bennett (June 2008)

2008-07-19 Thread Torsten Bronger
Hallöchen! Bruno Desthuilliers writes: Torsten Bronger a écrit : [EMAIL PROTECTED] writes: On 16 juil, 10:35, Stefan Scholl [EMAIL PROTECTED] wrote: Dave U. Random [EMAIL PROTECTED] wrote: http://snipr.com/PracticalDjango June 2008 is a bit too early. Django isn't ready. Oh, really

Re: Amazon: Practical Django Projects by James Bennett (June 2008)

2008-07-19 Thread Paul Boddie
On 17 Jul, 11:09, Fredrik Lundh [EMAIL PROTECTED] wrote: (and the stable release and much will change stuff is pure FUD, of course. what competing project will I find if I google your name?) That's a bit unfair. Maybe the guy was stung by previous experiences with books and certain other

regex doubts

2008-07-19 Thread Mr SZ
Hi, I am taking a string as an input from the user and it should only contain the chars:L , M or R I tried the folllowing in kodos but they are still not perfect: [^A-K,^N-Q,^S-Z,^0-9] [L][M][R] [LRM]?L?[LRM]? etc but they do not exactly meet what I need. For eg: LRLRLRLRLM is ok but LRLRLRNL

RE: __del__ methods

2008-07-19 Thread Duncan Booth
Robert Rawlins [EMAIL PROTECTED] wrote: I've just recently (in the past week) started using the __del__ method to log class instance destruction so I can keep a track of when objects are created and destroyed, in order to help me trace and fix memory leaks. That sounds like an appropriate

Re: Help with displaying images in CherryPy

2008-07-19 Thread paul
David Lyon schrieb: ... All I want is a sample configuration file that will allow me to display a page with a jpeg on it. This really should only take a few minutes for somebody who has done this in CherryPy before and I would certainly appreciate the assistance because it doesn't seem

Re: trying to match a string

2008-07-19 Thread Andrew Freeman
John Machin wrote: On Jul 19, 12:04 pm, Andrew Freeman [EMAIL PROTECTED] wrote: To show if valid: if re.search(r'^[LRM]*$', 'LM'): print 'Valid' A couple of points: (1) Instead of search(r'^blahblah', ...) use match(r'blahblah', ...) (2) You need to choose your end-anchor

RE: __del__ methods

2008-07-19 Thread Robert Rawlins
Hi Duncan, That sounds like an appropriate use for __del__: it won't matter that it may not be called when your app exits. Ok, well that's good to know. :-) Yes, but there is an easy work-around. If you want to track destruction of objects of type C then don't add a __del__ method to the

Re: Question

2008-07-19 Thread David M Lemcoe Jr.
Hello [EMAIL PROTECTED], No language is better than another because Python is not intended for the same uses and/or people. Your question has no place here. David -=___=- David M Lemcoe Jr. Roswell, Georgia http://www.davidlemcoe.com/ [EMAIL PROTECTED] QRZ: KI4YJL

Re: Question

2008-07-19 Thread Marc 'BlackJack' Rintsch
On Sat, 19 Jul 2008 10:27:28 +0100, perl_wizard wrote: Why is Perl so much better than python? You are so much better than python? Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

scanf in python

2008-07-19 Thread André Michel Descombes
Hello, I often need to parse strings which contain a mix of characters, integers and floats, the C-language scanf function is very practical for this purpose. I've been looking for such a feature and I have been quite surprised to find that it has been discussed as far back as 2001 but never

MethodChain

2008-07-19 Thread bearophileHUGS
Found from Reddit, it's for e ECMA(Java)Script, but something similar may be useful for Python too: http://jsclass.jcoglan.com/methodchain.html http://blog.jcoglan.com/2008/07/16/where-did-all-my-code-go-using-ojay-chains-to-express-yourself-clearly/ Bye, bearophile --

Re: Change PC to Win or Windows

2008-07-19 Thread Grant Edwards
On 2008-07-19, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Fri, 18 Jul 2008 19:14:43 -0400, Derek Martin [EMAIL PROTECTED] declaimed the following in comp.lang.python: On Fri, Jul 18, 2008 at 03:46:13PM -0700, Joel Teichroeb wrote: Calling Windows PC seems to be something that Apple did so

RE: __del__ methods

2008-07-19 Thread Duncan Booth
Robert Rawlins [EMAIL PROTECTED] wrote: I like this idea, I can definitely see the benefits to working with this concept. One things I will take this quick opportunity to ask, even though it's a little OT: What is the benefit of extending the base 'object' class? What does that give me that

Re: Change PC to Win or Windows

2008-07-19 Thread Sebastian Beßler
Grant Edwards schrieb: Not that I remember. I had a homebrew S-100 bus system, worked with varioius Commodore machines, My C64 has a label that says Personal Computer on it. So a C64 is a PC. Sebastian -- http://mail.python.org/mailman/listinfo/python-list

Re: MethodChain

2008-07-19 Thread Marc 'BlackJack' Rintsch
On Sat, 19 Jul 2008 08:55:23 -0700, bearophileHUGS wrote: Found from Reddit, it's for e ECMA(Java)Script, but something similar may be useful for Python too: http://jsclass.jcoglan.com/methodchain.html

Re: Change PC to Win or Windows

2008-07-19 Thread Marc 'BlackJack' Rintsch
On Sat, 19 Jul 2008 11:02:51 -0500, Grant Edwards wrote: On 2008-07-19, Dennis Lee Bieber [EMAIL PROTECTED] wrote: Which term applied to the TRS-80, the Apple II, Altair even... Not that I remember. I had a homebrew S-100 bus system, worked with varioius Commodore machines, a few Apples,

Re: Best Python packages?

2008-07-19 Thread Kay Schluehr
On 18 Jul., 12:23, Ben Sizer [EMAIL PROTECTED] wrote: On Jul 16, 3:31 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: Ben Sizer wrote: make my development a lot easier. Knowing what kind of development you do might help, of course. Some libraries are excellent in some contexts and suck

Re: Change PC to Win or Windows

2008-07-19 Thread Duncan Booth
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Sat, 19 Jul 2008 11:02:51 -0500, Grant Edwards wrote: On 2008-07-19, Dennis Lee Bieber [EMAIL PROTECTED] wrote: Which term applied to the TRS-80, the Apple II, Altair even... Not that I remember. I had a homebrew S-100 bus system,

How do you check if a program/process is running using python?

2008-07-19 Thread Lamonte Harris
How do you check if a program or process is running when using python? What I want to do is have an infinite loop to check if a program is running or not and send data to my web server to check yes or no. Is this possible? If so how? -- http://mail.python.org/mailman/listinfo/python-list

Re: trying to match a string

2008-07-19 Thread Andrew Freeman
Andrew Freeman wrote: John Machin wrote: A couple of points: (1) Instead of search(r'^blahblah', ...) use match(r'blahblah', ...) (2) You need to choose your end-anchor correctly; your pattern is permitting a newline at the end: I forgot to change search to match. This should be better: def

matplotlib: Plotting a graph against time

2008-07-19 Thread Durand
Hi, I'm trying to plot a simple graph against date or time using matplotlib. I've read about date_plot but I'm not really sure how to use it. At the moment, I have some data arranged into lists, where list1 contains x values (time) and list2 contains y values just like is needed for the normal

Re: How do you check if a program/process is running using python?

2008-07-19 Thread Venky K Shankar
On Sunday 20 July 2008 12:08:49 am Lamonte Harris wrote: How do you check if a program or process is running when using python? What I want to do is have an infinite loop to check if a program is running or not and send data to my web server to check yes or no. Is this possible? If so how?

win32api not found?

2008-07-19 Thread Lamonte Harris
Where can I get the win32api module? I been searching all day on google and nothing, i installed https://sourceforge.net/project/showfiles.php?group_id=78018 which requires win32api and its not found... -- http://mail.python.org/mailman/listinfo/python-list

Re: win32api not found?

2008-07-19 Thread Michiel Overtoom
On Saturday 19 July 2008 21:13:04 Lamonte Harris wrote: Where can I get the win32api module? I been searching all day on google and nothing, i installed https://sourceforge.net/project/showfiles.php?group_id=78018 which requires win32api and its not found... What are the actions you do and

Re: Ultimate Prime Sieve -- Sieve Of Zakiya (SoZ)

2008-07-19 Thread jzakiya
On Jun 18, 7:58 pm, George Sakkis [EMAIL PROTECTED] wrote: On Jun 13, 1:12 pm, jzakiya [EMAIL PROTECTED] wrote: The paper presents benchmarks with Ruby 1.9.0-1 (YARV).  I would love to see my variousprimegenerators benchmarked with optimized implementations in other languages.  I'm hoping

Re: Question

2008-07-19 Thread Stefan Behnel
[EMAIL PROTECTED] wrote: Why is Perl so much better than python? Smart questions deserve smart answers: Yes. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on Joining of list

2008-07-19 Thread ptn
On Jul 18, 6:43 pm, John Machin [EMAIL PROTECTED] wrote: On Jul 18, 11:42 pm, ptn [EMAIL PROTECTED] wrote: [snip]  Remember C, where i, j, k are indices, p, q, r are pointers, s, t are strings and x, y, z are integers. Only by convention (even-KR-v1 C required explicit declarations

create instance attributes for every method argument

2008-07-19 Thread Berco Beute
I remember reading somewhere how to create an instance attribute for every method argument, but although Google is my friend, I can't seem to find it. This could likely be done way more elegant: = class Test(object): def __init__(self, a, b, c, d, e, f):

Re: regex doubts

2008-07-19 Thread Fredrik Lundh
Mr SZ wrote: I am taking a string as an input from the user and it should only contain the chars:L , M or R I tried the folllowing in kodos but they are still not perfect: [^A-K,^N-Q,^S-Z,^0-9] [L][M][R] [LRM]?L?[LRM]? etc but they do not exactly meet what I need. For eg: LRLRLRLRLM is ok

Re: win32api not found?

2008-07-19 Thread Fuzzyman
On Jul 19, 8:45 pm, Michiel Overtoom [EMAIL PROTECTED] wrote: On Saturday 19 July 2008 21:13:04 Lamonte Harris wrote: Where can I get the win32api module? I been searching all day on google and nothing, i installed https://sourceforge.net/project/showfiles.php?group_id=78018which requires

Re: regex doubts

2008-07-19 Thread John Machin
On Jul 20, 5:04 am, Fredrik Lundh [EMAIL PROTECTED] wrote: Mr SZ wrote: I am taking a string as an input from the user and it should only contain the chars:L , M or R I tried the folllowing in kodos but they are still not perfect: [^A-K,^N-Q,^S-Z,^0-9] [L][M][R] [LRM]?L?[LRM]? etc

Re: checking if an object IS in a list

2008-07-19 Thread nicolas . pourcelot
On 18 juil, 17:52, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Fri, 18 Jul 2008 07:39:38 -0700, nicolas.pourcelot wrote: So, I use something like this in 'sheet.objects.__setattr__(self, name, value)': if type(value) == Polygon:     for edge in value.edges:         if edge

Re: Determining when a file has finished copying

2008-07-19 Thread Wilbert Berendsen
You could also copy to a different name on the same disk, and when the copying has been finished just 'move' (mv) the file to the filename the other application expects. E.g. QMail works this way, writing incoming mails in folders. Met vriendelijke groet, Wilbert Berendsen --

Re: create instance attributes for every method argument

2008-07-19 Thread Larry Bates
Berco Beute wrote: I remember reading somewhere how to create an instance attribute for every method argument, but although Google is my friend, I can't seem to find it. This could likely be done way more elegant: = class Test(object): def __init__(self, a, b, c, d,

Re: regex doubts

2008-07-19 Thread MRAB
On Jul 19, 9:12 pm, John Machin [EMAIL PROTECTED] wrote: On Jul 20, 5:04 am, Fredrik Lundh [EMAIL PROTECTED] wrote: Mr SZ wrote: I am taking a string as an input from the user and it should only contain the chars:L , M or R I tried the folllowing in kodos but they are still not

Re: create instance attributes for every method argument

2008-07-19 Thread Duncan Booth
Berco Beute [EMAIL PROTECTED] wrote: I remember reading somewhere how to create an instance attribute for every method argument, but although Google is my friend, I can't seem to find it. This could likely be done way more elegant: = class Test(object): def

Re: create instance attributes for every method argument

2008-07-19 Thread Peter Otten
Berco Beute wrote: I remember reading somewhere how to create an instance attribute for every method argument, but although Google is my friend, I can't seem to find it. This could likely be done way more elegant: = class Test(object): def __init__(self, a,

Re: MethodChain

2008-07-19 Thread bearophileHUGS
Marc 'BlackJack' Rintsch: What's called `MethodChain` there seems to be function composition in functional languages. Maybe `functools` could grow a `compose()` function. To me it looks like a quite more refined thing, it's an object, it has some special methods, etc. I think it's not too much

Re: trying to match a string

2008-07-19 Thread John Machin
On Jul 20, 5:00 am, Andrew Freeman [EMAIL PROTECTED] wrote: Andrew Freeman wrote: John Machin wrote: A couple of points: (1) Instead of search(r'^blahblah', ...) use match(r'blahblah', ...) (2) You need to choose your end-anchor correctly; your pattern is permitting a newline at the

Re: regex doubts

2008-07-19 Thread John Machin
On Jul 20, 6:35 am, MRAB [EMAIL PROTECTED] wrote: On Jul 19, 9:12 pm, John Machin [EMAIL PROTECTED] wrote: On Jul 20, 5:04 am, Fredrik Lundh [EMAIL PROTECTED] wrote: Mr SZ wrote: I am taking a string as an input from the user and it should only contain the chars:L , M or R I

Re: checking if an object IS in a list

2008-07-19 Thread John Machin
On Jul 20, 6:13 am, [EMAIL PROTECTED] wrote: On 18 juil, 17:52, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Fri, 18 Jul 2008 07:39:38 -0700, nicolas.pourcelot wrote: So, I use something like this in 'sheet.objects.__setattr__(self, name, value)': if type(value) == Polygon:

Free online computer studies

2008-07-19 Thread Prabhu
Free online computer studies super visualize study get all courses,hurry up limited offer http://vijaydollars.blogspot.com/ http://friendfinder.com/go/g981367 http://amigos.com/go/g981367 -- http://mail.python.org/mailman/listinfo/python-list

Help Tracing urllib2 Error, Please?

2008-07-19 Thread Larry Hale
Since it seems I have a unique problem, I wonder if anyone could point me in the general/right direction for tracking down the issue and resolving it myself. See my prior post @ http://groups.google.com/group/comp.lang.python/browse_thread/thread/44775994a6b55161?hl=en# for more info. (Python

Re: __del__ methods

2008-07-19 Thread Ben Finney
Robert Rawlins [EMAIL PROTECTED] writes: What is the benefit of extending the base 'object' class? What does that give me that en empty, non subclassed object doesn't? In Python 2.x, classic classes (which are not part of the unified type hierarchy) are deprecated, and exist only for backward

Re: Change PC to Win or Windows

2008-07-19 Thread Michiel Overtoom
On Saturday 19 July 2008 22:30:29 Dennis Lee Bieber wrote: I still wonder who came up with the Commodore PET -- Personal Electronic Transactor... yeesh... But the Personal was already in play way back then. Probably Chuck Peddle, Jack Tramiel or Leonard Tramiel. For your amusement:

Re: trying to match a string

2008-07-19 Thread Andrew Freeman
John Machin wrote: On Jul 20, 5:00 am, Andrew Freeman [EMAIL PROTECTED] wrote: Andrew Freeman wrote: John Machin wrote: A couple of points: (1) Instead of search(r'^blahblah', ...) use match(r'blahblah', ...) (2) You need to choose your end-anchor correctly; your pattern is

Not entirely serious: recursive lambda?

2008-07-19 Thread Michael Tobis
I came across the japh concept today and decided to do one of my own, obviously, interpreting the 'p' somewhat loosely, http://en.wikipedia.org/wiki/JAPH but I'm not entirely satisfied with it: # japh, for certain values of 'p' f=lambda(r,N):N and f((

Re: Any Game Developers here?

2008-07-19 Thread Python Nutter
I used to use PyGame but the horrible delay waiting for OS X binaries put me off. I now use Pyglet extensively, and combine Pyglet + Rabbyt to get amazing sprite handling speeds. Pyglet/Rabbyt make use of OpenGL which comes installed on all the major systems out there. PyGame requires the

Re: Any Game Developers here?

2008-07-19 Thread Python Nutter
PS. To see some real games developed under pressure/time constraints in Python you should visit PyWeek to see what individuals and teams can create in only a weeks time! http://pyweek.org/ 2008/7/19 Michael Lubker [EMAIL PROTECTED]: Any people that use Python as the predominant language for

Re: Best Python packages?

2008-07-19 Thread Python Nutter
I think the hidden gems in multimedia/game production are Pyglet and Rabbyt. Whereas PyGame is the older api, its large and bloated and has of course a heavy dependency on SDL. Pyglet and Rabbyt are lightweight, efficient, have some amazing functions and hit native OpenGL in all the major OS

atan2 weirdness

2008-07-19 Thread [EMAIL PROTECTED]
hi atan2 is supposed to return the angle to x-axis when given y and x, I suppose if I take [x,y] to one full circle, I should get 0-360 degree back but no, I get 3 full revolutions! maybe my understanding is wrong. from math import * def f(ang): a=ang if a360: a-=360 if a360: a-=360 if

Re: Any Game Developers here?

2008-07-19 Thread Michael Lubker
Rabbyt is developed by one of my colleagues. I'm currently using Python-Ogre and Anims (for 3D animation, broken off from Rabbyt by Matthew) for my game, SnowballZ. Thanks Michael On Sat, Jul 19, 2008 at 10:33 PM, Python Nutter [EMAIL PROTECTED] wrote: I used to use PyGame but the horrible

Re: atan2 weirdness

2008-07-19 Thread Carsten Haese
[EMAIL PROTECTED] wrote: hi atan2 is supposed to return the angle to x-axis when given y and x, I suppose if I take [x,y] to one full circle, I should get 0-360 degree back but no, I get 3 full revolutions! maybe my understanding is wrong. from math import * def f(ang): a=ang if a360:

Re: Not entirely serious: recursive lambda?

2008-07-19 Thread Miles
On Sat, Jul 19, 2008 at 10:43 PM, Michael Tobis [EMAIL PROTECTED] wrote: Can a lambda call itself without giving itself a name? Kind of. There's a couple ways I know of. The functional way, which involves the lambda receiving itself as an argument: (lambda f: f(10, f))(lambda n, f: n and

Re: atan2 weirdness

2008-07-19 Thread Raymond Hettinger
On Jul 19, 9:12 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi atan2 is supposed to return the angle to x-axis when given y and x, I suppose if I take [x,y] to one full circle, I should get 0-360 degree back but no, I get 3 full revolutions! maybe my understanding is wrong. from

Re: MethodChain

2008-07-19 Thread Marc 'BlackJack' Rintsch
On Sat, 19 Jul 2008 13:57:33 -0700, bearophileHUGS wrote: Marc 'BlackJack' Rintsch: What's called `MethodChain` there seems to be function composition in functional languages. Maybe `functools` could grow a `compose()` function. To me it looks like a quite more refined thing, it's an

Re: Not entirely serious: recursive lambda?

2008-07-19 Thread Paul McGuire
On Jul 19, 11:49 pm, Miles [EMAIL PROTECTED] wrote: On Sat, Jul 19, 2008 at 10:43 PM, Michael Tobis [EMAIL PROTECTED] wrote: Can a lambda call itself without giving itself a name? Kind of.  There's a couple ways I know of. The functional way, which involves the lambda receiving itself as an

Re: Best Python packages?

2008-07-19 Thread Kay Schluehr
On 20 Jul., 05:54, Python Nutter [EMAIL PROTECTED] wrote: I think the hidden gems in multimedia/game production are Pyglet and Rabbyt. Whereas PyGame is the older api, its large and bloated and has of course a heavy dependency on SDL. Pyglet and Rabbyt are lightweight, efficient, have some

Re: checking if an object IS in a list

2008-07-19 Thread Marc 'BlackJack' Rintsch
On Sat, 19 Jul 2008 13:13:40 -0700, nicolas.pourcelot wrote: On 18 juil, 17:52, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Fri, 18 Jul 2008 07:39:38 -0700, nicolas.pourcelot wrote: So, I use something like this in 'sheet.objects.__setattr__(self, name, value)': if type(value) ==

Re: trying to match a string

2008-07-19 Thread John Machin
On Jul 20, 11:14 am, Andrew Freeman [EMAIL PROTECTED] wrote: John Machin wrote: (4) I highly doubt that this code was actually to be used in an interactive session, The offending code is a nonsense wherever it is used. the False/True output was truncated intentionally, What meaning are you

Re: MethodChain

2008-07-19 Thread Paul McGuire
On Jul 20, 12:01 am, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: The methods are a problem IMHO.  You can't add an own method/function with the name `fire()` or `toFunction()`.  `MethodChain` has to know all functions/methods in advance.  You can add the methods of whole classes at once

[issue2532] file that breaks 2to3 (despite being correct python)

2008-07-19 Thread engelbert gruber
engelbert gruber [EMAIL PROTECTED] added the comment: The much simpler input might be another problem:: # this is accepted b = (a = 0\n * 100) # this one breaks it (a = 0\n * 100) this looks similar to ``map(None, t)`` on a line by itself is translated to ``list(map(None, t))`` and

[issue2772] Add PendingDeprecationWarning for % formatting

2008-07-19 Thread Eric Smith
Eric Smith [EMAIL PROTECTED] added the comment: I agree. That's one of the reasons I un-assigned it to me. Well, that and I couldn't get it to pass all tests. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2772

[issue3307] invalid check of _bsddb creation failure

2008-07-19 Thread Jesús Cea Avión
Jesús Cea Avión [EMAIL PROTECTED] added the comment: Solved in my SVN repository. Revision 527. Testsuite updated. Will be available in bsddb 4.7.2. -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3307

[issue3307] invalid check of _bsddb creation failure

2008-07-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión [EMAIL PROTECTED]: -- resolution: - fixed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3307 ___ ___ Python-bugs-list

[issue3378] Memory leak in pythonrun.c

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Applied in r65131. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3378 ___

[issue3368] Memory leak in import.c

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Applied in r65132. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3368 ___

[issue3415] Interpreter error when running a script under debugger control

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: For reference, here is the output of the pdb session: [EMAIL PROTECTED] ~/devel/python ./python Lib/pdb.py Lib/idlelib/idle.py /home/gbr/devel/python/Lib/idlelib/idle.py(1)module() - try: (Pdb) break multicall.py:300 *** 'multicall.py' not

[issue3302] segfault on gettext(None)

2008-07-19 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10945/locale_none-2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3302 ___

[issue3302] segfault on gettext(None)

2008-07-19 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10831/locale_none.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3302 ___

[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: To reproduce the crash, try very big negative integer as second argument. Example: _json.scanstring(test, -23492394) Erreur de segmentation (core dumped) _json.scanstring(utest, -1239239) Erreur de segmentation (core dumped)

[issue3416] Wrong inherit in PickleHTMLBuilder

2008-07-19 Thread Yu Xin
New submission from Yu Xin [EMAIL PROTECTED]: I use sphinx-0.4.1. When I make pickle, I saw the error message: Traceback (most recent call last): File /is/app/grows/lib/python2.5/site-packages/Sphinx-0.4.1-py2.5.egg/sphinx/__init__.py, line 135, in main app.builder.build_update() File

[issue3302] segfault on gettext(None)

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Fixed in r65133. -- assignee: loewis - georg.brandl nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3302

[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in trunk in r65135, will be merged to Py3k automatically. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue2706] datetime: define division timedelta/timedelta

2008-07-19 Thread webograph
webograph [EMAIL PROTECTED] added the comment: this is the mentioned patch without the function pointers, in case it better fits the python coding style. Added file: http://bugs.python.org/file10946/datetime_datetime_division_dupcode.patch ___ Python

[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Bob, do you know how to fix this? -- assignee: - bob.ippolito nosy: +bob.ippolito, georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3322

[issue3321] _multiprocessing.Connection() doesn't check handle

2008-07-19 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- priority: - high ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3321 ___ ___ Python-bugs-list mailing

[issue3323] Clarify __slots__ behaviour when inheriting

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Added a note in r65136, thanks. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3323 ___

[issue3311] block operation on closed socket/pipe for multiprocessing

2008-07-19 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- assignee: - jnoller nosy: +jnoller, roudkerk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3311 ___ ___

[issue3330] webbrowser module doesn't correctly handle '|' character.

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Closing as invalid. -- nosy: +georg.brandl resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3330 ___

[issue3331] Possible inconsistency in behavior of list comprehensions vs. generator expressions

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: This is not a bug, see this thread: http://mail.python.org/pipermail/python-3000/2008-July/014328.html -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___ Python tracker [EMAIL

  1   2   >