On Mon, 9 Mar 2009, Nick Craig-Wood wrote:
John O'Hagan resea...@johnohagan.com wrote:
Is there a concise Pythonic way to write a method with a timeout?
I did this:
class Eg(object):
def get_value(self, timeout):
from threading import Timer
self.flag
On 3/9/09, bearophileh...@lycos.com bearophileh...@lycos.com wrote:
See here Daniel Fetchinson:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/a973de8f3562675c
But be quite careful in using that stuff, it has some traps.
Thanks a lot for all the helpful replies!
Yes, I
I am trying to plot dates and values on a graph using matplotlib.
Below is the code. I can run this and it works great, until I get to
about 2000 rows from the DB. Things really start to slow down. I
have successfully plotted up to 5000 rows from the DB, but it is very
slow. I am attempting to
farsi...@gmail.com wrote:
4 / 5.0
0.84
0.8 * 5
4.0
Start here:
http://docs.python.org/tutorial/floatingpoint.html
Play with these:
4/5.0
0.84
print 4/5.0
0.8
print repr(4/5.0)
0.84
str(4/5.0)
'0.8'
repr(4/5.0)
'0.80004'
Gabriel Genellina wrote:
En Mon, 09 Mar 2009 15:30:31 -0200, Petr Muller a...@afri.cz escribió:
Thanks for response and sorry for I wasn't clear first time. I have a
heap of data (logs), from which I build a XML document using
xml.dom.minidom. In this data, some xml invalid characters may
On Mon, 2009-03-09 at 15:55 -0400, Terry Reedy wrote:
I think you are confusing process and result. The result is a cell that
spans more than one column or row *when displayed*, thus hiding the
cells that would otherwise be displayed. This is, I am 99.9% sure,
controlled by an attribute of
On Mar 9, 5:57 pm, MRAB goo...@mrabarnett.plus.com wrote:
Explore_Imagination wrote:
Hi
I want to map 64 bit integers from C to python. I must use Python 2.2
BUT There is no support for 64 bits integers in Python2.2 (Supported
in 2.5).
Now the problem is that I have these four
On Mar 9, 5:57 pm, MRAB goo...@mrabarnett.plus.com wrote:
Explore_Imagination wrote:
Hi
I want to map 64 bit integers from C to python. I must use Python 2.2
BUT There is no support for 64 bits integers in Python2.2 (Supported
in 2.5).
Now the problem is that I have these four
On Tue, 2009-03-10 at 00:27 -0400, Terry Reedy wrote:
In any case, api-for-odfpy.odt has
I am going through the documentation for odfpy but finding it pritty
complex right now.
5.17.12 table.CoveredTableCell
Requires the following attributes: No attribute is required.
Allows the following
On Mar 9, 5:57 pm, MRAB goo...@mrabarnett.plus.com wrote:
Explore_Imagination wrote:
Hi
I want to map 64 bit integers from C to python. I must use Python 2.2
BUT There is no support for 64 bits integers in Python2.2 (Supported
in 2.5).
Now the problem is that I have these four
Hi
I want to map 64 bit integers from C to python. I must use Python 2.2
BUT There is no support for 64 bits integers in Python2.2 (Supported
in 2.5).
Now the problem is that I have following variables:
unit32_t a,b,c;
uint64_t w,x,y,z;
I use this funtion to map values:
Py_BuildValue(
mat...@gmail.com wrote:
for i in dir() :
... t = eval( 'type(' + i + ')' )
... if re.match('.*module.*',str(t)) : print i, t
...
If you think you need eval stop and think again. You don't.
If you think you need regular expressions stop and think again. You usually
don't.
def
BTW what are your feelings on a patch to msi.py to change the
names of the directories it's looking for to pick up the Tk
licenses? It's a bit of a grey area since the only canonical
reference I can find is the externals checkout from within
tools\buildbot: you might as well argue that it's
Any Suggestions?
Read all of the responses you got the last time you posted the
very same article.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
On 10/03/2009 2:51 AM, Explore_Imagination wrote:
Hi
I want to map 64 bit integers from C to python. I must use Python 2.2
BUT There is no support for 64 bits integers in Python2.2 (Supported
in 2.5).
Now the problem is that I have these four variables:
unit32_t a,b,c;
uint64_t w,x,y,z;
I
Martin v. Löwis wrote:
BTW what are your feelings on a patch to msi.py to change the
names of the directories it's looking for to pick up the Tk
licenses? It's a bit of a grey area since the only canonical
reference I can find is the externals checkout from within
tools\buildbot: you might as
This idea has already been proposed and rejected. But discuss away as
you wish ;=).
tjr
Where is that? I didn't see any related pep's. Could you post a link?
--
http://mail.python.org/mailman/listinfo/python-list
Robert Kern wrote:
On 2009-03-09 13:52, R. David Murray wrote:
The web _really, really_ needs some sort of mechanism for a site
to say I'm not claiming anything about my identity, I'm just
providing you an https channel over which to talk to me
securely.
If I don't claim an identity and
Given a webpage test.html that has a form with a cgi script, how can
you determine inside the cgi script the name of the webpage that
invoked the script?
I have many different html pages that use a common cgi script for form
processing and want to determine the name of the webpage.
Thanks.
--
On Montag, 9. März 2009, r wrote:
Long answer:
'Ye%s' %'s'*1000
simplified long answer:
'Yes' * 1000
or did you mean
'Ye%s' %('s'*1000)
--
Wolfgang
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 2009-03-09 at 21:28 -0700, Luis Gonzalez wrote:
C'mon guys, Xha Lee always wins, because fools like you get mad at him
instead of ignoring him.
Here here!
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I was hoping someone would be able to point me in the direction of
some good documentation regarding sequencing, grouping and filtering
and in which order they should be done.
As a small example it is easy to create the range of numbers 1 to 20.
But if I wanted to group all possible
davidgo...@davidgould.com wrote:
Given a webpage test.html that has a form with a cgi script, how can
you determine inside the cgi script the name of the webpage that
invoked the script?
I have many different html pages that use a common cgi script for form
processing and want to determine the
On Tue, Mar 10, 2009 at 2:54 AM, flebber flebber.c...@gmail.com wrote:
Hi
I was hoping someone would be able to point me in the direction of
some good documentation regarding sequencing, grouping and filtering
and in which order they should be done.
As a small example it is easy to create
On Mar 10, 8:54 pm, flebber flebber.c...@gmail.com wrote:
Hi
I was hoping someone would be able to point me in the direction of
some good documentation regarding sequencing, grouping and filtering
and in which order they should be done.
As a small example it is easy to create the range of
On Tue, Mar 10, 2009 at 3:00 AM, flebber flebber.c...@gmail.com wrote:
On Mar 10, 8:54 pm, flebber flebber.c...@gmail.com wrote:
Hi
I was hoping someone would be able to point me in the direction of
some good documentation regarding sequencing, grouping and filtering
and in which order they
On Mar 10, 6:38 am, Daniel Fetchinson fetchin...@googlemail.com
wrote:
On 3/9/09, bearophileh...@lycos.com bearophileh...@lycos.com wrote:
See here Daniel Fetchinson:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/...
But be quite careful in using that stuff, it has
Hello
I want to have a maximized window with pygame
how can I know the resolution of the screen to create de pygame window
with the good size?
thanks and regards
Jonathan Chacón
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 10, 11:01 am, Tim Michelsen timmichel...@gmx-topmail.de
wrote:
Hello,
how do I create a list of all modules imported by my module/script and
which are present in the namespace?
I am looking for something like %who in Ipython.
My aim is to create a file for the documentation that
Xah Lee schrieb:
Christian fakem...@xyz.de wrote:
On Mar 9, 1:22 pm, Christian fakem...@xyz.de wrote:
XahLeeschrieb: Of interest:
• Why Can't You Be Normal?
http://xahlee.org/Netiquette_dir/why_cant_you_be_normal.html
IMHO the point that you never reply to responds is what makes it
On 9 mar, 14:59, Saki sakal...@gmail.com wrote:
Hello,
I need an MT940 file parses. It can be either a pure python library or
a binding/wrapper, no matter. Almost all european banks provide
transactions extract in MT940 format. There are parsers around, but
none of them are for python. Any
any ways thanks for your reply,
Right now I am stuck very badly.
The problem is that I am trying python-ooolib and did find the library
pritty good.
There's another one called ooolib-python; have you had a look at that?
Can you provide the url? Actually I think I saw this library
En Tue, 10 Mar 2009 05:40:10 -0200, Stefan Behnel stefan...@behnel.de
escribió:
Gabriel Genellina wrote:
En Mon, 09 Mar 2009 15:30:31 -0200, Petr Muller a...@afri.cz escribió:
I don't know what else is illegal in xml, so I've searched if there's
some method how to prepare strings for
On 10/03/2009 10:35 PM, Krishnakant wrote:
any ways thanks for your reply,
Right now I am stuck very badly.
The problem is that I am trying python-ooolib and did find the library
pritty good.
There's another one called ooolib-python; have you had a look at that?
Can you provide the url?
Iain King iaink...@gmail.com wrote:
Sort of tangenitally; is there any real difference between the outcome
of the two following pieces of code?
a = lambda x: x+2
def a(x):
return x+2
a.__name__
As for why that matters, try a(None) and see which gives the more
informative traceback.
--
Rhodri James wrote:
On Tue, 10 Mar 2009 04:14:51 -, W. eWatson notval...@sbcglobal.net
wrote:
Marc 'BlackJack' Rintsch wrote:
On Mon, 09 Mar 2009 04:22:57 -0700, W. eWatson wrote:
Marc 'BlackJack' Rintsch wrote:
On Sun, 08 Mar 2009 22:20:09 -0700, W. eWatson wrote:
You didn't answer
OK, here is a slightly cleaned up version of this horrible code. I did
not change too much at one time for fear of confusing you. The main
problem is you did not explicitly grid the entry like i told you
earlier, and why you are using eval is beyond any measure of sanity...
from Tkinter import *
En Tue, 10 Mar 2009 03:48:07 -0200, Paulo Repreza pxrepr...@gmail.com
escribió:
# Program exits until 'menu_item = 9'
while menu_item != 9:
print '-'
print '1. Print the list.'
print '2. Add a name to the list.'
print '3. Remove a name from the list.'
print
Xah Lee schrieb (and how...)
For Google Groups users, there is a kill file implementation for
Firefox / Greasemonkey: http://www.penney.org/ggkiller.html
hth, Tom
--
http://mail.python.org/mailman/listinfo/python-list
I am compiling 2.5 on Solaris 10 SPARC.
I edited Modules/Setup to try and enable tkinter. ranlib claims that
it cannot find
libtk8.4.so even though I have a -L option pointing to it.
ranlib libpython2.5.a
/usr/sfw/bin/gcc -o python \
Modules/python.o \
def do_magic():
from staples import easy_button
result = easy_button.press()
return result
:) In all seriousness that code did the trick but only after a short delay. I
noticed when I first ran it, there was no effect. But when I ran it
interactively, it succeeded.
Is there any way
Alright try this code. The only thing that i left out was inheriting
from Frame, but since i cannot see your entire progam i did not want
to do that for fear of breaking some other code. You had a lot of
useless code in there and more code that was just a spaghetti mess. If
you want to return a
Iain King iaink...@gmail.com wrote:
Sort of tangenitally; is there any real difference between the outcome
of the two following pieces of code?
a = lambda x: x+2
def a(x):
return x+2
Disassemble it to see. The functions themselves have identical code
bytes, the only difference is
Martin v. Löwis wrote:
First, it relies on config.py whose existence msi.py
optionally ignores.
Feel free to create a patch for that.
http://bugs.python.org/issue5467
TJG
--
http://mail.python.org/mailman/listinfo/python-list
On 2009-03-10, Tim Wintle tim.win...@teamrubber.com wrote:
On Mon, 2009-03-09 at 21:28 -0700, Luis Gonzalez wrote:
C'mon guys, Xha Lee always wins, because fools like you get mad at him
instead of ignoring him.
Here here!
Hear hear!
--
Grant Edwards grante
Put this code at the end of your script:
import sys
info = [(module.__file__, name)
for (name, module) in sys.modules.iteritems()
if hasattr(module, '__file__')]
info.sort()
import pprint
pprint.pprint(info)
AFAIK unless someone has been messing with
Matt Nordhoff wrote:
Alan G Isaac wrote:
Hans Larsen schrieb:
How could I take an elemment from a set or a frozenset
On 3/8/2009 2:06 PM Diez B. Roggisch apparently wrote:
You iterate over them. If you only want one value, use
iter(the_set).next()
I recall a claim that
Hi!
I have a problem with PyEval_EvalCode(...)
I compile the following code and execute them with PyEval_EvalCode
(...)
class MyClass(mod.Upper):
pass
register(MyClass) #just the type, not the instance
Thats all. So register(...) is a Python C API method so i take the
type and store
it
En Tue, 10 Mar 2009 05:08:41 -0200, brianrpsgt1 brianl...@cox.net
escribió:
I am trying to plot dates and values on a graph using matplotlib.
Below is the code. I can run this and it works great, until I get to
about 2000 rows from the DB. Things really start to slow down. I
have
Martin v. Löwis wrote:
I also see that it fails to add custom actions into
InstallExecuteSequence. I find that puzzling - apparently,
it tries to merge the twice. Are you sure you didn't run it
twice? It will certainly fail the second time.
Just to confirm: I'm certainly only running this
En Tue, 10 Mar 2009 12:29:28 -0200, Timmie timmichel...@gmx-topmail.de
escribió:
Put this code at the end of your script:
import sys
info = [(module.__file__, name)
for (name, module) in sys.modules.iteritems()
if hasattr(module, '__file__')]
info.sort()
import
MRAB wrote:
(lambda arg: arg) == (lambda arg: arg)
False
curious...
I somehow thinked that, whereas
(lambda: 0) is (lambda: 0)
should be False (obviously)
(lambda: 0) == (lambda: 0)
could be True... maybe because `{} == {} and {} is not {}` (also for [])
--
By ZeD
--
En Tue, 10 Mar 2009 12:32:00 -0200, googler.1.webmas...@spamgourmet.com
escribió:
Hi!
I have a problem with PyEval_EvalCode(...)
I compile the following code and execute them with PyEval_EvalCode
(...)
class MyClass(mod.Upper):
pass
register(MyClass) #just the type, not the instance
In comp.lang.lisp Xah Lee xah...@gmail.com wrote:
Some people says that i don't participate in discussion, and this is
part of the reason they think i'm a so-called ?troll?. Actually i do,
and read every reply to my post, as well have replied to technical
questions other posted. Most replies
En Tue, 10 Mar 2009 13:00:18 -0200, Vito De Tullio
zak.mc.kra...@libero.it escribió:
MRAB wrote:
(lambda arg: arg) == (lambda arg: arg)
False
curious...
I somehow thinked that, whereas
(lambda: 0) is (lambda: 0)
should be False (obviously)
(lambda: 0) == (lambda: 0)
could be
On Mar 10, 7:40 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Tue, 10 Mar 2009 05:08:41 -0200, brianrpsgt1 brianl...@cox.net
escribió:
I am trying to plot dates and values on a graph using matplotlib.
Below is the code. I can run this and it works great, until I get to
about
On Mar 9, 6:55 pm, Raymond Hettinger pyt...@rcn.com wrote:
[prueba]
The data often contains objects with attributes instead of tuples, and
I expect the new namedtuple datatype to be used also as elements of
the list to be processed.
But I haven't found a nice generalized way for that
Down, Fang! Down, boy. Down. -- Soupy Sales, Comedian, talking to his
imaginary animal, circa 1960.
Thank you very much. One more quote before I continue. A favorite.
The trouble with most folks isn't their ignorance. It's knowin' so
many things that ain't so. by Josh
On Mar 10, 10:52 am, W. eWatson notval...@sbcglobal.net wrote:
[snip: biting the hand that feeds]
This is not the first time you have come to c.l.py with hat in hand
seeking help and then scoffed at suggestions made by well respected
posters. I should have known you would just do the same again.
En Tue, 10 Mar 2009 13:32:10 -0200, brianrpsgt1 brianl...@cox.net
escribió:
On Mar 10, 7:40 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Tue, 10 Mar 2009 05:08:41 -0200, brianrpsgt1 brianl...@cox.net
escribió:
I am trying to plot dates and values on a graph using matplotlib.
On Mon, Mar 9, 2009 at 2:47 PM, ommer.sim...@gmail.com wrote:
I'm trying to figure out parallel process python code. Something
similar to fork funtion in C.
For example, I using sniff tool in scapy to capture packets but i want
this to run in the background:
---
from scapy.all import
Tim Golden wrote:
However, the .msi installs (and Python
runs) without issue on a virgin VirtualXP. And it passes the basic test
suite ok.
I lied. test_zipfile fails because the new(ish) zipdir.zip doesn't
get carried across to the install. Patched in:
http://bugs.python.org/issue5470
A
can python import class or module directly from a zip package ,just
like jave does from jar package without extracting the class file into
directory
so far as i know ,python module should be unzip to file system in
order to use them,
--
http://mail.python.org/mailman/listinfo/python-list
Kay Schluehr wrote:
On 6 Mrz., 02:53, bearophileh...@lycos.com wrote:
This is an interesting post, it shows me that fitness plateau where
design of Python syntax lives is really small, you can't design
something just similar:
Flank wrote:
can python import class or module directly from a zip package
Yes, just put the .zip file into your PYTHONPATH.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
John The only complaint I have there is that mixing tabs and spaces for
John indentation should be detected and treated as a syntax error.
Guido's time machine strikes again (fixed in Python 3.x):
% python3.0 ~/tmp/mixed.py
File /home/titan/skipm/tmp/mixed.py, line 3
Flank wrote:
can python import class or module directly from a zip package ,just
like jave does from jar package without extracting the class file into
directory
so far as i know ,python module should be unzip to file system in
order to use them,
--
On Mar 10, 9:44 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Tue, 10 Mar 2009 13:32:10 -0200, brianrpsgt1 brianl...@cox.net
escribió:
On Mar 10, 7:40 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Tue, 10 Mar 2009 05:08:41 -0200, brianrpsgt1 brianl...@cox.net
Why not use os.fork(), it is the same as C's fork?
os.fork is not cross platform. It is *nix only. Subprocess runs on
Windows also. The OP never specified his platform.
-Corey
--
http://mail.python.org/mailman/listinfo/python-list
Hi John,
I tryed this same library to begin with.
python-ooolib is very good except that it misses a major feature of cell
merging (spanning ).
That is the point from which I started the thread.
I even thought the author of that library will respond back but did not
happen.
Seams it is a very
Dear Pythonistas,
Our open-source software project (PyDSTool) has money to hire an
experienced Python programmer on a short-term, per-task basis as a
technical consultant (i.e., no fringe benefits offered). The work can
be done remotely and will be paid after the satisfactory completion of
the
r wrote:
On Mar 10, 10:52 am, W. eWatson notval...@sbcglobal.net wrote:
[snip: biting the hand that feeds]
This is not the first time you have come to c.l.py with hat in hand
seeking help and then scoffed at suggestions made by well respected
posters. I should have known you would just do the
On Mar 10, 10:06 am, Minesh Patel min...@gmail.com wrote:
On Mon, Mar 9, 2009 at 2:47 PM, ommer.sim...@gmail.com wrote:
I'm trying to figure out parallel process python code. Something
similar to fork funtion in C.
For example, I using sniff tool in scapy to capture packets but i want
On Mar 10, 3:09 am, andrew cooke and...@acooke.org wrote:
a month is more than enough - i would expect to have something in a week.
if possible, a data size of 1GB or more would be useful, but
A gigabyte of SWIFT messages as test data?
please remember that this is a best efforts attempt only.
davidgo...@davidgould.com escribió:
Given a webpage test.html that has a form with a cgi script, how can
you determine inside the cgi script the name of the webpage that
invoked the script?
I have many different html pages that use a common cgi script for form
processing and want to determine
http://rafb.net/p/Uyb5Ps45.html
Pelase note, when I call PyObject_CallObject(...) in the wrapped C
register(..) method it works fine.
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 9, 6:37 pm, Wolfgang Rohdewald wolfg...@rohdewald.de wrote:
On Montag, 9. März 2009, r wrote:
Long answer:
'Ye%s' %'s'*1000
simplified long answer:
'Yes' * 1000
♦ Sure that works too but sounds like your stu..stu..studdering.
or did you mean
'Ye%s' %('s'*1000)
♦ Oops, must test
pang wrote:
This idea has already been proposed and rejected. But discuss away as
you wish ;=).
tjr
Where is that?
py-dev and/or python-ideas lists within last year
I didn't see any related pep's.
Though helpful, not too many people write PEPs to document rejections.
Could you post a
Lie Ryan wrote:
I recall a claim that
for result in myset: break
is the most efficient way to get one result.
I'd never expect that for-loop assignment is even faster than a
precreated iter object (the second test)... but I don't think this
for-looping variable leaking behavior is
Terry Reedy tjre...@udel.edu writes:
I'd never expect that for-loop assignment is even faster than a
precreated iter object (the second test)... but I don't think this
for-looping variable leaking behavior is guaranteed, isn't it?
It is an intentional, documented feature: ...
I prefer
Sorry, no.
tjr
well, thank you
Even now it's difficult to find the discussion, but at least I know
about python-ideas.
Thanks to all that replied.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Tarek,
I'm an academic. What do I put down for Q #1? ;)
(I put down pro developer)
--t
On Mon, Mar 09, 2009 at 06:44:02AM +0100, Tarek Ziad? wrote:
- The Python Langage Summit is coming up. To prepare this event, I have
- put online a survey you can take to tell us a bit more about you and
On Tue, 10 Mar 2009 01:15:19 -0400, Lew wrote:
s...@netherlands.com wrote:
On Mon, 09 Mar 2009 22:08:54 -0400, Lew no...@lewscanon.com wrote:
Larry Gates wrote:
For me, the worst thing is when I'm programming, and a bug *actually* gets
on my monitor. In real life, I'm this tough person: a
On 11/03/2009 12:39 AM, Rickey, Kyle W wrote:
def do_magic():
from staples import easy_button
result = easy_button.press()
return result
:) In all seriousness that code did the trick but only after a short delay. I
noticed when I first ran it, there was no effect. But when I ran
Paul Rubin wrote:
Terry Reedy tjre...@udel.edu writes:
I'd never expect that for-loop assignment is even faster than a
precreated iter object (the second test)... but I don't think this
for-looping variable leaking behavior is guaranteed, isn't it?
It is an intentional, documented feature: ...
Scott David Daniels wrote:
Tim Golden wrote:
... Anyhow, at the end I have a working Python 2.7a0 running
under Windows.
Do you mean 3.1a0? As far as I know, 2.7a0 requires the use
of the time machine, as it is expected to be 3 months out.
If you do get an installer built, even having a
On Tue, Mar 10, 2009 at 12:39 PM, s...@pobox.com wrote:
John The only complaint I have there is that mixing tabs and spaces for
John indentation should be detected and treated as a syntax error.
Guido's time machine strikes again (fixed in Python 3.x):
% python3.0 ~/tmp/mixed.py
Rob Clewley wrote:
Dear Pythonistas,
Our open-source software project (PyDSTool) has money to hire an
experienced Python programmer on a short-term, per-task basis as a
technical consultant (i.e., no fringe benefits offered)
Please see http://www.python.org/community/jobs/
for where to
2009/3/8 Tim Roberts t...@probo.com:
Tim Rowe digi...@gmail.com wrote:
I don't think the article is right that it's silly to have some
expression/statement groupings indentation based and some grouped by
enclosing tokens -- provided it's done right. The OCAML-based
language F# accepts OCAML
On Mar 11, 1:29 am, Timmie timmichel...@gmx-topmail.de wrote:
Put this code at the end of your script:
import sys
info = [(module.__file__, name)
for (name, module) in sys.modules.iteritems()
if hasattr(module, '__file__')]
info.sort()
import pprint
Q1/ I run a standard python ditribution with ipython and readline
under cygwin. The tab filename completion works fine in the OS (bash
shell) as expected, and tab filename completion at the ipython command
line works, but with MS style path separators (backslash: run examples
\test.py) which the
I think the point is that function objects compare by object identity,
so the two lambdas you use above are not equal even though they have the
same code.
it raises an interesting question about why doesn't it. I can think
of practical answers to that, obviously, but in principle, if a
Craig Allen callen...@gmail.com writes:
it raises an interesting question about why doesn't it. I can think
of practical answers to that, obviously, but in principle, if a
function compiles to exactly the same byte code, you obviously do not
need two copies of it, and like strings shouldn't
Dear all,
I have loaded an xml file into xmldoc.
I would have expected that print commandlet.childNodes[0].toxml() would
contain the content but that's only at print
commandlet.childNodes[1].toxml()
The same for print commandlet.childNodes[2].toxml()
Why are commandlet.childNodes[0] and
En Tue, 10 Mar 2009 18:28:10 -0200, pang pablo.ang...@uam.es escribió:
Even now it's difficult to find the discussion, but at least I know
about python-ideas.
Try http://blog.gmane.org/gmane.comp.python.ideas
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 10, 9:07 pm, Chris Rebert c...@rebertia.com wrote:
On Tue, Mar 10, 2009 at 3:00 AM, flebber flebber.c...@gmail.com wrote:
On Mar 10, 8:54 pm, flebber flebber.c...@gmail.com wrote:
Hi
I was hoping someone would be able to point me in the direction of
some good documentation
On Mar 9, 12:43 am, ZikO ze...@op.pl wrote:
Hi
I hope I won't sound trivial with asking my question.
I am a C++ programmer and I am thinking of learning something else
because I know second language might be very helpful somehow. I have
heard a few positive things about Python but I have
More info:
import readline
? readline
c:\python25\lib\site-packages\ipython\rlineimpl.py
$Id: Magic.py 1096 2006-01-28 20:08:02Z vivainio $
sys.platform 'win32'
sys.getfilesystemencoding() 'mbcs'
sys.winver '2.5'
$more /usr/local/bin/ipython
#!/bin/bash
C:/Python25/python.exe
os.fork is not cross platform. It is *nix only. Subprocess runs on
Windows also. The OP never specified his platform.
Just out of curiosity, how is one able to replace an os.fork() call
with subprocess and have the child execute multiple statements? I
typically see subprocess used for
it raises an interesting question about why doesn't it. I can think
of practical answers to that, obviously, but in principle, if a
function compiles to exactly the same byte code, you obviously do not
need two copies of it, and like strings shouldn't an identical
function have the same id?
1 - 100 of 171 matches
Mail list logo