RE: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-12 Thread Carlos Nepomuceno
' Server: ApacheBooster/1.6' isn't a signature of httpd. I think you are really running something different. > From: nob...@nowhere.com > Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain) > Date: Tue, 4 Jun 2013 14:01:48 +0100 > To: python-list@python.org > > On Tue,

RE: Short-circuit Logic

2013-06-12 Thread Carlos Nepomuceno
> From: oscar.j.benja...@gmail.com > Date: Thu, 30 May 2013 23:57:28 +0100 > Subject: Re: Short-circuit Logic > To: carlosnepomuc...@outlook.com > CC: python-list@python.org > > On 30 May 2013 22:03, Carlos Nepomuceno wrote: &

RE: Python #ifdef

2013-06-12 Thread Carlos Nepomuceno
> Date: Mon, 3 Jun 2013 12:05:49 +1000 > Subject: Re: Python #ifdef > From: ros...@gmail.com > To: python-list@python.org [...] > Ah. I actually wasn't aware of m4's use with sendmail. I first met it > as the aforementioned PHP preprocessor, simply by Googli

RE: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-12 Thread Carlos Nepomuceno
> To: python-list@python.org > From: breamore...@yahoo.co.uk > Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain) > Date: Sun, 2 Jun 2013 15:51:31 +0100 [...] > "Steve is going for the pink ball - and for those of you who are > wat

RE: Total Beginner - Extracting Data from a Database Online (Screenshot)

