On 10 Jul 2010, at 16:21, John Nagle wrote:
On 7/9/2010 11:08 PM, Dennis Lee Bieber wrote:
On Sat, 10 Jul 2010 06:56:13 +0200, Rene Veerman
declaimed the following in gmane.comp.python.general:
hi.
i'm using this function;
def dbCacheGet(self, appParams):
results =
On 7/9/2010 11:08 PM, Dennis Lee Bieber wrote:
On Sat, 10 Jul 2010 06:56:13 +0200, Rene Veerman
declaimed the following in gmane.comp.python.general:
hi.
i'm using this function;
def dbCacheGet(self, appParams):
results = db.GqlQuery(
"SELECT *
On Fri, Jul 9, 2010 at 9:56 PM, Rene Veerman wrote:
> hi.
>
> i'm using this function;
>
>
> def dbCacheGet(self, appParams):
> results = db.GqlQuery(
> "SELECT * "
> "FROM DBcache "
> "WHERE url='"+appParams['urlCalled']+"'"
>
hi.
i'm using this function;
def dbCacheGet(self, appParams):
results = db.GqlQuery(
"SELECT * "
"FROM DBcache "
"WHERE url='"+appParams['urlCalled']+"'"
).fetch(1)
if results.count('*')==0:
On Fri, Jul 9, 2010 at 5:23 PM, Tim Chase wrote:
> On 07/09/2010 06:32 PM, Roy Smith wrote:
>
>> i have been asked to guarantee that a proposed Python application will
>>> run continuously under MS Windows for two months time. And i am looking
>>> to know what i don't know.
>>>
>>
>> Heh. The OS
(( hi Friend))
I bet that your happiness here
Site a priest after being found happiness
www.islamalways.com
www.shareislam.com
Other Sites:
For more information about Islam
http://islamtomorrow.com/
http://www.55a.net/firas/english/
http://english.islamway.com/
http://www.islamo
Would you stop for a moment?!
O...man...Haven't you thought-one day- about yourself ?
Who has made it?
Have you seen a design which hasn't a designer ?!
Have you seen a wonderful,delicate work without a worker ?!
It's you and the whole universe!..
Who has made them all ?!!
You know who ?.. It's "A
kedra marbun wrote:
this 'passing class' thing comes from,
IIRC, learning python 4ed by Mark Lutz, it's stated there that the 3rd
arg to __get__ is the class to which the descriptor instance is
attached
That's there so that the __get__ method of function
objects can return an unbound method whe
Ben Finney writes:
>> Any thoughts or advice would be greatly appreciated.
> Rather than here, you should post job advertisements at the Python Job
> Board http://www.python.org/community/jobs/>.
Since you are looking for an instructor to come to your site, it would
also help if you stated your g
On Fri, 09 Jul 2010 23:14:23 +0200, Frederic Rentsch wrote:
> I understand that things going out of scope delete themselves. I have
> used del on occasion, for instance, to get rid of invalid members of a
> list or a dictionary. It has to be done in two passes, though, because
> neither can be alt
On Fri, 09 Jul 2010 17:46:26 -0400, Terry Reedy wrote:
> On 7/9/2010 9:02 AM, Frederic Rentsch wrote:
>
>> I do 'reload (service); reload (M)'.
>> The function 'M.f' still misbehaves.
>
> Guido removed reload from 3.0 because it gave people false hopes and he
> gave up on fixing it.
It's not qu
On 07/09/2010 06:32 PM, Roy Smith wrote:
i have been asked to guarantee that a proposed Python application will
run continuously under MS Windows for two months time. And i am looking
to know what i don't know.
Heh. The OS won't stay up that long.
While I'm not sure how much of Roy's comment
On 10-7-2010 0:52, Aahz wrote:
In article,
Steve Holden wrote:
Vicky Twomey-Lee wrote:
When: Wed 14th July, from 7pm
Where: Trinity Capital Hotel
Hope you all had a good piss-up! See you a week on Saturday.
Did Guido get pissed and give you the keys to the time machine?
No, he simply ha
In article ,
Steve Holden wrote:
>Vicky Twomey-Lee wrote:
>>
>> When: Wed 14th July, from 7pm
>> Where: Trinity Capital Hotel
>
>Hope you all had a good piss-up! See you a week on Saturday.
Did Guido get pissed and give you the keys to the time machine?
--
Aahz (a...@pythoncraft.com)
In article <4c3774df$0$31278$607ed...@cv.net>,
Les Schaffer wrote:
> i have been asked to guarantee that a proposed Python application will
> run continuously under MS Windows for two months time. And i am looking
> to know what i don't know.
Heh. The OS won't stay up that long.
--
http://m
On 7/9/2010 12:13 PM Les Schaffer said...
i have been asked to guarantee that a proposed Python application will
run continuously under MS Windows for two months time.
Keep users off the machine, turn off automated updates, and point dns to
127.0.0.1. Oh, put it on a UPS. I've got a handful
It worked.
Thanks,
Abhijeet
On Fri, Jul 9, 2010 at 4:03 PM, John Krukoff wrote:
> On Fri, 2010-07-09 at 15:46 -0700, abhijeet thatte wrote:
> > Hi,
> >
> >
> > Does any one know how to use pretty printing with ElementTree while
> > generating xml files.
> > We can use that with lxml. But I wan
On Fri, 2010-07-09 at 15:46 -0700, abhijeet thatte wrote:
> Hi,
>
>
> Does any one know how to use pretty printing with ElementTree while
> generating xml files.
> We can use that with lxml. But I want to stick with it ElementTree.
>
>
> Thanks,
> Abhijeet
It's pretty simple minded, but thi
Hi,
Does any one know how to use pretty printing with ElementTree while
generating xml files.
We can use that with lxml. But I want to stick with it ElementTree.
Thanks,
Abhijeet
--
http://mail.python.org/mailman/listinfo/python-list
Greg writes:
> Any thoughts or advice would be greatly appreciated.
Rather than here, you should post job advertisements at the Python Job
Board http://www.python.org/community/jobs/>.
--
\ “Love is the triumph of imagination over intelligence.” —Henry |
`\
On Fri, Jul 9, 2010 at 5:10 PM, Terry Reedy wrote:
> On 7/9/2010 1:25 AM, sturlamolden wrote:
>
>> With OpenCL, Python is better than C for heavy computing. The Python
>> or C/C++ program has to supply OpenCL code (structured text) to the
>> OpenCL driver, which does the real work on GPU or CPU. P
* Ian Collins, on 09.07.2010 23:22:
On 07/10/10 03:52 AM, Alf P. Steinbach /Usenet wrote:
[Cross-posted comp.lang.python and comp.lang.c++]
I lack experience with shared libraries in *nix and so I need to ask...
This is about "cppy", some support for writing Python extensions in C++
that I jus
On 7/9/2010 11:58 AM, crow wrote:
But in python's document, it
said I should use sys.setdefaultencoding.
Where? That may need to be changed.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list
On 7/9/2010 9:02 AM, Frederic Rentsch wrote:
I do 'reload (service); reload (M)'.
The function 'M.f' still misbehaves.
Guido removed reload from 3.0 because it gave people false hopes and he
gave up on fixing it.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Jul 9, 2010 at 5:22 PM, Ian Collins wrote:
> On 07/10/10 03:52 AM, Alf P. Steinbach /Usenet wrote:
>>
>> [Cross-posted comp.lang.python and comp.lang.c++]
>>
>> I lack experience with shared libraries in *nix and so I need to ask...
>>
>> This is about "cppy", some support for writing Pyth
On 7/9/2010 12:37 AM, Steven D'Aprano wrote:
This is a style question rather than a programming question.
How large (how many KB, lines, classes, whatever unit of code you like to
measure in) should a module grow before I should break it up into a
package? I see that, for example, decimal.py is>
On 07/10/10 03:52 AM, Alf P. Steinbach /Usenet wrote:
[Cross-posted comp.lang.python and comp.lang.c++]
I lack experience with shared libraries in *nix and so I need to ask...
This is about "cppy", some support for writing Python extensions in C++
that I just started on (some days ago almost kn
On 7/9/2010 12:13 PM, Les Schaffer wrote:
i have been asked to guarantee that a proposed Python application will
run continuously under MS Windows for two months time. And i am looking
to know what i don't know.
What if Master Control in Redmond decides to reboot your machine
to install an u
On Fri, 2010-07-09 at 19:38 +0200, Jean-Michel Pichavant wrote:
> Frederic Rentsch wrote:
> > I develop in an IDLE window.
> >
> > Module M says 'from service import *'.
> > Next I correct a mistake in function 'service.f'.
> > Now 'service.f' works fine.
> >
> > I do 'reload (service); reload (M)'
On 7/9/2010 1:25 AM, sturlamolden wrote:
With OpenCL, Python is better than C for heavy computing. The Python
or C/C++ program has to supply OpenCL code (structured text) to the
OpenCL driver, which does the real work on GPU or CPU. Python is much
better than C or C++ at processing text. There w
On 07/09/10 20:13, Les Schaffer wrote:
i have been asked to guarantee that a proposed Python application will
run continuously under MS Windows for two months time. And i am looking
to know what i don't know.
Get a good lawyer and put into the contract, the last thing you want is
a windows updat
On Jul 9, 11:43 am, geremy condra wrote:
> On Fri, Jul 9, 2010 at 1:08 PM, Dani Valverde wrote:
> > Sorry, I forgot to mention that I am using Linux. In fact, my first test
> > have been with gedit. Is there any way to directly run the Python code into
> > the console?
>
> Gedit has a plugin that
On Fri, Jul 9, 2010 at 3:13 PM, Les Schaffer wrote:
> i have been asked to guarantee that a proposed Python application will run
> continuously under MS Windows for two months time. And i am looking to know
> what i don't know.
I normally use Linux for this sort of thing, so YMMV on the following
In article ,
Jean-Michel Pichavant wrote:
>
>PS : You're misusing the del statement. It does not remove any object
>from mmory, however, it removes the reference to it, the object is still
>in memory. They are very few cases where del is usefull in python, so
>try to avoid using it as well.
T
On 7/9/2010 3:13 PM, Les Schaffer wrote:
i have been asked to guarantee that a proposed Python application will
run continuously under MS Windows for two months time. And i am looking
to know what i don't know.
The app would read instrument data from a serial port, store the data in
file, and di
yes
But further messages had better be posted to the forum. And not top-posted.
DaveA
--
http://mail.python.org/mailman/listinfo/python-list
On Friday 09 July 2010, Les Schaffer wrote:
> but none of this has anything to do with Python itself. i am sure python
> servers have been running reliably for long periods of time, but i've
> never had to deal with a two-month guarantee before. is there something
> else i am missing here that i s
> but none of this has anything to do with Python itself. i am sure python
> servers have been running reliably for long periods of time, but i've
> never had to deal with a two-month guarantee before. is there something
> else i am missing here that i should be concerned about on the
> pure-P
On 07/09/2010 01:13 PM, Les Schaffer wrote:
> or need we only concern ourselves with the nuts behind the wheel:that
> is, we the developers?
It never hurts to separate the data collection and
visualization/analysis parts into separate programs. That way you can
keep the critical, long-running da
On 7/8/2010 5:58 PM, Mark Lawrence wrote:
On 19-6-2010 23:45, Shashwat Anand wrote:
Terry: Thanks for bringing this to notice.
Mark: Kudos for your effort in cleaning up bugs.python.org
Like I've said elsewhere, flattery will get you everywhere. :)
FYI there are now 480 orphans and I've mana
i have been asked to guarantee that a proposed Python application will
run continuously under MS Windows for two months time. And i am looking
to know what i don't know.
The app would read instrument data from a serial port, store the data in
file, and display in matplotlib. typical sampling
Is Pocoo really the only solution available out there?
No. See e.g. http://www.pyforum.org/
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Jul 9, 2010 at 1:08 PM, Dani Valverde wrote:
> Sorry, I forgot to mention that I am using Linux. In fact, my first test
> have been with gedit. Is there any way to directly run the Python code into
> the console?
Gedit has a plugin that brings up a python intepreter.
Edit->Preferences->Pl
On Fri, 2010-07-09 at 15:58 +, Steven D'Aprano wrote:
> On Fri, 09 Jul 2010 15:02:25 +0200, Frederic Rentsch wrote:
>
> > I develop in an IDLE window.
> >
> > Module M says 'from service import *'. Next I correct a mistake in
> > function 'service.f'. Now 'service.f' works fine.
>
> from ser
Steven D'Aprano writes:
> How large (how many KB, lines, classes, whatever unit of code you like to
> measure in) should a module grow before I should break it up into a
> package? I see that, for example, decimal.py is > 3000 lines of code, so
> I can assume that 3 KLOC is acceptable. Presumab
And just in case... A real life example (my computer, more or less typical
Linux setup):
find / -type f -name '*.py' -exec wc {} \;
| gawk '{ l+=$1; } END {print l / FNR; } BEGIN { l=0; }'
(the two lines should be concatenated)
This gives a mean:
269.069
So, if I did not screw something, a
On 07/09/2010 06:36 PM, King wrote:
> Hi,
>
> The 'zipimport' modules can only import (.py & .pyc) files from a zip
> file and doesn't support importing .pyd & .so files. Recently I was
> examining the code of Py2Exe (python package deployment tool) and I
> have found that it is using a module 'zi
> It's strictly for windows platform. I would like to know from expert
> python users and linux programmers, how we can achieve similar
> functionality on linux platform? I do have limited c/c++ skill sets
> but I would love to give a try.
I don't know any way to load a shared library from somethi
Dani Valverde wrote:
Sorry, I forgot to mention that I am using Linux. In fact, my first
test have been with gedit. Is there any way to directly run the Python
code into the console?
Cheers!
Dani
Bradley Hintze wrote:
There are lots of great editors out there. It really depends on
personal
On 07/09/2010 06:36 PM, King wrote:
> Hi,
>
> The 'zipimport' modules can only import (.py & .pyc) files from a zip
> file and doesn't support importing .pyd & .so files. Recently I was
> examining the code of Py2Exe (python package deployment tool) and I
> have found that it is using a module 'zi
Frederic Rentsch wrote:
I develop in an IDLE window.
Module M says 'from service import *'.
Next I correct a mistake in function 'service.f'.
Now 'service.f' works fine.
I do 'reload (service); reload (M)'.
The function 'M.f' still misbehaves.
'print inspect.getsource (service.f)' and
'print i
> oh, I take back my words, it's still there, just I need to
> reload(sys).
Just don't. If you change the default encoding you are going to break
important data structures like dicts in a subtle and hard to detect way.
If your application needs to change the default encoding, it's broken.
The func
Sorry, I forgot to mention that I am using Linux. In fact, my first test
have been with gedit. Is there any way to directly run the Python code
into the console?
Cheers!
Dani
Bradley Hintze wrote:
There are lots of great editors out there. It really depends on
personal preference. It also de
On 9 Jul, 15:25, Felix wrote:
> PS: No need to convince me that MATLAB is not the solution.
What I mean is that Matlab and Mathematica are inherently "single
threaded" interpreters. Yet they are still used for serious parallel
computing. While Python has multiple threads but a GIL, only allowing
There are lots of great editors out there. It really depends on
personal preference. It also depends on your OS. I us Mac OSX and like
jEdit (my lab mate likes bbEdit). When I was on windows I liked
notepad2. On linux i really like gEdit. Any of these will work great
for a beginner!
Bradley
On F
Hello Dani!
IDLE is very friendly for new users and has got me a long way when I was
starting. You also can't beat that it comes bundled with Python.
I'd also like to suggest the Python-Tutor list
http://mail.python.org/mailman/listinfo/tutor for your "new-user" questions.
Lots of helpful fo
On Fri, 09 Jul 2010 17:31:36 +0100, Dani Valverde
wrote:
I am new to python and pretty new to programming (I have some expertise
wit R statistical programming language). I am just starting, so my
questions may be a little bit stupid. Can anyone suggest a good editor
for python?
Whateve
I know I have more radical options, such as starting
a new IDLE window. That would save me time, but
I'd like to take the opportunity to understand what
is happening. Surely someone out there knows.
Frederic
Or you can restart the IDLE shell with CTRL+F6.
If you can't restart it, you're
On 2010-07-09, Dani Valverde wrote:
> I am new to python and pretty new to programming (I have some
> expertise wit R statistical programming language). I am just
> starting, so my questions may be a little bit stupid. Can anyone
> suggest a good editor for python?
Emacs, Scite (has nice folding
* Dani Valverde, on 09.07.2010 18:31:
Hello!
I am new to python and pretty new to programming (I have some expertise
wit R statistical programming language). I am just starting, so my
questions may be a little bit stupid. Can anyone suggest a good editor
for python?
Cheers!
If you're working in
Hi,
The 'zipimport' modules can only import (.py & .pyc) files from a zip
file and doesn't support importing .pyd & .so files. Recently I was
examining the code of Py2Exe (python package deployment tool) and I
have found that it is using a module 'zipextimporter' that can import
dlls(.pyd) modules
On 07/09/2010 06:06 PM, crow wrote:
> On Jul 10, 12:04 am, Steven D'Aprano cybersource.com.au> wrote:
>> On Fri, 09 Jul 2010 08:58:35 -0700, crow wrote:
>>> So, my questions: why there is no setdefaultencoding in sys module? if I
>>> want to change system's default encoding, what should I do?
>>
>
Hello!
I am new to python and pretty new to programming (I have some expertise
wit R statistical programming language). I am just starting, so my
questions may be a little bit stupid. Can anyone suggest a good editor
for python?
Cheers!
Dani
--
Daniel Valverde Saubí
c/Joan Maragall 37 4 2
17
from SQLAlchemy docs (http://www.sqlalchemy.org/docs/
dbengine.html#database-engine-options):
"
create_engine() URL Arguments
SQLAlchemy indicates the source of an Engine strictly via RFC-1738
style URLs, combined with optional keyword arguments to specify
options for the Engine. The form of the U
On Jul 10, 12:06 am, crow wrote:
> On Jul 10, 12:04 am, Steven D'Aprano
>
>
>
>
> cybersource.com.au> wrote:
> > On Fri, 09 Jul 2010 08:58:35 -0700, crow wrote:
> > > So, my questions: why there is no setdefaultencoding in sys module? if I
> > > want to change system's default encoding, what shou
On Jul 10, 12:04 am, Steven D'Aprano wrote:
> On Fri, 09 Jul 2010 08:58:35 -0700, crow wrote:
> > So, my questions: why there is no setdefaultencoding in sys module? if I
> > want to change system's default encoding, what should I do?
>
> I think the answer is:
>
> Don't.
>
> If you do, you will b
On Fri, 09 Jul 2010 08:58:35 -0700, crow wrote:
> So, my questions: why there is no setdefaultencoding in sys module? if I
> want to change system's default encoding, what should I do?
I think the answer is:
Don't.
If you do, you will break built-ins.
http://tarekziade.wordpress.com/2008/01/08
On 07/09/10 05:37, Steven D'Aprano wrote:
This is a style question rather than a programming question.
How large (how many KB, lines, classes, whatever unit of code you like to
measure in) should a module grow before I should break it up into a
package? I see that, for example, decimal.py is> 3
On Fri, 09 Jul 2010 15:02:25 +0200, Frederic Rentsch wrote:
> I develop in an IDLE window.
>
> Module M says 'from service import *'. Next I correct a mistake in
> function 'service.f'. Now 'service.f' works fine.
from service import *
should be considered advanced functionality that is discour
Hi, everyone
I'm a new hand at python.
I tried to set system default encoding by using
"import sys; sys.setdefaultencoding('utf-f')",
but I got error message:
>>> sys.setdefaultencoding('utf-8')
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has n
[Cross-posted comp.lang.python and comp.lang.c++]
I lack experience with shared libraries in *nix and so I need to ask...
This is about "cppy", some support for writing Python extensions in C++ that I
just started on (some days ago almost known as "pynis" (not funny after all)).
For an extens
In article ,
Frederic Rentsch wrote:
>
>Module M says 'from service import *'.
>Next I correct a mistake in function 'service.f'.
>Now 'service.f' works fine.
>
>I do 'reload (service); reload (M)'.
>The function 'M.f' still misbehaves.
Absolutely!
>'print inspect.getsource (service.f)' and
>'p
In article ,
Chris Rebert wrote:
>On Thu, Jul 8, 2010 at 8:52 AM, Giacomo Boffi wrote:
>> "Zooko O'Whielacronx" writes:
>>>
>>> I'm starting to think that one should use Decimals by default and
>>> reserve floats for special cases.
>>
>> would you kindly lend me your Decimals ruler? i need to m
On Fri, 9 Jul 2010, Tomasz Rola wrote:
> On Fri, 9 Jul 2010, Steven D'Aprano wrote:
>
> > This is a style question rather than a programming question.
> >
> > How large (how many KB, lines, classes, whatever unit of code you like to
> > measure in) should a module grow before I should break it
please, please post a link to my site, http://offlame.thevoid1.net/
also, post free for all links at www.thevoid1.net/ffa
-Robin
--
http://mail.python.org/mailman/listinfo/python-list
Hi everyone,
in my script I'm trying to connect to a remote database using
sqlalchemy. Since I'm pretty new to this library I'm not really sure
of what I am doing :-). Up to now what I'm doing to connect to the
database is this:
engine = create_engine("mysql://
my_username:my_passw...@phpmyadmin.
Today is your last chance to submit a CFP abstract for the 2010 Surge
Scalability Conference. The event is taking place on Sept 30 and Oct 1,
2010 in Baltimore, MD. Surge focuses on case studies that address
production failures and the re-engineering efforts that led to victory
in Web Application
Where are you located?
-EdK
Ed Keith
e_...@yahoo.com
Blog: edkeith.blogspot.com
--- On Fri, 7/9/10, Greg wrote:
> From: Greg
> Subject: python instructor
> To: python-list@python.org
> Date: Friday, July 9, 2010, 10:09 AM
> We're looking for a first-rate python
> trainer to come to our
>
Hi,
Someone knows if Netbeans will support Python 3 language features?
Nowadays, I tried Netbeans 6.9 but it only supports Python 2.5 :(
And I'd like really to develop with Python 3.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks a lot!
Youngung
On Fri, Jul 9, 2010 at 10:17 PM, Eli Bendersky wrote:
> On Fri, Jul 9, 2010 at 16:07, Youngung Jeong
> wrote:
> > Thank you for your kindness.
> > I found you're right. It's running in that folder.
> > What should I do for making this work?
> > Could you please tell me
We're looking for a first-rate python trainer to come to our
organization for a day or two. We are a small group of geospatial/
remote sensing scientists whose research spans the gap between
environmental accounting/monitoring and policy and human interaction.
We have about 5-10 (or so) python use
On Jul 9, 12:44 am, Stefan Behnel wrote:
> Felix, 09.07.2010 05:39:
> Well, at least its "parallel processing abilities" are quite good
actually.
> If you have really large computations, they usually run on more than one
> computer (not just more than one processor). So you can't really get aroun
On 9 July 2010 14:17, kak...@gmail.com wrote:
> Hi to all, i want to stress test a tomcat web server, so that i
> could find out its limits. e.g how many users can be connected and
> request a resource concurrently.
> I used JMeter which is an excellent tool, but i would like to use a
> more pyt
On 07/09/2010 03:24 PM, Rene Veerman wrote:
> hi.
>
> i'm a recent convert from php because google appengine runs python.
> i have a whole cms backend to convert (also to bigtable, but thats
> another story) to python now.
>
> the first item on my agenda is the printing of python objects to json
On Jul 9, 1:16 am, sturlamolden wrote:
> On 9 Jul, 05:39, Felix wrote:
> > For an outsider it does not look like a solution to the GIL mess or a
> > true breakthrough for performance are around the corner (even though
> > there seem to be many different attempts at working around these
> > proble
I start to look at whether some subset of functions or classes are not
referenced by other subsets of functions or classes in a module when it gets
to about 1K LoC, and if I don't find any by the time it gets to about 1500
LoC, I start to look at ways I can refactor the code in the module to be
les
hi.
i'm a recent convert from php because google appengine runs python.
i have a whole cms backend to convert (also to bigtable, but thats
another story) to python now.
the first item on my agenda is the printing of python objects to json objects.
i have this nifty xhtml dataviewer (htmlMicroscop
Hi to all, i want to stress test a tomcat web server, so that i
could find out its limits. e.g how many users can be connected and
request a resource concurrently.
I used JMeter which is an excellent tool, but i would like to use a
more pythonic approach.
Any hints
Antonis
--
http://mail.python
On Fri, Jul 9, 2010 at 16:07, Youngung Jeong wrote:
> Thank you for your kindness.
> I found you're right. It's running in that folder.
> What should I do for making this work?
> Could you please tell me a bit more...
>
> Youngung
You can change the "current directory" ipython executes in, by eit
> One of the many things I tried, is as below.
>
> *
>
>
> f=open('od.txt','w')
> ---
> IOError Traceback (most recent call
> last)
>
> C:\Window
I develop in an IDLE window.
Module M says 'from service import *'.
Next I correct a mistake in function 'service.f'.
Now 'service.f' works fine.
I do 'reload (service); reload (M)'.
The function 'M.f' still misbehaves.
'print inspect.getsource (service.f)' and
'print inspect.getsource (M.f)' sh
On Fri, 9 Jul 2010, Steven D'Aprano wrote:
> This is a style question rather than a programming question.
>
> How large (how many KB, lines, classes, whatever unit of code you like to
> measure in) should a module grow before I should break it up into a
> package? I see that, for example, decim
I checked, none of the files are symlinks. The install process never got
to the point where it created sym-links for libraries (if it even does,
I haven't gotten to that point in the install process.)
-B
-Original Message-
From: python-list-bounces+cbds=argushealth@python.org
[mailto
Steven,
Interesting question. I've seen even small modules (in terms of
code size) grow quite large with embedded documentation,
developer comments, and unit tests. The unit tests can be split
to another module.
Sometimes classes can be artificially split into separate classes
(and thus split acr
Hello pythoners!
I just dived into ipython since I'd like to make use of matplotlib.
Over the trials, I came across a problem.
One of the scripts that I have is not working with ipython, while it
has been and still is working well with Python GUI.
The problem is, even though I have the file in th
On Jul 8, 5:10 pm, Gregory Ewing wrote:
> kedra marbun wrote:
> > i wonder what are the reasons for
> > not passing the class on which the descriptor is attached to, what
> > pattern is encouraged by this?
>
> The same answer applies. It's assumed that you will be
> writing a custom piece of code
Mark Carter wrote:
On my machine, I can go to a DOS shell, and type
myscript.py
This will cause the script to be run as a python script. So that bit
works.
On another machine, on which python was set up without admin
privileges, if I type
myscript.py
it will open the "Open With" dialog box
On 07/08/2010 04:36 PM, Stopp, Bryan wrote:
> building '_struct' extension
>
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
> -Wstrict-prototypes -I. -I/build/tools/src/Python-2.6.5/./Include
> -I/build/tools/include -I. -IInclude -I./Include -I/usr/local/include
> -I/build/tool
On Jul 8, 4:02 pm, Bruno Desthuilliers wrote:
> kedra marbun a écrit :
>
>
>
> > On Jul 7, 2:46 am, Bruno Desthuilliers
> > wrote:
> >> Gregory Ewing a écrit :
>
> >>> Bruno Desthuilliers wrote:
> kedra marbun a écrit :
> > if we limit our discussion to py:
> > why __{get|set|delete}
On 9 srp, 11:37, Mark Carter wrote:
> On my machine, I can go to a DOS shell, and type
> myscript.py
> This will cause the script to be run as a python script. So that bit
> works.
>
> On another machine, on which python was set up without admin
> privileges, if I type
> myscript.py
> it wil
1 - 100 of 111 matches
Mail list logo