On Mon, Oct 24, 2011 at 4:18 PM, Jason Swails wrote:
> my_csv = csv.writer(open('temp.1.csv', 'wb'))
>
Have you confirmed, or can you confirm, whether or not the file gets
closed automatically when the writer gets destructed? If so, all you
need to do is:
my_csv = something_else
# or:
del my_csv
On Oct 23, 3:18 am, Jonathan Loescher wrote:
> Can anyone recommend a good book to learn the web programming aspects
> of Python 3?
Hi
You can check "Dive into Python 3" by Mark Pilgrim. It does cover some
aspects of web programming. I haven't read it myself,but I've been
reading "Dive into Pyth
水静流深, 24.10.2011 07:31:
The latest version is lxml 2.3.1, released 2011-09-25,
1.download it
2.extract it ,put it in the /home/user/Python-3.2.2/libxml2-2.7.8
3.cd /home/user/Python-3.2.2/libxml2-2.7.8
4. ./configure
5.make
6.sudo make install
Not libxml2. lxml.
when i finished
~$
David Hoese wrote:
> I was about to submit a bug report, but while testing I have figured out
> that my specific problem has been solved in Python 2.7 (server that I
> was using had 2.6 on it). You can see the differences here:
>
> 2.6: http://hg.python.org/cpython/file/b9a95ce2692c/Lib/shutil.p
Am 23.10.11 20:25, schrieb Waldek M.:
On Sun, 23 Oct 2011 17:50:54 +0200, webcrowd.net wrote:
hope it is okay to post job offers here. If not sorry for the spam and
please let me know!
Not really. It's a newsgroup on Python *language*, not
on Python-everything.
You might want to post here ins
> I think that is a real shame - it seems to be gratuitous breakage for almost
> zero benefit. That issue shows that Trac makes heavy use of .warn, I've use
> .warn almost exclusively for many years, and code.google.com shows it is used
> extensively in the wild.
Okay, but it's easy enough to
(Don't top-post. Put your response after the part you're quoting from
earlier messages. And include enough that somebody can help with
minimal effort.)
On 10/24/2011 12:30 AM, apometron wrote:
The problem is that it is not reporting any error.
The do something and quits silently.
No rename
Hello everybody,
I have some trouble with a program I run both on a WinXP and on Win 7.
It boils down to this several lines:
import os
vePath = r'C:\Programme\RA Consulting_Webservices\DiagRA-MCD
\DiagRA_D.exe'
#vePath = r'C:\Windows\notepad.exe'
process_id = os.spawnl(os.P_NOWAIT, vePath)
Under
On 24/10/2011 13:43, Propad wrote:
Hello everybody,
I have some trouble with a program I run both on a WinXP and on Win 7.
It boils down to this several lines:
import os
vePath = r'C:\Programme\RA Consulting_Webservices\DiagRA-MCD
\DiagRA_D.exe'
#vePath = r'C:\Windows\notepad.exe'
process_id = o
Good morning,
Is there a set of libraries for python which can be used as a complete
replacement to PL/SQL?
Alternatively, is there a python library for generating PL/SQL?
(I am speaking from the context of Oracle DB, PL/Python only works
with PostgreSQL)
Thanks for all suggestions,
Alec Taylo
Hello Tim,
thanx for the fast answer. Sorry to hear there are such issues.
I'm obviously not free to choose my version of Python, or I'would be
using the latest'n'greatest. It's more like this: I'm obliged to use
the version delivered with dSpace tools (which is HiL - ECU-testing
software for the a
On 24/10/2011 14:18, Tim Golden wrote:
I ran this (on Python 2.7 on Win7):
import os
os.spawnl (os.P_NOWAIT, r"c:\windows\notepad.exe")
and Python crashed hard! Long time since I've seen that happen.
This may or may not be related to what you're seeing but it's
definitely a problem. I'll c
Vinay Sajip wrote:
I think that is a real shame - it seems to be gratuitous breakage for almost
zero benefit. That issue shows that Trac makes heavy use of .warn, I've use
.warn almost exclusively for many years, and code.google.com shows it is used
extensively in the wild.
Ok
On 11-10-24 04:28 AM, Vinay Sajip wrote:
>> I think that is a real shame - it seems to be gratuitous breakage for almost
>> zero benefit. That issue shows that Trac makes heavy use of .warn, I've use
>> .warn almost exclusively for many years, and code.google.com shows it is
>> used
>> extensi
Alec Taylor writes:
> Is there a set of libraries for python which can be used as a complete
> replacement to PL/SQL?
This doesn't make much sense: PL/SQL lets you write server-side code,
i.e., executed by the DBMS. Oracle can't execute python code directly,
so python can only be used on the cli
Hmm...
What else is there besides PL/Python (for any DB) in the context of
writing stored procedures in function?
Thanks for all suggestions,
Alec Taylor
On Tue, Oct 25, 2011 at 1:45 AM, Alain Ketterlin
wrote:
> Alec Taylor writes:
>
>> Is there a set of libraries for python which can be used
Good morning,
I'm often generating DDLs from EER->Logical diagrams using tools such
as PowerDesigner and Oracle Data Modeller.
I've recently come across an ORM library (SQLalchemy), and it seems
like a quite useful abstraction.
Is there a way to convert my DDL to ORM code?
Thanks for all sugges
PostgreSQL supports PL/SQL, PL/TCL, PL/Python, PL/Perl and I've also
seen PL/Java add on module.
Martin
On 10/24/2011 4:59 PM, Alec Taylor wrote:
> Hmm...
>
> What else is there besides PL/Python (for any DB) in the context of
> writing stored procedures in function?
>
> Thanks for all suggesti
Hi,
for the project I'm working on right now I've written a simple "SQL
create script to ORM generator". I use SQLalchemy as well and this
generator takes all tables and prepares classes, maps them to tables,
introspects them and creates explicit attribute definitions in the
classes. Contact me of
Where is documented the behaviour of the standard function randrange in
the case of an empty list ? for instance randrange(42,33) ? May I rely
on an ValueError type error?
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Oct 24, 2011 at 2:08 AM, Chris Rebert wrote:
> On Sun, Oct 23, 2011 at 10:18 PM, Jason Swails
> wrote:
>
> > unless, of course, I add an explicit reference to track the open file
> object
> > and manually close or flush it
> > (but I'd like to avoid it if possible).
>
> Why? Especially w
I am just getting into gui building in python and I am trying to find a
designer that is easy to use. I tried wxGlade and though it looks promising
I could not get anywhere with it. It would not let me create a simple
dialog application. If I were using MonoDevelop it would be a snap, but
there
Hi,
It's easy to open a file not located in the current working directory
(cwd). But how about importing a module?
For instance, suppose I have a file, say my_file.py, located in the cwd,
say /home/candide/ and suppose the module to be imported, say
my_module.py, is located in the /home/cand
On 24/10/2011 20:26, candide wrote:
Where is documented the behaviour of the standard function randrange in
the case of an empty list ? for instance randrange(42,33) ? May I rely
on an ValueError type error?
It's the same back to at least Python 2.5, so you can probably rely on
that behaviour.
On Mon, Oct 24, 2011 at 3:03 AM, Chris Angelico wrote:
> On Mon, Oct 24, 2011 at 4:18 PM, Jason Swails
> wrote:
> > my_csv = csv.writer(open('temp.1.csv', 'wb'))
> >
>
> Have you confirmed, or can you confirm, whether or not the file gets
> closed automatically when the writer gets destructed? I
On 24/10/2011 08:03, Chris Angelico wrote:
On Mon, Oct 24, 2011 at 4:18 PM, Jason Swails wrote:
my_csv = csv.writer(open('temp.1.csv', 'wb'))
Have you confirmed, or can you confirm, whether or not the file gets
closed automatically when the writer gets destructed? If so, all you
need to do is
Le 24/10/2011 22:09, MRAB a écrit :
but for choice(seq) it says:
Ah of course, I should have checked there
"""If seq is empty, raises IndexError."""
>
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
In <4ea5c1da$0$3708$426a7...@news.free.fr> candide
writes:
> For instance, suppose I have a file, say my_file.py, located in the cwd,
> say /home/candide/ and suppose the module to be imported, say
> my_module.py, is located in the /home/candide/foo/ directory.
> How my_file.py can import the
Hi all,
you may be interested in new free multifactor analysis tool for
experiment planning (in physics, chemistry, biology etc). It is based
on numerical optimization solver BOBYQA, released in 2009 by Michael
J.D. Powell, and has easy and convenient GUI frontend, written in
Python + tkinter. May
Jason Swails wrote:
> Hello,
>
> I have a question about a csv.writer instance. I have a utility that I
> want to write a full CSV file from lots of data, but due to performance
> (and memory) considerations, there's no way I can write the data
> sequentially. Therefore, I write the data in chun
I want to create a decorator with two different (but very similar)
versions of the wrapper function, but without copying giant chunks of
similar code. The main difference is that one version takes extra
parameters.
def test_dec(func, extra=False):
if extra:
def wrapper(ex_p
Alec Taylor writes:
> What else is there besides PL/Python (for any DB) in the context of
> writing stored procedures in function?
I know of no server-side language other than SQL which can reasonably be
expected to work “for any DB”.
PostgreSQL supports PL/pgSQL, PL/Python, PL/tcl, PL/Perl, an
On 10/24/2011 10:18 AM, Tim Golden wrote:
On 24/10/2011 14:18, Tim Golden wrote:
I ran this (on Python 2.7 on Win7):
import os
os.spawnl (os.P_NOWAIT, r"c:\windows\notepad.exe")
and Python crashed hard! Long time since I've seen that happen.
Same with 3.2 and Win7, interpreter or IDLE.
On 10/24/2011 9:47 AM, Propad wrote:
y
nice. I can't imagine anything of such importance was not tested at
all during the beta phase - so it could be the tests were not run with
such a tricky configuration of windows.
The coverage of the test suite is still being improved as people
volunteer t
Please use the subprocess module, it's the one who's actively maintained.
http://docs.python.org/library/subprocess.html#replacing-the-os-spawn-family
--
http://mail.python.org/mailman/listinfo/python-list
This was part of an earlier discussion in this forum.
I want to correct the impression created by Lawrence D'Oliveiro that those who
implemented stacks were not designing for efficiency.
> What I can say is that for scientific/engineering calculations the RPN of
> KDF9 was Great because assemble
http://123maza.com/48/silver424/
--
http://mail.python.org/mailman/listinfo/python-list
Guido wrote an article on a quick and easy multimethod implementation
using a decorator:
http://www.artima.com/weblogs/viewpost.jsp?thread=101605
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 21, 11:46 am, Yingjie Lan wrote:
> I am still not sure why should we enforce that
> a generator can not be reused after an explicit
> request to revive it?
No one is "enforcing" anything, you're simply resisting implementing
this yourself. Consider the following generator:
import rand
On Oct 21, 12:09 pm, Yingjie Lan wrote:
> Secondly, it would be nice to automatically revive it.
Sure, it's always nice when your expectation of a language feature
exactly matches with its capabilities.
When it doesn't, you suck it up and code around it.
Because at the very least it's a hell of
On Mon, 24 Oct 2011 16:29:25 -0500, Andrew Berg wrote:
> I want to create a decorator with two different (but very similar)
> versions of the wrapper function, but without copying giant chunks of
> similar code. The main difference is that one version takes extra
> parameters.
>
> def test_dec(fu
41 matches
Mail list logo