2013-06-12 Thread Carlos Nepomuceno
> Date: Tue, 28 May 2013 07:40:07 +0100 > Subject: RE: Total Beginner - Extracting Data from a Database Online > (Screenshot) > From: pconn...@gmail.com [...] > > > > c11 = [tables[0][r][10] for r in range(len(tables[0]))] > > Or rather: > > c11 = [row[1

RE: How to: Setuptools

2013-06-12 Thread Carlos Nepomuceno
> Date: Mon, 27 May 2013 21:26:21 -0700 > Subject: Re: How to: Setuptools > From: rustompm...@gmail.com > To: python-list@python.org > > On May 28, 9:09 am, Carlos Nepomuceno > wrote: >> --

RE: Encodign issue in Python 3.3.1 (once again)

2013-06-12 Thread Carlos Nepomuceno
> Date: Tue, 28 May 2013 08:18:06 +1000 > Subject: Re: Encodign issue in Python 3.3.1 (once again) > From: ros...@gmail.com > To: python-list@python.org [...] > > This is something that's utterly trivial, yet a window to your mind. > It's like boarding an ai

RE: Cutting a deck of cards

2013-06-12 Thread Carlos Nepomuceno
> To: python-list@python.org > From: breamore...@yahoo.co.uk [...] > See this > http://docs.python.org/3/whatsnew/3.3.html#pep-397-python-launcher-for-windows > > -- > If you're using GoogleCrap™ please read this > http://wiki.python.org/moin/GoogleGroupsPyt

RE: Cutting a deck of cards

2013-06-12 Thread Carlos Nepomuceno
> From: usenetm...@solar-empire.de > Subject: Re: Cutting a deck of cards > Date: Sun, 26 May 2013 22:13:55 +0200 > To: python-list@python.org > > Carlos Nepomuceno wrote: >> >>>

RE: Python Magazine

2013-06-12 Thread Carlos Nepomuceno
> Date: Sun, 26 May 2013 15:17:11 +1000 > Subject: Re: Python Magazine > From: ros...@gmail.com [...] >> Blocking a whole network (/65) is totally undesirable and may even become >> illegal. > > Blocking a /64 is exactly the same as blocking a /32 with NAT

RE: Simple algorithm question - how to reorder a sequence economically

2013-06-12 Thread Carlos Nepomuceno
> Date: Fri, 24 May 2013 17:28:07 -0700 > Subject: Re: Simple algorithm question - how to reorder a sequence > economically > From: peter.h.m.bro...@gmail.com > To: python-list@python.org [...] > If the scenario could be modelled mathematically, then there'

RE: Python Magazine

2013-06-12 Thread Carlos Nepomuceno
I don't think IPv6 will change anything about NAPT usage. In fact, I guess, it will probably will make NAPT usage even more important and needed. -- http://mail.python.org/mailman/listinfo/python-list

RE: how to detect the character encoding in a web page ?

2013-06-09 Thread Carlos Nepomuceno
Try this: ### get_charset.py ### import re import urllib2 def get_charset(url): resp = urllib2.urlopen(url) #retrieve charset from header headers = ''.join(resp.headers.headers) charset_from_header_list = re.findall('charset=(.*)', headers) charset_from_header = charset_from_

RE: Listing modules from all installed packages

2013-06-08 Thread Carlos Nepomuceno
Just realized that you've asked for installed packages. Perhaps the following will do the trick. I don't know why the 'lib-tk' isn't included. Why not? toplevel_packages = ['%s\\%s'%(ml.path,name)for ml,name,ispkg in pkgutil.iter_modules() if ispkg] print '\n'.join(toplevel_packages) > Date: Sa

RE: Listing modules from all installed packages

2013-06-08 Thread Carlos Nepomuceno
print '\n'.join([re.findall("from '(.*)'",str(v))[0] for k,v in sys.modules.items() if str(v).find('from')>-1]) > Date: Sat, 8 Jun 2013 21:30:48 -0700 > Subject: Listing modules from all installed packages > From: jpha...@gmail.com > To: python-list@python.org > > Hi, > > I'm trying to write a

RE: Idiomatic Python for incrementing pairs

2013-06-07 Thread Carlos Nepomuceno
:16:22 -0500 > From: python.l...@tim.thechases.com > To: carlosnepomuc...@outlook.com > CC: python-list@python.org > Subject: Re: Idiomatic Python for incrementing pairs > > On 2013-06-08 07:04, Carlos Nepomuceno wrote: > > alpha, beta = (1 if some_calcu

RE: Idiomatic Python for incrementing pairs

2013-06-07 Thread Carlos Nepomuceno
alpha, beta = (1 if some_calculation(params) else 0, 1 if other_calculation(params) else 0) > Date: Fri, 7 Jun 2013 21:32:39 -0500 > From: python.l...@tim.thechases.com > To: python-list@python.org > Subject: Idiomatic Python for incrementing pairs > > Playing around, I've been trying to figure

RE: Source code to identify user through browser?

2013-06-05 Thread Carlos Nepomuceno
> Date: Wed, 5 Jun 2013 08:18:56 -0700 > Subject: Re: Source code to identify user through browser? > From: rustompm...@gmail.com [...] > > What do you mean by user? > > Ha! Nice question. Not in direct answer but here's E.W Dijkstra > defining 'user': > > [from http://www.cs.utexas.edu/~EWD/tra

RE: Source code to identify user through browser?

2013-06-05 Thread Carlos Nepomuceno
> From: nos...@nospam.com > Subject: Source code to identify user through browser? > Date: Wed, 5 Jun 2013 15:08:54 +0200 > To: python-list@python.org > > Hello > > I was wondering if some Python module were available to identify a > user through their browser, like it's done on the Panopticlick

RE: I just wrote my first Python program a guessing game and it exits with an error I get this.

2013-06-05 Thread Carlos Nepomuceno
> Date: Wed, 5 Jun 2013 07:40:52 -0700 > Subject: I just wrote my first Python program a guessing game and it exits > with an error I get this. > From: armandomontesdeoca...@gmail.com > To: python-list@python.org > > Traceback (most recent call last): > File "Guessing_Game.py", line 32, in

RE: Python Magazine

2013-06-05 Thread Carlos Nepomuceno
> Date: Wed, 5 Jun 2013 00:37:53 -0700 > Subject: Re: Python Magazine > From: rama29...@gmail.com [...] > > Do you have sponsors? Advertisers? What's the plan? > Thanks Carlos, > Right now we haven't engaged with sponsors or advertisers. Thinking > whether to have a community magazine or go

RE: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-04 Thread Carlos Nepomuceno
> Date: Tue, 4 Jun 2013 18:28:17 -0700 > Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain) > From: wuwe...@gmail.com [...] > Just a reminder to everyone that the OP originally went by the name of > Ferrous Cranus: > http://redwing.hutman.net/~mreed/warriorshtm/ferouscran

RE: Do you consider Python a 4GL? Why (not)?

2013-06-04 Thread Carlos Nepomuceno
I don't have an opinion yet, but I've found contradictory evidence from many sources, such as: "A domain-specific language (DSL) is a type of programming language or specification language in software development and domain engineering dedicated to a particular problem domain, [...] The opposit

Do you consider Python a 4GL? Why (not)?

2013-06-04 Thread Carlos Nepomuceno
Do you consider Python a 4GL? Why (not)? -- http://mail.python.org/mailman/listinfo/python-list

RE: How to increment date by week?

2013-06-04 Thread Carlos Nepomuceno
> Date: Tue, 4 Jun 2013 14:31:07 -0700 > Subject: How to increment date by week? > From: r90...@gmail.com > To: python-list@python.org > >Starting on any day/date, I would like to create a one year list, by week > (start date could be any day of week). Having a numerical week index in > fro

RE: create new python file

2013-06-04 Thread Carlos Nepomuceno
> Date: Tue, 4 Jun 2013 11:54:52 -0700 > Subject: Re: create new python file > From: kakararunachalserv...@gmail.com [...] > > > > > So, can i program within just by the print statement? Or do i have to do > > > something else. > > > > > > > > it is completely indecipherable (to me at least)

RE: Source code as text/plain

2013-06-04 Thread Carlos Nepomuceno
Thank you! > Date: Tue, 4 Jun 2013 17:51:08 +0200 > From: andiper...@gmail.com > To: python-list@python.org > Subject: Re: Source code as text/plain > > On 04.06.2013 00:34, Carlos Nepomuceno wrote: > > > >> Date: Mon, 3

RE: How to get an integer from a sequence of bytes

2013-06-04 Thread Carlos Nepomuceno
> From: invalid@invalid.invalid > Subject: Re: How to get an integer from a sequence of bytes > Date: Tue, 4 Jun 2013 13:42:46 + > To: python-list@python.org [...] > VN designs are still very common in smaller CPUs (embedded stuff). DSPs perhaps... not CPUs. Even ARMs are Harvard variants.

RE: Apache and suexec issue that wont let me run my python script

2013-06-04 Thread Carlos Nepomuceno
> Date: Tue, 4 Jun 2013 05:57:54 -0700 > Subject: Re: Apache and suexec issue that wont let me run my python script > From: nikos.gr...@gmail.com > To: python-list@python.org > > root@nikos [~]# nano /usr/local/apache/conf/httpd.conf > > and altering user nobody to user root. > > root@nikos [~

RE: Beginner question

2013-06-04 Thread Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: Beginner question > Date: Tue, 4 Jun 2013 12:35:59 + > To: python-list@python.org > > On Tue, 04 Jun 2013 14:23:39 +0300, Carlos Nepomuceno wrote: > > > Started answering... now I'm asking! lol >

RE: Beginner question

2013-06-04 Thread Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: Beginner question > Date: Tue, 4 Jun 2013 12:25:27 + > To: python-list@python.org > > On Tue, 04 Jun 2013 14:53:29 +0300, Carlos Nepomuceno wrote: > > > That's exactly the same! > >&g

RE: Apache and suexec issue that wont let me run my python script

2013-06-04 Thread Carlos Nepomuceno
> Date: Tue, 4 Jun 2013 04:48:34 -0700 > Subject: Re: Apache and suexec issue that wont let me run my python script > From: nikos.gr...@gmail.com > To: python-list@python.org > > Τη Τρίτη, 4 Ιουνίου 2013 2:42:52 μ.μ. UTC+3, ο χρήστης Carlos Nepomuceno > έγραψε: > &

RE: Apache and suexec issue that wont let me run my python script

2013-06-04 Thread Carlos Nepomuceno
> Date: Tue, 4 Jun 2013 04:36:06 -0700 > Subject: Re: Apache and suexec issue that wont let me run my python script > From: nikos.gr...@gmail.com > To: python-list@python.org > > Τη Τρίτη, 4 Ιουνίου 2013 2:27:25 μ.μ. UTC+3, ο χρήστης Carlos Nepomuceno > έγραψε: > >

RE: Apache and suexec issue that wont let me run my python script

2013-06-04 Thread Carlos Nepomuceno
Post your httpd.conf to pastebin and send us the link... > Date: Tue, 4 Jun 2013 04:38:44 -0700 > Subject: Re: Apache and suexec issue that wont let me run my python script > From: nikos.gr...@gmail.com > To: python-list@python.org > > root@nikos [/home/nikos/www/data/apps]# ls -l /usr/local/apa

RE: Beginner question

2013-06-04 Thread Carlos Nepomuceno
>On 4 Jun 2013 12:28, "Carlos Nepomuceno" wrote: [...] >> What's going on? Is there a way to make dict() to resolve the variables? >Well yes. >dict(**{a:0,b:1}) >The dict() constructor makes a dictionary from keyword arguments. So you just >have to feed it

RE: Apache and suexec issue that wont let me run my python script

2013-06-04 Thread Carlos Nepomuceno
: Re: Apache and suexec issue that wont let me run my python script > From: nikos.gr...@gmail.com > To: python-list@python.org > > Τη Τρίτη, 4 Ιουνίου 2013 2:04:36 μ.μ. UTC+3, ο χρήστης Carlos Nepomuceno > έγραψε: > > send the output of the following command: > > ps aux|

RE: Beginner question

2013-06-04 Thread Carlos Nepomuceno
Started answering... now I'm asking! lol I've tried to use dict() to create a dictionary to use like the switch statement providing variable names instead of literals, such as: >>> a='A' >>> b='B' >>> {a:0,b:1}#here the variables are resolved {'A': 0, 'B': 1} That's ok! But if I use dict()

RE: Apache and suexec issue that wont let me run my python script

2013-06-04 Thread Carlos Nepomuceno
send the output of the following command: ps aux|grep httpd > Date: Tue, 4 Jun 2013 03:56:19 -0700 > Subject: Re: Apache and suexec issue that wont let me run my python script > From: nikos.gr...@gmail.com > To: python-list@python.org > > root@nikos [/home/nikos/www/cgi-bin]# chmod 755 /var/log

RE: Beginner question

2013-06-04 Thread Carlos Nepomuceno
> Date: Tue, 4 Jun 2013 00:53:04 -0700 > Subject: Re: Beginner question > From: john_lada...@sbcglobal.net > To: python-list@python.org > > On Monday, June 3, 2013 11:46:03 PM UTC-7, Carlos Nepomuceno wrote: > > That doesn't even works because input() is the same

RE: Beginner question

2013-06-03 Thread Carlos Nepomuceno
That doesn't even works because input() is the same as eval(raw_input()). So you'll get a NameError exception. I think you know that. Perhaps you mean raw_input() instead of input(). In that case the answer is yes, it can be more 'efficient' because the if-then-else clause always breaks the whil

RE: Apache and suexec issue that wont let me run my python script

2013-06-03 Thread Carlos Nepomuceno
> Date: Mon, 3 Jun 2013 17:23:16 -0600 > From: torr...@gmail.com > To: python-list@python.org > Subject: Re: Apache and suexec issue that wont let me run my python script > > On 06/03/2013 04:13 PM, Carlos Nepomuceno wrote: >>

RE: [RELEASED] Python 2.7.5

2013-06-03 Thread Carlos Nepomuceno
Thank you! :) > To: python-list@python.org > From: breamore...@yahoo.co.uk [...] >> What still doesn't work in Python 3? > > http://python3wos.appspot.com/ > >> >> Is Python 2.7.5 last (final, never to be updated) revision or will it still >> be supported?

RE: How to get an integer from a sequence of bytes

2013-06-03 Thread Carlos Nepomuceno
> Date: Mon, 3 Jun 2013 15:41:41 -0700 > Subject: Re: How to get an integer from a sequence of bytes > From: drsali...@gmail.com > To: python-list@python.org [...] > Today though, it would be difficult to sell a conventional (Von > Neumann) computer that didn'

RE: [RELEASED] Python 2.7.5

2013-06-03 Thread Carlos Nepomuceno
> From: na...@animats.com > Subject: Re: [RELEASED] Python 2.7.5 > Date: Mon, 3 Jun 2013 12:20:43 -0700 [...] > 3.x is a different language, with different libraries, and lots of > things that still don't work. Many old applications will never > be converted

RE: Source code as text/plain

2013-06-03 Thread Carlos Nepomuceno
> Date: Mon, 3 Jun 2013 09:06:46 +1000 > From: c...@zip.com.au > To: c...@rebertia.com [...] > http://hg.python.org/cpython/raw-file/tip/Lib/string.py What's the 'tip' tag? -- http://mail.python.org/mailman/listinfo/pyt

RE: Apache and suexec issue that wont let me run my python script

2013-06-03 Thread Carlos Nepomuceno
> From: a...@sci.fi > Subject: Re: Apache and suexec issue that wont let me run my python script > Date: Mon, 3 Jun 2013 18:20:00 +0300 > To: python-list@python.org > > Νικόλαος Κούρας writes: > >> [code] >> root@nikos [/home/nikos/www/cgi-bin]# chmod g+w /

RE: [Python-Dev] New FreeBSD 10.0-CURRENT buildbot

2013-06-03 Thread Carlos Nepomuceno
> Date: Sun, 2 Jun 2013 13:43:24 -0700 > Subject: Re: [Python-Dev] New FreeBSD 10.0-CURRENT buildbot > From: drsali...@gmail.com > To: carlosnepomuc...@outlook.com > CC: python-...@python.org > > > On Sun, Jun 2, 2013 at 12:

RE: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-02 Thread Carlos Nepomuceno
Hey guys! Come on!!! Repeat with me: "Googsfraba!" http://www.youtube.com/watch?v=Fscuv4PIjws lol > To: python-list@python.org > From: breamore...@yahoo.co.uk > Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain) > Date: Sun, 2

RE: Python Magazine

2013-06-01 Thread Carlos Nepomuceno
> Date: Fri, 31 May 2013 04:11:06 -0700 > Subject: Re: Python Magazine > From: rama29...@gmail.com > To: python-list@python.org > > Hello all, > Was busy with work. Finally finished the job of registering the domain name. > Will be live soon. The url is http

RE: Short-circuit Logic

2013-06-01 Thread Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: Short-circuit Logic > Date: Fri, 31 May 2013 08:45:13 + > To: python-list@python.org > > On Fri, 31 May 2013 17:09:01 +1000, Chris Angelico wrote: > >> On Fri, May 31, 2013 at 3:13 PM, Steven D'

RE: Short-circuit Logic

2013-05-30 Thread Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: Short-circuit Logic > Date: Fri, 31 May 2013 05:13:51 + > To: python-list@python.org > > On Fri, 31 May 2013 00:03:13 +0300, Carlo

RE: Short-circuit Logic

2013-05-30 Thread Carlos Nepomuceno
> To: python-list@python.org > From: wlfr...@ix.netcom.com > Subject: Re: Short-circuit Logic > Date: Thu, 30 May 2013 19:38:31 -0400 > > On Thu, 30 May 2013 08:48:59 -0400, Roy Smith declaimed > the following in gmane.comp.python.general: > >> >> Analysis

RE: Building a HPC data assimilation system using Python?

2013-05-30 Thread Carlos Nepomuceno
Hi Matthew! I'm on a similar quest! I'm still learning the basics of Python so I may not be a good source of information. I'm reading a lot of stuff about how to use Python for the parallelization of code and data and found BSP[1] to be very interesting and perhaps worth the time to learn it!

RE: Python toplevel in a Web page

2013-05-30 Thread Carlos Nepomuceno
> From: nob...@nowhere.org > Subject: Python toplevel in a Web page > Date: Thu, 30 May 2013 14:20:18 +0200 > To: python-list@python.org > > Hello, > I wonder if I can find some source code example > of a Python 3 toplevel box in a Web page. > Something simp

RE: Short-circuit Logic

2013-05-30 Thread Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: Short-circuit Logic > Date: Thu, 30 May 2013 05:42:17 + > To: python-list@python.org [...] > Here's another way, mathematically equivalent (although not necessarily > equivalent using floating p

RE: Piping processes works with 'shell = True' but not otherwise.

2013-05-29 Thread Carlos Nepomuceno
Am 27.05.2013 02:14 schrieb Carlos Nepomuceno: >> pipes usually consumes disk storage at '/tmp'. > > Good that my pipes don't know about that. > > Why should that happen? > > > Thomas > -- > http://mail.python.org/mailman/listinfo/python-list Ooops!

RE: Python #ifdef

2013-05-28 Thread Carlos Nepomuceno
> Date: Tue, 28 May 2013 18:25:59 -0400 > Subject: Re: Python #ifdef > From: joel.goldst...@gmail.com > To: breamore...@yahoo.co.uk > CC: python-list@python.org [...] > > my original response was from cell phone. I just answered that you > can't do ifdefs,

RE: Future standard GUI library

2013-05-28 Thread Carlos Nepomuceno
> From: felip...@gmx.net > Subject: Re: Future standard GUI library > Date: Tue, 28 May 2013 19:26:55 +0200 > To: python-list@python.org > >> Please give me an example of a "suitable transport layer for a RPC >> protocol". > > I won't give you an example, bu

RE: Python #ifdef

2013-05-28 Thread Carlos Nepomuceno
> From: invalid@invalid.invalid > Subject: Re: Python #ifdef > Date: Tue, 28 May 2013 20:42:34 + > To: python-list@python.org [...] > Here's the important lesson from this thread: > > Instead of asking "how do I write X in Python" where yoy've assumed X

RE: Python #ifdef

2013-05-28 Thread Carlos Nepomuceno
> Date: Tue, 28 May 2013 21:34:36 +0100 > Subject: RE: Python #ifdef > From: fabiosantos...@gmail.com > To: carlosnepomuc...@outlook.com > CC: python-list@python.org > > > On 28 May 2013 21:26, "Carlos Nepomuceno" >

RE: Python #ifdef

2013-05-28 Thread Carlos Nepomuceno
> From: invalid@invalid.invalid > Subject: Re: Python #ifdef [...] > You're trying to make this a lot harder than it really is: > > if sys.version_info[0] == 3: > def original(n): > m = 0 > for b in n.to_bytes(6, 'big'): > m = 256*m + b > return m > else: >

RE: Python #ifdef

2013-05-28 Thread Carlos Nepomuceno
Thank you! I made it run like the following. What do you think about that? IS there a better way? #The following runs on Python 2.7 sc3=''' # Python 3 def original(n):     m = 0     for b in n.to_bytes(6, 'big'):     m = 256*m + b     return m ''' if sys.version_info[0] == 3:     exec(sc3)

Python #ifdef

2013-05-28 Thread Carlos Nepomuceno
Are there Python 'preprocessor directives'? I'd like to have something like '#ifdef' to mix code from Python 2 and 3 in a single file. Is that possible? How? -- http://mail.python.org/mailman/listinfo/python-list

RE: Short-circuit Logic

2013-05-28 Thread Carlos Nepomuceno
> Date: Tue, 28 May 2013 01:39:09 -0700 > Subject: Re: Short-circuit Logic > From: abdulsh...@gmail.com [...] >> What Steven wrote is entirely correct: sys.float_info.epsilon is the >> >> smallest value x such that 1.0 and 1.0+x have distinct floating-point

RE: How to: Setuptools

2013-05-27 Thread Carlos Nepomuceno
> Date: Mon, 27 May 2013 20:54:53 -0700 > Subject: Re: How to: Setuptools > From: rustompm...@gmail.com [...] > > Oooff! Talk of using sledgehammers to crack nuts... > > All that is needed is to visit http://peak.telecommunity.com/dist/ez_setup.py > with the

RE: How to: Setuptools

2013-05-27 Thread Carlos Nepomuceno
> Date: Mon, 27 May 2013 19:57:47 -0700 > Subject: Re: How to: Setuptools > From: rustompm...@gmail.com > To: python-list@python.org > > On May 28, 6:45 am, Carlos Nepomuceno > wrote: >> curl -Ohttp://peak.telecommunity.com

RE: Minor consistency question in io.IOBase

2013-05-27 Thread Carlos Nepomuceno
> Date: Mon, 27 May 2013 14:22:17 -0700 > Subject: Minor consistency question in io.IOBase > From: dwight.g...@gmail.com > To: python-list@python.org > > Hi, so, I don't necessarily know if this is the right place to ask this > question since it's kindof a

RE: How to: Setuptools

2013-05-27 Thread Carlos Nepomuceno
curl -O http://peak.telecommunity.com/dist/ez_setup.py python ez_setup.py > Date: Mon, 27 May 2013 18:32:43 -0700 > Subject: How to: Setuptools > From: r...@aarden.us > To: python-list@python.org > > I would like to use easy_install, but can't figure out ho

RE: Total Beginner - Extracting Data from a Database Online (Screenshot)

2013-05-27 Thread Carlos Nepomuceno
> Date: Mon, 27 May 2013 17:58:00 -0700 > Subject: Re: Total Beginner - Extracting Data from a Database Online > (Screenshot) > From: logan.c.gra...@gmail.com > To: python-list@python.org [...] > > Oh goodness, yes, I have no clue. For example: # to retri

RE: How to get an integer from a sequence of bytes

2013-05-27 Thread Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: How to get an integer from a sequence of bytes > Date: Mon, 27 May 2013 15:00:39 + > To: python-list@python.org > > On Mon, 27 May 2013 16:45:05 +0200, Mok-Kong Shen wrote: > >> From an int one

RE: Python error codes and messages location

2013-05-27 Thread Carlos Nepomuceno
Thanks so much guys! I'm not planning to prepare for every possible situation, but I certainly am responsible to handle most common errors. So it's really important to know what a function/method returns when called. Exception handling may take lots of code, but I'm used to it. It's much better

RE: Python error codes and messages location

2013-05-26 Thread Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: Python error codes and messages location > Date: Mon, 27 May 2013 00:53:41 + > To: python-list@python.org > > On Mon, 27 May 2013 02:13:54 +0300, Carlos Nepomuceno wrote: >

RE: Piping processes works with 'shell = True' but not otherwise.

2013-05-26 Thread Carlos Nepomuceno
pipes usually consumes disk storage at '/tmp'. Are you sure you have enough room on that filesystem? Make sure no other processes are competing against for that space. Just my 50c because I don't know what's causing Errno 0. I don't even know what are the possible causes of such error. Good luck

Python error codes and messages location

2013-05-26 Thread Carlos Nepomuceno
Where can I find all error codes and messages that Python throws (actual codes and messages from exceptions raised by stdlib)? I've already found the module 'errno' and got a dictionary (errno.errorcode) and some system error messages (os.strerror(errno.ENAMETOOLONG)) but there's more I couldn'

RE: Cutting a deck of cards

2013-05-26 Thread Carlos Nepomuceno
> Date: Mon, 27 May 2013 08:42:56 +1000 > Subject: Re: Cutting a deck of cards > From: ros...@gmail.com [...] > Easy. Just grab the standard installer and hit it. You'll get two > separate directories (or more; I have \Python26, \Python27, \Python32, > \Pyth

RE: Cutting a deck of cards

2013-05-26 Thread Carlos Nepomuceno
> To: python-list@python.org > From: breamore...@yahoo.co.uk [...] > Wrong if you're using Python 3 :( > > -- > If you're using GoogleCrap™ please read this > http://wiki.python.org/moin/GoogleGroupsPython. > > Mark Lawrence Thanks guys! I've been delaying

RE: Encodign issue in Python 3.3.1 (once again)

2013-05-26 Thread Carlos Nepomuceno
> To: python-list@python.org > From: breamore...@yahoo.co.uk [...] > No wonder the Greek economy is so screwed up. > > -- > If you're using GoogleCrap™ please read this > http://wiki.python.org/moin/GoogleGroupsPython. > > Mark Lawrence LOL LOL LOL LOL LOL

RE: Cutting a deck of cards

2013-05-26 Thread Carlos Nepomuceno
> From: usenetm...@solar-empire.de [...] > Not in Python3.x decks = 6 list(range(13 * 4 * decks)) == range(13 * 4 * decks) > False > > Adiaŭ > Marc What does "list(range(13 * 4 * decks))" returns in Python 3?

RE: Help with implementing callback functions using ctypes

2013-05-26 Thread Carlos Nepomuceno
https://cffi.readthedocs.org/en/release-0.6/ > Date: Sun, 26 May 2013 09:12:10 -0700 > Subject: Re: Help with implementing callback functions using ctypes > From: samj...@gmail.com > To: python-list@python.org > > On Friday, May 24, 2013 8:56:28 AM UTC+5:30

RE: Future standard GUI library

2013-05-26 Thread Carlos Nepomuceno
> From: felip...@gmx.net > Subject: Re: Future standard GUI library > Date: Sun, 26 May 2013 19:43:10 +0200 > To: python-list@python.org [...] > one, HTTP will never be a suitable transport layer for a RPC protocol. > > Sincerely, > > Wolfgang Please give

RE: Solving the problem of mutual recursion

2013-05-26 Thread Carlos Nepomuceno
> Date: Sun, 26 May 2013 11:13:12 -0700 > Subject: Re: Solving the problem of mutual recursion > From: peter.h.m.bro...@gmail.com > To: python-list@python.org [...] >> How can you get 140% of CPU? IS that a typo?? >> > No, on a multi-core machine it's normal

RE: Cutting a deck of cards

2013-05-26 Thread Carlos Nepomuceno
> Date: Sun, 26 May 2013 10:52:14 -0700 > Subject: Cutting a deck of cards > From: rvinc...@gmail.com > To: python-list@python.org > > Suppose I have a deck of cards, and I shuffle them > > import random > cards = [] > decks = 6 > cards = list(range(13 * 4 *

RE: Solving the problem of mutual recursion

2013-05-26 Thread Carlos Nepomuceno
> Date: Sun, 26 May 2013 10:21:05 -0700 > Subject: Re: Solving the problem of mutual recursion > From: peter.h.m.bro...@gmail.com > To: python-list@python.org > > On May 26, 5:09 pm, Jussi Piitulainen > wrote: >> >> A light-weighter way is to have each task

RE: TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'

2013-05-26 Thread Carlos Nepomuceno
> Date: Sun, 26 May 2013 06:00:51 -0700 > Subject: Re: TypeError: unsupported operand type(s) for %: 'NoneType' and > 'tuple' > From: nikos.gr...@gmail.com > To: python-list@python.org > > Anyone seeign somethign wrong? > -- > http://mail.python.org/mailman

RE: Python Magazine

2013-05-25 Thread Carlos Nepomuceno
> Date: Sun, 26 May 2013 14:31:57 +1000 > Subject: Re: Python Magazine > From: ros...@gmail.com > To: python-list@python.org [...] > I expect that IP blocks will be upgraded to /64 block blocks, if that > starts being a problem. But it often won't, and speci

RE: CrazyHTTPd - HTTP Daemon in Python

2013-05-25 Thread Carlos Nepomuceno
Your code isn't threaded. I suggest you consider[1] and take that road! ;) Good luck! [1] http://bulk.fefe.de/scalable-networking.pdf > To: python-list@python.org > From: breamore...@yahoo.co.uk > Subject: Re: CrazyHTTPd - HTTP Daemon in Python > Date: Su

RE: Python Magazine

2013-05-25 Thread Carlos Nepomuceno
> Date: Sat, 25 May 2013 20:04:28 -0700 > Subject: Re: Python Magazine > From: john_lada...@sbcglobal.net > To: python-list@python.org > > A perfectly fair point, Roy. It's just when you started suggesting connecting > to your neighbor's file server -- well

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> Date: Fri, 24 May 2013 23:05:17 -0700 > Subject: Re: help how to sort a list in order of 'n' in python without using > inbuilt functions?? > From: lokeshkopp...@gmail.com [...] > ya steven i had done the similar logic but thats not satisfying my professo

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> Date: Sun, 26 May 2013 03:23:44 +1000 > Subject: Re: help how to sort a list in order of 'n' in python without using > inbuilt functions?? > From: ros...@gmail.com > To: python-list@python.org > > On Sun, May 26, 201

RE: Python Magazine

2013-05-25 Thread Carlos Nepomuceno
> From: r...@panix.com > Subject: Re: Python Magazine > Date: Sat, 25 May 2013 11:24:03 -0400 > To: python-list@python.org > > In article , > Chris Angelico wrote: > >>> Also, comparison of Python flavors (CPython, PyPy, Cython, Stackles, etc.) > > Stackles

RE: Learning Python

2013-05-25 Thread Carlos Nepomuceno
> Date: Sat, 25 May 2013 18:11:11 +0530 > Subject: Learning Python > From: pythona...@gmail.com > To: Python-list@python.org > > Hi All , > > I have started leaning Python through web . Would like to know > if I should follow any book so that ba

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> Date: Sun, 26 May 2013 01:41:58 +1000 > Subject: Re: help how to sort a list in order of 'n' in python without using > inbuilt functions?? > From: ros...@gmail.com > To: python-list@python.org > > On Sun, May 26, 2013 at 12:28 AM, Steven D'Aprano > wrote

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: help how to sort a list in order of 'n' in python without using > inbuilt functions?? > Date: Sat, 25 May 2013 14:28:33 + > To: python-list@python.org > > On Sat, 25 May 2013 19:14:57 +1000, Ch

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> To: python-list@python.org > From: breamore...@yahoo.co.uk > Subject: Re: help how to sort a list in order of 'n' in python without using > inbuilt functions?? > Date: Sat, 25 May 2013 13:01:06 +0100 [...] > In my book this is another fail as lists are in

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
ist@python.org > > On Sat, May 25, 2013 at 7:10 PM, Carlos Nepomuceno > wrote: >> >>> Date: Sat, 25 May 2013 19:01:09 +1000 >>> Subject: Re: help how to sort a list in order of 'n' in python without >>

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> Date: Sat, 25 May 2013 19:01:09 +1000 > Subject: Re: help how to sort a list in order of 'n' in python without using > inbuilt functions?? > From: ros...@gmail.com > To: python-list@python.org [...] > Very good. You are now in a position to get past the l

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
ist@python.org > > On Sat, May 25, 2013 at 6:43 PM, Carlos Nepomuceno > wrote: >> >> lol I forgot to include this monkey patch! ;) >> >> def length(l): >> x=0 >> y=l[:] >> while y: >> x+=1 >> y.p

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> Date: Sat, 25 May 2013 18:28:32 +1000 > Subject: Re: help how to sort a list in order of 'n' in python without using > inbuilt functions?? > From: ros...@gmail.com > To: python-list@python.org > > On Sat, May 25, 201

RE: help how to sort a list in order of 'n' in python without using inbuilt functions??

2013-05-25 Thread Carlos Nepomuceno
> Date: Fri, 24 May 2013 23:05:17 -0700 > Subject: Re: help how to sort a list in order of 'n' in python without using > inbuilt functions?? > From: lokeshkopp...@gmail.com > To: python-list@python.org [...] > ya steven i had done the similar logic but that

RE: Python Magazine

2013-05-24 Thread Carlos Nepomuceno
> Date: Fri, 24 May 2013 21:10:02 -0700 > Subject: Re: Python Magazine > From: rama29...@gmail.com > To: python-list@python.org > > On Saturday, May 25, 2013 9:13:56 AM UTC+5:30, Carlos Nepomuceno wrote: >> In-depth articles abo

  1   2   >