Re: Modules Objects in Python

2020-01-18 Thread Chris Angelico
On Sun, Jan 19, 2020 at 12:56 PM M.R.P. wrote: > > Are modules objects in python? Yes, modules are objects. You can import a module, and then work with it as any other object. You can have a dictionary mapping names to modules (Python has one of these internally). They have a type, they can have

Re: Modules Objects in Python

2020-01-18 Thread DL Neil via Python-list
On 19/01/20 2:51 PM, M.R.P. wrote: Are modules objects in python? Modules offer an independent namespace implemented by a dictionary object - so you may dir() (or help()) and moduleNM.__dict__, and thus pick-up data values and code-units. So, they have many characteristics and behaviors in

Re: Modules

2018-03-21 Thread MRAB
On 2018-03-21 22:59, Jacques Bikoundou wrote: Hi, I am writing because I use a Python 3 kernel on my notebook that I access through the Microsoft Azure ML. I experience error messages when using modules such as 'speedml' or 'xgboost'. The error messagessay: no such module. How can I solve thi

Re: Modules

2018-03-21 Thread Rick Johnson
On Wednesday, March 21, 2018 at 7:49:42 PM UTC-5, Jacques Bikoundou wrote: > It said: ImportError: no module named 'speedml' I see. And did you check the search path[1] to ensure that the modules you want to import are indeed located in a directory which python normally searches? As an academic e

Re: Modules

2018-03-21 Thread Jacques Bikoundou
It said: ImportError: no module named 'speedml' On Wed, Mar 21, 2018, 19:57 Rick Johnson wrote: > Hmm, let's try a little interactive session, shall we? Did > your error message look something like this? > > >>> import spam > > Traceback (most recent call last): > File "", line 1,

Re: Modules

2018-03-21 Thread Rick Johnson
Hmm, let's try a little interactive session, shall we? Did your error message look something like this? >>> import spam Traceback (most recent call last): File "", line 1, in import spam ImportError: No module named spam >>> import eggs Traceback (most recent

RE: Modules list-tool

2013-05-22 Thread Carlos Nepomuceno
host:1234> '\n'.join(['{}={}'.format(k,v) for k,v in sys.modules.items()]) [1] https://github.com/amoffat/Inspect-Shell > Date: Wed, 22 May 2013 21:39:52 -0700 > Subject: Re: Modules list-tool > From: drsali...@gmail.com >

Re: Modules list-tool

