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: 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: 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: 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: 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
> 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: 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: 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

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: 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)

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
> 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 > 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: 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
> 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: 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: 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: 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: 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: 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: 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-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: 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: 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-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: 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: 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: [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: 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
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: 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: 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: 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: 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
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
: 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
>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
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: 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
> 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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
> 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: FTP without username and password

2022-12-07 Thread Carlos Bermúdez
El 6/12/2022 a las 9:32 p. m., Dennis Lee Bieber escribió: On Tue, 6 Dec 2022 20:42:42 +0100, ^Bart declaimed the following: I tried the written Python code but it needs to insert a username and password so it's a different service than TFTP but maybe there's also a code to do it in Python! ;

Python's Plugins for NetBeans 16

2023-04-04 Thread Carlos Fulqueris
sue that I should do differently. Thank you very much in advance. Best to all. Carlos Fulqueris +54 911 2251 9302 -- https://mail.python.org/mailman/listinfo/python-list

SSL/TLS certificate verification suddenly broken, Python 3 on Windows 10

2021-02-16 Thread Carlos Andrews
t appearing. I then uninstalled Python completely, rebooted and installed Python 3.9.1, downloaded from python.org. The first to commands to issue were: C:\Users\Carlos>python -V Python 3.9.1 C:\Users\Carlos>pip list PackageVersion -- --- pip20.2.3 setuptools 49.2.1 Could

Re: Python evolution: Unease

2005-01-04 Thread Carlos Ribeiro
ut it would solve the problem. > - Standard widget/windows toolkit: More standard than Tk? I may be wrong, but I think that most business developers expect more than Tk is able to offer... Canvas is great, but anyone who used more advanced toolkits (such as the ones available on Delphi, Java,

Re: How can engineers not understand source-code control?

2005-01-04 Thread Carlos Ribeiro
On Tue, 04 Jan 2005 15:52:03 +, Mark Carter <[EMAIL PROTECTED]> wrote: > I'm thinking that the I-Ching is a vast untapped resource for > programming wisdom, plus it makes it funny. LOL! +1 QOTW! -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogsp

Re: Python evolution: Unease

2005-01-05 Thread Carlos Ribeiro
, at some point in the future, be included in the stdlib... why not give these people some help, easing the integration? A recipe, or some code that can be provisionally included in Numarray itself (as a submodule), and then later migrated to the CSV module... it does make sense in the long run.

Re: Python evolution: Unease

2005-01-05 Thread Carlos Ribeiro
On Wed, 5 Jan 2005 19:25:37 +0100, Alex Martelli <[EMAIL PROTECTED]> wrote: > Carlos Ribeiro <[EMAIL PROTECTED]> wrote: >... > > > - IDE: Better than what? Than IDLE? Than Eclipse? Than SPE? Than > > > Pythonwin? > > > > I would like to s

Re: Python evolution: Unease

2005-01-06 Thread Carlos Ribeiro
; > The only problem I see is that it is not integrated with the official > docs, but this is a > minor issue, I think. The docs are great, but it took me some time to find them out after searching inside Python docs. This is not a minor issue IMHO. -- Carlos Ribeiro Consultoria

Re: Python evolution: Unease

2005-01-06 Thread Carlos Ribeiro
On Thu, 06 Jan 2005 22:11:22 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Carlos Ribeiro wrote: > > Couldn't a better document-writing interface be implemented? > > Such as: > http://www.python.org/moin/Documentation > > Or AMK's annotatable docs: &g

Re: Recent infoworld column

2005-01-08 Thread Carlos Ribeiro
nd so are the countless other unsung heroes of open source. For solving a host of vexing problems with quiet competence, and for doing it in ways that invite others to stand on their shoulders, I salute them all. """ That's recognition. Wow. -- Carlos Ribeiro Cons

Re: python3: 'where' keyword

2005-01-08 Thread Carlos Ribeiro
would lead to elegant & readable code, but there are still lots of things to consider: exception handling, fast name lookup in the "where" block, access to symbols outside the "where" block, just to name a few. -- Carlos Ribeiro Consultoria em Projetos blog:

Re: "A Fundamental Turn Toward Concurrency in Software"

2005-01-08 Thread Carlos Ribeiro
timized, and at least as fast (in the same order of magnitude, let's say) as any other competitive environment available. By native, it means that it has to be included in the standard distribution, and has to be as transparent and convenient as possible. In other words, it has to feel like a nati

Re: python3: 'where' keyword

2005-01-09 Thread Carlos Ribeiro
t(): > pass Interesting. It solves some of the issues with chosing a clear syntax for "design by contract" and other similar features that were being debated lately. I also thought about his one: ! def foo(x=calculate_default_value()): ! pass ! where: ! def calculate_

Re: The best way to do web apps with Python?

2005-01-09 Thread Carlos Ribeiro
7;s also natively multi-threaded, and supports advanced stuff such as gzip compression on the fly and XMLRPC. Disclaimer: I'm a contributor to CherryPy, so I'm biased. But I had evaluated both Karirgel and Quixote before settling up on CherryPy, and I see no reason to change

Re: pylibpcap and multiple threads

2005-01-24 Thread Carlos Ribeiro
not sure if the libpcap itself is supposed to be used this way - with multiple instances - but I assume that it should work (I never tried to open several instances of tcpdump at the same time). Also, check these links also, as they may be helpful to you: http://libdnet.sourceforge.net/ http://o

Re: Persistence design [was: RE: OT: why are LAMP sites slow?]

2005-02-04 Thread Carlos Ribeiro
tyle entries. It's filesystem based, fast (the website can use the working copy for nearly everything) and allows for versioning - something that its difficult to implement properly with low-end RDBMSs. It looks promising :-) -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: empty classes as c structs?

2005-02-05 Thread Carlos Ribeiro
rate branches of the if statement, you can as well use the if inside the class statement. It's perfectly valid. Of course, one still has to feed it with the 'with_spam' argument - but if 'with_spam' is a global, or if the class statement wrapped inside a function that def

Re: empty classes as c structs?

2005-02-05 Thread Carlos Ribeiro
where this will lead us. Other related problems are named tuples, and ordered attribute access. I deal with the later in MetaTemplate, but the former is out of scope for the library. In the long term, I wish Python grows a true record type. The semantic differences between records and

Re: empty classes as c structs?

2005-02-05 Thread Carlos Ribeiro
#x27;bag' name, including a recipe in Python. A bag is an arbitrary collection of objects. It's similar to a set. The cookbook code is at: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/259174 -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blo

Re: empty classes as c structs?

2005-02-07 Thread Carlos Ribeiro
w should attributes with different values be > combined?), I don't think Bunch/Namespace should have an __add__. For entirely unrelated reasons I did it for a bunch-like class of mine, and called it 'merge'. For this particular application it was a better name than update and appe

Re: empty classes as c structs?

2005-02-07 Thread Carlos Ribeiro
On Mon, 07 Feb 2005 13:31:20 -0700, Steven Bethard <[EMAIL PROTECTED]> wrote: > Carlos Ribeiro wrote: > > On Mon, 07 Feb 2005 11:50:53 -0700, Steven Bethard > > <[EMAIL PROTECTED]> wrote: > > > >>Michael Spencer wrote: > >> > >>>We

Re: empty classes as c structs?

2005-02-08 Thread Carlos Ribeiro
gs_ as opposed to lookups isn't clear though). Good point. The name 'namespace' kind of imples chaining, in the usual Pythonic sense... But I feel that by splitting this into two types (namespace & bunch) we may be making things overly complicated, and losing some of the power o

Re: empty classes as c structs?

2005-02-09 Thread Carlos Ribeiro
ope'. > > Even though we'll probably end up dropping the last couple as overengineering > things for the first pass, they're still interesting ideas to kick around. Another idea, maybe even more distantly related but still worthy keeping in mind: the 'named tuples' th

Re: Big development in the GUI realm

2005-02-09 Thread Carlos Ribeiro
d emphasis > > that this is an impersonal/generic "you" I reference) might be able to > > argue an exemption from the QT license. > > So maybe it's time to resurrect anygui, maybe in a simplified version > which can only interface to, say, PyQt or Tkinter -- &#

Re: Web framework

2005-03-10 Thread Carlos Ribeiro
small objects to serve. This usually means static content (icons & small gif files), and can be greatly accelerated by running CherryPy under a caching frontend - either Apache, or even squid in web acceleration mode work just fine. While you are at it, check also this page: http://www.cherrypy.org

Re: Web framework

2005-03-14 Thread Carlos Ribeiro
mplement the ZODB 'protocol' over a SVN backend... not sure about how things such as the authentication system would be mapped though. But it's an intriguing idea. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.

Re: pre-PEP generic objects

2004-11-30 Thread Carlos Ribeiro
e' assignment interface. This assignment can be done by a method of the generic clas itself, according either to the names of the member of the generics, or the order of the tuple, depending on the scenario. For now, that's all that I have to contribute into this discussion. There's

Re: module imports and memory usage

2004-12-01 Thread Carlos Ribeiro
llected? Just wondering... -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-PEP generic objects

2004-12-03 Thread Carlos Ribeiro
cal (probably for reasons deeply rooted in a bad academic experience :-), that may be a big "turn off". -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   >