On 07/18/2010 03:58 PM, Edward A. Falk wrote:
In article<334170d5-a336-4506-bda1-279b40908...@k1g2000prl.googlegroups.com>,
be.krul wrote:
why is this group being spammed?
They're *all* being spammed. Why? Because they can, and because Google
doesn't care.
Not only does Google not care,
0 down vote favorite
i've written a tool in python where you enter a title, content, then
tags, and the entry is then saved in a pickle file. it was mainly
designed for copy-paste functionality (you spot a piece of code you
like on the net, copy it, and paste it into the program), not really
f
Justin Smith writes:
> Seeking industry expert candidates
Please don't reply in an existing thread with an unrelated message. If
you want to start a new discussion, compose a new message, not a reply.
For job advertisements, please don't use this forum at all; instead use
the Python Jobs Board
On Mon, 26 Jul 2010 22:26:27 -0400, Steven W. Orr wrote:
> Please! Never export anything from your .bashrc unless you really know
> what you're doing. Almost all exports should be done in your
> .bash_profile
Would you like to explain why, or should we just trust you?
--
Steven
--
http://mail
On 07/26/10 21:26, Steven W. Orr wrote:
Please! Never export anything from your .bashrc unless you
really know what you're doing. Almost all exports should be
done in your .bash_profile
Could you elaborate on your reasoning why (or why-not)? I've
found that my .bash_profile doesn't get evalua
Python 2.7 for Windows: Does Python 2.7 for Windows use the same
version of the MS VC runtime as Python 2.6?
Thank you,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
On 7/26/10 3:20 PM, Peng Yu wrote:
> This webpage http://www.python.org/dev/peps/pep-0008/ recommends the
> following. It looks to me that both styles are fine. Could anybody let
> me know what the rationale is behind this recommendation?
PEP8 is a style guide. Parts of style guides are rational j
On 07/26/10 20:02, quoth Chris Rebert:
> On Mon, Jul 26, 2010 at 4:36 PM, Peng Yu wrote:
>
> You need to "export R_HOME" in bash (probably in your .bashrc or
> .bash_profile). See
> http://www.ibm.com/developerworks/library/l-bash.html#N10074
Please! Never export anything from your .bashrc unles
On Mon, Jul 26, 2010 at 4:31 PM, Steven D'Aprano
wrote:
> On Mon, 26 Jul 2010 17:20:09 -0500, Peng Yu wrote:
>
>> This webpage http://www.python.org/dev/peps/pep-0008/ recommends the
>> following. It looks to me that both styles are fine. Could anybody let
>> me know what the rationale is behind t
[Ethan Furman]
> Speaking of new-style classes only, don't they all end in object? And
> if the MRO is only known at run-time, how is one to know at code-time
> whether your (new-style) class is at the end of the line?
That is a bit of a PITA. One way of handling it is to design your
diamond so
On Tue, 27 Jul 2010 01:15:08 +0200, Thomas Jollans wrote:
> http://docs.python.org/py3k/reference/datamodel.html should answer all
> your questions.
It should, but as far as I can tell it doesn't. If it defines "attribute"
or "method", I can't find it.
--
Steven
--
http://mail.python.org/ma
On 26Jul2010 18:36, Peng Yu wrote:
| R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm
| not sure what it does when os module is imported. But it seems that
| os.environ doesn't capture all the environment variable from the
| shell. Could anybody let me know what is the correct
On Mon, 26 Jul 2010 16:52:06 -0500, Peng Yu wrote:
> Could you please let me know what the equivalent terms for the following
> C++ terms?
>
> constructor
> destructor
> member function
> member variable
> virtual member function
> function
(1) Python new-style classes have a constructor __new_
On Tue, 27 Jul 2010 00:36:12 +0100, Peng Yu wrote:
R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm
not sure what it does when os module is imported. But it seems that
os.environ doesn't capture all the environment variable from the
shell. Could anybody let me know what is
On Mon, Jul 26, 2010 at 4:36 PM, Peng Yu wrote:
> Hi,
>
> R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm
> not sure what it does when os module is imported. But it seems that
> os.environ doesn't capture all the environment variable from the
> shell. Could anybody let me kno
Hi,
R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm
not sure what it does when os module is imported. But it seems that
os.environ doesn't capture all the environment variable from the
shell. Could anybody let me know what is the correct way to inherent
all the environment va
On Mon, 26 Jul 2010 17:20:09 -0500, Peng Yu wrote:
> This webpage http://www.python.org/dev/peps/pep-0008/ recommends the
> following. It looks to me that both styles are fine. Could anybody let
> me know what the rationale is behind this recommendation?
>
> - Use spaces around arithmetic ope
On 07/26/10 18:15, Thomas Jollans wrote:
destructor
http://docs.python.org/py3k/reference/datamodel.html#object.__del__
One small caveat -- IIRC, in Java/C++ the destructor is
guaranteed to be called with a certain amount of context. I find
Python's __del__ almost useless since things it m
On Mon, 26 Jul 2010 22:52:06 +0100, Peng Yu wrote:
Hi
I'm still kind of confused about the terminology on classes in python.
Could you please let me know what the equivalent terms for the
following C++ terms?
Seriously, we can't keep doing your thinking for you. The answers
to all your que
> Martin wrote:
>
> Wat is er mis met klompen?
Well specifically their made from wood and wood is a very hard
substance. Also i did not go into detail but he makes sure to pick
shoes that are three sizes too small. You know a good podiatrist can
be tough to come by in these times. It's a pretty se
Seeking industry expert candidates
I’m Justin Smith, Director of Tech Recruiting at Express Seattle. I
am currently seeking candidates to fill Tech Positions for multiple A-
List Clients:
• Quality Assurance Engineer,
• Senior Data Engineer, Search Experience
• Senior Software D
On 07/27/10 00:06, rantingrick wrote:
On Jul 26, 5:20 pm, Peng Yu wrote:
This webpagehttp://www.python.org/dev/peps/pep-0008/recommends the
following. It looks to me that both styles are fine. Could anybody let
me know what the rationale is behind this recommendation?
The rational is simple.
On 07/26/2010 11:52 PM, Peng Yu wrote:
> Hi
>
> I'm still kind of confused about the terminology on classes in python.
>
> Could you please let me know what the equivalent terms for the
> following C++ terms?
>
> constructor
constructor.
This consists of the class constructor method, __new__,
On Jul 26, 5:20 pm, Peng Yu wrote:
> This webpagehttp://www.python.org/dev/peps/pep-0008/recommends the
> following. It looks to me that both styles are fine. Could anybody let
> me know what the rationale is behind this recommendation?
The rational is simple. Guido is God and if you don't follow
On 07/27/2010 12:20 AM, Peng Yu wrote:
> This webpage http://www.python.org/dev/peps/pep-0008/ recommends the
> following. It looks to me that both styles are fine. Could anybody let
> me know what the rationale is behind this recommendation?
Beauty is in the eye of the beholder, even when we call
On 7/26/10 5:16 PM, Michael Hoffman wrote:
I have been using Jason Orendorff's path.py module for a long time. It is very
useful. The only problem is that Python 2.6 deprecates the md5 module it
imports, so I (and others using my software) now get this warning whenever they
start, which is a litt
This webpage http://www.python.org/dev/peps/pep-0008/ recommends the
following. It looks to me that both styles are fine. Could anybody let
me know what the rationale is behind this recommendation?
- Use spaces around arithmetic operators:
Yes:
i = i + 1
submitted +
I have been using Jason Orendorff's path.py module for a long time. It
is very useful. The only problem is that Python 2.6 deprecates the md5
module it imports, so I (and others using my software) now get this
warning whenever they start, which is a little annoying.
/homes/hoffman/arch/Linux-x
Hi
I'm still kind of confused about the terminology on classes in python.
Could you please let me know what the equivalent terms for the
following C++ terms?
constructor
destructor
member function
member variable
virtual member function
function
I think that C++ "function" is equivalent to pyth
In article ,
Christian Heimes wrote:
> [Philip Semanchuk wrote:]
> > Specifically, I'm concerned with binaries created by SWIG for a C++
> > library that our project uses. We'd like to ship precompiled binaries
> > for Linux, OS X and Windows for Python 2.5 and 2.6. I'm hoping that it
> > i
On Jul 21, 8:17 pm, John Nagle wrote:
> On 7/19/2010 9:56 AM, dhruvbird wrote:
>
> > On Jul 19, 9:12 pm, Brian Victor wrote:
> >> dhruvbird wrote:
> >> Having offered this, I don't recall ever seeing reduce used in real
> >> python code, and explicit iteration is almost always preferred.
>
> > Ye
On 7/26/10 2:40 PM, MRAB wrote:
Philip Semanchuk wrote:
Hi all,
Does Python guarantee binary compatibility across major, minor and/or micro
versions? I looked through the docs and even with Google's help I wasn't able
to find any official statements on this subject.
Specifically, I'm concerned
> Specifically, I'm concerned with binaries created by SWIG for a C++
> library that our project uses. We'd like to ship precompiled binaries
> for Linux, OS X and Windows for Python 2.5 and 2.6. I'm hoping that it
> is sufficient to create binaries for each Python for each platform (3
> *
Philip Semanchuk wrote:
Hi all,
Does Python guarantee binary compatibility across major, minor and/or
micro versions? I looked through the docs and even with Google's help I
wasn't able to find any official statements on this subject.
Specifically, I'm concerned with binaries created by SWIG
Hi all,
Does Python guarantee binary compatibility across major, minor and/or
micro versions? I looked through the docs and even with Google's help
I wasn't able to find any official statements on this subject.
Specifically, I'm concerned with binaries created by SWIG for a C++
library th
On 7/26/10 1:36 PM, Louis Theran wrote:
Is there a standard recipe for getting distutils to built
universal .so files for modules that have C/C++ source?
If your Python was built to be Universal, it will automatically use the same
architecture flags to build the extension modules Universal.
Is there a standard recipe for getting distutils to built
universal .so files for modules that have C/C++ source?
--
http://mail.python.org/mailman/listinfo/python-list
On 07/26/2010 07:24 PM, alberttresens wrote:
>
> Hi, thanks for the reply.
Alas, you didn't actually read it:
>
> But what i am more concerned about, as I am trying to correlate logs, is
> what is the timestamp:
> 1279620166 mean?
> Is it seconds since the epoch or the ISO time in seconds?
>
>
On 07/26/2010 06:36 AM, Edward Diener wrote:
> On 7/25/2010 10:42 PM, David Robinow wrote:
>> On Sun, Jul 25, 2010 at 8:40 PM, Edward Diener
>> wrote:
>>> On 7/25/2010 5:57 PM, Thomas Jollans wrote:
>>> So if a standard library module ( or distributed library ) executes a
>>> call
>>> internally
Hi, thanks for the reply.
But what i am more concerned about, as I am trying to correlate logs, is
what is the timestamp:
1279620166 mean?
Is it seconds since the epoch or the ISO time in seconds?
Any idea?
Thanks a lot!!
Steven D'Aprano-7 wrote:
>
> On Mon, 26 Jul 2010 09:54:23 -0700, alber
On Mon, 26 Jul 2010 09:54:23 -0700, alberttresens wrote:
> Hi,
> I am trying to get the creation time of a file to be able to correlate
> it's content timestamps with other log files. In order to get the
> creation time of the file one a Linux machine i used:
You're out of luck. Neither Unix nor
On 7/25/2010 8:03 AM, targetsmart wrote:
Hi,
I am trying to compare two nested dictionaries, I want to know what is
the exact difference between them.
d1 = {'a' : 1, 'b' : 2, 'c': 3 }
d2 = {'a' : 1, 'b' : 3, 'd': 4 }
diff = dict(set(d1.items()) - set(d2.items()))
print (diff)
{'c': 3, '
Hi,
I am trying to get the creation time of a file to be able to correlate it's
content timestamps with other log files.
In order to get the creation time of the file one a Linux machine i used:
return os.lstat(logFile)[ST_CTIME]
That returns to me something like: 1279620166
I would like to kno
Bruno Desthuilliers wrote:
Duncan Booth a écrit :
Bruno Desthuilliers wrote:
If you don't want to create as many Whatever instances as MyClass
instances, you can create a single Whatever instance before defining
your class:
DEFAULT_WHATEVER = Whathever()
class MyClass(object):
def __
Gregory Ewing wrote:
Raymond Hettinger wrote:
Every class
in the MRO implementing the target method *must* call super() to give
the next class in the MRO a chance to run.
EXCEPT for the last one, which must NOT call super!
The posted example happens to work because object has
a default __init
On 26/07/2010 16:47, Burton Samograd wrote:
Grant Edwards writes:
On 2010-07-24, Lawrence D'Oliveiro wrote:
In message, Robert Kern
wrote:
There are also utilities for mounting ISOs directly without burning
them to a physical disk.
You need special utilities to do this??
Not if the OS
Grant Edwards writes:
> On 2010-07-24, Lawrence D'Oliveiro wrote:
>> In message , Robert Kern
>> wrote:
>>
>>> There are also utilities for mounting ISOs directly without burning
>>> them to a physical disk.
>>
>> You need special utilities to do this??
>
> Not if the OS and VFS are competently
I GOT $2,000 FROM ' PAYPAL' At http://veryhotguru.co.cc
i have hidden the PayPal Form link in an image.
in that website On Top Side Above search box , click on image
and enter your PayPal id And Your name.
--
http://mail.python.org/mailman/listinfo/python-list
be.krul a écrit :
Why not moderate this group?
This is a hi-traffic group, so it would require a huge team of moderators.
--
http://mail.python.org/mailman/listinfo/python-list
Duncan Booth a écrit :
Bruno Desthuilliers wrote:
If you don't want to create as many Whatever instances as MyClass
instances, you can create a single Whatever instance before defining
your class:
DEFAULT_WHATEVER = Whathever()
class MyClass(object):
def __init__(self, x, y):
On Jul 25, 1:11 am, Navkirat Singh wrote:
> OK I wanted zombie processes and have been able to regenerate them with
> multiprocessing. Now lets see how I can handle them.
The multiprocessing docs say:
"""
Joining zombie processes
On Unix when a process finishes but has not been joined it becom
On Jul 26, 4:30 pm, Steven D'Aprano wrote:
> On Mon, 26 Jul 2010 04:12:33 -0700, Chris Rebert wrote:
> > On Mon, Jul 26, 2010 at 4:03 AM, Sunny chilgod
> > wrote:
> >> Hi Chris,
> >> Thanks for your help. but i need to to convert the whole string to int.
> >> heres my full code,
> >> ptid = 'item
On Mon, 26 Jul 2010 04:12:33 -0700, Chris Rebert wrote:
> On Mon, Jul 26, 2010 at 4:03 AM, Sunny chilgod
> wrote:
>> Hi Chris,
>> Thanks for your help. but i need to to convert the whole string to int.
>> heres my full code,
>> ptid = 'item_01bom'
>> so item_01bom is a field name in form, so i ge
> On Mon, Jul 26, 2010 at 4:25 PM, Chris Rebert wrote:
>> On Mon, Jul 26, 2010 at 3:25 AM, lee wrote:
>> > Hi,
>> >
>> > I have a value,
>> >
>> > partintid = int(Screw plugg (91_10 -> untitled))
>> >
>> > but i get ValueError: invalid literal for int(): Screw plugg (91_10 -
>> >> untitled)
>>
Hi Chris,
Thanks for your help. but i need to to convert the whole string to int.
heres my full code,
ptid = 'item_01bom'
so item_01bom is a field name in form, so i get its value,
partintid = int(form[ptid]). # the value of form[ptid] is 'Screw plugg
(91_10 - untitled)'
Hence i get the error
Bruno Desthuilliers wrote:
> If you don't want to create as many Whatever instances as MyClass
> instances, you can create a single Whatever instance before defining
> your class:
>
> DEFAULT_WHATEVER = Whathever()
>
> class MyClass(object):
> def __init__(self, x, y):
> self.x
On Mon, Jul 26, 2010 at 3:25 AM, lee wrote:
> Hi,
>
> I have a value,
>
> partintid = int(Screw plugg (91_10 -> untitled))
>
> but i get ValueError: invalid literal for int(): Screw plugg (91_10 -
>> untitled)
> any help?
That is most certainly not your actual exact code, since it has a few
Syn
On Mon, Jul 26, 2010 at 3:30 AM, Lawrence D'Oliveiro
wrote:
> In message , Chris
> Rebert wrote:
>
>> "Paging Dr. Frankenstein. Dr. Frankenstein to the lab. Paging Dr.
>> Frankenstein."
>>
>> Most people try to /avoid/ making zombies.
>
> Is there some connection between Frankenstein and zombies?
In message , Chris
Rebert wrote:
> "Paging Dr. Frankenstein. Dr. Frankenstein to the lab. Paging Dr.
> Frankenstein."
>
> Most people try to /avoid/ making zombies.
Is there some connection between Frankenstein and zombies?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a value,
partintid = int(Screw plugg (91_10 -> untitled))
but i get ValueError: invalid literal for int(): Screw plugg (91_10 -
> untitled)
any help?
-
Sunny
--
http://mail.python.org/mailman/listinfo/python-list
dmitrey a écrit :
(snip)
This doesn't stack with the following issue: sometimes user can write
in code "myObject.size = (some integer value)" and then it will be
involved in future calculations as ordinary fixed value; if user
doesn't supply it, but myObject.size is involved in calculations, the
John Nagle wrote:
> On 7/23/2010 1:45 AM, Thomas Guettler wrote:
>> Hi,
>>
>> I use non-blocking io to check for timeouts. Sometimes I get EAGAIN
>> (Resource temporarily unavailable)
>> on write(). My working code looks like this. But I am unsure how many
>> bytes have been written to the
>> pipe
On 07/26/2010 06:36 AM, Edward Diener wrote:
>
> I start a Python script for version X by going to X's root directory and
> invoking 'python someScript.py' from the command line. Does that not
> sound reasonable ?
Do you have an example of two (not self written) applications requiring
to change t
On 07/25/2010 10:39 PM, MRAB wrote:
> News123 wrote:
>> Thus my idea of having a pystarter with a config file
>> mentioning which directories (tools) should use which python executable
>>
> I think that's the wrong way round. A pystarter should ask the _tool_
> which version of Python it needs.
>>
>> Thus my idea of having a pystarter with a config file
>> mentioning which directories (tools) should use which python executable
>
> Well, good luck ! I don;t know how this is resolved for you when some
> scripts executes 'python xxx yyy' or 'someScript.py yyy'.
both could be resolved with
65 matches
Mail list logo