2013-05-22 Thread Dan Stromberg
On Tue, May 21, 2013 at 12:35 PM, Gisle Vanem wrote: > Are anyone aware of a tool that can show me at run-time > which modules (pyd/dll) are loaded into a Python program at a specific > time (or over time)? > > To clarify, e.g. when running a sample from PyQt4 > (examples\tutorials\**addressbook\

Re: Modules or Package for my application

2012-11-28 Thread goon12
On Tuesday, November 27, 2012 3:04:03 AM UTC-5, Stone wrote: > Dear developers, > > > > I am creating application (originally written in perl) > > which will take care about replication from one system to the another system > over command rsync. It will simulate High-availability solution. >

Re: Modules failing to add runtime library path info at link time

2010-02-05 Thread cjblaine
On Feb 1, 11:35 pm, cjblaine wrote: > On Feb 1, 11:04 pm, cjblaine wrote: > > > > > On Feb 1, 8:00 pm, Christian Heimes wrote: > > > > cjblaine wrote: > > > > Where/how can I configure the appropriate portion of our Python > > > > install to do 100% the right thing instead of just 50% (-L)? > >

Re: Modules failing to add runtime library path info at link time

2010-02-01 Thread cjblaine
On Feb 1, 11:04 pm, cjblaine wrote: > On Feb 1, 8:00 pm, Christian Heimes wrote: > > > > > cjblaine wrote: > > > Where/how can I configure the appropriate portion of our Python > > > install to do 100% the right thing instead of just 50% (-L)? > > > Python's distutils doesn't alter the library se

Re: Modules failing to add runtime library path info at link time

2010-02-01 Thread cjblaine
On Feb 1, 8:00 pm, Christian Heimes wrote: > cjblaine wrote: > > Where/how can I configure the appropriate portion of our Python > > install to do 100% the right thing instead of just 50% (-L)? > > Python's distutils doesn't alter the library search path unless you tell > it explicitly. > > > A sp

Re: Modules failing to add runtime library path info at link time

2010-02-01 Thread Christian Heimes
cjblaine wrote: > Where/how can I configure the appropriate portion of our Python > install to do 100% the right thing instead of just 50% (-L)? Python's distutils doesn't alter the library search path unless you tell it explicitly. > A specific example -- note the -L and lack of -R (Solaris buil

Re: Modules/packages by GvR?

2009-08-28 Thread Benjamin Peterson
Terry Reedy udel.edu> writes > > I am not aware of any recent stdlib modules written by Guido. I suspect > most older ones have been updated at least once by someone else. Guido wrote a good deal of the new Python 3 code. However, maintence has now turned over to over Python developers. For ex

Re: Modules/packages by GvR?

2009-08-28 Thread Terry Reedy
Matimus wrote: On Aug 28, 7:58 am, gb345 wrote: Are there any Python-only modules or packages in the latest releases of Python 2.x or Python 3.x that were largely written by Guido van Rossum? What's the best way to find this out? I know that some modules mention the author(s) in the source co

Re: Modules/packages by GvR?

2009-08-28 Thread Mark Lawrence
[fix top posting] On Fri, Aug 28, 2009 at 8:58 AM, gb345 wrote: Are there any Python-only modules or packages in the latest releases of Python 2.x or Python 3.x that were largely written by Guido van Rossum? What's the best way to find this out? I know that some modules mention the autho

Re: Modules/packages by GvR?

2009-08-28 Thread Matimus
On Aug 28, 7:58 am, gb345 wrote: > Are there any Python-only modules or packages in the latest releases > of Python 2.x or Python 3.x that were largely written by Guido van > Rossum?  What's the best way to find this out?  I know that some > modules mention the author(s) in the source code, but th

Re: Modules/packages by GvR?

2009-08-28 Thread John Haggerty
How is writing code like a language maintainer going to go towards a philosophic ideal? And more principally why would this be of a benefit. In the philosophic world dressing and acting like Socrates isn't necessarily the same as following his ideals and isn't necessarily being Socratic. On Fri, A

Re: modules path

2008-09-07 Thread Python
On 7 sep 2008, at 13:50, Gabriel Genellina wrote: En Sat, 06 Sep 2008 20:26:24 -0300, Python <[EMAIL PROTECTED]> escribió: now one question came up, how do I make those path permanent? i mean, sys.path.append( adds it for the current session, yet when i logout of IDLE and start it again it's

Re: modules path

2008-09-07 Thread Gabriel Genellina
En Sat, 06 Sep 2008 20:26:24 -0300, Python <[EMAIL PROTECTED]> escribió: > now one question came up, how do I make those path permanent? > i mean, sys.path.append( adds it for the current session, > yet when i logout of IDLE and start it again it's gone... > how do i keep it in there? You can add

Re: modules path

2008-09-06 Thread Python
On 7 sep 2008, at 00:25, John Machin wrote: On Sep 7, 8:03 am, Python <[EMAIL PROTECTED]> wrote: Hi there, I moved a few modules into the modules folder (on OSX: /opt/local/ lib/ python2.5/site-packages/). They don't show up though when I start IDLE... Is there a way to reload the modules

Re: modules path

2008-09-06 Thread John Machin
On Sep 7, 8:03 am, Python <[EMAIL PROTECTED]> wrote: > Hi there, > > I moved a few modules into the modules folder (on OSX: /opt/local/lib/ > python2.5/site-packages/). > They don't show up though when I start IDLE... > > Is there a way to reload the modules folders in sys.path without   > logging

Re: modules devoted to manipulationg .reg files

2008-03-19 Thread Mike Driscoll
On Mar 19, 1:14 pm, black_13 <[EMAIL PROTECTED]> wrote: > are there any python modules for manipulation of .reg files producted > by > the win32 prog "reg". > thanks. > black_13 The *.reg files are text files, so you can parse them like any text file. You can just edit the Windows Registry directl

Re: Modules and descriptors

2008-01-08 Thread Steven Bethard
Chris Leary wrote: > As I understand it, the appeal of properties (and descriptors in > general) in new-style classes is that they provide a way to > "intercept" direct attribute accesses. This lets us write more clear > and concise code that accesses members directly without fear of future > API c

Re: Modules for peer-to-peer chat program

2007-04-26 Thread billiejoex
On 24 Apr, 19:51, "Viewer T." <[EMAIL PROTECTED]> wrote: > I would like to know which modules I would need in order to create > peer-to-peer chat program in python using Tkinter. > > If I would need modules that do not come packaged with python, I would > appreciate information on where I can get t

Re: Modules & positive surprises

2007-03-30 Thread Steven Bethard
Jan Danielsson wrote: >But then there are a few modules that I just love to use, because > they are so "clean" from interface to function. Among them I can't help > mentioning optparse. If you like optparse, you should try argparse: http://argparse.python-hosting.com/ It has an optpars

Re: Modules & positive surprises

2007-03-27 Thread kyosohma
On Mar 27, 8:30 am, Jan Danielsson <[EMAIL PROTECTED]> wrote: > Hello all, > > > >Although I have encountered many modules that have impressed me with > regards to what they can actually do -- too be perfectly honest, it's > very rare that I become impressed by the _interfaces_ to the modules.

Re: modules...n methods

2007-01-12 Thread Bjoern Schliessmann
belinda thom wrote: > This becomes a lot easier if you use IPython (which embellishes > the python shell in many useful ways). For instance, I did a "dir > (__builtins__)" to find out what some of the builtin functions > were. Sure. > HTH I'm sorry, it doesn't help me. And *please* don't send

Re: modules...n methods

2007-01-12 Thread belinda thom
On Jan 12, 2007, at 8:56 AM, Bjoern Schliessmann wrote: > lee wrote: > >> whats the way to read the sourcecode of methods > > Easy. Look up the .py file and open it in an editor of your choice. > Those files are, for example, in "/usr/lib/python". > >> and built in functions? This becomes a lot

Re: modules...n methods

2007-01-12 Thread Bjoern Schliessmann
lee wrote: > whats the way to read the sourcecode of methods Easy. Look up the .py file and open it in an editor of your choice. Those files are, for example, in "/usr/lib/python". > and built in functions? Get your python interpreter's source code and look up the functions there. Regards, B

Re: Modules - Jython Vs Python?

2006-11-24 Thread Khalid Zuberi
Patrick Finnegan writes: > > How many of the Python modules written in C have been rewritten and and > ported to Java to run under Jython? I am talking about SMTP, LDAP, > WIN2K,XML etc. Is there a list anywhere ? > There's a list on the jython wiki of absent modules: http://wiki.python.org

Re: modules and generated code

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 14:33, Nigel Rantor wrote: I have an IDL file that is used to generate a set of stub and skeleton code that is not human-modifiable. Eventually I would like to have my IDL in source control and have a setup script able to generate my stubs and skels and install them for

Re: modules and generated code

2006-11-15 Thread Fredrik Lundh
Nigel Rantor wrote: > Basically, I want the same top-level package to have bits of code in > different directories, but because Python requires the __init__.py file > it only picks up the first one in PYTHONPATH. would a single __init__.py function that does from-import-* on the various implem

Re: modules and generated code

2006-11-15 Thread Nigel Rantor
J. Clifford Dyer wrote: > > Maybe I'm missing something obvious, but it sounds like you are > over-complicating the idea of inheritance. Do you just want to create a > subclass of the other class? Nope, that isn't my problem. I have an IDL file that is used to generate a set of stub and skele

Re: modules and generated code

2006-11-15 Thread J. Clifford Dyer
Nigel Rantor wrote: > Peter Otten wrote: >> Nigel Rantor wrote: >> >>> Peter Otten wrote: Nigel Rantor wrote: >> > So, if I have a tool that generates python code for me (in my case, > CORBA stubs/skels) in a particular package is there a way of > placing my > own code under t

Re: modules and generated code

2006-11-14 Thread Nigel Rantor
Peter Otten wrote: > Nigel Rantor wrote: > >> Peter Otten wrote: >>> Nigel Rantor wrote: > So, if I have a tool that generates python code for me (in my case, CORBA stubs/skels) in a particular package is there a way of placing my own code under the same package hierarchy without a

Re: modules and generated code

2006-11-14 Thread Peter Otten
Nigel Rantor wrote: > So, if I have a tool that generates python code for me (in my case, > CORBA stubs/skels) in a particular package is there a way of placing my > own code under the same package hierarchy without all the code living in > the same directory structure. http://docs.python.org/lib

Re: modules and generated code

2006-11-14 Thread Nigel Rantor
Peter Otten wrote: > Nigel Rantor wrote: > >> So, if I have a tool that generates python code for me (in my case, >> CORBA stubs/skels) in a particular package is there a way of placing my >> own code under the same package hierarchy without all the code living in >> the same directory structure.

Re: modules and generated code

2006-11-14 Thread Peter Otten
Nigel Rantor wrote: > Peter Otten wrote: >> Nigel Rantor wrote: >>> So, if I have a tool that generates python code for me (in my case, >>> CORBA stubs/skels) in a particular package is there a way of placing my >>> own code under the same package hierarchy without all the code living in >>> the

Re: Modules, Packages and Developer Confusion. Oh My!

2006-11-10 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I think I'm still missing something in how python is handling packages > and it's mixing me up. I have a package with three files (modules?) > like so: > > OPS:\ > __init__.py > model.py > search.py > > To hide more details of the package structure, I import model

Re: Modules, Packages and Developer Confusion. Oh My!

2006-11-10 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > from model import * > from search import * > > def create_connection(): > # details are unimportant for this example > > > When I try to use the create_connection function in model, I get errors > when I use it as a global function ( just create_connection()). impo

Re: modules in diff. file

2006-09-18 Thread Calvin Spealman
On 18 Sep 2006 00:19:20 -0700, JyotiC <[EMAIL PROTECTED]> wrote: > hi, > > i have a prog. and i want diving the code in different files. > there will be one mail file which will call modules or > variables(global) from differnet files > how can i do this. > code is very big and i it's getting diffi

Re: Modules... paths... newbie confusion

2006-08-25 Thread Steve Holden
Dennis Lee Bieber wrote: > On Tue, 22 Aug 2006 14:32:36 +0100, Steve Holden <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > >>You won;t get MySQLdb to run without running the setup.py since IIRC >>there's a compile step for a C library (and it's that compile step that

Re: Modules... paths... newbie confusion

2006-08-23 Thread MrBlueSky
Well thank you all... that's all very helpful (apart from the brief diversion into MySQL, but even that was instructive!). Your comments about "setup.py" prompted me to read the pytz README.txt a bit more carefully and there it says to run "python setup.py install". And this copies stuff into sit

Re: Modules... paths... newbie confusion

2006-08-22 Thread Sibylle Koczian
Steve Holden schrieb: > You won;t get MySQLdb to run without running the setup.py since IIRC > there's a compile step for a C library (and it's that compile step that > needs to be able to find the MySQL client libraries). > But MySQLdb comes with a windows installer. No need to tweak anything. So

Re: Modules... paths... newbie confusion

2006-08-22 Thread Steve Holden
MrBlueSky wrote: > Thanks for the suggestions, folks.. > > site-packages > ~~ > OK, I'm been trying to get MSSQL into c:\Python24\lib\site-packages. > MSSQL comes (as a tar'd, zip'd file) with a folder hierarchy with > MSSQL.py at the top level and then bin\python2.3\mssqldb.pyd. If I >

Re: Modules... paths... newbie confusion

2006-08-22 Thread MrBlueSky
Thanks for the suggestions, folks.. site-packages ~~ OK, I'm been trying to get MSSQL into c:\Python24\lib\site-packages. MSSQL comes (as a tar'd, zip'd file) with a folder hierarchy with MSSQL.py at the top level and then bin\python2.3\mssqldb.pyd. If I try and copy this folder hierarch

Re: Modules... paths... newbie confusion

2006-08-21 Thread Sibylle Koczian
MrBlueSky schrieb: > I wonder if someone could clarify how Python "knows" where modules are > - or at least point to some documentation that might help me? Here's > what I've been trying: > > I've installed Python 2.4 Windows, and have also installed tkinter, > pmw, cx_Oracle, mssql and pytz (phe

Re: Modules... paths... newbie confusion

2006-08-21 Thread Licheng Fang
MrBlueSky wrote: > I wonder if someone could clarify how Python "knows" where modules are > - or at least point to some documentation that might help me? Here's > what I've been trying: > > I've installed Python 2.4 Windows, and have also installed tkinter, > pmw, cx_Oracle, mssql and pytz (phew!

Re: Modules and Namespaces

2005-10-20 Thread jelle
Ooops, Larry, forgive me being to overhauled here: Actually self.RS = RS does not make the RS object available in the module, Steve's method does however. -Jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules and Namespaces

2005-10-20 Thread jelle
Dear Steve & Larry, Both your methods worked flawless, thanks to both of you! I have to say Larry's way wins on style points, doens't it? What an awefull thing to get stuck on something that simple, what a gorgeous solution, thanks so much! -Jelle -- http://mail.python.org/mailman/listinfo/pyth

Re: Modules and Namespaces

2005-10-20 Thread Larry Bates
One way is to pass the RS object when you instantiate an instance of srfBase, something like: class srfBase: '''Base class inherited by the srf* classes, binding general Rhino surface functionality to a particular surface generation method''' def __init__(self, RS): self.

Re: Modules and Namespaces

2005-10-20 Thread Steve Holden
Jelle Feringa / EZCT Architecture & Design Research wrote: > ##I'm sorry to stir up such a well discussed topic yet again, but namespaces > are a point of confusion to me... > > I took the effort of organizing my Python code (scripting a cad program > calles Rhino) in well defined classes, which w

Re: Modules for inclusion in standard library?

2005-07-08 Thread Gregory Piñero
Has anyone recommended ftputil? Either add that to the library or make the existing ftp module more high level would be my suggestion. http://www.sschwarzer.net/python/python_software.html -Greg On 7 Jul 2005 05:38:28 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: > 1. LDAP module shoul

Re: Modules for inclusion in standard library?

2005-07-07 Thread awbarker
1. LDAP module should be included in the base distro. 2. DNS library really should be included in the base library, I emailed Anthony Baxter and he replied, saying it was almost done. 3. Ipython would be nice -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules for inclusion in standard library?

2005-07-02 Thread Terry Reedy
"Colin J. Williams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Isn't this where the discussion should start? There should be some >general policy guiding the types of modules which should be in the >standard library. A couple of times, Guido has given his general policy as gen

Re: Modules for inclusion in standard library?

2005-07-02 Thread Colin J. Williams
Rocco Moretti wrote: > Paul Rubin wrote: > >> Rocco Moretti <[EMAIL PROTECTED]> writes: >> >>> Except that (please correct me if I'm wrong) there is somewhat of a >>> policy for not including interface code for third party programs which >>> are not part of the operating system. (I.e. the modules

Re: Modules for inclusion in standard library?

2005-07-02 Thread Colin J. Williams
Gregory Piñero wrote: > While that policy does make sense, I think a database program falls > somewhere in between an OS and an everyday third party program. For > web developers, the database might as well be the OS. I use the > database to store everything in my web app. That way I can just wo

Re: Modules for inclusion in standard library?

2005-07-02 Thread Tom Anderson
On Fri, 1 Jul 2005, Scott David Daniels wrote: > Daniel Dittmar wrote: >> Rocco Moretti wrote: >> > Except that (please correct me if I'm wrong) there is somewhat of a > policy for not including interface code for third party programs > which are not part of the operating system. (I.

Re: Modules for inclusion in standard library?

2005-07-02 Thread Colin J. Williams
Steven Bethard wrote: > Fredrik Johansson wrote: > >> On 6/27/05, Reinhold Birkenfeld >> <[EMAIL PROTECTED]> wrote: >> >>> Do you have any other good and valued Python modules that you would >>> think are >>> bug-free, mature (that includes a long release distance) and useful >>> enough to >>>

Re: Modules for inclusion in standard library?

2005-07-01 Thread Scott David Daniels
Daniel Dittmar wrote: > Rocco Moretti wrote: Except that (please correct me if I'm wrong) there is somewhat of a policy for not including interface code for third party programs which are not part of the operating system. (I.e. the modules in the standard libary should all be us

Re: Modules for inclusion in standard library?

2005-07-01 Thread Daniel Dittmar
Rocco Moretti wrote: >>> Except that (please correct me if I'm wrong) there is somewhat of a >>> policy for not including interface code for third party programs which >>> are not part of the operating system. (I.e. the modules in the >>> standard libary should all be usable for anyone with a defau

Re: Modules for inclusion in standard library?

2005-07-01 Thread Rocco Moretti
Paul Rubin wrote: > Rocco Moretti <[EMAIL PROTECTED]> writes: > >>Except that (please correct me if I'm wrong) there is somewhat of a >>policy for not including interface code for third party programs which >>are not part of the operating system. (I.e. the modules in the >>standard libary should a

Re: Modules for inclusion in standard library?

2005-07-01 Thread Ivan Van Laningham
Hi All-- Max M wrote: > > Another good bet is BeautifulSoup, which is absolutely great for > scraping content from webpages. > > http://crummy.com/software/BeautifulSoup/index.html > Not if you want to handle HTML in anything but ASCII. BeautifulSoup insists you change your site.py to change

Re: Modules for inclusion in standard library?

2005-07-01 Thread Max M
Reinhold Birkenfeld wrote: > Hello, > > Do you have any other good and valued Python modules that you would think are > bug-free, mature (that includes a long release distance) and useful enough to > be granted a place in the stdlib? > > For my part, ctypes seems like a suggestion to start with.

Re: Modules for inclusion in standard library?

2005-06-30 Thread Robert Kern
Mike Meyer wrote: > Harry George <[EMAIL PROTECTED]> writes: > >>b) Installing distutils-aware python packages is trivial. I'd rather >>the energy which might go into a bigger std library go instead into >>helping projects which don't have distutils-style builds. > > How about integrating distut

Re: Modules for inclusion in standard library?

2005-06-30 Thread Mike Meyer
Harry George <[EMAIL PROTECTED]> writes: > b) Installing distutils-aware python packages is trivial. I'd rather > the energy which might go into a bigger std library go instead into > helping projects which don't have distutils-style builds. How about integrating distutils and PyPI, so that dist

Re: Modules for inclusion in standard library?

2005-06-30 Thread Tom Anderson
On Wed, 29 Jun 2005, it was written: > Rocco Moretti <[EMAIL PROTECTED]> writes: > >> Except that (please correct me if I'm wrong) there is somewhat of a >> policy for not including interface code for third party programs which >> are not part of the operating system. > > I've never heard of Pyt

Re: Modules for inclusion in standard library?

2005-06-30 Thread Christopher Arndt
Simon Brunning schrieb: > On 6/29/05, Christopher Arndt <[EMAIL PROTECTED]> wrote: > > > Adding sqllite to the standard library has been discussed before: > http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/fd150297c201f814 Yeah, but they didn't seem to have come to a con

Re: Modules for inclusion in standard library?

2005-06-30 Thread Simon Brunning
On 6/29/05, Thomas Heller <[EMAIL PROTECTED]> wrote: > > To me, this sounds that *at least* a PEP would be needed to convince > Guido. Or, to record the reasoning why it cannot be included. I have a feeling that Guido won't allow ctypes into the standard library since it can crash Python. I don'

Re: Modules for inclusion in standard library?

2005-06-30 Thread Simon Brunning
On 6/29/05, Christopher Arndt <[EMAIL PROTECTED]> wrote: (snip) > Most of these are probably not elegible due to license issues but I'd > love to see SQLite support added to Python-out-of-the-box. Adding sqllite to the standard library has been discussed before: http://groups-beta.google.com/gro

Re: Modules for inclusion in standard library?

2005-06-29 Thread Terry Hancock
On Wednesday 29 June 2005 04:55 am, Simon Brunning wrote: > On 6/28/05, John Roth <[EMAIL PROTECTED]> wrote: > > I'd definitely like to see ctypes. I can agree with the segfault > > issue, but I think that some design work would eliminate that. > > I'm not sure that it would. Ctypes allows you, as

Re: Modules for inclusion in standard library?

2005-06-29 Thread Mike Meyer
Rocco Moretti <[EMAIL PROTECTED]> writes: > Except that (please correct me if I'm wrong) there is somewhat of a > policy for not including interface code for third party programs which > are not part of the operating system. (I.e. the modules in the > standard libary should all be usable for anyon

Re: Modules for inclusion in standard library?

2005-06-29 Thread Christopher Arndt
Reinhold Birkenfeld schrieb: > Do you have any other good and valued Python modules that you would think are > bug-free, mature (that includes a long release distance) and useful enough to > be granted a place in the stdlib? Hmmm, let's look into /site-packackes, That's what I always have install

Re: Modules for inclusion in standard library?

2005-06-29 Thread Steven Bethard
Noah wrote: > def unzip(list): > if len(list) == 0: return () > l = [] > for t in range(len(list[0])): > l.append(map( lambda x,t=t: x[t], list )) > return tuple(l) The simplest solution to this problem that I know of: def unzip(iterable): return zip(*iterabl

Re: Modules for inclusion in standard library?

2005-06-29 Thread Paul Rubin
Rocco Moretti <[EMAIL PROTECTED]> writes: > Except that (please correct me if I'm wrong) there is somewhat of a > policy for not including interface code for third party programs which > are not part of the operating system. (I.e. the modules in the > standard libary should all be usable for anyone

Re: Modules for inclusion in standard library?

2005-06-29 Thread Noah
unzip() -- Not really a module, but a standard library function. Why isn't it in the standard library? It seems like I'm always adding it to my code. I think I once heard an argument against it, but I forget what it was. And yet I still find myself wanting unzip. def unzip(list): if len(list)

Re: Modules for inclusion in standard library?

2005-06-29 Thread Gregory Piñero
And 1 more argument for adding DB support, a large part of PHP's success as a web langauge is being easily interoperable with MySQL (out of the box I think? I haven't used it.) But I think it's tight integration with MySQL really helped it find its niche. I think "batteries included" means Pyth

Re: Modules for inclusion in standard library?

2005-06-29 Thread Gregory Piñero
While that policy does make sense, I think a database program falls somewhere in between an OS and an everyday third party program. For web developers, the database might as well be the OS. I use the database to store everything in my web app. That way I can just worry about 1 place to access in

Re: Modules for inclusion in standard library?

2005-06-29 Thread Rocco Moretti
Paul Rubin wrote: > Gregory Piñero <[EMAIL PROTECTED]> writes: > >>I'd like to see some database API's to the most common databases >>included. > > Yes, certainly, this is a serious deficiency with Python. Except that (please correct me if I'm wrong) there is somewhat of a policy for not inclu

Re: Modules for inclusion in standard library?

2005-06-29 Thread Paul Rubin
Gregory Piñero <[EMAIL PROTECTED]> writes: > I'd like to see some database API's to the most common databases > included. Yes, certainly, this is a serious deficiency with Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules for inclusion in standard library?

2005-06-29 Thread Chris Cioffi
One of my votes would be for something like: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303481 or http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303770.   We use something like these in the stdlib already (time_struct), but don't supply a ready solution for people to implement

Re: Modules for inclusion in standard library?

2005-06-29 Thread bruno modulix
George Sakkis wrote: >>"bruno modulix" <[EMAIL PROTECTED]> wrote: > > >>George Sakkis wrote: >> >>>I'd love to see IPython replace the standard interpreter. >> >>I dont. > > > Care to say why ? Sorry... it was about the "replace", not about IPython itself nor about IPython becoming part of th

Re: Modules for inclusion in standard library?

2005-06-29 Thread Gregory Piñero
I'd like to see some database API's to the most common databases included. It would make Python much more useful for web development. I've come across situations where a web host supports python and supports MySQL yet it's taken me days to get the MySQLAPI installed with running setup in my home

Re: Modules for inclusion in standard library?

2005-06-29 Thread Thomas Heller
Simon Brunning <[EMAIL PROTECTED]> writes: > On 6/28/05, John Roth <[EMAIL PROTECTED]> wrote: >> I'd definitely like to see ctypes. I can agree with the segfault >> issue, but I think that some design work would eliminate that. > > I'm not sure that it would. Ctypes allows you, as one colleague >

Re: Modules for inclusion in standard library?

2005-06-29 Thread Simon Brunning
On 6/28/05, John Roth <[EMAIL PROTECTED]> wrote: > I'd definitely like to see ctypes. I can agree with the segfault > issue, but I think that some design work would eliminate that. I'm not sure that it would. Ctypes allows you, as one colleague memorably put it, to "poke the operating system with

RE: Modules for inclusion in standard library?

2005-06-28 Thread Tony Meyer
>>> Do you have any other good and valued Python modules that you would >>> think are bug-free, mature (that includes a long release >>> distance) and useful enough to be granted a place in the stdlib? >> >> First of all, numeric/numarray, obviously! > > There has been recent discussion about t

Re: Modules for inclusion in standard library?

2005-06-28 Thread Robert Kern
George Sakkis wrote: > "Reinhold Birkenfeld" <[EMAIL PROTECTED]> wrote: >>For an easy, quick interactive interpreter, it's way to overloaded >>with functions and too slow in startup. > > Too slow ? It doesn't take more than a second or two to startup in a > two years old 1.8Ghz Athlon and an olde

Re: Modules for inclusion in standard library?

2005-06-28 Thread George Sakkis
"Reinhold Birkenfeld" <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > >> "bruno modulix" <[EMAIL PROTECTED]> wrote: > > > >> George Sakkis wrote: > >> > I'd love to see IPython replace the standard interpreter. > >> I dont. > > > > Care to say why ? > > For an easy, quick interactive interpret

Re: Modules for inclusion in standard library?

2005-06-28 Thread Reinhold Birkenfeld
George Sakkis wrote: >> "bruno modulix" <[EMAIL PROTECTED]> wrote: > >> George Sakkis wrote: >> > I'd love to see IPython replace the standard interpreter. >> I dont. > > Care to say why ? For an easy, quick interactive interpreter, it's way to overloaded with functions and too slow in startup.

Re: Modules for inclusion in standard library?

2005-06-28 Thread Paul Rubin
Reinhold Birkenfeld <[EMAIL PROTECTED]> writes: > Do you have any other good and valued Python modules that you would think are > bug-free, mature (that includes a long release distance) and useful enough to > be granted a place in the stdlib? How about the win32 shell extension that allows stuff

Re: Modules for inclusion in standard library?

2005-06-28 Thread John Roth
"Reinhold Birkenfeld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > at the moment python-dev is discussing including Jason Orendorff's path > module > into the standard library. > > Do you have any other good and valued Python modules that you would think > are > bug-f

Re: Modules for inclusion in standard library?

2005-06-28 Thread George Sakkis
> "bruno modulix" <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > I'd love to see IPython replace the standard interpreter. > I dont. Care to say why ? George -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules for inclusion in standard library?

2005-06-28 Thread bruno modulix
George Sakkis wrote: > I'd love to see IPython replace the standard interpreter. I dont. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules for inclusion in standard library?

2005-06-28 Thread projecktzero
I'll 2nd the vote for Pychecker. -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules for inclusion in standard library?

2005-06-27 Thread Chris Connett
pyparsing is the far and away the easiest general purpose parser out there that I've encountered; BNF-style grammar parsing is a *pleasure* with pyparsing. And it all comes in a single pure python module to boot. -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules for inclusion in standard library?

2005-06-27 Thread Michael Hoffman
Robert Kern wrote: > I would like to see the setuptools/PythonEggs/EasyInstall trifecta get > more attention and eyeballs. Once it is mature, I think that it will > obviate the desire for stdlibification of most of the packages being > requested here. Looks pretty cool! -- Michael Hoffman --

Re: Modules for inclusion in standard library?

2005-06-27 Thread Robert Kern
Reinhold Birkenfeld wrote: > Hello, > > at the moment python-dev is discussing including Jason Orendorff's path module > into the standard library. > > Do you have any other good and valued Python modules that you would think are > bug-free, mature (that includes a long release distance) and usef

Re: Modules for inclusion in standard library?

2005-06-27 Thread George Sakkis
I'd love to see IPython replace the standard interpreter. Pychecker seems to be a strong candidate too. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules for inclusion in standard library?

2005-06-27 Thread Steven Bethard
Fredrik Johansson wrote: > On 6/27/05, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: > >>Do you have any other good and valued Python modules that you would think are >>bug-free, mature (that includes a long release distance) and useful enough to >>be granted a place in the stdlib? > > First of

  1   2   >