I am pleased to announce Version 1.0 of bliptv.reader, a package for
easy access to videos hosted on blip.tv. You can get it via PyPI:
http://pypi.python.org/pypi/bliptv.reader
What is bliptv.reader?
--
bliptv.reader is a Python wrapper around the API of video hosting
Colin J. Williams wrote:
Russ P. wrote:
class MyClass:
def func( , xxx, yyy):
.xxx = xxx
local = .yyy
The use of nothing'.' has been suggested before and rejected.
--
http://mail.python.org/mailman/listinfo/python-list
Torsten Bronger wrote:
No more than Python 3.0 breaks.
This proposal would break 3.0 code without sufficient reason.
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 26, 11:18 pm, Terry Reedy [EMAIL PROTECTED] wrote:
Colin J. Williams wrote:
Russ P. wrote:
class MyClass:
def func( , xxx, yyy):
.xxx = xxx
local = .yyy
The use of nothing'.' has been suggested before and rejected.
Where and why?
--
Russ P. wrote:
On Jul 26, 2:25 pm, Terry Reedy
There is a lot of code you have not seen. Really. In informal code I
use 's' and 'o' for 'self' and 'other'. I don't usually post such
because it is not considered polite. So you have seen a biased sample
of the universe.
You take the name
Mensanator wrote:
I don't know why you're using stdin if you're reading from a file.
From Francesco's initial post in his previous thread I inferred that he had
a script like
f = open(xxx.pdb)
for line in f:
# process line
print line
and was calling it
python script.py outfile
My
On Jul 26, 11:22 pm, Terry Reedy [EMAIL PROTECTED] wrote:
Russ P. wrote:
On Jul 26, 2:25 pm, Terry Reedy
There is a lot of code you have not seen. Really. In informal code I
use 's' and 'o' for 'self' and 'other'. I don't usually post such
because it is not considered polite. So you
On 26 Jul., 19:20, Michele Simionato [EMAIL PROTECTED]
wrote:
On Jul 26, 5:28 pm, [EMAIL PROTECTED] (Aahz) wrote:
IMO, you made a big mistake in combining your point with two other meaty
issues (whether method definitions should include self and whether !=
should use __eq__() as a
Terry Reedy [EMAIL PROTECTED] writes:
What he wants is to write
class foo:
def bar(arg):
self.whatever = arg + 1
instead of
class foo:
def bar(self, arg)
self.whatever = arg + 1
so 'self' should *automatically* only be inserted in the function
declaration, and
On Sun, 27 Jul 2008 10:23:06 +0800, Marcus.CM wrote:
Well after reading some of these posts on sacred python cow on the
self , i would generally feel that most programmers who started with
C++/Java would find it odd.
You know, there are some programmers who haven't started with C++ or Java.
On Sat, 26 Jul 2008 17:14:46 -0700, Russ P. wrote:
On Jul 26, 2:25 pm, Terry Reedy
There is a lot of code you have not seen. Really. In informal code I
use 's' and 'o' for 'self' and 'other'. I don't usually post such
because it is not considered polite. So you have seen a biased sample
On Sun, 2008-07-27 at 04:32 +, Tim Roberts wrote:
This doesn't do what you think it does. The parameter to rstrip is a set:
as long as the last character is in the set 'abcdhiloprs/', it will remove
it and check the next one. All of the characters in shop are in that
set.
Thanks for
Tim Roberts schreef:
[EMAIL PROTECTED] wrote:
For Win64-Itanium users: python-2.5.2.ia64.msi
For Win64-AMD64 users: python-2.5.2.amd64.msi
1. It looks like the 64 bit versions of Python for Windows are CPU
vendor specific, eg. it doesn't look like there's a single, universal
executable for
Lie wrote:
Question: Is there a way to list loaded modules, including those that
aren't in my namespace?
such as sys.modules?
Modules are not unloaded automatically just because you do not use them
yourselves. If the module is imported for whatever reason by whatever other
module, it stays
Giuen Interpose Outright Company – Huntingrifle, Ammunition, Optics,
Navigation – Surplus Rifle Sale – Pre-Owned Rifles – Precision Rifle -
Pistol
A New Generation Outright Company begun in 2008 the funding for a
battlefield data link that projected data onto a computer screen
inside for
On Jul 27, 3:48 pm, Stefan Behnel [EMAIL PROTECTED] wrote:
Lie wrote:
Question: Is there a way to list loaded modules, including those that
aren't in my namespace?
such as sys.modules?
Modules are not unloaded automatically just because you do not use them
yourselves.
I'm not surprised
On Sat, 26 Jul 2008 15:58:16 -0700, Carl Banks wrote:
On Jul 26, 5:07 pm, Terry Reedy [EMAIL PROTECTED] wrote:
Whether or not one should write 'if x' or 'if x != 0' [typo corrected]
depends on whether one means the general 'if x is any non-null object
for which bool(x) == True' or the
Aahz skrev:
Boy, am I glad we're not listed:
http://pwnie-awards.org/2008/awards.html
Now, how on earth can Todd Davis get the epic fail award when the
entire US identity system relies on security by marginal obscurity?
Talk about blaming the messenger...
/F
--
Hi folks,
I am trying to tee off both stdout and stderr from a process run
through Popen.
As a test, I am first trying to print the output below:
from subprocess import Popen,PIPE
...
p1 = Popen(['cvs', 'update'], stdout=PIPE, stderr=PIPE)
for (l1, l2) in zip(p1.stdout, p1.stderr):
print
On Jul 27, 4:26 pm, Russ P. [EMAIL PROTECTED] wrote:
On Jul 26, 11:18 pm, Terry Reedy [EMAIL PROTECTED] wrote:
The use of nothing'.' has been suggested before and rejected.
Where and why?
Google is your friend:
http://mail.python.org/pipermail/python-3000/2006-April/000793.html
--
On Sat, 26 Jul 2008 18:54:22 +, Robert Latest wrote:
Here's an interesting side note: After fixing my Channel thingy the
whole project behaved as expected. But there was an interesting hitch.
The main part revolves around another class, Sequence, which has a
list of Channels as attribute.
On Jul 27, 2:48 am, Russ P. [EMAIL PROTECTED] wrote:
If, as I wrote, you permit the omission of self in method signatures
defined within class definitions, then you could still insist on
instance attribute qualification using self - exactly as one would
when writing Java according to
Here's what I'm struggling with (as best as I can understand it):
I'm writing a program that uses functionality from two different sets of
cdlls which reside in two different directories, call them 'libA.dll' and
'libB.dll'. Although I don't directly use it, both directories contain a
dll with
I have seen somewhere that you can write something like:
x*x if x10
but exactly that doesn't work and I can't get any variation to work.
it is possible to nest with an else too.
how do you write it?
and also, is it idiomatic? doesn't seem to add functionality, just
another way of doing the
Randall Smith schrieb:
I'd like to bundle Python with my app, which will be targeted at Linux,
Windows and Mac. Discussions I've found about this tend to lead to
py2exe, freeze, etc, but I'd like to do something rather simple and am
seeking advice.
What I'd like to do is just copy the
ssecorp schrieb:
I have seen somewhere that you can write something like:
x*x if x10
but exactly that doesn't work and I can't get any variation to work.
it is possible to nest with an else too.
how do you write it?
and also, is it idiomatic? doesn't seem to add functionality, just
On Jul 27, 10:13 pm, ssecorp [EMAIL PROTECTED] wrote:
I have seen somewhere that you can write something like:
x*x if x10
but exactly that doesn't work and I can't get any variation to work.
It's called a ternary operator. The format is:
label = true-value if condition else false-value
it
wrote in news:7ae96aff-c1a7-4763-8db7-
[EMAIL PROTECTED] in comp.lang.python:
Hi folks,
I am trying to tee off both stdout and stderr from a process run
through Popen.
As a test, I am first trying to print the output below:
from subprocess import Popen,PIPE
...
p1 = Popen(['cvs',
I have a text file and contents are:
Help=
Code is written by xteam.
value = 0.0
How do I read this file like python syntax. What I mean is first
readline operation should return complete declaration of 'Help'
variable. If I evaluate this string then it should create a 'Help'
variable with
Lie wrote:
I'm more concerned about the number of modules imported by making an
error (from 30 on the startup to 187) and the side-effect of making an
error, which makes modules such as xml.*/email.* that previously
doesn't exist get imported out of the blue...
Using my system Python (2.5.1
King wrote:
I have a text file and contents are:
Help=
Code is written by xteam.
value = 0.0
How do I read this file like python syntax. What I mean is first
readline operation should return complete declaration of 'Help'
variable. If I evaluate this string then it should create a
On Sun, 27 Jul 2008 05:24:36 -0700 (PDT), alex23 [EMAIL PROTECTED] wrote:
On Jul 27, 10:13 pm, ssecorp [EMAIL PROTECTED] wrote:
I have seen somewhere that you can write something like:
x*x if x10
but exactly that doesn't work and I can't get any variation to work.
It's called a ternary
On Sun, Jul 27, 2008 at 10:17 AM, DaveM [EMAIL PROTECTED] wrote:
On Sun, 27 Jul 2008 05:24:36 -0700 (PDT), alex23 [EMAIL PROTECTED]
wrote:
On Jul 27, 10:13 pm, ssecorp [EMAIL PROTECTED] wrote:
I have seen somewhere that you can write something like:
x*x if x10
but exactly that doesn't
DaveM schrieb:
On Sun, 27 Jul 2008 05:24:36 -0700 (PDT), alex23 [EMAIL PROTECTED] wrote:
On Jul 27, 10:13 pm, ssecorp [EMAIL PROTECTED] wrote:
I have seen somewhere that you can write something like:
x*x if x10
but exactly that doesn't work and I can't get any variation to work.
It's
DaveM wrote:
On Sun, 27 Jul 2008 05:24:36 -0700 (PDT), alex23 [EMAIL PROTECTED] wrote:
On Jul 27, 10:13 pm, ssecorp [EMAIL PROTECTED] wrote:
I have seen somewhere that you can write something like:
x*x if x10
but exactly that doesn't work and I can't get any variation to
On Sun, 27 Jul 2008 16:41:19 +0200, Diez B. Roggisch wrote:
DaveM schrieb:
Getting back to the
list concatenation, I finally found the itertools.chain command which
is the most compact and fastest (or second fastest by a trivial amount,
I can't remember which). Along the way, I must have
Marc 'BlackJack' Rintsch schrieb:
On Sun, 27 Jul 2008 16:41:19 +0200, Diez B. Roggisch wrote:
DaveM schrieb:
Getting back to the
list concatenation, I finally found the itertools.chain command which
is the most compact and fastest (or second fastest by a trivial amount,
I can't remember
I might be misunderstanding OP but:
a+b+c+d+e is simple way of concatenating 5 lists...
as a function that takes any amount of lists and concatenates them:
def concat(*args):
c = []
for elem in args:
c += elem
return c
don't know if extend is faster or
On Jul 27, 1:41�am, Peter Otten [EMAIL PROTECTED] wrote:
Mensanator wrote:
I don't know why you're using stdin if you're reading from a file.
From Francesco's initial post in his previous thread I inferred that he had
a script like
f = open(xxx.pdb)
for line in f:
� � # process line
� �
On Jul 28, 1:26 am, ssecorp [EMAIL PROTECTED] wrote:
I might be misunderstanding OP but:
a+b+c+d+e is simple way of concatenating 5 lists...
as a function that takes any amount of lists and concatenates them:
def concat(*args):
c = []
for elem in args:
c +=
So import STDOUT and make stderr=STDOUT in the Popen call, you will then
have one file/pipe to deal with p1.stdout.
Thank you - that works great!
Mahesh
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 27 Jul 2008 16:57:14 +0200, Diez B. Roggisch [EMAIL PROTECTED]
wrote:
Marc 'BlackJack' Rintsch schrieb:
On Sun, 27 Jul 2008 16:41:19 +0200, Diez B. Roggisch wrote:
DaveM schrieb:
Getting back to the list concatenation, I finally found the
itertools.chain
command which is the most
DaveM wrote:
On Sun, 27 Jul 2008 16:57:14 +0200, Diez B. Roggisch [EMAIL PROTECTED]
wrote:
Marc 'BlackJack' Rintsch schrieb:
On Sun, 27 Jul 2008 16:41:19 +0200, Diez B. Roggisch wrote:
DaveM schrieb:
Getting back to the list concatenation, I finally found the
DaveM schrieb:
On Sun, 27 Jul 2008 16:57:14 +0200, Diez B. Roggisch [EMAIL PROTECTED]
wrote:
Marc 'BlackJack' Rintsch schrieb:
On Sun, 27 Jul 2008 16:41:19 +0200, Diez B. Roggisch wrote:
DaveM schrieb:
Getting back to the list concatenation, I finally found the itertools.chain
command
On Sat, 26 Jul 2008 21:46:31 -0700, s0suk3 wrote:
(It's true that C++ has more OO features than Python, like private/
public members, virtual methods, etc.
Oh yeah, again the discussion about `private`/`public` and if that's an
important OOP feature. :-)
Aren't *all* methods in Python
Hi
I have created a group called architectgurus (http://groups.google.com/
group/architectgurus) or [EMAIL PROTECTED] .
Irrespective of technology, vendor, domain I will be discussing and
share my thoughts in homogenous and harmonious way. If you are
interested even you can join and contribute
Steven D'Aprano wrote:
On Sun, 27 Jul 2008 10:23:06 +0800, Marcus.CM wrote:
Well after reading some of these posts on sacred python cow on the
self , i would generally feel that most programmers who started with
C++/Java would find it odd.
You know, there are some programmers who haven't
On Sun, 27 Jul 2008 16:41:19 +0200, Diez B. Roggisch [EMAIL PROTECTED]
wrote:
You obviously aren't aware of the pitfalls regarding the mis-use of or
and and for this usage.
snip example
Well, yes, I am (and the way around the problem), but as its never caught me
out (so far), I hadn't
Can you tell us what you mean by several names of one object? You mean
this?
a = range(10)
b = a
id(a) == id(b)
? Passing references instead of values is an extremely important concept
of many languages, without it you would end up copying most of the time.
OK. I've obviously been
DaveM wrote:
On Sun, 27 Jul 2008 16:57:14 +0200, Diez B. Roggisch [EMAIL PROTECTED]
You'll have guessed, I'm sure, that I'm not a professional programmer. This
was the third rewrite of a program to match candidate groups to examiners on
a three day course I run, necessitated on this occasion
On Jul 27, 2:56 am, Nikolaus Rath [EMAIL PROTECTED] wrote:
Terry Reedy [EMAIL PROTECTED] writes:
What he wants is to write
class foo:
def bar(arg):
self.whatever = arg + 1
instead of
class foo:
def bar(self, arg)
self.whatever = arg + 1
so 'self' should
On Jul 26, 4:08 am, Nikolaus Rath [EMAIL PROTECTED] wrote:
Terry Reedy [EMAIL PROTECTED] writes:
Nikolaus Rath wrote:
Terry Reedy [EMAIL PROTECTED] writes:
Torsten Bronger wrote:
Hallöchen!
And why does this make the implicit insertion of self difficult?
I could easily write a
- AMD64 (or x86-64 or x64 or EMT64 or Intel64) is a 64-bit instruction
set from AMD which is an extension to the i386 instruction set, and runs
32-bit (and 16-bit) i386-code natively. But, and this is important,
despite the name the instruction set is also used by Intel (though they
call it
Gary Herron wrote:
A = [1,2,3]
B = [4,5,6]
C = [7,8,9]
A+B+C
[1, 2, 3, 4, 5, 6, 7, 8, 9]
sum([A,B,C], [])
[1, 2, 3, 4, 5, 6, 7, 8, 9]
Careful now, this can be very slow. sum uses __add__, not __iadd__, which gives
this approach quadratic worst-case runtime.
- Anders
--
Hi, is there any possible way to get the class or class name inside a method
decorator? For example in the code sample below:
def decorate(func):
print type(func)
return func
class myclass:
@decorate
def foo(self):
pass
The output of this program will be the type of the supplied
On Jul 27, 3:11 am, alex23 [EMAIL PROTECTED] wrote:
On Jul 27, 4:26 pm, Russ P. [EMAIL PROTECTED] wrote:
On Jul 26, 11:18 pm, Terry Reedy [EMAIL PROTECTED] wrote:
The use of nothing'.' has been suggested before and rejected.
Where and why?
Google is your
On Sat, Jul 26, 2008 at 12:06:05AM -0400, Terry Reedy wrote:
There is no requirement to have 'self' in the parameter list.
But there is a requirement to have *something* which refers to the
object instance. Why can't this be implicit with a keyword defined in
python to refer to it?
So the
On Sun, 27 Jul 2008 09:28:28 -0700, Gary Herron [EMAIL PROTECTED]
wrote:
a = list(set(itertools.chain(*sessexam.values(
a.sort() #As I write I'm wondering if I really need it sorted. Hmm...
return a
Didn't someone already answer that. List addition and sum() both do
what
On Sun, Jul 27, 2008 at 08:13:53AM +, Steven D'Aprano wrote:
On Sun, 27 Jul 2008 10:23:06 +0800, Marcus.CM wrote:
Well after reading some of these posts on sacred python cow on the
self , i would generally feel that most programmers who started with
C++/Java would find it odd.
You
On Jul 27, 1:19 am, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Sat, 26 Jul 2008 17:14:46 -0700, Russ P. wrote:
You take the name down to a single letter. As I suggested in an earlier
post on this thread, why not take it down to zero letters?
The question isn't why not,
On Sun, 27 Jul 2008 19:46:32 +0200, Diez B. Roggisch [EMAIL PROTECTED]
wrote:
As a rule of thumb, don't return objects you didn't create inside a
function from scratch.
I wish I'd had that advice when I started learning python. It would have
saved me no end of grief.
DaveM
--
On Sun, Jul 27, 2008 at 08:19:17AM +, Steven D'Aprano wrote:
You take the name down to a single letter. As I suggested in an earlier
post on this thread, why not take it down to zero letters?
The question isn't why not, but why. The status quo works well as it
is, even if it isn't
Steven D'Aprano a écrit :
On Sat, 26 Jul 2008 18:54:22 +, Robert Latest wrote:
Here's an interesting side note: After fixing my Channel thingy the
whole project behaved as expected. But there was an interesting hitch.
The main part revolves around another class, Sequence, which has a
list
Russ P. wrote:
On Jul 26, 2:25 pm, Terry Reedy
There is a lot of code you have not seen. Really. In informal code I
use 's' and 'o' for 'self' and 'other'. I don't usually post such
because it is not considered polite. So you have seen a biased sample
of the universe.
You take the name
Torsten Bronger a écrit :
Hallöchen!
Bruno Desthuilliers writes:
Torsten Bronger a écrit :
(snip)
One could surely find ways to realise this. However, the design
goal should be: Make the frequent case simple, and the rare case
possible.
Given the (more and more prominent) use of
Marcus.CM a écrit :
Well after reading some of these posts on sacred python cow on the
self , i would generally feel that most programmers
who started with C++/Java would find it odd. And its true, i agree
completely there should not be a need to put self into every single
member function.
Russ P. a écrit :
On Jul 26, 11:22 pm, Terry Reedy [EMAIL PROTECTED] wrote:
Russ P. wrote:
On Jul 26, 2:25 pm, Terry Reedy
There is a lot of code you have not seen. Really. In informal code I
use 's' and 'o' for 'self' and 'other'. I don't usually post such
because it is not considered
Lawrence D'Oliveiro a écrit :
In message
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
Support OO but it doesn't have to? That sounds like saying that in
some Python implementations you'll be able to use OO, but that you
just might bump into a Python distribution ...
Change distribution to
Jordan a écrit :
(snip)
about Python Zen:
Perhaps we're just looking at an instance of a wider problem - smart
people boil good ideas down into short slogans, which are nice and
memorable and somewhat helpful, but can lead to bad consequences when
lots of others start overusing or
Can open two files in a with statement:
with open(src) as readin, open(dst,w) as writin: # WRONG: comma
doesn't work
...
-- so that you have transactional safety for two file descriptors?
The comma syntax doesn't work, but is there a way, except for
with open(src) as readin:
with
DaveM wrote:
On Sun, 27 Jul 2008 19:46:32 +0200, Diez B. Roggisch [EMAIL PROTECTED]
wrote:
As a rule of thumb, don't return objects you didn't create inside a
function from scratch.
Unless its job is specifically to get/fetch an object (reference
thereto) from someplace the caller cannot
a) Intellisense (tells you what classes/methods are available and what
variables go into a function)
b) Code Completion (guesses your code after four letters)
c) Data-Orientation; multiple data sessions can be open, data can be
viewed easily
Python's IDLE has only half of the first of these
braver schrieb:
Can open two files in a with statement:
with open(src) as readin, open(dst,w) as writin: # WRONG: comma
doesn't work
...
-- so that you have transactional safety for two file descriptors?
The comma syntax doesn't work, but is there a way, except for
with open(src) as
Derek Martin a écrit :
On Sun, Jul 27, 2008 at 08:19:17AM +, Steven D'Aprano wrote:
You take the name down to a single letter. As I suggested in an earlier
post on this thread, why not take it down to zero letters?
The question isn't why not, but why. The status quo works well as it
is,
Terry Reedy schrieb:
DaveM wrote:
On Sun, 27 Jul 2008 19:46:32 +0200, Diez B. Roggisch
[EMAIL PROTECTED]
wrote:
As a rule of thumb, don't return objects you didn't create inside a
function from scratch.
Unless its job is specifically to get/fetch an object (reference
thereto) from
Hello,
I need a round function that _always_ rounds to the higher integer if
the argument is equidistant between two integers. In Python 3.0, this
is not the advertised behavior of the built-in function round() as
seen below:
round(0.5)
0
round(1.5)
2
round(2.5)
2
I would think this is a
Hello folks ,I have a program in which a text file is generated as an output
eg
C:\prog\ prog -x test.txt
Right now whenever i have to read the test file i have to put its name
manually in my code.
eg
f=open(c:\\prog\\test.txt,r)
How ever i want to add the name of the test file dynamically to my
On Jul 27, 12:39 pm, Bruno Desthuilliers
[EMAIL PROTECTED] wrote:
Derek Martin a écrit :
On Sun, Jul 27, 2008 at 08:19:17AM +, Steven D'Aprano wrote:
You take the name down to a single letter. As I suggested in an earlier
post on this thread, why not take it down to zero letters?
On Sun, 27 Jul 2008 20:04:27 +0200, Bruno Desthuilliers wrote:
In general, anything that looks like this:
s = ''
for i in range(1): # or any big number
s = s + 'another string'
can be slow. Very slow.
But this is way faster:
s = ''
for i in range(1): # or any big
On Jul 27, 3:11 pm, Russ P. [EMAIL PROTECTED] wrote:
On Jul 27, 12:39 pm, Bruno Desthuilliers
[EMAIL PROTECTED] wrote:
Derek Martin a écrit :
On Sun, Jul 27, 2008 at 08:19:17AM +, Steven D'Aprano wrote:
You take the name down to a single letter. As I suggested in an earlier
On Sun, 27 Jul 2008 12:33:16 -0700, Russ P. wrote:
On Jul 27, 1:19 am, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Sat, 26 Jul 2008 17:14:46 -0700, Russ P. wrote:
You take the name down to a single letter. As I suggested in an
earlier post on this thread, why not take
On Sun, 27 Jul 2008 16:04:43 -0400, Colin J. Williams wrote:
For those who don't like the way the empty first argument looks, maybe
something like this could be allowed:
def fun( ., cat):
I don't see the need for the comma in fun.
tongue firmly in cheek
Or the parentheses and colon.
On 20Jul2008 00:08, Kay Schluehr [EMAIL PROTECTED] wrote:
| Google was not my friend on this one, and I suspect there is no
| answer.
|
| Even the Great Google can't help if you don't use the right
| keywords ;)
Actually, I was shown an useful Google search syntax the other day:
Searching
josh logan wrote:
Hello,
I need a round function that _always_ rounds to the higher integer if
the argument is equidistant between two integers. In Python 3.0, this
is not the advertised behavior of the built-in function round() as
seen below:
round(0.5)
0
round(1.5)
Where is the correct round() method?
Hello,
I need a round function that _always_ rounds to the higher integer if
the argument is equidistant between two integers. In Python 3.0, this
is not the advertised behavior of the built-in function round() as
seen below:
round(0.5)
0
it could be that 3.0 is using banker's rounding --- rounding to the
even digit. the idea behind it behind it being to reduce error
accumulation when working with large sets of values.
Works for me on Python 2.5 on Linux running on Intel(R) Core(TM)2 Duo
CPU. What system are you on?
It
On Jul 27, 7:58 pm, Gary Herron [EMAIL PROTECTED] wrote:
josh logan wrote:
Hello,
I need a round function that _always_ rounds to the higher integer if
the argument is equidistant between two integers. In Python 3.0, this
is not the advertised behavior of the built-in function round() as
On Jul 27, 8:45 pm, pigmartian [EMAIL PROTECTED] wrote:
it could be that 3.0 is using banker's rounding --- rounding to the
even digit. the idea behind it behind it being to reduce error
accumulation when working with large sets of values.
Works for me on Python 2.5 on Linux running on
(my apologies if this is a repost, but it sure seems like the first
attempt disappeared into the ether...)
I'm writing a program that uses functionality from two different sets of
cdlls which reside in two different directories, call them 'libA.dll'
and 'libB.dll'. Although I don't directly
Russ P. wrote:
On Jul 27, 12:39 pm, Bruno Desthuilliers
All I am suggesting is that the programmer have the option of
replacing self.member with simply .member, since the word self
is arbitrary and unnecessary.
I presume you are proposing the opposite also, that .member would
internally be
Russ P. wrote:
When I write a function in which a data member will be used several
times, I usually do something like this:
data = self.data
so I can avoid the clutter of repeated use of self.data.
Another reason people do this is for speed, even if self.data is used
just once but in
hi
i want to send unsigned 32 bit integer to socket, and looking for
something equivalent to this method...
http://livedocs.adobe.com/flex/2/langref/flash/net/Socket.html#writeUnsignedInt()
is there such method / library available in python?!
this is as far as i have gotten along
s =
Gary Herron wrote:
josh logan wrote:
I need a round function that _always_ rounds to the higher integer if
the argument is equidistant between two integers. In Python 3.0, this
is not the advertised behavior of the built-in function round() as
seen below:
round(2.5)
2
Huh?
josh logan wrote:
Hello,
I need a round function that _always_ rounds to the higher integer if
the argument is equidistant between two integers. In Python 3.0, this
is not the advertised behavior of the built-in function round() as
seen below:
round(0.5)
0
round(1.5)
2
round(2.5)
2
I
On Sun, 13 Jul 2008 00:58:59 +0200, Python.Arno wrote:
http://undefined.org/python/py2app.html
py2app bundles Python itself into the app, right? I wonder, is there no
way to create an app bundle that relies on the existing installation of
Python, since OS X already comes with Python? I have a
[EMAIL PROTECTED] wrote:
hi
i want to send unsigned 32 bit integer to socket, and looking for
something equivalent to this method...
http://livedocs.adobe.com/flex/2/langref/flash/net/Socket.html#writeUnsignedInt()
is there such method / library available in python?!
this is as far as i have
On Sun, Jul 27, 2008 at 7:01 PM, Larry Bates [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
i want to send unsigned 32 bit integer to socket, and looking for
something equivalent to this method...
http://livedocs.adobe.com/flex/2/langref/flash/net/Socket.html#writeUnsignedInt()
is there
[EMAIL PROTECTED] wrote:
On Sun, Jul 27, 2008 at 7:01 PM, Larry Bates [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
i want to send unsigned 32 bit integer to socket, and looking for
something equivalent to this method...
On Sun, Jul 27, 2008 at 7:17 PM, Larry Bates [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
On Sun, Jul 27, 2008 at 7:01 PM, Larry Bates [EMAIL PROTECTED]
wrote:
[EMAIL PROTECTED] wrote:
i want to send unsigned 32 bit integer to socket, and looking for
something equivalent to this
ok, I know its an over discussed topic. Althought I understand why it
is there I cant constantly see it in my argument list in parenthesis.
can someone give me an insight of the cons of a syntax like this:
class Class:
def self.method(arguments):
etc, etc
In other words def
1 - 100 of 155 matches
Mail list logo