On Thu, Jan 29, 2009 at 1:50 PM, Oleksiy Khilkevich
g...@asu.ntu-kpi.kiev.ua wrote:
Hello, everyone,
This may be a totally noob question, but since I am one, so here is it.
I have the following code (not something much of):
http://paste.debian.net/27204
The current code runs well, but the
On Jan 29, 4:50 pm, Oleksiy Khilkevich g...@asu.ntu-kpi.kiev.ua
wrote:
Hello, everyone,
This may be a totally noob question, but since I am one, so here is it.
I have the following code (not something much
of):http://paste.debian.net/27204
The current code runs well, but the problem is with
On Jan 29, 1:50 pm, Oleksiy Khilkevich g...@asu.ntu-kpi.kiev.ua
wrote:
Hello, everyone,
This may be a totally noob question, but since I am one, so here is it.
For the input function, python is expecting you to input a number or a
string. If you enter 'asd' without the '' then it thinks you
On Jan 30, 8:54 am, Wes James compte...@gmail.com wrote:
If I read a windows registry file with a line like this:
{C15039B5-C47C-47BD-A698-A462F4148F52}=v2.0|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Public|App=C:\\Program
Files\\LANDesk\\LDClient\\tmcsvc.exe|Name=LANDesk Targeted
if s.find('LANDesk') 0:
is True for a line which doesn't contain LANDesk; if you want the
opposite, try
if s.find('LANDesk') -1:
Or more pythonically, just use
if 'LANDesk' in s:
-tkc
--
http://mail.python.org/mailman/listinfo/python-list
mark.sea...@gmail.com wrote:
I'm trying to make a script environment with datatypes (or classes)
for accessing hardware registers. At the top level, I would like the
ability to bitwise ops if bit slice brackets are used, but if no
brackets are used, I would like it to write/read the whole
On Jan 30, 9:02 am, mark.sea...@gmail.com wrote:
I'm trying to make a script environment with datatypes (or classes)
for accessing hardware registers. At the top level, I would like the
ability to bitwise ops if bit slice brackets are used, but if no
brackets are used, I would like it to
On Jan 29, 8:33 pm, elsjaako elsja...@gmail.com wrote:
I think this means that the following could be said:
typedef void *HANDLE;
struct HMIDIIN##__ { int unused; }; typedef struct HMIDIIN##__
*HMIDIIN;
I figured this problem out (I'm sure there will be more...):
A handle should just be a
In article 498171a5$0$3681$426a7...@news.free.fr,
Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid
wrote:
Ron Garret a écrit :
In article mailman.8228.1233179089.3487.python-l...@python.org,
Aleksandar Radulovic a...@a13x.net wrote:
(snip)
Secondly, why are you
In article 498170d4$0$23718$426a7...@news.free.fr,
Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid
wrote:
Ron Garret a écrit :
I'm running a WSGI app under apache/mod_wsgi and I've noticed that
whenever I restart the server after making a code change it takes a very
I'm running mod_wsgi under apache (on Debian etch so it's a somewhat out
of date version, though I doubt that has anything to do with this issue).
I have a little test page that displays the process ID under which my
app is running, and some global state, so I can tell when the wsgi app
gets
On Jan 30, 9:55 am, Stef Mientki stef.mien...@gmail.com wrote:
def __repr__ ( self ) :
line = hex ( self.Value )
line = line [:2] + line [2:].upper()
return line
btw, I'm a hardware guy too, and therefor I've never understood why the
hex function returns lowercase ;-)
0xFF??
Thanks. So far these solutions will return strings. So I can't
really treat it like a variable, yet still perform bitslice on it,
since I need a special class to do bitslice and bit selection, but as
soon as I try to pass it into some other function to check a bit, I
gotta then do another
En Thu, 29 Jan 2009 13:05:11 -0200, Armin a...@nospam.org escribió:
I have frozen a running application which is using SQLite with py2exe.
When I start the exe file I see in the log file of the exe:
Traceback (most recent call last):
File dpconf.py, line 666, in ?
File dpconf.py, line
mark.sea...@gmail.com wrote:
Thanks. So far these solutions will return strings. So I can't
really treat it like a variable, yet still perform bitslice on it,
since I need a special class to do bitslice and bit selection, but as
soon as I try to pass it into some other function to check a bit,
mark.sea...@gmail.com wrote:
Thanks. So far these solutions will return strings. So I can't
really treat it like a variable, yet still perform bitslice on it,
since I need a special class to do bitslice and bit selection, but as
soon as I try to pass it into some other function to check a bit,
On Jan 29, 10:44 pm, elsjaako elsja...@gmail.com wrote:
On Jan 29, 9:36 pm, r rt8...@gmail.com wrote:
On Jan 29, 1:33 pm, elsjaako elsja...@gmail.com wrote:
There is a Python MIDI module, i think it is pyMIDI, have you checked
it out?
Thank you for the responce. Unfortunately, that
On Thu, 29 Jan 2009 08:15:57 -, Hendrik van Rooyen
m...@microcorp.co.za wrote:
Rhodri James rho...@wildebst.demon.co.uk wrote:
To: python-list@python.org
Sent: Thursday, January 29, 2009 6:12 AM
Subject: Re: Exec woes
On Wed, 28 Jan 2009 07:47:00 -, Hendrik van Rooyen
Ron Garret wrote:
My question is: is this supposed to be happening? Or is this an
indication that something is wrong, and if so, what?
You are probably just hitting a different instance of Apache, thus the
different process ID.
j
--
http://mail.python.org/mailman/listinfo/python-list
I'm trying to better understand descriptors and I've got a few questions
still after reading some sites. Here is what I 'think', but please let
me know if any of this is wrong as I'm sure it probably is.
First when accessing an attribute on a class or instance it must be
found. For an
In article rnospamon-a73662.15010729012...@news.gha.chartermi.net,
Ron Garret rnospa...@flownet.com wrote:
I'm running mod_wsgi under apache (on Debian etch so it's a somewhat out
of date version, though I doubt that has anything to do with this issue).
I have a little test page that
En Thu, 29 Jan 2009 14:04:49 -0200, Alejandro
alejandro.weinst...@gmail.com escribió:
I have Python program running under Linux, that create several
threads, and I want to now the corresponding PID of the threads.
In each of the threads I have
def run(self):
pid = os.getpid()
On Jan 30, 12:26 am, elsjaako elsja...@gmail.com wrote:
On Jan 29, 10:44 pm, elsjaako elsja...@gmail.com wrote:
On Jan 29, 9:36 pm, r rt8...@gmail.com wrote:
On Jan 29, 1:33 pm, elsjaako elsja...@gmail.com wrote:
There is a Python MIDI module, i think it is pyMIDI, have you checked
On Jan 29, 3:13 pm, Stef Mientki stef.mien...@gmail.com wrote:
mark.sea...@gmail.com wrote:
Thanks. So far these solutions will return strings. So I can't
really treat it like a variable, yet still perform bitslice on it,
since I need a special class to do bitslice and bit selection, but
Wes James wrote:
If I read a windows registry file with a line like this:
{C15039B5-C47C-47BD-A698-A462F4148F52}=v2.0|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Public|App=C:\\Program
Files\\LANDesk\\LDClient\\tmcsvc.exe|Name=LANDesk Targeted
Multicast|Edge=FALSE|
with this code:
En Thu, 29 Jan 2009 19:31:08 -0200, Uberman bhoo...@hotmail.com escribió:
You all seem to be pointing at the same thing, and on my system, I show:
C:\Users\Administratorftype python.file
python.file=D:\Python26\python.exe %1 %*
and
C:\Users\Administratorassoc .py
John Machin wrote:
On Jan 30, 9:02 am, mark.sea...@gmail.com wrote:
I'm trying to make a script environment with datatypes (or classes)
for accessing hardware registers. At the top level, I would like the
ability to bitwise ops if bit slice brackets are used, but if no
brackets are used, I
In article mailman.8321.1233272610.3487.python-l...@python.org,
Joshua Kugler jos...@joshuakugler.com wrote:
Ron Garret wrote:
My question is: is this supposed to be happening? Or is this an
indication that something is wrong, and if so, what?
You are probably just hitting a different
How can you make python round numbers to the nearest 5:
Example:
3 = 0
8 = 10
23.2 = 20
36 = 35
51.5 = 50
Thanks!
_
Twice the fun—Share photos while you chat with Windows Live Messenger.
En Thu, 29 Jan 2009 19:41:28 -0200, Robert Kern robert.k...@gmail.com
escribió:
On 2009-01-29 15:33, Alan G Isaac wrote:
On 1/29/2009 1:37 PM Chris Rebert apparently wrote:
Also, more fundamentally, Python is liberal in what it allows for the
parts of slices, so unifying slices with ranges
Hello,
I am trying to build python 2.6 on a machine (web server) that I do not have
root access to. (has 2.4 installed)
Python 2.5 builds fine, but I am getting an error when I run make for 2.6.1.
Here is the command line I am using:
../configure -prefix=/home/username/local-python/
En Thu, 29 Jan 2009 17:07:01 -0200, googler.1.webmas...@spamgourmet.com
escribió:
i have a problem. I compiled Python and the socket module so I got
this structure. (all on windows)
C:\test\dll_files\python25.dll
C:\test\my_app
C:\test\dll_files\DLLs\
C:\test\dll_files\python.exe
If I run
I been around the list for a while and rubbed sholders with some
pythonistas(some you would not beleieve if i told you) and i just
don't see a community spirit here.
Where are the community projects supporting Python? -- besides the
core devlopment. Seem s that nobody is interested unless their
On Jan 28, 10:17 pm, Peter Wang misterw...@gmail.com wrote:
On Jan 27, 3:16 pm,Reckonerrecko...@gmail.com wrote:
I'm not sure this is possible, but I would like to have
a list of objects
A=[a,b,c,d,...,z]
where, in the midst of a lot of processing I might do something like,
How can you make python round numbers to the nearest 5:
Example:
3 = 0
8 = 10
23.2 = 20
36 = 35
51.5 = 50
I'm not sure *any* rounding system will give those results. 3
should round up to 5 (not down to 0) and 23.2 should round up to
25 (not down to 20) in the same way that 8 rounds up
todp...@hotmail.com wrote:
How can you make python round numbers to the nearest 5:
Example:
3 = 0
8 = 10
23.2 = 20
36 = 35
51.5 = 50
Divide by 5, round the result, then multiply by 5.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 28, 1:21 pm, Stephen Chapman sc...@offenbachers.com wrote:
Has anyone Implemented the Quickbooks COM object in Python. If so can
you give me
an Idea of where to begin.
Thanks
Have you tried to contact the customer support team?
I have used them many times and they are very helpful.
On 1/29/2009 4:41 PM Robert Kern apparently wrote:
It allows (ab)uses like numpy.mgrid:
mgrid[0:10:11j]
array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.])
Ah of course.
Obvious now, but I had presumed some deeper magic in
that syntax, not recognizing that a
On Fri, Jan 30, 2009 at 9:02 AM, mark.sea...@gmail.com wrote:
I'm trying to make a script environment with datatypes (or classes)
for accessing hardware registers. At the top level, I would like the
ability to bitwise ops if bit slice brackets are used, but if no
brackets are used, I would
On Jan 29, 3:13 pm, Stef Mientki stef.mien...@gmail.com wrote:
mark.sea...@gmail.com wrote:
Thanks. So far these solutions will return strings. So I can't
really treat it like a variable, yet still perform bitslice on it,
since I need a special class to do bitslice and bit selection, but
On Fri, 30 Jan 2009 00:25:03 +0100, Stef Mientki wrote:
try this:
class MyRegClass ( int ) :
def __init__ ( self, value ) :
self.Value = value
def __repr__ ( self ) :
line = hex ( self.Value )
line = line [:2] + line [2:].upper()
return line
def __repr__(self):
The example give at
http://docs.python.org/reference/executionmodel.html#naming-and-binding
remains unchanged at
http://docs.python.org/3.0/reference/executionmodel.html#naming-and-binding
but the change to Python 3 list comprehensions now means the example
will fail even with list comprehension
In python, I set:
x=1
y=3
z = x
x = y
y = z
This gave me 3 1, which are the values of x and y swapped.
The following would have given me the same result:
x, y = y, x
But could the swapping be done using less extra memory than this? What is the
minimum amount of extra memory required to
Eric Kang wrote:
In python, I set:
x=1
y=3
z = x
x = y
y = z
This gave me 3 1, which are the values of x and y swapped.
The following would have given me the same result:
x, y = y, x
But could the swapping be done using less extra memory than this?
What is the minimum amount of extra memory
Where are the community projects supporting Python? -- besides the
core devlopment.
http://pypi.python.org/pypi
...which accidentally says There are currently 5597 packages here.
Not bad uh?
--- Giampaolo
http://code.google.com/p/pyftpdlib
--
Benjamin Kaplan benjamin.kaplan at case.edu writes:
First of all, you're right that might be confusing. I was thinking of
auto-detect as in check the platform and locale and guess what they usually
use. I wasn't thinking of it like the web browsers use it.I think it uses
On Jan 30, 11:01 am, Ron Garret rnospa...@flownet.com wrote:
In article mailman.8321.1233272610.3487.python-l...@python.org,
Joshua Kugler jos...@joshuakugler.com wrote:
Ron Garret wrote:
My question is: is this supposed to be happening? Or is this an
indication that something is
On Jan 30, 9:53 am, Ron Garret rnospa...@flownet.com wrote:
In article 498171a5$0$3681$426a7...@news.free.fr,
Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid
wrote:
Ron Garret a écrit :
In article mailman.8228.1233179089.3487.python-l...@python.org,
Aleksandar
On Jan 30, 12:29 am, Eric Kang y...@sfu.ca wrote:
In python, I set:
x=1
y=3
z = x
x = y
y = z
This gave me 3 1, which are the values of x and y swapped.
The following would have given me the same result:
x, y = y, x
But could the swapping be done using less extra memory than this?
I'd like to add bound functions to instances, and found the
instancemethod function in the new module. A few questions:
1. Why is instancemethod even needed? Its counter-intuitive (to me at
least) that assigning a function to a class results in bound functions
its instances, while assigning
I know this may be asking too much of Python, but you never know
unless you ask...
So now having a class that can be treated like an int as far as math
upon the instance name, and can be treated as in HDL simulators,
allowing bitslice and bitselect ops, I was stoked. Also reading back
the
On Jan 30, 10:21 am, r rt8...@gmail.com wrote:
I been around the list for a while and rubbed sholders with some
pythonistas(some you would not beleieve if i told you) and i just
don't see a community spirit here.
Seriously, how -old- are you? Twelve? Thirteen?
--
mark.sea...@gmail.com wrote:
Is there a way to lock down myInst so that it still refers to the
original object, and is there some special member that will allow me
to override the equals operator in this case? Or is that simply
blasphemous against everything Python holds sacred? Certainly
On Thu, 29 Jan 2009 16:29:11 -0800, Eric Kang wrote:
In python, I set:
x=1
y=3
z = x
x = y
y = z
This gave me 3 1, which are the values of x and y swapped. The following
would have given me the same result: x, y = y, x
Yes.
But could the swapping be done using less extra
On Thu, 29 Jan 2009 17:50:04 -0800, tony.clarke5 wrote:
On Jan 30, 12:29 am, Eric Kang y...@sfu.ca wrote:
In python, I set:
x=1
y=3
z = x
x = y
y = z
This gave me 3 1, which are the values of x and y swapped. The
following would have given me the same result: x, y = y, x
But could
On Thu, 29 Jan 2009 02:25:57 -0800, Chris Rebert wrote:
In addition to methods, Python has functions, which are not associated
with a class
Yes they are.
(lambda: None).__class__
type 'function'
The function type itself has a class:
(lambda: None).__class__.__class__
type 'type'
--
schickb wrote:
I'd like to add bound functions to instances, and found the
instancemethod function in the new module. A few questions:
1. Why is instancemethod even needed? Its counter-intuitive (to me at
least) that assigning a function to a class results in bound functions
its instances,
Alan G Isaac wrote:
The example give at
http://docs.python.org/reference/executionmodel.html#naming-and-binding
remains unchanged at
http://docs.python.org/3.0/reference/executionmodel.html#naming-and-binding
but the change to Python 3 list comprehensions now means the example
will fail even
On Thu, Jan 29, 2009 at 7:31 PM, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Thu, 29 Jan 2009 02:25:57 -0800, Chris Rebert wrote:
In addition to methods, Python has functions, which are not associated
with a class
Yes they are.
(lambda: None).__class__
type 'function'
On Thu, 29 Jan 2009 18:26:34 -0600, Tim Chase wrote:
How can you make python round numbers to the nearest 5:
Example:
3 = 0
8 = 10
23.2 = 20
36 = 35
51.5 = 50
I'm not sure *any* rounding system will give those results.
Round towards zero.
3 should round up to 5 (not down to 0)
On Jan 29, 7:38 pm, Mel mwil...@the-wire.com wrote:
schickb wrote:
I'd like to add bound functions to instances, and found the
instancemethod function in the new module. A few questions:
1. Why is instancemethod even needed? Its counter-intuitive (to me at
least) that assigning a
Erik Max Francis wrote:
mark.sea...@gmail.com wrote:
Is there a way to lock down myInst so that it still refers to the
original object, and is there some special member that will allow me
to override the equals operator in this case? Or is that simply
blasphemous against everything Python
Hey guys,
I have been search the net for a bit now and can't find anything. What
I would like to do is be able to log into a site that uses cookies to
store information about the user when logging in. This works fine and
dandy with ClientCookie. Now, I want to be able to do so with a proxy,
does
alex23 wuwe...@gmail.com writes:
On Jan 30, 10:21 am, r rt8...@gmail.com wrote:
I been around the list for a while and rubbed sholders with some
pythonistas(some you would not beleieve if i told you) and i just
don't see a community spirit here.
Seriously, how -old- are you? Twelve?
On Jan 29, 9:01 pm, alex23 wuwe...@gmail.com wrote:
Seriously, how -old- are you? Twelve? Thirteen?
Ah, my good friend alex23.
Somehow -- when i was writing this post -- i knew you would drop in
and i swear i do not have any ESP abilities -- somehow i just knew.
While your here why don't we
En Thu, 29 Jan 2009 22:19:18 -0200, Bernard Rankin beranki...@yahoo.com
escribió:
I am trying to build python 2.6 on a machine (web server) that I do not
have root access to. (has 2.4 installed)
Python 2.5 builds fine, but I am getting an error when I run make for
2.6.1.
Does anyone know where I would find libsudo ?
If you had the choice of using pexpect or libsudo, which would you use ?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 29, 5:51 pm, anders anders.u.pers...@gmail.com wrote:
if file.findInFile(LF01):
Is there any library like this ??
Best Regards
Anders
Yea, it's called a for loop!
for line in file:
if string in line:
do_this()
--
http://mail.python.org/mailman/listinfo/python-list
schi...@gmail.com wrote:
On Jan 29, 7:38 pm, Mel mwil...@the-wire.com wrote:
schickb wrote:
I'd like to add bound functions to instances, and found the
instancemethod function in the new module. A few questions:
1. Why is instancemethod even needed? Its counter-intuitive (to me
linuxguy...@gmail.com wrote:
Does anyone know where I would find libsudo ?
http://sourceforge.net/projects/libsudo
If you had the choice of using pexpect or libsudo, which would you use ?
libsudo does all the work for you of executing sudo, checking for the
expected responses and all.
On Thu, 29 Jan 2009 16:06:09 -0800
todp...@hotmail.com todp...@hotmail.com wrote:
How can you make python round numbers to the nearest 5:
Example:
3 = 0
8 = 10
23.2 = 20
36 = 35
51.5 = 50
That appears to be rounding to nearest 10, not 5. Clarify your
requirements first.
--
D'Arcy
On Jan 30, 8:31 am, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Thu, 29 Jan 2009 17:50:04 -0800, tony.clarke5 wrote:
On Jan 30, 12:29 am, Eric Kang y...@sfu.ca wrote:
In python, I set:
x=1
y=3
z = x
x = y
y = z
This gave me 3 1, which are the values of x and
On 2009-01-30, MRAB goo...@mrabarnett.plus.com wrote:
What is the minimum amount of extra memory required to exchange two
32-bit quantities? What would be the pseudocode that achieves this
minimum?
x ^= y
y ^= x
x ^= y
This is really only of use when working in assembly language.
And
On Jan 29, 6:21 pm, r rt8...@gmail.com wrote:
Also if anyone dares to mention that Python is a great language or
better in this reguard or that, they get jumped and beat to death by
their so-called brothers.
This observation leads me to two scientific and common sense synopsis.
Either nobody
On Jan 30, 2:56 pm, r rt8...@gmail.com wrote:
On Jan 29, 5:51 pm, anders anders.u.pers...@gmail.com wrote:
if file.findInFile(LF01):
Is there any library like this ??
Best Regards
Anders
Yea, it's called a for loop!
for line in file:
if string in line:
do_this()
Which
On Thu, Jan 29, 2009 at 7:26 PM, Tim Chase wrote:
How can you make python round numbers to the nearest 5:
Example:
3 = 0
8 = 10
23.2 = 20
36 = 35
51.5 = 50
I'm not sure *any* rounding system will give those results.
def bogoround(n):
n1 = n / 5.0
return int(round(n1) if n1 % 2
On Fri, Jan 30, 2009 at 3:38 PM, r rt8...@gmail.com wrote:
This observation leads me to two scientific and common sense synopsis.
Either nobody here gives a rats pa'toote about Python, and/or they are
all just a bunch of gutless worms too afraid to stand up to the 10 or
so Perl/Ruby leeches
On Jan 30, 12:06 pm, blackcapsoftw...@gmail.com wrote:
I would like to do is be able to log into a site that uses cookies to
store information about the user when logging in. This works fine and
dandy with ClientCookie. Now, I want to be able to do so with a proxy,
urllib2
On Jan 30, 4:19 am, Michael Torrie torr...@gmail.com wrote:
M Kumar wrote:
but still I am not clear of the execution of the code, when we write or
execute a piece of python code without defining class, predefined class
attributes are available (not all but __name__ and __doc__ are
On Jan 30, 4:19 am, Michael Torrie torr...@gmail.com wrote:
M Kumar wrote:
but still I am not clear of the execution of the code, when we write or
execute a piece of python code without defining class, predefined class
attributes are available (not all but __name__ and __doc__ are
On Jan 30, 4:19 am, Michael Torrie torr...@gmail.com wrote:
M Kumar wrote:
but still I am not clear of the execution of the code, when we write or
execute a piece of python code without defining class, predefined class
attributes are available (not all but __name__ and __doc__ are
On Jan 30, 4:00 pm, Hung Vo hungv...@gmail.com wrote:
Does Python follow the concepts/practices of Encapsulation,
Polymorphism and Interface, which are quite familiar to Java
programmers?
Well, it has the same _concepts_, but definitely not the same
practices/implementations. As they say,
I'm new to Python and also wondering about OOP in Python.
I want to justify the above question (is Python Object-Oriented?).
Does Python follow the concepts/practices of Encapsulation,
Polymorphism and Interface, which are quite familiar to Java
programmers?
Python does not enforce
On Thu, Jan 29, 2009 at 9:56 PM, Hung Vo hungv...@gmail.com wrote:
snip
I'm new to Python and also wondering about OOP in Python.
I want to justify the above question (is Python Object-Oriented?).
Does Python follow the concepts/practices of Encapsulation,
Polymorphism and Interface, which
On Jan 29, 8:51 pm, Brian Allen Vanderburg II
brianvanderbu...@aim.com wrote:
You can also create a bound method and manually bind it to the
instance. This is easier
import types
a.f2 = types.MethodType(f1, a)
a.f2() # prints object a
Ah thanks, that is what I was looking for. I missed
On Fri, 30 Jan 2009 00:24:47 -0500, D'Arcy J.M. Cain wrote:
On Thu, 29 Jan 2009 16:06:09 -0800
todp...@hotmail.com todp...@hotmail.com wrote:
How can you make python round numbers to the nearest 5:
Example:
3 = 0
8 = 10
23.2 = 20
36 = 35
51.5 = 50
That appears to be rounding to
On Jan 29, 11:53 pm, James Mills prolo...@shortcircuit.net.au wrote:
On Fri, Jan 30, 2009 at 3:38 PM, r rt8...@gmail.com wrote:
This observation leads me to two scientific and common sense synopsis.
Either nobody here gives a rats pa'toote about Python, and/or they are
all just a bunch of
On Jan 30, 4:15 pm, Chris Rebert c...@rebertia.com wrote:
- Python does not support interfaces in the Java sense (although there
are a few third-party libraries that add such support); neither does
Smalltalk. Instead, both Smalltalk and Python use duck-typing to
similar effect.
On Jan 30, 3:31 am, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Thu, 29 Jan 2009 17:50:04 -0800, tony.clarke5 wrote:
On Jan 30, 12:29 am, Eric Kang y...@sfu.ca wrote:
In python, I set:
x=1
y=3
z = x
x = y
y = z
This gave me 3 1, which are the values of x and
On Thu, Jan 29, 2009 at 10:25 PM, alex23 wuwe...@gmail.com wrote:
On Jan 30, 4:15 pm, Chris Rebert c...@rebertia.com wrote:
- Python does not support interfaces in the Java sense (although there
are a few third-party libraries that add such support); neither does
Smalltalk. Instead, both
On Thu, 29 Jan 2009 21:23:48 -0800, Kottiyath wrote:
Is it possible to swap two floats without a variable?
In Python? Sure.
f = 1.23
g = 2.87
f, g = g, f
This idiom is independent of the types of the objects:
x = hello world
y = [1, 2.0, None, xyz, {}]
x, y = y, x
In other languages? Hard
Hi all,
I bet everybody knows exactly what I am about to ask about:
'''
A server serves for a while, then drops on its knees, tries to restart, but...
the port is busy, the TCP says Address already in use.
'''
And, I think I know the answer:
setsockopt(REUSEADDR)...
The problem is: I am
Mark Dickinson dicki...@gmail.com added the comment:
I'm not going to get more time to work on this before
the weekend, so if anyone else wants to take over please
feel free.
Still to do for stage 2: cell objects and slot
wrapper objects need to have tp_richcompare
implemented, to replace the
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
For 3.0, are you going to keep tp_compare slot in existence and just
assert that it is NULL? Then in 3.1, remove the slot entirely?
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
If I understand Christian's plan correctly, it was to:
(1) raise TypeError for non-NULL tp_compare, and
(2) rename tp_compare to tp_reserved (with type void *).
and both of these would happen with 3.0.1, so no difference between
3.0.1 and
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Yes, issue4566 describes exactly the same problem.
--
resolution: - duplicate
status: open - pending
superseder: - 2.6.1 breaks many applications that embed Python on Windows
___
Python
Jerzy jer...@genesilico.pl added the comment:
I still do not understand what is going on when python executed thic
code. I have a local variable l in my parent process. When I create a
child process, program makes first makes a copy of memory. Than what?
I am sure that l still exists in child
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5084
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4821
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4818
___
___
Python-bugs-list mailing list
101 - 200 of 272 matches
Mail list logo