Mag Gam wrote:
Yes, the system has 64Gig of physical memory.
drool ;-).
What I meant was, is it possible to load to a hdf5 dataformat
(basically NumPy array) without reading the entire file at first? I
would like to splay to disk beforehand so it would be a bit faster
instead of having 2 copi
On Jun 23, 3:52 am, Steven D'Aprano
wrote:
> On Mon, 22 Jun 2009 13:43:19 -0500, David C. Ullrich wrote:
> > In my universe the standard definition of "log" is different froim what
> > log means in a calculus class
>
> Now I'm curious what the difference is.
It's just the usual argument about whe
Diez B. Roggisch wrote:
> Paul Watson schrieb:
>> Has anyone used GNUstep?
>>
>> In addition to Objective-C, there are Java and Ruby bindings.
>>
>> Has anyone created a Python binding to GNUstep?
>
> There is the pyobjc-binding for OSX, maybe that's suitable for GNUStep.
Apparently, it's not: The
saurabh wrote:
> I am an experienced C programmer and recently dived into python,
> I have developed an instant love for it.
> I have been doing some routine scripting for day to day admin tasks,also
> have done some Tkinter and socket programming using python.
>
> I am looking for some open sour
2009/6/23 C M :
>> Assuming you're running on Windows XP, try the following line in your
>> batch file:
>> @start path\MyPythonApp.pyw
>>
>> That's of course after you rename your script to a pyw extension. That's
>> associated with pythonw, which doesn't need a command window.
>
> Well, I renamed
Hi,
somehow I fixed the issue related to error code 0xc005. Now I am
getting a different error code while registering DLL.. it says:
"DllRegisrerServer in Dspacvce.dll Failed. Reyurn Code was:
0x80040201"
On Jun 20, 8:15 am, "Gabriel Genellina"
wrote:
> En Tue, 16 Jun 2009 02:09:57 -0300,Gir
Hi all,
is there any site that reports the current porting (to Python 3.x)
status of the main non-standard extension modules (such as pygtk,
pywin32, wxpython, ...) ?
I think such information would be very useful for people - like me -
which are tryiing to decide how/when/if to port existing scrip
In message , Peter Billam wrote:
> Damian Conway, in Perl Best Practices, puts forward a clear argument
> for breaking *before* the operator:
Except in JavaScript, where you have no choice.
--
http://mail.python.org/mailman/listinfo/python-list
thanks all for help...
actually this was in old code having 'unicode_escape' .
i hope it was there to handle path which may contain localized chars...
but removing unicode_escape' it worked fine... :)
rgds,
aberry
Mark Tolonen-3 wrote:
>
>
> "aberry" wrote in message
> news:24146775.p...@t
Hi,
I wonder what Python Index server (like as pypi.python.org) do you use in
your corporation for handle your private python eggs ?
I found three solutions :
* http://pypi.python.org/pypi/basketweaver/0.1.2-r6
* http://pypi.python.org/pypi/pypi/2005-08-01
* http://pypi.python.org/pypi/EggBaske
Hi,
I need to post some XML files to a web client that requires a client
certificate to authenticate. I have some code that works on posting a
multipart form over http but I need to modify it to pass the proper
certificate and post the XML file. Is there any example code that
will point me in th
Paul Moore wrote:
2009/6/23 C M :
Assuming you're running on Windows XP, try the following line in your
batch file:
@start path\MyPythonApp.pyw
That's of course after you rename your script to a pyw extension. That's
associated with pythonw, which doesn't need a command window.
Well
Hi,
I have a C++ program that I would like to steer using Python. I made the
wrapper using swig and linked the code (without the main function) into
a shared object. My Python script loads the extension and calls a
function of the C-extension, the rest runs entirely within the
C-extension. For com
On Jun 23, 2009, at 9:51 AM, Rolf Wester wrote:
Hi,
I have a C++ program that I would like to steer using Python. I made
the
wrapper using swig and linked the code (without the main function)
into
a shared object. My Python script loads the extension and calls a
function of the C-extensio
Philip Semanchuk wrote:
>
> On Jun 23, 2009, at 9:51 AM, Rolf Wester wrote:
>
>> Hi,
>>
>> I have a C++ program that I would like to steer using Python. I made the
>> wrapper using swig and linked the code (without the main function) into
>> a shared object. My Python script loads the extension a
"aberry" wrote in message
news:24164207.p...@talk.nabble.com...
Mark Tolonen-3 wrote:
"aberry" wrote in message
news:24146775.p...@talk.nabble.com...
I am facing an error on Unicode decoding of path if it contain a
folder/file
name starting with character 'u' .
Here is what I did in IDLE
Steven D'Aprano wrote:
> Lawrence D'Oliveiro wrote:
>
>>> Ok, now pipe ls to less, take three days to browse through all the
>>> filenames to locate the file you want to see.
>>
>> Sounds like you're approaching the issue with a GUI-centric mentality,
>> which is completely hopeless at dealing w
On Jun 23, 7:47 am, Klein Stéphane wrote:
> Hi,
>
> I wonder what Python Index server (like as pypi.python.org) do you use in
> your corporation for handle your private python eggs ?
>
> I found three solutions :
>
> *http://pypi.python.org/pypi/basketweaver/0.1.2-r6
> *http://pypi.python.org/pypi
On 23 Giu, 12:59, Francesco Bochicchio wrote:
> Hi all,
>
> is there any site that reports the current porting (to Python 3.x)
> status of the main non-standard extension modules (such as pygtk,
> pywin32, wxpython, ...) ?
> I think such information would be very useful for people - like me -
> wh
Hey all, I have a dictionary that looks like this (small example version)
{(1, 2): 0} named a
so I can do a[1,2] which returns 0. What I also have is a list of
coordinates into a 2 dimensional array that might look like this b =
[[1,2]]. Is there anyway I can call a[b[0]] and have it return 0?
--
Tobias Weber wrote:
> Hi,
> which is the best way to copy files on OS X? I want to preserve resource
> forks and extended attributes.
Are these still relevant on OSX? I've always only copied files directly, and
never had any troubles.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
Please keep the discussion on-list. (Reply-all, rather than just
replying to me.)
On Mon, 2009-06-22 at 15:36 -0700, Greg Reyna wrote:
> It's not the error that concerned me. The fact that there is an
> error of this type makes clear that there's something wrong with the
> way the scripts are
On Jun 23, 2009, at 10:54 AM, Diez B. Roggisch wrote:
Tobias Weber wrote:
Hi,
which is the best way to copy files on OS X? I want to preserve
resource
forks and extended attributes.
Are these still relevant on OSX? I've always only copied files
directly, and
never had any troubles.
On Jun 23, 6:59 am, Francesco Bochicchio wrote:
> Hi all,
>
> is there any site that reports the current porting (to Python 3.x)
> status of the main non-standard extension modules (such as pygtk,
> pywin32, wxpython, ...) ?
> I think such information would be very useful for people - like me -
>
En Mon, 22 Jun 2009 20:34:40 -0300, Miles Kaufmann
escribió:
On Jun 22, 2009, at 12:14 AM, Ben Charrow wrote:
What is subtly wrong about this piece of code? I can't see any bugs
and can't think of subtle gotchas (e.g. the '\' is removed or the lines
become separated, because in both cases
On Tue, Jun 23, 2009 at 4:45 PM, Cameron
Pulsford wrote:
> Hey all, I have a dictionary that looks like this (small example version)
> {(1, 2): 0} named a
>
> so I can do a[1,2] which returns 0. What I also have is a list of
> coordinates into a 2 dimensional array that might look like this b =
> [
On Jun 21, 9:14 pm, Ben Charrow wrote:
> I have a question about the "Using Backslash to Continue Statements" in the
> howto "Idioms and Anti-Idioms in Python"
> (http://docs.python.org/howto/doanddont.html#using-backslash-to-contin...)
>
> It says:
>
> "...if the code was:
>
> value = foo.bar()['
Thanks!
On Tue, Jun 23, 2009 at 11:29 AM, Jaime Fernandez del Rio <
jaime.f...@gmail.com> wrote:
> On Tue, Jun 23, 2009 at 4:45 PM, Cameron
> Pulsford wrote:
> > Hey all, I have a dictionary that looks like this (small example version)
> > {(1, 2): 0} named a
> >
> > so I can do a[1,2] which retu
On Mon, Jun 22, 2009 at 9:49 PM, Andras
Pikler wrote:
> Hi!
>
>
>
> Short: I need to turn a Python program that I (mostly) wrote into C code,
> and I am at a loss.
>
>
>
> Long: I’m doing research/programming for a professor, and we are working
> with MIDI files (a type of simple music file). The r
On Mon, 2009-06-22 at 22:52 +, Peter Billam wrote:
> I wonder on what grounds PEP8
> says "The preferred place to break around a binary operator is
> *after* the operator" ?
> Perhaps it's just the "continutation marker" rationale?
>
> Regards, Peter
>
> --
> Peter Billam www.pjb.com
Python Version: 2.6
GUI toolkit: WxPython
Ok so i am writing a program for my school's football team. In one part there
is a notebook with 4 tabs for that stats. In each
tab there are 4 txtctrl's with a + and - for each. The problem im having is
that i need when you click the + or - button tha
On 23 Giu, 17:12, Jeff McNeil wrote:
> On Jun 23, 6:59 am, Francesco Bochicchio wrote:
>
>
>
>
>
> > Hi all,
>
> > is there any site that reports the current porting (to Python 3.x)
> > status of the main non-standard extension modules (such as pygtk,
> > pywin32, wxpython, ...) ?
>
> You can pul
On Jun 23, 2009, at 12:20 PM, Tobias Weber wrote:
In article ,
Philip Semanchuk wrote:
I think resource forks are now stored as extended attributes, and
No
I'll take your word for it because I was just guessing, but then why
do the xattrs in the example I gave show a resource fork?
In article <024d7a38$0$20654$c3e8...@news.astraweb.com>,
Steven D'Aprano wrote:
>Dennis Lee Bieber wrote:
>> On Sat, 20 Jun 2009 13:47:24 -0700 (PDT), Bearophile
>> declaimed the following in
>> gmane.comp.python.general:
>>>
>>> Dennis Lee Bieber, may I ask why most or all your posts are set t
In article <4a3fde13$0$48239$14726...@news.sunsite.dk>,
saurabh wrote:
>
>I am an experienced C programmer and recently dived into python,
>I have developed an instant love for it.
>I have been doing some routine scripting for day to day admin tasks,also
>have done some Tkinter and socket progra
Hi
I am new to jythong and was wondering if/how I can do the following -
a) register a java object with a given name with jython interpreter
using set method
b) call methods on the java object - but the methods may not exist on
the object, so I would like to call from jython a generic method that
Aahz wrote:
[snip]
Your response to Dennis seems at least a little over-the-top. So far as
I'm concerned, anyone who joined Usenet after DejaNews is a latecomer;
trying to change the cultural beliefs of those who were here first is
asserting your superiority. I happen to disagree with people wh
Mark Dickinson wrote:
> On Jun 23, 3:52 am, Steven D'Aprano
> wrote:
>> On Mon, 22 Jun 2009 13:43:19 -0500, David C. Ullrich wrote:
>>> In my universe the standard definition of "log" is different froim what
>>> log means in a calculus class
>> Now I'm curious what the difference is.
>
> It's jus
Mag,
If your source data is clean, it may also be faster for you to parse
your input files directly vs. use the CSV module which may(?) add some
overhead.
Check out the struct module and/or use the split() method of strings.
We do a lot of ETL processing with flat files and on a slow single core
Peter Billam wrote:
> On 2009-06-22, Lie Ryan wrote:
>> Ben Charrow wrote:
>>> value = foo.bar()['first'][0]*baz.quux(1, 2)[5:9] \
>>> + calculate_number(10, 20)*forbulate(500, 360)
>>> What is subtly wrong about this piece of code? I can't see any bugs and
>>> can't think of subtle gotch
On Jun 23, 5:30 am, Paul Moore wrote:
> 2009/6/23 C M :
>
> >> Assuming you're running on Windows XP, try the following line in your
> >> batch file:
> >> @start path\MyPythonApp.pyw
>
> >> That's of course after you rename your script to a pyw extension. That's
> >> associated with pythonw, whic
Jean-Michel Pichavant wrote:
> Lie Ryan wrote:
>> Jean-Michel Pichavant wrote:
>>
>>
>>
>>
>>> Maybe I've been a little bit too dictatorial when I was saying that
>>> renaming namespaces should be avoided.
>>> Sure your way of doing make sense. In fact they're 2 main purposes of
>>> having stron
Tobias Weber wrote:
>> Apple's version of cp is aware of extended attributes.
>
> Yes, but the manual doesn't say to what extent, nor anything about ACLs
mv, cp, etc (but not rsync) are completely aware of resource forks from
Tiger on. This is well documented and known on the Mac forums.
So shu
Rolf Wester wrote:
> The runtime is about 2.5 sec and 5.0 sec respectively. I not only use
> the time command to measure the time consumed but I also measure the
> time within the C-code using clock() and get similar result. So the
> Python startup time is not the reason for the runtime difference
Cameron Pulsford wrote:
Hey all, I have a dictionary that looks like this (small example version)
{(1, 2): 0} named a
so I can do a[1,2] which returns 0. What I also have is a list of
coordinates into a 2 dimensional array that might look like this b =
[[1,2]]. Is there anyway I can call a[b[
On Tue, Jun 23, 2009 at 2:28 PM, Michael Torrie wrote:
> mv, cp, etc (but not rsync) are completely aware of resource forks from
> Tiger on. This is well documented and known on the Mac forums.
>
> So shutils should work just fine for copying, moving, etc.
I don't think that's true. The shutil d
jythonuser schrieb:
Hi
I am new to jythong and was wondering if/how I can do the following -
a) register a java object with a given name with jython interpreter
using set method
b) call methods on the java object - but the methods may not exist on
the object, so I would like to call from jython
On Jun 23, 2009, at 9:52 AM, Tobias Weber wrote:
Hi,
which is the best way to copy files on OS X? I want to preserve
resource
forks and extended attributes.
...
bin/cp -p
This. cp -p, mv, rsync -E, tar, and other utilities will use the
copyfile(3) API to preserve extended attributes, r
On Tue, Jun 23, 2009 at 12:19 PM, tanner barnes wrote:
> Python Version: 2.6
> GUI toolkit: WxPython
>
> Ok so i am writing a program for my school's football team. In one part
> there is a notebook with 4 tabs for that stats. In each
> tab there are 4 txtctrl's with a + and - for each. The problem
I have a java prog I need to run at some point during the execution of
a python module.
The path to the folder containing the all the relevant java stuff
(which runs fine from the command line) is stored in pkgpath. The
relevant code is this:
>>> os.chdir(pkgpath)
>>> arglist = "java -Xmx1024m Se
On Jun 22, 5:56 pm, Lawrence D'Oliveiro wrote:
> In message
> c77d-4a47-8cb4-7dd916d69...@s1g2000prd.googlegroups.com>, 1x7y2z9 wrote:
> > Not sure if this is defined in a later version, but it would be nice
> > to define re.NONE = 0 in the re module.
>
> Do so:
>
> re.NONE = 0
>
> Problem so
Che M wrote:
On Jun 23, 5:30 am, Paul Moore wrote:
2009/6/23 C M :
Assuming you're running on Windows XP, try the following line in your
batch file:
@start path\MyPythonApp.pyw
That's of course after you rename your script to a pyw extension. That's
associated with pythonw,
Edward Grefenstette wrote:
I have a java prog I need to run at some point during the execution of
a python module.
The path to the folder containing the all the relevant java stuff
(which runs fine from the command line) is stored in pkgpath. The
relevant code is this:
os.chdir(pkgpath)
arglis
On Tue, Jun 23, 2009 at 2:29 PM, Edward Grefenstette wrote:
> I have a java prog I need to run at some point during the execution of
> a python module.
>
> The path to the folder containing the all the relevant java stuff
> (which runs fine from the command line) is stored in pkgpath. The
> relevan
Edward Grefenstette schrieb:
I have a java prog I need to run at some point during the execution of
a python module.
The path to the folder containing the all the relevant java stuff
(which runs fine from the command line) is stored in pkgpath. The
relevant code is this:
os.chdir(pkgpath)
argl
I wanted to know if you have some patch to compile python 3.x on mingw
platform because I found some
but doesn't work very well :
make
gcc -o python.exe \
Modules/python.o \
libpython3.0.a-lm
Could not find platform independent libraries
Could not find platform dependent libraries
Co
A little off-topic perhaps, but I can't think of anywhere more likely to
contain people with answers.
I've just upgraded to Jaunty Jackalope where Python 2.6 is the default
Python version. I'm still developing under 2.5, but IDLE now refuses to
respond to left click events (for code editing, menu
On Jun 23, 7:20 am, Rolf Wester wrote:
> Philip Semanchuk wrote:
>
> > On Jun 23, 2009, at 9:51 AM, Rolf Wester wrote:
>
> >> Hi,
>
> >> I have a C++ program that I would like to steer using Python. I made the
> >> wrapper using swig and linked the code (without the main function) into
> >> a shar
Suppose I have 2 functions like so:
def Function2( **extra ):
# do stuff
def Function1( **extra ):
Function2( extra )
As you can see, I would like to forward the additional keyword
arguments in variable 'extra' to Function2 from Function1. How can I
do this? I'm using Python 3.0.1
--
http
On Wed, 24 Jun 2009 00:55:14 +0100, duncan smith
wrote:
> Does anyone know how I can configure Boa to use wxPython 2.8.9.1? Does
> anyone know if it's possible to configure the Python version under SPE?
It definitely is possible. In fact you need to use wxpython 2.8 with Boa.
I had a similar p
> Suppose I have 2 functions like so:
>
> def Function2( **extra ):
> # do stuff
>
> def Function1( **extra ):
> Function2( extra )
>
> As you can see, I would like to forward the additional keyword
> arguments in variable 'extra' to Function2 from Function1. How can I
> do this? I'm using Pyth
En Tue, 23 Jun 2009 20:57:36 -0300, Robert Dailey
escribió:
Suppose I have 2 functions like so:
def Function2( **extra ):
# do stuff
def Function1( **extra ):
Function2( extra )
As you can see, I would like to forward the additional keyword
arguments in variable 'extra' to Function2
On Jun 23, 7:34 pm, "Gabriel Genellina"
wrote:
> En Tue, 23 Jun 2009 20:57:36 -0300, Robert Dailey
> escribió:
>
> > Suppose I have 2 functions like so:
>
> > def Function2( **extra ):
> > # do stuff
>
> > def Function1( **extra ):
> > Function2( extra )
>
> > As you can see, I would like
Robert Dailey writes:
> Suppose I have 2 functions like so:
>
> def Function2( **extra ):
># do stuff
>
> def Function1( **extra ):
>Function2( extra )
(Style note: The Python style guide, PEP 8, would have the above code
written as::
def function2(**extra):
# do stuff
Tobias Weber wrote:
> Why "so"? shutil does not use bin/cp!
That's good to know. I had always thought that that was what shutils
did, but you're right; it does not.
That said, since cp indeed *can* copy resource forks on Tiger and up,
you could use subprocess to call it.
Just as an aside, your
On Tue, 23 Jun 2009 10:29:21 -0400, Mel wrote:
> Steven D'Aprano wrote:
>
>> Lawrence D'Oliveiro wrote:
>>
Ok, now pipe ls to less, take three days to browse through all the
filenames to locate the file you want to see.
>>>
>>> Sounds like you're approaching the issue with a GUI-centr
Bingo. I was running the python script in GNU script, and it wasn't
loading my bash config file properly. Have fixed it by
altering .screenrc and now the code runs fine. Would have never
guessed to look if you hadn't mentioned it, cheers!
Best,
Ed
On Jun 23, 11:29 pm, "Diez B. Roggisch" wrote:
>
In article ,
Mark Dickinson wrote:
>On Jun 22, 7:43=A0pm, David C. Ullrich wrote:
>>
>> Surely you don't say a curve is a subset of the plane and
>> also talk about the integrals of verctor fields over _curves_?
>> [snip rest of long response that needs a decent reply, but
>> possibly not here.
On 24 Jun., 00:59, smartmobili wrote:
> I wanted to know if you have some patch to compile python 3.x on mingw
> platform because I found some
> but doesn't work very well :
>
> make
>
> gcc -o python.exe \
> Modules/python.o \
> libpython3.0.a-lm
> Could not find platform independent li
In article <7a73lrf1totc...@mid.uni-berlin.de>,
Diez B. Roggisch wrote:
>
>My god, these days they allow just anybody to spam, even f***tards that
>are to stupid to include the actual URL of the spam they want to divulge.
Thank you for reposting the spam in its entirety, with special thanks
for
In article ,
=?UTF-8?Q?Filip_Gruszczy=C5=84ski?= wrote:
>
>I have encountered a performance problem using suds, which was traced
>down to _socket.recv. I am calling some web services and each of them
>uses about 0.2 sec and 99% of this time is spent on urllib2.urlopen,
>while the rest of the call
In article ,
Ross Ridge wrote:
>Aahz wrote:
>>Piet van Oostrum wrote:
>>>
I notice that I see several postings on news:comp.lang.python that are
>>>replies to other postings that I don't see.
>>
>>As stated previously, my suspicion is that at least some is caused by a
>>problem with MIME
duncan smith wrote:
> I've just upgraded to Jaunty Jackalope where Python 2.6 is the default
> Python version. I'm still developing under 2.5, but IDLE now refuses to
> respond to left click events (for code editing, menus etc. respond as
> expected). If I right click, then left click I can move
On Jun 18, 10:49 am, Jon Clements wrote:
> Why are you doing this? I'm assuming a code to title look up is
> required (don't forget military, royal and honorable titles
> etc... :) )
I'm in New Zealand. Hardly any need for military titles, rarely any
for royal and damn sure none for honorable :-D
I need to programmaticaly enumerate all the classes in a given module.
Currently I'm using dir(module) but the Notice on the documentation page
[1] says "dir() is supplied primarily as a convenience for use at an
interactive prompt" so that kind of scares me.
Is there a better approach?
If th
In message , Steven
D'Aprano wrote:
> On Tue, 23 Jun 2009 10:29:21 -0400, Mel wrote:
>
>> Steven D'Aprano wrote:
>>
>>> Lawrence D'Oliveiro wrote:
>>>
> Ok, now pipe ls to less, take three days to browse through all the
> filenames to locate the file you want to see.
Sounds
Klein Stéphane wrote:
I wonder what Python Index server (like as pypi.python.org) do you use in
your corporation for handle your private python eggs ?
I found three solutions :
* http://pypi.python.org/pypi/basketweaver/0.1.2-r6
* http://pypi.python.org/pypi/pypi/2005-08-01
* http://pypi.pytho
Jeremiah Jester wrote:
Chris,
Do you have any online tutorial for this topic?
I'm afraid not currently...
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Дамјан Георгиевски wrote:
> I need to programmaticaly enumerate all the classes in a given module.
> Currently I'm using dir(module) but the Notice on the documentation page
> [1] says "dir() is supplied primarily as a convenience for use at an
> interactive prompt" so that kind of scares me.
>
79 matches
Mail list logo