On 3/31/2011 1:07 PM, Prasad, Ramit wrote:
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information
Prasad, Ramit wrote:
In any event, you shouldn't be worrying about something like overhead until
after your base prorgram is written.
Base programs are written. I was just looking into insight about the mechanics
behind importing :)
For instance, do these libraries normally lazy load? If you
Prasad, Ramit wrote:
The joins are really just random calls. I was just curious if importing os.path
could avoid any reading/overhead that might occur by importing os.
No.
Python has no way of knowing what os.path is until it has imported os
and can do an attribute lookup on os.path. This is
>> In any event, you shouldn't be worrying about something like overhead until
>> after your base prorgram is written.
Base programs are written. I was just looking into insight about the mechanics
behind importing :)
For instance, do these libraries normally lazy load? If you have mod1.mod2 and
You could just use from os import path and use it like path.xxx
I don't know know if it saves on overhead or not.
In any event, you shouldn't be worrying about something like overhead until
after your base prorgram is written.
Generally if all I use is path, for example, I use from import. If n
The joins are really just random calls. I was just curious if importing os.path
could avoid any reading/overhead that might occur by importing os.
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
---
http%3A%2F%2Fwww%2Eeasy%2Dsofa%2Epl%2F%2Fimages%2Ffriends%2Ehtml
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 3/31/2011 11:07 AM Prasad, Ramit said...
Hi everyone,
I was wondering if there is a difference in
import os
os.path.join(string1,string2)
AND
import os.path
os.path.join(string1,string2)
A quick test shows they're the same:
ActivePython 2.6.6.15 (ActiveState Software Inc.) based on
Hi everyone,
I was wondering if there is a difference in
>>>import os
>>>os.path.join(string1,string2)
AND
>>>import os.path
>>>os.path.join(string1,string2)
The only difference that I could think of is if the os module does not get
loaded on the second example. I am not sure if it does.
Ram
I appreciate all the responses and apologize for not being more detailed. An
R data frame is a tightly grouped array of vectors of the same length. Each
vector is all the same datatype, I believe, but you can read all types of
data into the same variable. The benefit is being able to quickly subset
On 31-Mar-11 09:46, bob gailer wrote:
IMHO % formatting is the easiest to use and understand.
I am sorry that it has been slated for removal.
I had the same reaction, but I think it was mostly because of my long
background as a C programmer, since it's essentially the equivalent of
printf() f
IMHO % formatting is the easiest to use and understand.
I am sorry that it has been slated for removal.
--
Bob Gailer
919-636-4239
Chapel Hill NC
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python
Wayne Werner wrote:
On Tue, Mar 29, 2011 at 2:41 PM, Prasad, Ramit wrote:
Is there a difference (or preference) between using the following?
"%s %d" % (var,num)
VERSUS
"{0} {1}".format(var,num)
Practically there's no difference. In reality (and under the hood) there are
more differences, som
On Thu, Mar 31, 2011 at 11:10 AM, Blockheads Oi Oi
wrote:
> On 31/03/2011 09:38, Ben Hunter wrote:
>
>> Is anybody out there familiar with data frame modules for python that
>> will allow me to read a CSV in a similar way that R does? pydataframe
>> and DataFrame have both befuddled me. One requir
On 31/03/2011 09:38, Ben Hunter wrote:
Is anybody out there familiar with data frame modules for python that
will allow me to read a CSV in a similar way that R does? pydataframe
and DataFrame have both befuddled me. One requires a special stripe of R
that I don't think is available on windows an
David Crisp wrote:
> Hello,
>
> I have a very simple question / problem I need answered. The problem
> is imnot entirely sure of the correct terminology and langauge to use
> to describe it. (One of the reasons im using this miling list)
>
> I have a 2d matrix representing the X the Y and the
Ben Hunter wrote:
Is anybody out there familiar with data frame modules for python that will
allow me to read a CSV in a similar way that R does? pydataframe and
DataFrame have both befuddled me. One requires a special stripe of R that I
don't think is available on windows and the other is either
David Crisp wrote:
I have a 2d matrix representing the X the Y and the Z value of a
point. I wish to convert that matrix to an array.What is a good
way of doing so?
Eg:
Matrix
012345
0xo
1xo
2ox
3oo
4ox
5ox
It's not clear what this matrix actually is. Is this fro
Is anybody out there familiar with data frame modules for python that will
allow me to read a CSV in a similar way that R does? pydataframe and
DataFrame have both befuddled me. One requires a special stripe of R that I
don't think is available on windows and the other is either very buggy or
I've
19 matches
Mail list logo