Re: // compile python core //

2011-06-25 Thread Corey Richardson
Excerpts from victor lucio's message of Sun Jun 26 02:01:27 -0400 2011: > Hi > > I would like to know how to compile the python core. > I am going to remove some modules of it to have a thin python. > > Where could I find further information about it? > I'm guessing you're going to want to go t

// compile python core //

2011-06-25 Thread victor lucio
Hi I would like to know how to compile the python core. I am going to remove some modules of it to have a thin python. Where could I find further information about it? I would be grateful for your suggestions Waldemar -- http://mail.python.org/mailman/listinfo/python-list

[ANNC] pynguin-0.10 python turtle graphics application

2011-06-25 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release c

Re: Re: Online payment

2011-06-25 Thread hidura
I don't use Django or Plone i use my own web-frameowork. Thanks for the advice! El , Florencio Cano escribió: > Hello i want to create a shopping cart for my web-site, to receive payments > from credit cards, how can i do this? where i can start to investigate? I > did all the web-sit

Re: Question regarding DNS resolution in urllib2

2011-06-25 Thread Michael Hrivnak
As I noted, the feature was introduced in version 7.21.3. From your post, it looks like you're running version 7.19.7. Perhaps you should look into getting a newer version of curl. Or if you're feeling brave and have some C skills, you could try implementing this feature in pycurl! That would b

Re: Online payment

2011-06-25 Thread Florencio Cano
> Hello i want to create a shopping cart for my web-site, to receive payments > from credit cards, how can i do this? where i can start to investigate? I > did all the web-site using Python-3. Did you use any Python web development framework like Django or Plone? -- http://mail.python.org/mailman

Re: Online payment

2011-06-25 Thread Michael Hrivnak
There are many open-source options that you should consider before deciding to write your own. For example, Satchmo: http://www.satchmoproject.com/ Also, don't be afraid to integrate with something not written in python. If you can find something with a nice API that meets your needs, it's proba

Re: Significant figures calculation

2011-06-25 Thread Chris Torek
In article Jerry Hill wrote: >I'm curious. Is there a way to get the number of significant digits >for a particular Decimal instance? Yes: def sigdig(x): "return the number of significant digits in x" return len(x.as_tuple()[1]) import decimal D = decimal.Decimal for x in ( '1',

Re: Interpreting Left to right?

2011-06-25 Thread Chris Torek
(Re: x = x['huh'] = {} which binds x to a new dictionary, then binds that dictionary's 'huh' key to the same dictionary...) In article Tycho Andersen wrote: >Perhaps I'm thick, but (the first thing I did was read the docs and) I >still don't get it. From the docs: > >"An assignment statem

What does "shell introspection" mean?

2011-06-25 Thread Juan Kinunt
In the PyDev installation documentation you see this sentence: "The Forced builtin libs are the libraries that are built-in the interpreter, such as __builtin__, sha, etc or libraries that should forcefully analyzed through shell introspection (the other option to analyze modules with too much run

Re: those darn exceptions

2011-06-25 Thread Chris Angelico
On Sun, Jun 26, 2011 at 12:28 AM, wrote: > Chris Angelico wrote: > >> Sure it can. And KeyboardInterrupt could be raised at any time, too. >> But this is a TOOL, not a deity. If Function X is known to call >> Function Y and built-in method Z, > > Known by whom? You? Me? The author of X, Y or Z? E

Re: those darn exceptions

2011-06-25 Thread steve+comp . lang . python
Chris Angelico wrote: > On Sat, Jun 25, 2011 at 10:25 AM, Ben Finney > wrote: >> No. The answer is *still* “why, any exception at all”. The name >> ‘os.read’ could be re-bound at run-time to any object at all, so a code >> checker that you “point at any given line of code” can't know what the >>

Re: Looking PDF module

2011-06-25 Thread jmfauth
On 24 juin, 09:23, Hegedüs Ervin wrote: [...] > Any help would comes well, > > thanks: > I do not really understand the relation Python <-> "this will be a book". For editing purpose, do you need to extract your raw material for somewhere? to create graphics? to parse files? or Are you expec

Re: python 3 constant

2011-06-25 Thread Waldek M.
Dnia Sat, 25 Jun 2011 20:59:17 +1000, Chris Angelico napisał(a): > In all seriousness, sometimes adding features to one language is best > done by dropping to another. This is probably not as useful in > interpreted languages like Python, but I have on multiple occasions > run code through the C pr

Re: python 3 constant

2011-06-25 Thread Chris Angelico
2011/6/25 Waldek M. : > Dnia Fri, 24 Jun 2011 08:00:06 +1000, Chris Angelico napisał(a): >>> Yup, got the sarcasm, that's for sure. >>> But your point was...? >> >> That if you want something, there's usually a way to get it. >> Sometimes, giving someone what they want - or showing them how to get

Re: python 3 constant

2011-06-25 Thread Waldek M.
Dnia Fri, 24 Jun 2011 08:00:06 +1000, Chris Angelico napisał(a): >> Yup, got the sarcasm, that's for sure. >> But your point was...? > > That if you want something, there's usually a way to get it. > Sometimes, giving someone what they want - or showing them how to get > it - makes it obvious to t

Re: python 3 constant

2011-06-25 Thread Waldek M.
Dnia Thu, 23 Jun 2011 20:04:43 -0700 (PDT), alex23 napisał(a): >> But your point was...? > > That it's easier for you to find ways to achieve what you want than it > is require Python to change to accommodate your need. And when exactly did I write that I require anyone to change anything? I'd li

Re: python 3 constant

2011-06-25 Thread Waldek M.
Dnia Thu, 23 Jun 2011 23:04:37 +1000, Ben Finney napisał(a): >>> The ability to re-bind any attribute, even ones which the author >>> thought should be constant, makes writing unit tests much easier. I >>> don't see that putative benefits of constant bindings would be >>> anywhere near as valuable.

Re: LDAP: How get all users belongs to a group.

2011-06-25 Thread Michael Ströder
sajuptpm wrote: > results = ldapClient.search_s("cn=My-Group-1,ou=Groups,o=CUST", > ldap.SCOPE_BASE) > > Is this method work for all types of groups (groupOfNames, > posixGroup) ??? Yes, but the member attribute differs. 'member' in entries of object class 'groupOfNames' contains the DN of the m

Online payment

2011-06-25 Thread hidura
Hello i want to create a shopping cart for my web-site, to receive payments from credit cards, how can i do this? where i can start to investigate? I did all the web-site using Python-3. Thanks!!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Dictionaries and incrementing keys

2011-06-25 Thread Raymond Hettinger
On Jun 14, 12:57 pm, Steve Crook wrote: > Today I spotted an alternative: > > dict[key] = dict.get(key, 0) + 1 > > Whilst certainly more compact, I'd be interested in views on how > pythonesque this method is. It is very pythonesque in the it was the traditional one way to do it (also one of the

Re: Is there any advantage or disadvantage to using sets over list comps to ensure a list of unique entries?

2011-06-25 Thread Raymond Hettinger
On Jun 20, 9:43 pm, deathweaselx86 wrote: > Howdy guys, I am new. > > I've been converting lists to sets, then back to lists again to get > unique lists. > e.g > > Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48) > [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2 > Type "help", "copyright", "credits"

Re: LDAP: How get all users belongs to a group.

2011-06-25 Thread sajuptpm
results = ldapClient.search_s("cn=My-Group-1,ou=Groups,o=CUST", ldap.SCOPE_BASE) Is this method work for all types of groups (groupOfNames, posixGroup) ??? have to implement user search/fetch separately for each groups ??? -- http://mail.python.org/mailman/listinfo/python-list