On Mar 20, 2:38 pm, Craig <[EMAIL PROTECTED]> wrote:
> On Mar 20, 2:29 pm, sturlamolden <[EMAIL PROTECTED]> wrote:
>
> > On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote:
>
> > The culprit i here:
>
> > > Before - X = 0, CacheSize = 0, OpenMode = 3, vHandle = 0
>
> > This binds these names to Pyth
Hi,
I'm trying to print some variable through a pager (i.e. 'less') on a
linux system. My attempt was this:
== snip here ==
import subprocess
def put_through_pager(displaystring):
less_pipe = subprocess.Popen(\
'less', shell=True, \
stdin
On Thu, Mar 20, 2008 at 3:42 PM, Craig <[EMAIL PROTECTED]> wrote:
>
> On Mar 20, 2:38 pm, Craig <[EMAIL PROTECTED]> wrote:
> > On Mar 20, 2:29 pm, sturlamolden <[EMAIL PROTECTED]> wrote:
> >
> > > On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote:
> >
> > > The culprit i here:
> >
> > > > Be
On Mar 20, 9:09 am, hellt <[EMAIL PROTECTED]> wrote:
> "The eclipse console is not an exact copy of a shell... one of the
> changes is that when you press in a shell, it may give you a
> \r, \n or \r\n as an end-line char, depending on your platform. Python
> does not expect this -- from the docs
On Mar 20, 9:46 am, Jonathan Gardner <[EMAIL PROTECTED]>
wrote:
> In the unix world, this is highly discouraged. You shouldn't have to
> change your user. The only user who can change roles---and who should
> change roles for security reasons---is root.
IMHO this statement is a bit too broad. Th
On Mar 21, 1:09 am, Rolf van de Krol <[EMAIL PROTECTED]> wrote:
> John Machin wrote:
> > Of course. You can chain comparisons as much as you like and is
> > (semi-)sensible, e.g.
>
> Hmm, 'of course' is not the correct word for it.
'Of course' was short for: Given alternative hypotheses H0 = "Pyth
[EMAIL PROTECTED] wrote:
> Actually that's what I tried to do, for example:
> outputString = myString.encode('iso-8859-1','ignore')
>
> However, I always get such messages (the character, that's causing problems
> varies, but its always higher than 127 ofc...)
>
> 'ascii' codec can't decode byte
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Michael Wieher
> Sent: Thursday, March 20, 2008 4:36 PM
> To: python-list@python.org
> Subject: Haskell vs ??
>
> Just to help clear up my own understanding of this discussion, this
> is basically a language that obfuscates de
Sean DiZazzo <[EMAIL PROTECTED]> wrote:
> In this case, there will be so few people touching the system, that I
> think I can get away with having the copy be done from Unix, but it
> would be nice to have a general way of knowing this on Windows.
>
Doesn't the CreateFile call I posted earlier d
>> I tried to use eval with/without unicode strings and it worked. Example:
>>
>> >>> eval( u'"徹底したコスト削減 ÁÍŰŐÜÖÚÓÉ трирова"' ) == eval( '"徹底し
>> たコスト削減 ÁÍŰŐÜÖÚÓÉ трирова"' )
>> True
>>
> When you feed your unicode data into eval(), it doesn't have any
> encoding or decoding work to do.
>
Has anybody figured out how to do code folding of Python source
files in emacs?
I tried "hide-show" minor mode, but it doesn't really work for
Python code: the only think it knows how to hide/show are
function bodies. It can't do normal things like hide/show a
code block like it can for other l
On Mar 20, 4:55 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 20, 2008 at 3:42 PM, Craig <[EMAIL PROTECTED]> wrote:
>
> > On Mar 20, 2:38 pm, Craig <[EMAIL PROTECTED]> wrote:
> > > On Mar 20, 2:29 pm, sturlamolden <[EMAIL PROTECTED]> wrote:
>
> > > > On 20 Mar, 19:09, Craig <[EMAIL
I don't use emucks, but in vim its very simple.
:set foldmethod=indent
and instantly anything indented (ie: all python blocks) are folded.
to unfold a fold
zo
to close an opened fold
zc
that outta be enough to get any fellow vim-heads going =)
2008/3/20, Grant Edwards <[EMAIL PROTECTED]>:
>
>
On Mar 20, 12:39 pm, Ed Leafe <[EMAIL PROTECTED]> wrote:
> On Mar 20, 2008, at 11:54 AM, [EMAIL PROTECTED] wrote:
>
> > Number Three: Too much code, not enough concept.
>
> > Presenters this one's for you. I can't count the number of
> > presentations I attended where the presenter would click th
On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote:
> The following is the C++ prototype for one of the functions:
> short FAR PASCAL VmxOpen(BSTR*Filespec,
> LPSHORT lpLocatorSize,
> LPSHORT lpOmode,
> LPHANDLE lphwmc
Michael Goerz wrote, on 03/20/2008 04:43 PM:
> Hi,
>
> I'm trying to print some variable through a pager (i.e. 'less') on a
> linux system. My attempt was this:
>
>
> == snip here ==
> import subprocess
>
> def put_through_pager(displaystring):
> less_pipe = subprocess.Popen(\
>
I wanted to ask some opinions on the Eric4 Python IDE, It was the second
result from google using the search term "Python IDE" (Quotes Included
in the search), the first being
http://wiki.python.org/moin/IntegratedDevelopmentEnvironments !
I haven't downloaded or installed it yet, since it has
Hi,
I have a bunch of CDF files that I need to read/process and I'd like
to use python for that. Does anybody know an API for interfacing with
CDF? So far I only found pycdf for netCDF, and pytables for HDF but
nothing for CDF.
Josef
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 20, 2:20 pm, Laszlo Nagy <[EMAIL PROTECTED]> wrote:
>
> >> >>> eval( u'"徹底したコスト削減 ÁÍŰŐÜÖÚÓÉ трирова"' ) == eval( '"徹底し
> >> たコスト削減 ÁÍŰŐÜÖÚÓÉ трирова"' )
> >> True
>
> > When you feed your unicode data into eval(), it doesn't have any
> > encoding or decoding work to do.
>
> Yes, but what ab
On Thu, 20 Mar 2008 13:42:22 +, Duncan Booth wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>
>> On Wed, 19 Mar 2008 12:34:34 +, Duncan Booth wrote:
>>> By default Python on Windows allows you to open a file for reading
>>> unless you specify a sharing mode which prevents it:
>>
>>
I use it for some time now and i think it is the best Python IDE out
there, especially if someone wants to "play" with Qt. If you are on
Windows, just install the Windows binary, it' all there!
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 20 Mar 2008 10:26:14 -0700, Jim wrote:
> The program is my first and I'm not a programmer so it will take me some
> time to get your recommendation to work. So far the program runs after I
> added code based on your example but the program still aborts and none
> of the code ("Temporary fa
On Thu, 20 Mar 2008 10:45:03 -0700, Sean DiZazzo wrote:
> After trying again this morning, the file is opened for reading. I must
> have had some wonky permissions on that file, so the error method won't
> work.
Then fix the permissions.
--
Steven
--
http://mail.python.org/mailman/listinfo/p
On Thu, 20 Mar 2008 15:09:08 +0100, Rolf van de Krol wrote:
> John Machin wrote:
>> Of course. You can chain comparisons as much as you like and is
>> (semi-)sensible, e.g.
>>
> Hmm, 'of course' is not the correct word for it.
Not at all. The Original Poster tried something, and it worked. Th
On Mar 20, 2:53 pm, Erich <[EMAIL PROTECTED]> wrote:
> On Mar 20, 12:39 pm, Ed Leafe <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Mar 20, 2008, at 11:54 AM, [EMAIL PROTECTED] wrote:
>
> > > Number Three: Too much code, not enough concept.
>
> > > Presenters this one's for you. I can't count the number
On Mar 20, 6:26 pm, sturlamolden <[EMAIL PROTECTED]> wrote:
> On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote:
>
> > The following is the C++ prototype for one of the functions:
> > short FAR PASCAL VmxOpen(BSTR*Filespec,
> > LPSHORT lpLocatorSize,
> >
On Mar 19, 11:39 pm, "Daniel Fetchinson" <[EMAIL PROTECTED]>
wrote:
> > Was looking at PEP 3108,http://www.python.org/dev/peps/pep-3108/,
> > and saw that the repr module was slated for vaporization. I've only
> > used the module a few times ever. I'm curious if the community wants
> > it kept arou
On Mar 20, 2:39 am, "Daniel Fetchinson" <[EMAIL PROTECTED]>
wrote:
> Is it just me or others also think that it would be a major loss to
> remove tkinter from the python core? PEP 3108 starts off with:
I really like Python since I started using it a couple years ago, but
this is a huge turnoff an
On 21 Mar, 01:43, Simon Forman <[EMAIL PROTECTED]> wrote:
>
> I've been thinking of volunteering to "port" Tkinter to Python 3.0, I
> hadn't noticed that there was any discussion of removing it.
That's because the forum for discussing these things wasn't mentioned
on comp.lang.python until two day
Working on a rather large open source python application that I want
to release for Linux and BSD and was wondering what methods others are
using to distribute large and complex applications.
Setuptools and friends seem to be focused on distributing modules, I'm
at the other end of the scale where
Hai friends. Welcome to Comp.lang.c group. Today I found a website
where it gives the entire details about C++ and other IT related tools
such as SQL server 2008 updates, IBM tools and techniques and a lot
more in the field of Information Technology.
http://www.sqlserversoftware.blogspot.com
--
h
I appologize if this been discussed previously. If so, just point me to that
information.
I have done a fair bit of digging, but I haven't found a description of what
to actually do.
I have a fairly lengthy script that I am able to run without any problems
from a shell. My problem is, now I am wa
"Reedick, Andrew" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Quicksort in Haskell versus C is amazing:
|
http://www.haskell.org/haskellwiki/Introduction#What.27s_good_about_functional_programming.3F
Sorry, bogus comparison, and not so amazing.
1.The short doubly recursive de
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message
news:[EMAIL PROTECTED]
| "Daniel Fetchinson" <[EMAIL PROTECTED]> writes:
| > Is it just me or others also think that it would be a major loss to
| > remove tkinter from the python core?
|
| That would be terrible. Every time I've tri
In article
<[EMAIL PROTECTED]>,
hberig <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm sorry if this is an off-topic message, but I didn't found other
> group.
> I've read some articles about Zope, and since I like very much python,
> I would like to run a webserver application using Zope instead other
>
I am working with Python in Maya, and have run into a problem with a
variable changing its contents without being scripted to do so. The
various print() statements below were from my efforts to track down
where it was occurring. I left them in so that anyone running this
will more easily see what's
I've searched the user manual (and this forum) but I don't see
anything that helps.
--
http://mail.python.org/mailman/listinfo/python-list
How difficult would it be to write a Python program that would play a
specific track on a CD from say 8 am to 6 pm each weekday on a PC's speaker,
and switch tracks each day? That is, what library capabilities might be able
to do that. Are they already available.
Extra points. Now imagine the s
I don't know of any Python specific stuff to do this, but have you
looked at Asterisk? I know it's quite configurable and allows you to
setup dial plans and route extensions and whatnot.
http://www.asterisk.org/
That's probably a better fit.
On 3/20/08, W. Watson <[EMAIL PROTECTED]> wrote:
> How
Gowri <[EMAIL PROTECTED]> wrote:
>
>I understand it's JSON. My problem is that it just prints crazy
>characters instead of the JSON data.
Ah, I see. I didn't get that from your original post.
>Like I mentioned, this happens on
>my windows machine which has python 2.5. On the other hand, the same
On Mar 21, 3:05 am, Jeremy N <[EMAIL PROTECTED]> wrote:
> I am working with Python in Maya, and have run into a problem with a
> variable changing its contents without being scripted to do so. The
> various print() statements below were from my efforts to track down
> where it was occurring. I left
On Mar 21, 2:05 pm, Jeremy N <[EMAIL PROTECTED]> wrote:
> I am working with Python in Maya, and have run into a problem with a
> variable changing its contents without being scripted to do so. The
> various print() statements below were from my efforts to track down
> where it was occurring. I left
On Mar 20, 8:42 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message
>
> news:[EMAIL PROTECTED]
> | "Daniel Fetchinson" <[EMAIL PROTECTED]> writes:
> | > Is it just me or others also think that it would be a major loss to
> | > remove tkinter
"Terry Reedy" <[EMAIL PROTECTED]> writes:
> What would be amazing would be a algorithm that could rewrite the
> external-arrays Haskell/Python code to the equivalent of the in-place C
> code.
I don't think JHC (a fancy optimizing Haskell compiler) goes quite
that far, but it compiles Haskell to
Sean DiZazzo <[EMAIL PROTECTED]> wrote:
>
>The overall idea is to be able to tell if a file has finished being
>placed in a directory without any control over what is putting it
>there.
There is simply no way to do this on Windows that works in the general
case.
--
Tim Roberts, [EMAIL PROTECTED]
Christian Heimes <[EMAIL PROTECTED]> wrote:
>
>Yes, it sounds like a good idea. The low hanging fruits (aka easy tasks)
>could be implemented for 2.6 and 3.0. The more complex tasks may have to
>wait for 2.7 and 3.1
I thought there wasn't going to be a 2.7...
--
Tim Roberts, [EMAIL PROTECTED]
P
sex sex downlond
http://www.al-lail.com/vb/showthread.php?goto=newpost&t=4454
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 20, 8:20 pm, Carl <[EMAIL PROTECTED]> wrote:
> I've searched the user manual (and this forum) but I don't see
> anything that helps.
Did you mean the font size for the ticks or for
the labels? Here's an example:
from pylab import *
x = arange(0, 2*pi, 0.01)
y = sin(2*pi*x)
rcParams.up
Just found out that win32api.GetTickCount() returns a tick count in
milli-second since XP started. Not sure whether that is reliable.
Anyone uses that for calculating elapsed time?
--
http://mail.python.org/mailman/listinfo/python-list
Hive:
How about a shared-memory/file-map to a Python object? Seek and
tell. Has its own GIL? Raises Exceptions?
Standard C++ prohibits returning pointer-to-members. File runs in its
own thread, can callback host and raise its own exceptions, iow file
process.
Think live persistence.
Client
"Simon Forman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| I've been thinking of volunteering to "port" Tkinter to Python 3.0, I
| hadn't noticed that there was any discussion of removing it. It would
| be a shame IMHO. Sure it has warts, but it /works/ and good for quick
| an
On Mar 19, 5:32 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Wed, 19 Mar 2008 17:40:39 -0400, Nicholas F. Fabry wrote:
> > To summarize my proposal VERY briefly:
>
> > - Make aware datetime objects display in local time, but calculate/
> > compare in UTC.
>
> What possible
On Mar 20, 2:07 am, John Machin <[EMAIL PROTECTED]> wrote:
> On Mar 20, 12:50 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:> En Wed, 19 Mar 2008 20:16:36 -0300, John Machin <[EMAIL PROTECTED]>
> > escribió:
>
> > > On Mar 20, 9:14 am, sturlamolden <[EMAIL PROTECTED]> wrote:
> > >> Is a Pyt
On Mar 20, 6:06 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Thu, 20 Mar 2008 15:09:08 +0100, Rolf van de Krol wrote:
>
> > John Machin wrote:
> >> Of course. You can chain comparisons as much as you like and is
> >> (semi-)sensible, e.g.
>
> > Hmm, 'of course' is not the
101 - 154 of 154 matches
Mail list logo