In message <[EMAIL PROTECTED]>, Tim
Peters wrote:
> You should also note that copying a dict key or value (no matter of
> what type) consists in its entirety of copying one machine address (a
> 4- or 8-byte pointer, depending on platform).
Actually, no. It also consists of updating reference coun
In message <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> Is there a function/module to find the login name of the user under
> UNIX environment?
Note that there isn't really an important concept of "login name" under *NIX
systems. There is the current process UID and GID, effective UID and GID
Ben Sizer wrote:
> I've installed several different versions of Python across several
> different versions of MS Windows, and not a single time was the Python
> directory or the Scripts subdirectory added to the PATH environment
> variable.
I don't understand what all the fuss is about. Add a sing
I have been auto-generating .bat files and then running
os.startfile('whatever.bat'). I don't
seem to be having much luck when I try other methods. All of a sudden
I am stuck in a
situation where I need the program that is calling to end and a new
program to start (because otherwise I get several
sturlamolden wrote:
> array3[:] = array1[:] + array2[:]
OT, but why are you slicing array1 and array2? All that does is create new array
objects pointing to the same data.
> Now for my question: operator overloading is (as shown) not the
> solution to efficient scientific computing. It creates se
Wensui Liu wrote:
> doing. However, that is not the fault of excel/spss itself but of
> people who is using it.
Yes and no. I think SPSS makes it too tempting. Like children playing
with fire, they may not even know it's dangerous. You can do an GLM in
SPSS by just filling out a form - but how m
Stef Mientki wrote:
> MatLab: 14 msec
> Python: 2 msec
I have the same experience. NumPy is usually faster than Matlab. But it
very much depends on how the code is structured.
I wonder if it is possible to improve the performance of NumPy by
having its fundamental types in the language, instea
Sturla,
I am working in the healthcare and seeing people loves to use excel /
spss as database or statistical tool without know what he/she is
doing. However, that is not the fault of excel/spss itself but of
people who is using it. Things, even include SAS/R, would look stupid,
when it has been m
Steven D'Aprano wrote:
> On Sun, 31 Dec 2006 02:03:34 +0100, Thomas Ploch wrote:
>
>> Hello fellow pythonists,
>>
>> I have a question concerning posting code on this list.
>>
>> I want to post source code of a module, which is a homework for
>> university (yes yes, I know, please read on...).
>
Stef Mientki wrote:
> I always thought that SPSS or SAS where thé standards.
> Stef
As far as SPSS is a standard, it is in the field of "religious use of
statistical procedures I don't understand (as I'm a math retard), but
hey p<0.05 is always significant (and any other value is proof of the
op
On Sun, 31 Dec 2006 03:39:52 +0100, Rene Fleschenberg wrote:
> johnf wrote:
>> Very detailed. But I was attempting to debug some code which subclassed
>> other code. I got a traceback that something like "no
>> mySubClass.__source.query() did not exist".
>
> By (strong) convention, "__" means
On Sat, 30 Dec 2006 11:08:10 -0800, johnf wrote:
> Very detailed. But I was attempting to debug some code which subclassed
> other code. I got a traceback that something like "no
> mySubClass.__source.query() did not exist". The superclass had something
> like "myClass.__source.query(sql)" which
johnf wrote:
> Very detailed. But I was attempting to debug some code which subclassed
> other code. I got a traceback that something like "no
> mySubClass.__source.query() did not exist".
By (strong) convention, "__" means "not to be accessed from outside the
class, not even from subclasses".
On Sun, 31 Dec 2006 02:03:34 +0100, Thomas Ploch wrote:
> Hello fellow pythonists,
>
> I have a question concerning posting code on this list.
>
> I want to post source code of a module, which is a homework for
> university (yes yes, I know, please read on...).
So long as you understand your un
On 12/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> R is the free version of the S language. S-PLUS is a commercial version.
> Both are targeted at statisticians per se. Their strengths are in
> exploratory data analysis (in my opinion).
>
> SAS has many statistical featues, and is phenom
Hello fellow pythonists,
I have a question concerning posting code on this list.
I want to post source code of a module, which is a homework for
university (yes yes, I know, please read on...).
It is a web crawler (which I will *never* let out into the wide world)
which uses regular expressions
Martin v. Löwis wrote:
> Ben Sizer schrieb:
> > I've installed several different versions of Python across several
> > different versions of MS Windows, and not a single time was the Python
> > directory or the Scripts subdirectory added to the PATH environment
> > variable. Every time, I've had t
Hi guys,
I have a Python script that I've prettied-up for Windows users by adding
things like shell.SHBrowseForFolder and win32gui.MessageBox, etc. In
short, it looks like this:
1. Pretty window where user can browse for folder. (instead of typing
path into cmd prompt)
2. win32gui.MessageBox
Osiris wrote:
> On Sat, 30 Dec 2006 13:19:28 -0800, Erik Max Francis <[EMAIL PROTECTED]>
> wrote:
>
>>Osiris wrote:
>>
>>> I have these pieces of C-code (NOT C++ !!) I want to call from Python.
>>> I found Boost.
>>> I have MS Visual Studio 2005 with C++.
>>>
>>> is this the idea:
>>> I write th
> I think of SAS and R as being like airliners and helicopters --
I like that comparison,...
.. Airplanes are inherent stable,
.. Helicopters are inherent not-stable ;-)
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
Osiris wrote:
> yes, but C can be compiled with a C++ compiler, One can put C code in
> C++ source Boost should not complain... should it ?
> Boost text is all about C++.. so... C should not be a problem...
That you're dealing with a `boost` namespace below clearly indicates
that you're dea
R is the free version of the S language. S-PLUS is a commercial version.
Both are targeted at statisticians per se. Their strengths are in
exploratory data analysis (in my opinion).
SAS has many statistical featues, and is phenomenally well-documented and
supported. One of its great strengths
On Sat, 30 Dec 2006 13:19:28 -0800, Erik Max Francis <[EMAIL PROTECTED]>
wrote:
>Osiris wrote:
>
>> I have these pieces of C-code (NOT C++ !!) I want to call from Python.
>> I found Boost.
>> I have MS Visual Studio 2005 with C++.
>>
>> is this the idea:
>> I write the following C source file:
>>
Martin v. Löwis a écrit :
> Imbaud Pierre schrieb:
>
>>- how do I spot the version of a given library? There is a __version__
>> attribute of the module, is that it?
>
>
> Contrary to what others have said: for modules included in the standard
> library (and if using these modules, rather than
Sebastian 'lunar' Wiesner wrote:
> Paul McNett <[EMAIL PROTECTED]> typed
>
>> Steven D'Aprano wrote:
>>> But I think we all agree that mixing tabs and spaces is A Very Bad
>>> Thing.
>> I like mixing tabs and spaces, actually. Tabs for indentation, and
>> additional spaces to make the code "look p
Uwe Hoffmann wrote:
> [EMAIL PROTECTED] schrieb:
>> Is there a function/module to find the login name of the user under
>> UNIX environment?
>
>
> http://docs.python.org/lib/os-procinfo.html
>
> http://docs.python.org/lib/module-pwd.html
Speaking of that, is there any reason why there isn't any
John Nagle <[EMAIL PROTECTED]> writes:
> There's no way to set a timeout if you use "urllib" to open a URL.
> "HTTP", which "urllib" uses, supports this, but the functionality
> is lost at the "urllib" level.
>
> It's not available via "class URLopener" or "FancyURLopener", either.
>
>
On 12/30/06, Osiris <[EMAIL PROTECTED]> wrote:
> Visual C++ build log at:
>
> http://213.10.133.192/BuildLog.htm
It is better to ask Boost.Python related questions on it mailing list:
http://mail.python.org/mailman/listinfo/c++-sig/
You should add to the link line boost_python.lib, thus you will
Stef Mientki <[EMAIL PROTECTED]> writes:
> Doran, Harold wrote:
> > R is the open-source implementation of the S language developed at Bell
> > laboratories. It is a statistical programming language that is becoming
> > the de facto standard among statisticians.
> Thanks for the information
> I al
Osiris wrote:
> I have these pieces of C-code (NOT C++ !!) I want to call from Python.
> I found Boost.
> I have MS Visual Studio 2005 with C++.
>
> is this the idea:
> I write the following C source file:
>
> #include
> #include
>
> namespace { // Avoid cluttering
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> karel wrote:
>> <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>> > Is there a function/module to find the login name of the user under
>> > UNIX environment?
>>
>> who
>> who am i
>> finger
>> id
>
> I was talking ab
Stef Mientki <[EMAIL PROTECTED]> writes:
> Mathias Panzenboeck wrote:
> > A other great thing: With rpy you have R bindings for python.
>
> forgive my ignorance, what's R, rpy ?
> Or is only relevant for Linux users ?
[...]
R is a language / environment for statistical programming. RPy is a
Pyt
[EMAIL PROTECTED] schrieb:
> Is there a function/module to find the login name of the user under
> UNIX environment?
http://docs.python.org/lib/os-procinfo.html
http://docs.python.org/lib/module-pwd.html
--
http://mail.python.org/mailman/listinfo/python-list
karel wrote:
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Is there a function/module to find the login name of the user under
> > UNIX environment?
>
> who
> who am i
> finger
> id
I was talking about under python environment.
-ishwar
--
http://mail.python.org/mailman/li
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a function/module to find the login name of the user under
> UNIX environment?
who
who am i
finger
id
--
http://mail.python.org/mailman/listinfo/python-list
Is there a function/module to find the login name of the user under
UNIX environment?
-ishwar
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
>
> There are three other underscore conventions in use:
>
> (1) Objects with a single leading underscore like _attribute are private
> by convention, but Python doesn't enforce it. Starting an object with a
> single underscore is like writing "# Private! Don't touch!" af
Good question...
I am now on a different computer, one that has never heard of Python,
so no env vars are set. Again, this gives (my memory stick is now
F:\):
--
F:\Python25>python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# F
> First, it only handles functions/methods. Python FIT needs
> metadata on properties and assignable/readable attributes
> of all kinds. So in no sense is it a replacement. Parenthetically,
> neither is the decorator facility, and for exactly the same reason.
>
I can't argue against docstrings and
Chris,
If my name is familiar, please contact me.
-Neil--
http://mail.python.org/mailman/listinfo/python-list
jim-on-linux wrote:
> Thanks,
> The client is in a one printer office. If the
> output file is opened with note and then sent to
> the printer everything is fine but it defeats the
> purpose of the utility. Also tried > lpt1 but
> the same results.
This may not help, but it worked once for me
Yes, I did try your example. But, after talking on the #python IRC
channel, I realized that it wasn't the process that was blocking, it
was my GUI. I had to fire an event using gobject.io_add_watch()
whenever data was received from the child process. The event then read
from the process and added a
MRAB wrote:
> Scott David Daniels wrote:
>> [EMAIL PROTECTED] wrote:
> In Windows the null device is, strictly speaking, "nul" or "nul:", not
> "nul.txt", but the latter appears to work too.
Although I find the windows design and reasoning to be a mistake, I
believe the use of file names NUL, PRN,
That was a very good answer, and it sure sounds like it would work.
However, I failed at implementing it. :( My updated runQueue() function
is:
def runQueue(self):
self.buildProcess = None
count = 1 # current position in the queue
while True:
if self.buildPr
Doran, Harold wrote:
> R is the open-source implementation of the S language developed at Bell
> laboratories. It is a statistical programming language that is becoming
> the de facto standard among statisticians.
Thanks for the information
I always thought that SPSS or SAS where thé standards.
Ste
here's a potentially nifty way of adding decorators to input args for python:
def a(int(arg1), arg2, tuple(arg3)):
#arg1 is an int (or was converted to an int)
#arg2's type is not known (ie this decoration is optional)
#arg3 is a tuple (may have been a list coming in, but is now a t
Thanks,
However, using note to print is a problem. First,
because note adds a header( file name etc.) to
the printed output that is not acceptable. Next,
the number of files is 200 to 300 per day. The
idea of the utility is to eliminate the operator.
But, if you have a virus detector that
John> If you're looking for a Summer of Code project, ...
I'm not. I'm about 25 years out of grad school. ;-)
Skip
--
http://mail.python.org/mailman/listinfo/python-list
Thanks,
The client is in a one printer office. If the
output file is opened with note and then sent to
the printer everything is fine but it defeats the
purpose of the utility. Also tried > lpt1 but
the same results.
I'm trying to find out if this was some change in
xp from previous v
[EMAIL PROTECTED] wrote:
> Using Psyco this version is much faster, you can test it on your PC
> compared to the other one (the whole running time, Psyco compilation
> too):
FWIW, the CVS version of Shed Skin optimizes this exact program a bit
further than Psyco:
Psyco: 0.66 s
Shed Skin:
BJörn Lindqvist wrote:
> On 12/29/06, Tony Lownds <[EMAIL PROTECTED]> wrote:
> > Rationale
> > =
> >
> > Because Python's 2.x series lacks a standard way of annotating a
> > function's parameters and return values (e.g., with information about
> > what type a function's return value should
krishnakant Mane wrote:
> hello,
> I have read about zope and found it very good.
> but right now I am a bit confused about one project I have just procured.
> it is supposed to be a simple 3 tear application. the front end will
> be a thin client which we will develop using wxpython.
> We are us
hello,
I have read about zope and found it very good.
but right now I am a bit confused about one project I have just procured.
it is supposed to be a simple 3 tear application. the front end will
be a thin client which we will develop using wxpython.
We are using MySQL for the database and I need
Robin Becker schrieb:
> What is worrying is that in the extension init we're creating an
> exception and version string etc and holding a pointer to them in C; is
> it safe to use the same exception in different interpeters?
It is safe as long as the base exception classes are also shared across
R is the open-source implementation of the S language developed at Bell
laboratories. It is a statistical programming language that is becoming
the de facto standard among statisticians. Rpy is what allows an
interface between python and the R language.
Harold
> -Original Message-
> From
Mathias Panzenboeck wrote:
> A other great thing: With rpy you have R bindings for python.
forgive my ignorance, what's R, rpy ?
Or is only relevant for Linux users ?
cheers
Stef
> So you have the power of R and the easy syntax and big standard lib of
> python! :)
--
http://mail.python.org/mai
BJörn Lindqvist wrote:
> On 12/29/06, Tony Lownds <[EMAIL PROTECTED]> wrote:
>> Rationale
>> =
>>
>> Because Python's 2.x series lacks a standard way of annotating a
>> function's parameters and return values (e.g., with information about
>> what type a function's return value should be),
Visual C++ build log at:
http://213.10.133.192/BuildLog.htm
--
http://mail.python.org/mailman/listinfo/python-list
I tried too and works sweet. only dont try to run it in pythomWin
Karthik
Tom Plunket wrote:
> Hey gang-
>
> I just ran into the fabled "Secure Sockets not enabled in ActivePython,"
> and the ActiveState FAQ says I should just grab _ssl.pyd from
> "somewhere", offering up the python.org distributi
A other great thing: With rpy you have R bindings for python.
So you have the power of R and the easy syntax and big standard lib of python!
:)
--
http://mail.python.org/mailman/listinfo/python-list
Osiris <[EMAIL PROTECTED]> typed
> I have these pieces of C-code (NOT C++ !!) I want to call from Python.
> I found Boost.
> I have MS Visual Studio 2005 with C++.
>
> is this the idea:
> I write the following C source file:
>
> #include
iostream is a C++ header fil
I get, from Visual C++, these linker errors, 8 in total, trying to
build the above C++ source:
C_test.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) void __cdecl
boost::python::detail::init_module(char const *,void
(__cdecl*)(void))"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[E
cyberco wrote:
> PIL is certainly a fine option, but I noticed that the scaled images
> (scaled with the ANTIALIAS filter) are not as good as you can get with,
> say, Photoshop. Maybe I'm just expecting too much, but I wish I could
> choose a higher quality rescaling algorithm. PIL still rocks thou
I have these pieces of C-code (NOT C++ !!) I want to call from Python.
I found Boost.
I have MS Visual Studio 2005 with C++.
is this the idea:
I write the following C source file:
#include
#include
namespace { // Avoid cluttering the global namespace.
int my_int;
Martin v. Löwis wrote:
> Robin Becker schrieb:
>> Is there a simple/cheap way for C code to cache these sorts of module
>> level globals on a per interpreter basis? Is there even a way to tell
>> which interpreter I'm being called in?
>
> There is no cheap way to add to the interpreter state. As C
>
> I'm not sure about SciPy,
Yes SciPy allows it too !
but lists in standard Python allow this:
>
array = [1, 2, 3, 4]
array[2:5]
> [3, 4]
>
> That's generally a good thing.
>
You're not perhaps by origin an analog engineer ;-)
cheers,
Stef Mientki
--
http://mail.python.org
>> MatLab: 14 msec
>> Python: 2 msec
>
> For times this small, I wonder if timing comparisons are valid. I do
> NOT think SciPy is in general an order of magnitude faster than Matlab
> for the task typically performed with Matlab.
The algorithm is meant for real-time analysis,
where these kind o
On 27 Dec 2006 18:02:50 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> My top priority is stability of the interpreter. With that in mind
> which version should I get: 2.4.4, 2.3.6
> or something else.
>
> I will be using gcc 2.3.2(x86), 3.3(arm) and 3.4.3(arm) to cross
> compile it dependin
> I am using python to write a testing tools, currently this tool only
> supports skinny protocol. I am planning to add SIP and MGCP support as well,
> wondering if you have written these protocol stacks before which can be
> leveraged from.
There's two I know of - shtoom and Divmod Sine. The latt
Paul McNett <[EMAIL PROTECTED]> typed
> Steven D'Aprano wrote:
>> But I think we all agree that mixing tabs and spaces is A Very Bad
>> Thing.
>
> I like mixing tabs and spaces, actually. Tabs for indentation, and
> additional spaces to make the code "look pretty". Somebody please tell
> me why t
Ben Sizer wrote:
>I've installed several different versions of Python across several
>different versions of MS Windows, and not a single time was the Python
>directory or the Scripts subdirectory added to the PATH environment
>variable. Every time, I've had to go through and add this by hand, to
>
jim-on-linux wrote:
> The utility creates a text file that is sent to
> the printer with the statement below.
>os.system('type ' +FileName+ ' >prn'),
> and the file prints.
>
> But, from an xp machine if I try to print using
> the same statement, I get a question on the dos
> screen which rea
jim-on-linux <[EMAIL PROTECTED]> wrote:
>
>Did you run from a file or type in from keyboard?
>
>When the client runs the utility program the
>output file is built but nothing prints and no
>messages appear. When I typed from keyboard on an
>xp pro at c:\, I got the message.
>
>Is it possible th
On Fri, 29 Dec 2006 19:35:22 -0800, Beliavsky wrote:
>> Especially I like:
>> - more relaxed behavior of exceeded the upper limit of a (1-dimensional)
>> array
>
> Could you explain what this means? In general, I don't want a
> programming language to be "relaxed" about exceeding array bounds.
"Ben" <[EMAIL PROTECTED]> wrote:
>Perhaps when I'm checking for table existance using mysql through
>python I have to be more explicit:
>
>Where I did have:
>USE database;
>IF NOT EXISTS CREATE table(.
>
>Perhaps I need:
>USE database;
>IF NOT EXISTS CREATE database.table(.
>
>I'll try it
75 matches
Mail list logo