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
> 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
> 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
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
> 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
> 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
> 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
> 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
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
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)
> 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:
>
> 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"
>
> 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
> 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
> 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,
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!
> 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
> 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
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!
> 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
> 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
> 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'
> 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
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
> 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:
> 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 /
> 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
> 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
> 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'
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?
> 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:
>>
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
> 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
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
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
> 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|
>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
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
> 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
> έγραψε:
> >
> 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
> έγραψε:
> &
> 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
> 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
>
> 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 [~
> 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.
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
> 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)
> 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)?
--
http://mail.python.org/mailman/listinfo/python-list
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
> 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
> 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
> 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
> 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
> 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
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
: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
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
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
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_
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
> 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'
> 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
> 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:
>>
>>>
> 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
> 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
> 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:
>> --
> 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
> 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
> 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
> 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:
&
' 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,
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! ;
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
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
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,
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
, 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.
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
;
> 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
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
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
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:
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
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_
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
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
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
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
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
#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
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
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
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
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
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 --
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
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.
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
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
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
101 - 200 of 294 matches
Mail list logo