Re: library not initialized (pygame)

2022-02-19 Thread Martin Di Paola
Could you share the traceback / error that you are seeing? On Sun, May 02, 2021 at 03:23:21PM -0400, Quentin Bock wrote: Code: #imports and variables for game import pygame from pygame import mixer running = True #initializes pygame pygame.init() #creates the pygame window screen = pygame.dis

Re: library not initialized (pygame)

2022-02-19 Thread Cosmo Hope
On Sunday, 2 May 2021 at 21:04:40 UTC+1, Michael Torrie wrote: > On 5/2/21 1:23 PM, Quentin Bock wrote: > > the error apparently comes from the first instructions variable saying > > library not initialized not sure why, its worked before but not now :/ > I don't get that error on my Fedora 32 ma

Re: library not initialized (pygame)

2021-05-02 Thread Michael Torrie
On 5/2/21 1:23 PM, Quentin Bock wrote: > the error apparently comes from the first instructions variable saying > library not initialized not sure why, its worked before but not now :/ I don't get that error on my Fedora 32 machine. The script ultimately doesn't run because it can't find the icon

Re: Library for text substitutions with calculations?

2020-12-15 Thread Terry Reedy
On 12/15/2020 11:25 AM, Bob Gailer wrote: On Tue, Dec 15, 2020, 10:42 AM <[email protected]> wrote: On 2020-12-15 at 16:04:55 +0100, Jan Erik Moström wrote: I want to do some text substitutions but a bit more advanced than what string.Template class can do. I addition to pla

Re: Library for text substitutions with calculations?

2020-12-15 Thread Bob Gailer
On Tue, Dec 15, 2020, 10:42 AM <[email protected]> wrote: > On 2020-12-15 at 16:04:55 +0100, > Jan Erik Moström wrote: > > > I want to do some text substitutions but a bit more advanced than what > > string.Template class can do. I addition to plain text substitution I > would >

Re: Library for text substitutions with calculations?

2020-12-15 Thread 2QdxY4RzWzUUiLuE
On 2020-12-15 at 16:04:55 +0100, Jan Erik Moström wrote: > I want to do some text substitutions but a bit more advanced than what > string.Template class can do. I addition to plain text substitution I would > like to be able to do some calculations: > > $value+1 - If value is 16 this would inse

Re: Library Generate a diff between two text files

2019-11-29 Thread Göktuğ Kayaalp
On 2019-11-25 16:31 +03, Noah wrote: >>From experience, could someone point me to a library that can do a diff > between two separate text files... > > *difflib* doesn't seem to cut it to this end Kinda simplistic idea, but would shelling out to diff(1) work for you? GNU diff is probably one

Re: Library for parsing binary structures

2019-03-30 Thread Cameron Simpson
On 30Mar2019 10:29, Paul Moore wrote: On Fri, 29 Mar 2019 at 23:21, Cameron Simpson wrote: On 27Mar2019 18:41, Paul Moore wrote: >I'm looking for a library that lets me parse binary data structures. >The stdlib struct module is fine for simple structures, but when it >gets to more complicate

Re: Library for parsing binary structures

2019-03-30 Thread Paul Moore
On Fri, 29 Mar 2019 at 23:21, Cameron Simpson wrote: > > On 27Mar2019 18:41, Paul Moore wrote: > >I'm looking for a library that lets me parse binary data structures. > >The stdlib struct module is fine for simple structures, but when it > >gets to more complicated cases, you end up doing a lot o

Re: Library for parsing binary structures

2019-03-29 Thread Cameron Simpson
On 30Mar2019 09:44, Cameron Simpson wrote: On 27Mar2019 18:41, Paul Moore wrote: I'm looking for a library that lets me parse binary data structures. The stdlib struct module is fine for simple structures, but when it gets to more complicated cases, you end up doing a lot of the work by hand (

Re: Library for parsing binary structures

2019-03-29 Thread Cameron Simpson
On 27Mar2019 18:41, Paul Moore wrote: I'm looking for a library that lets me parse binary data structures. The stdlib struct module is fine for simple structures, but when it gets to more complicated cases, you end up doing a lot of the work by hand (which isn't that hard, and is generally perfe

Re: Library for parsing binary structures

2019-03-29 Thread Peter J. Holzer
On 2019-03-29 16:34:35 +, Paul Moore wrote: > On Fri, 29 Mar 2019 at 16:16, Peter J. Holzer wrote: > > > Obviously you need some way to describe the specific binary format you > > want to parse - in other words, a grammar. The library could then use > > the grammar to parse the input - either

Re: Library for parsing binary structures

2019-03-29 Thread Paul Moore
On Fri, 29 Mar 2019 at 16:16, Peter J. Holzer wrote: > Obviously you need some way to describe the specific binary format you > want to parse - in other words, a grammar. The library could then use > the grammar to parse the input - either by interpreting it directly, or > by generating (Python)

Re: Library for parsing binary structures

2019-03-29 Thread Dan Sommers
On 3/29/19 12:13 PM, Peter J. Holzer wrote: Obviously you need some way to describe the specific binary format you want to parse - in other words, a grammar. The library could then use the grammar to parse the input - either by interpreting it directly, or by generating (Python) code from it. Th

Re: Library for parsing binary structures

2019-03-29 Thread Peter J. Holzer
On 2019-03-28 11:07:22 +0100, dieter wrote: > Paul Moore writes: > > My real interest is in whether any libraries exist to do this sort > > of thing (there are plenty of parser libraries for text, pyparsing > > being the obvious one, but far fewer for binary structures). > > Sure. *BUT* the libra

Re: Library for parsing binary structures

2019-03-28 Thread dieter
Paul Moore writes: > On Thu, 28 Mar 2019 at 08:15, dieter wrote: > ... > My real interest is in whether any > libraries exist to do this sort of thing (there are plenty of parser > libraries for text, pyparsing being the obvious one, but far fewer for > binary structures). Sure. *BUT* the libra

Re: Library for parsing binary structures

2019-03-28 Thread Paul Moore
On Thu, 28 Mar 2019 at 08:15, dieter wrote: > What you have is a generalized deserialization problem. > It can be solved with a set of deserializers. Yes, and thanks for the suggested code structure. As I say, I can certainly do the parsing "by hand", and the way you describe is very similar to h

Re: Library for parsing binary structures

2019-03-28 Thread dieter
Paul Moore writes: > I'm looking for a library that lets me parse binary data structures. > The stdlib struct module is fine for simple structures, but when it > gets to more complicated cases, you end up doing a lot of the work by > hand (which isn't that hard, and is generally perfectly viable,

Re: Library function to encode data to multipart/form-data format?

2015-12-22 Thread Grant Edwards
On 2015-12-21, Laura Creighton wrote: > In a message of Mon, 21 Dec 2015 17:51:00 +, Grant Edwards writes: >>Is there a standard library function that can be used to encode data >>into multipart/form-data format? IIRC, I looked for this once before >>and didn't find anything in the library.

Re: Library function to encode data to multipart/form-data format?

2015-12-21 Thread Laura Creighton
In a message of Mon, 21 Dec 2015 17:51:00 +, Grant Edwards writes: >Is there a standard library function that can be used to encode data >into multipart/form-data format? IIRC, I looked for this once before >and didn't find anything in the library. > >[I don't want to actually send an HTTP PO

Re: Library import succeeds with nose, fails elsewhere

2015-04-26 Thread richmolj
On Saturday, April 25, 2015 at 7:53:27 PM UTC-4, Chris Angelico wrote: > On Sun, Apr 26, 2015 at 9:36 AM, wrote: > > The solution ended up being editing the top-level __init__.py: > > > > import awesome > > > > and then *when in a subdirectory*: > > > > import awesome_lib as awesome > > > > and *

Re: Library import succeeds with nose, fails elsewhere

2015-04-25 Thread Chris Angelico
On Sun, Apr 26, 2015 at 9:36 AM, wrote: > The solution ended up being editing the top-level __init__.py: > > import awesome > > and then *when in a subdirectory*: > > import awesome_lib as awesome > > and *when in a different top-level file*: > > import awesome. > > IOW (from what I can tell) I m

Re: Library import succeeds with nose, fails elsewhere

2015-04-25 Thread richmolj
Thanks, I appreciate the help. I did figure this out. Chris - apologies for the error in my example, it should have been 'import util' within awesome.py. IOW, I was looking for awesome.util.helper to be available, and I also wanted awesome.foo available within helper.py. The solution ended up b

Re: Library import succeeds with nose, fails elsewhere

2015-04-25 Thread Chris Angelico
On Sun, Apr 26, 2015 at 3:48 AM, wrote: > Apologies, I'm a rubyist and this is a beginner question but I'm not finding > a great answer with lots of googling. I am writing a library, organized > something like this: > > awesome_lib/awesome.py > awesome_lib/util/__init__.py > awesome_lib/util/he

Re: Library import succeeds with nose, fails elsewhere

2015-04-25 Thread alister
On Sat, 25 Apr 2015 10:48:23 -0700, richmolj wrote: > Apologies, I'm a rubyist and this is a beginner question but I'm not > finding a great answer with lots of googling. I am writing a library, > organized something like this: > > awesome_lib/awesome.py awesome_lib/util/__init__.py > awesome_lib

Re: Library import succeeds with nose, fails elsewhere

2015-04-25 Thread alister
On Sat, 25 Apr 2015 10:48:23 -0700, richmolj wrote: > Apologies, I'm a rubyist and this is a beginner question but I'm not > finding a great answer with lots of googling. I am writing a library, > organized something like this: > > awesome_lib/awesome.py awesome_lib/util/__init__.py > awesome_lib

Re: Library to work with SSH public keys

2013-04-07 Thread Darren Spruell
On Sat, Apr 6, 2013 at 5:49 AM, Roy Smith wrote: > In article , > Darren Spruell wrote: > >> I'd like to work with user submitted/uploaded SSH public keys from >> Python. I'm trying to solve what I'd thought might be a simple need: >> given a user's OpenSSH formatted _public_ key (RSA, or DSA, o

Re: Library to work with SSH public keys

2013-04-06 Thread Roy Smith
In article , Darren Spruell wrote: > I'd like to work with user submitted/uploaded SSH public keys from > Python. I'm trying to solve what I'd thought might be a simple need: > given a user's OpenSSH formatted _public_ key (RSA, or DSA, or > whatever), how do you obtain information about it such

Re: Library versions

2010-07-30 Thread Chris Withers
Peo wrote: Is there some other smart way to do acheive this? Just turn them info python packages, and use buildout, pip or some other python package management tool to create the versions. You may, of course, just be able to svn the lot of them... (then you don't need to worry about numberin

Re: Library versions

2010-07-25 Thread Lawrence D'Oliveiro
In message <2cb0c88b-58ea-4704-8578-2ebd766f1...@t10g2000yqg.googlegroups.com>, Peo wrote: > My current plan is to call the library something like 'foo1' and > import it into scripts like 'import foo1 as foo'. Releases that change the > API would be installed as 'foo2', 'foo3' and so on. This wo

Re: Library versions

2010-07-24 Thread Carl Banks
On Jul 24, 8:56 am, Peo wrote: > Hi, > > I'm writing a library for doing sysadmin tasks at my workplace. These > kind of > scripts have a tendency to live for decades and I want to make sure > that I don't break anything when I'm updating the library. > > My current plan is to call the library som

Re: Library support for Python 3.x

2010-01-28 Thread Terry Reedy
On 1/28/2010 1:37 AM, Paul Rubin wrote: David Cournapeau writes: That's not windows specific - most packages which distribute binary packages need to package binaries for every minor version (2.4, 2.5, etc...) I doubt that's what Paul was referring to, though - he seemed more concern with A

Re: Library support for Python 3.x

2010-01-28 Thread Daniel Fetchinson
>> I'm going to be starting some new Python projects in Python 2.6, but am >> concerned that at least three of the libraries I will be >> using--pycrypto, paramiko and feedparser--are not currently supported in >> Python 3.x. The authors of these programs have not given any indication >> that work

Re: Library support for Python 3.x

2010-01-28 Thread Paul Rubin
David Cournapeau writes: > So yes, you could say "just try and if it crashes, check that it is > not ABI-related". In practice, this is very poor engineering in my > book... I just looked at PEP 384 and I don't see anything in it about version numbers in the interfaces. I certainly think somethi

Re: Library support for Python 3.x

2010-01-28 Thread Stefan Behnel
David Cournapeau, 28.01.2010 09:54: > On Thu, Jan 28, 2010 at 5:40 PM, Stefan Behnel wrote: > >> That doesn't completely match my experience. It's true that there is no >> guarantee that the ABI will stay compatible, but when you compile lxml >> against Py2.4 on a 32bit machine, it will continue t

Re: Library support for Python 3.x

2010-01-28 Thread David Cournapeau
On Thu, Jan 28, 2010 at 5:40 PM, Stefan Behnel wrote: > > That doesn't completely match my experience. It's true that there is no > guarantee that the ABI will stay compatible, but when you compile lxml > against Py2.4 on a 32bit machine, it will continue to import in Py2.5 and > (IIRC) Py2.6. It

Re: Library support for Python 3.x

2010-01-28 Thread David Cournapeau
On Thu, Jan 28, 2010 at 5:08 PM, Ben Finney wrote: > > It's important to note that this is mitigated, ironically enough, by > intentionally targeting a minimum Python minor version because the code > base makes use of Python features not available in older versions. > > That is, any minor version

Re: Library support for Python 3.x

2010-01-28 Thread Stefan Behnel
David Cournapeau, 28.01.2010 06:58: > On Thu, Jan 28, 2010 at 7:38 AM, Terry Reedy wrote: > >> For a windows user who depends on pre-built binaries, every new release >> breaks *every* library that is not pure Python and needs to be compiled. > > That's not windows specific - most packages which

Re: Library support for Python 3.x

2010-01-28 Thread Ben Finney
David Cournapeau writes: > Unstable may be strong - every minor version of python has a lifespan > of several years. But yes, that's an hindrance for packagers: you need > to package binaries for every minor version of python It's important to note that this is mitigated, ironically enough, by i

Re: Library support for Python 3.x

2010-01-27 Thread David Cournapeau
On Thu, Jan 28, 2010 at 3:37 PM, Paul Rubin wrote: > David Cournapeau writes: >> That's not windows specific - most packages which distribute binary >> packages need to package binaries for every minor version (2.4, 2.5, >> etc...) >> I doubt that's what Paul was referring to, though - he see

Re: Library support for Python 3.x

2010-01-27 Thread Paul Rubin
David Cournapeau writes: > That's not windows specific - most packages which distribute binary > packages need to package binaries for every minor version (2.4, 2.5, > etc...) > I doubt that's what Paul was referring to, though - he seemed more > concern with API/language changes than ABI issu

Re: Library support for Python 3.x

2010-01-27 Thread David Cournapeau
On Thu, Jan 28, 2010 at 7:38 AM, Terry Reedy wrote: > > For a windows user who depends on pre-built binaries, every new release > breaks *every* library that is not pure Python and needs to be compiled. That's not windows specific - most packages which distribute binary packages need to package

Re: Library support for Python 3.x

2010-01-27 Thread Terry Reedy
On 1/27/2010 2:03 PM, Paul Rubin wrote: [email protected] (Aahz) writes: From my POV, your question would be precisely identical if you had started your project when Python 2.3 was just released and wanted to know if the libraries you selected would be available for Python 2.6. I didn't re

Re: Library support for Python 3.x

2010-01-27 Thread John Nagle
Kevin Walzer wrote: I'm going to be starting some new Python projects in Python 2.6, but am concerned that at least three of the libraries I will be using--pycrypto, paramiko and feedparser--are not currently supported in Python 3.x. The authors of these programs have not given any indication

Re: Library support for Python 3.x

2010-01-27 Thread Mike C. Fletcher
Kevin Walzer wrote: > I'm going to be starting some new Python projects in Python 2.6, but > am concerned that at least three of the libraries I will be > using--pycrypto, paramiko and feedparser--are not currently supported > in Python 3.x. The authors of these programs have not given any > indica

Re: Library support for Python 3.x

2010-01-27 Thread [email protected]
On Jan 27, 2:03 pm, Paul Rubin wrote: > [email protected] (Aahz) writes: > > From my POV, your question would be precisely identical if you had > > started your project when Python 2.3 was just released and wanted to > > know if the libraries you selected would be available for Python 2.6. > >

Re: Library support for Python 3.x

2010-01-27 Thread exarkun
On 07:03 pm, [email protected] wrote: [email protected] (Aahz) writes: From my POV, your question would be precisely identical if you had started your project when Python 2.3 was just released and wanted to know if the libraries you selected would be available for Python 2.6. I didn't

Re: Library support for Python 3.x

2010-01-27 Thread Paul Rubin
[email protected] (Aahz) writes: > From my POV, your question would be precisely identical if you had > started your project when Python 2.3 was just released and wanted to > know if the libraries you selected would be available for Python 2.6. I didn't realize 2.6 broke libraries that had work

Re: Library support for Python 3.x

2010-01-27 Thread Aahz
In article <[email protected]>, Kevin Walzer wrote: > >I'm going to be starting some new Python projects in Python 2.6, but am >concerned that at least three of the libraries I will be >using--pycrypto, paramiko and feedparser--are not currently supported in >Python 3.x. T

Re: library search path when compiling python

2009-07-08 Thread nn
On Jul 7, 4:06 pm, Christian Heimes wrote: > nn wrote: > > I am trying to compile python with ssl support but the libraries are > > not in /usr/lib but in /opt/freeware/lib. How do I add that folder to > > the default library search path? > > > It looks like configure --libdir=DIR might do the job

Re: library search path when compiling python

2009-07-07 Thread Christian Heimes
nn wrote: > I am trying to compile python with ssl support but the libraries are > not in /usr/lib but in /opt/freeware/lib. How do I add that folder to > the default library search path? > > It looks like configure --libdir=DIR might do the job but I don't want > to replace the default lib search

Re: Library/classes to burn DVDs given a set of .AVI files

2009-04-16 Thread Weinhandl Herbert
Aldo Ceccarelli schrieb: Hi All, do you have any experience about any library tool suitable to burn video DVDs from video (f.i. .avi) file formats? In negative case and as an alternative: do you have any in other programming languages? see : http://www.rastersoft.com/programas/devede.ht

Re: Library similar to UserAgent (perl)

2009-02-12 Thread mattia
Il Thu, 12 Feb 2009 13:47:09 +0100, Diez B. Roggisch ha scritto: > mattia wrote: > >> Hi everybody, I'm looking for an easy way to put data in a form, then >> click the button and follow the redirect. Also I need to use cookies. I >> read that using perl this can be done using the UserAgent lib,

Re: Library similar to UserAgent (perl)

2009-02-12 Thread Diez B. Roggisch
mattia wrote: > Hi everybody, I'm looking for an easy way to put data in a form, then > click the button and follow the redirect. Also I need to use cookies. I > read that using perl this can be done using the UserAgent lib, that also > provide th browser functionality to let the site believe that

Re: Library for extracting new content from email reply messages?

2009-01-15 Thread Terry Reedy
Bernard Rankin wrote: Hello, I'm looking to build a simple mostly email-based trouble ticket system. (I've yet to find a ready-made python solution that is both simple and well designed) Is there a Python email parsing library that can assist in extracting new content from messages that

Re: Library/project for making an invitation-only website?

2008-09-02 Thread Eric Wertman
I think Drupy is best library for these task. On Tue, Sep 2, 2008 at 12:27 PM, Dani <[EMAIL PROTECTED]> wrote: > Hi. > > I want to create a website where new users need to be invited by an existing > user in order to open an account. Think of it the way Orkut became popular. > > I need a library

Re: library to do easy shell scripting in Python

2008-04-24 Thread alex23
On Apr 24, 12:22 pm, Michael Torrie <[EMAIL PROTECTED]> wrote: > pipe([prog1,args],[prog2,args],...) > Any ideas on how I could design this? There's a recipe on Activestate's Python Cookbook that does pretty much this: > Allows arbitrary number of commands to be strung together with > each one fe

Re: library to do easy shell scripting in Python

2008-04-23 Thread Matt Nordhoff
Wow, this message turned out to be *LONG*. And it also took a long time to write. But I had fun with it, so ok. :-) Michael Torrie wrote: > Recently a post that mentioned a recipe that extended subprocess to > allow killable processes caused me to do some thinking. Some of my > larger bash script

Re: library

2008-02-27 Thread Jorge Vargas
On Tue, Feb 26, 2008 at 11:24 PM, Raj kumar <[EMAIL PROTECTED]> wrote: > > hi, > how to open python api documetation in linux machine? $ python import help(module|object|whatever) > i think there should be a way to open installed library as a HTML pages. > pydoc -p > Thanks in advance. > > > _

Re: Library package import question

2007-11-05 Thread Gabriel Genellina
En Mon, 05 Nov 2007 10:34:26 -0300, Frank Aune <[EMAIL PROTECTED]> escribió: > I have a python library package 'Foo', which contains alot of submodules: > > Foo/: > __init__.py > module1.py: > class Bar() > class Hmm() > module2.py > cl

Re: Library package import question

2007-11-05 Thread Martin Marcher
2007/11/5, Frank Aune <[EMAIL PROTECTED]>: > To prevent namespace pollution, I want to import and use this library in the > following way: > > import Foo > (...) > t = Foo.module2.Bee() from x import y as z that has always worked for me to prevent pollution... -- http://noneisyours.marcher.na

Re: Library for crawling forums

2007-10-11 Thread Thomas Wittek
BlueCrux: > I'm trying to write a utility to crawl forums and strip posts to be > gone through offline. Just the content, I don't need to get who posted > or sigs or any identifying info. > > Can anyone suggest a library that is already geared toward this? Maybe a combination of mechanize [1] and

Re: Library for crawling forums

2007-10-11 Thread James Matthews
Well i know some that do half the job urllib or urllib2 to download the page htmlparser or beautifulsoup For html parsing Enjoy On 10/11/07, BlueCrux <[EMAIL PROTECTED]> wrote: > > I'm trying to write a utility to crawl forums and strip posts to be > gone through offline. Just the content, I don

Re: library to launch program in linux

2007-09-12 Thread Grant Edwards
On 2007-09-12, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> I'm a new user. What library should I use so that I canlaunch >>> programin linux using python? Thank you in advance. > can you please show me the sample code using subprocess library. http://docs.python.org/lib/module-subprocess.ht

Re: library to launch program in linux

2007-09-12 Thread idzwan . nizam
On Sep 7, 2:49 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-09-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I'm a new user. What library should I use so that I canlaunch > >programin linux using python? Thank you in advance. > > subprocess > > -- > Grant Edwards

Re: library to launch program in linux

2007-09-07 Thread Neil Cerutti
On 2007-09-07, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Laszlo Nagy > wrote: > >> Grant Edwards wrote: >> >>> On 2007-09-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> I'm a new user. What library should I use so that I can launch program i

Re: library to launch program in linux

2007-09-07 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Laszlo Nagy wrote: > Grant Edwards wrote: > >> On 2007-09-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >>> I'm a new user. What library should I use so that I can launch >>> program in linux using python? >>> >> >> subprocess >> > Hmm, there are so

Re: library to launch program in linux

2007-09-06 Thread Laszlo Nagy
Grant Edwards wrote: > On 2007-09-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >> I'm a new user. What library should I use so that I can launch >> program in linux using python? Thank you in advance. >> > > subprocess > Hmm, there are some others. Here is a list: os.system os.p

Re: library to launch program in linux

2007-09-06 Thread Grant Edwards
On 2007-09-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm a new user. What library should I use so that I can launch > program in linux using python? Thank you in advance. subprocess -- Grant Edwards grante Yow! Hello, GORRY-O!!

Re: library to launch program in linux

2007-09-06 Thread Daniel Larsson
On 9/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi there, > > I'm a new user. What library should I use so that I can launch program > in linux using python? Thank you in advance. os.system or the commands library. -- > http://mail.python.org/mailman/listinfo/python-list > -- http:/

Re: Library Naming

2007-05-03 Thread Trans
On May 3, 1:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On May 3, 9:41 am, Trans <[EMAIL PROTECTED]> wrote: > > > I'm taking a pole on how best to name programming library packages. > > Well, the Poles have been wrong before. I don't know what's worse, my misspelling or your joke ;-)

Re: Library Naming

2007-05-03 Thread [EMAIL PROTECTED]
On May 3, 9:41 am, Trans <[EMAIL PROTECTED]> wrote: > I'm taking a pole on how best to name programming library packages. Well, the Poles have been wrong before. > If you have a second, please have a look. > > http://7ranscode.blogspot.com/2007/05/library-poll.html > > Thanks, > T. -- http://

Re: Library for windows ini-files ?

2007-03-30 Thread [EMAIL PROTECTED]
On Mar 30, 1:26 am, stef <[EMAIL PROTECTED]> wrote: > hello, > > is there a Python library for easy reading and writing windows ini-files ? > > thanks, > Stef Mientki Maybe check this out? http://www.voidspace.org.uk/python/configobj.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Library for windows ini-files ?

2007-03-30 Thread stef
Laurent Pointal wrote: > stef a écrit : > >> hello, >> >> is there a Python library for easy reading and writing windows ini-files ? >> > > http://docs.python.org/lib/module-ConfigParser.html > > A+ > > Laurent. > thanks Laurent, that seems to be what I was looking for. cheers, Stef --

Re: Library for windows ini-files ?

2007-03-30 Thread Diez B. Roggisch
stef schrieb: > hello, > > is there a Python library for easy reading and writing windows ini-files ? Isn't ConfigParser ini-style? I'm not totally sure though. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Library for windows ini-files ?

2007-03-30 Thread Laurent Pointal
stef a écrit : > hello, > > is there a Python library for easy reading and writing windows ini-files ? http://docs.python.org/lib/module-ConfigParser.html A+ Laurent. -- http://mail.python.org/mailman/listinfo/python-list

Re: advice modifying re library to support more than 100 named captures.

2006-05-16 Thread Tim Peters
[Richard Meraz] > We need to capture more than 99 named groups using python regular > expressions. > ... > its clear why the language designers have decided on this limitation. For > our system, however, it is essential that we be able to capture an arbitrary > number of groups. > > Could anyone o

advice modifying re library to support more than 100 named captures.

2006-05-16 Thread Richard Meraz
Dear group members,We need to capture more than 99 named groups using python regular expressions.  From the docs and from this thread ( http://groups.google.com/group/comp.lang.python/browse_thread/thread/a39a91b4bf8e3df4/2ad4a7e01b60215d?lnk=st&q=python+regular+_expression_+group+limit&rnum=3#2ad4

Re: Library functions

2005-10-10 Thread Peter Hansen
Tuvas wrote: > How exactly do you do that? Just to get some kind of an idea, perhaps > you could share bits of code? Thanks! Did you check out the ctypes web site before asking? See http://starship.python.net/crew/theller/ctypes/ and at least read through the helpful tutorial before asking ques

Re: Library functions

2005-10-10 Thread Tuvas
How exactly do you do that? Just to get some kind of an idea, perhaps you could share bits of code? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Library functions

2005-10-10 Thread Grant Edwards
On 2005-10-10, Tuvas <[EMAIL PROTECTED]> wrote: > I am writing a program that mimics a program written in C, but using > Python-supiorior techniques. The C program calles a library function, > non-open source, I only know that it sends it a command > LINUX_CAN_Open() as for a few others as well.

Re: Library and real path name

2005-08-23 Thread Michele Petrazzo
Fredrik Lundh wrote: > Michele Petrazzo wrote: > >>I want to redistribute the library that I create. >>I create a project, its setup.py that when launched copy all files into >>the "site-packages/library" directory. And here it's all ok. >>When I call my library with: >> >>import library >>library

Re: Library and real path name

2005-08-23 Thread Fredrik Lundh
Michele Petrazzo wrote: > I want to redistribute the library that I create. > I create a project, its setup.py that when launched copy all files into > the "site-packages/library" directory. And here it's all ok. > When I call my library with: > > import library > library.class() > > I want that my

Re: Library and real path name

2005-08-23 Thread Robert Kern
Michele Petrazzo wrote: > I want to redistribute the library that I create. > I create a project, its setup.py that when launched copy all files into > the "site-packages/library" directory. And here it's all ok. > When I call my library with: > > import library > library.class() > > I want that

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kay Schluehr <[EMAIL PROTECTED]> wrote: . . . >What are frameworks really good for - a very true success story. > >A colleague of mine used to spread all kinds of flags ( state- and >property mar

Re: Library vs Framework

2005-08-17 Thread Mike Meyer
Peter Decker <[EMAIL PROTECTED]> writes: > On 8/16/05, Mike Meyer <[EMAIL PROTECTED]> wrote: > >> Well, they may have created a library class that does the job for >> them. Figuring out which is which seemed to be the point of this >> thread. > > I guess my summary of the thread was that a library

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-17 Thread Peter Maas
Simon Brunning schrieb: > On 8/15/05, Rocco Moretti <[EMAIL PROTECTED]> wrote: > >>Which lead me to the question - what's the difference between a library >>and a framework? > > > If you call its code, it's a library. If it calls yours, it's a framework. IOW Apache with modpython is a framework

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-17 Thread Kay Schluehr
Simon Brunning wrote: > On 8/15/05, Rocco Moretti <[EMAIL PROTECTED]> wrote: > > Which lead me to the question - what's the difference between a library > > and a framework? > > If you call its code, it's a library. If it calls yours, it's a framework. Pretty! I don't think it is an oversimplific

Re: Library vs Framework

2005-08-16 Thread Peter Decker
On 8/16/05, Mike Meyer <[EMAIL PROTECTED]> wrote: > Well, they may have created a library class that does the job for > them. Figuring out which is which seemed to be the point of this > thread. I guess my summary of the thread was that a library is built to do one thing, while a framework is bui

Re: Library vs Framework

2005-08-16 Thread Mike Meyer
Peter Decker <[EMAIL PROTECTED]> writes: > I've written several apps that need to update a database, and each one > had to do the same things: connect, grab data, create controls to > display/edit that data, validate any changes and then stuff the edited > data back into the database. I started pl

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-16 Thread Magnus Lycka
Terry Hancock wrote: > Zope recently started going through some massive changes to make > it more like a toolkit (which is the term I use instead of library here). > Even if there must be a framework, a thin framework with good tools > tends to be better than a complex framework, even if they can,

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-16 Thread Paolino
Rocco Moretti wrote: > Cameron Laird wrote: > >> Andy Smith rails against "frameworks": >> >> http://an9.org/devdev/why_frameworks_suck?sxip-homesite=&checked=1 > > > Slapdash Summary: Libraries good, frameworks bad - they are a > straightjackets and limit sharing. > > Which

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-16 Thread Peter Decker
On 8/16/05, Terry Hancock <[EMAIL PROTECTED]> wrote: > Where a framework shines is when you don't really want to program > it much at all -- you just need a tweak here and there beyond what > it already does. Gimp plugins are a great example of that. I'd put it slightly differently. Where a fram

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-16 Thread Terry Hancock
On Tuesday 16 August 2005 08:46 am, Rocco Moretti wrote: > But I'm not sure if library vs. framework a fair comparison - the two > are doing different things. With a framework, you're not really writing > your own program, you're customizing someone else's. Sort of a vastly > more flexible versi

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-16 Thread Rocco Moretti
Simon Brunning wrote: > On 8/15/05, Terry Hancock <[EMAIL PROTECTED]> wrote: > >>On Monday 15 August 2005 09:54 am, Simon Brunning wrote: >> >>>If you call its code, it's a library. If it calls yours, it's a framework. >> >>Such concision deserves applause. ;-) > > > Thank you. ;-) > > As other

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-16 Thread Simon Brunning
On 8/15/05, Terry Hancock <[EMAIL PROTECTED]> wrote: > On Monday 15 August 2005 09:54 am, Simon Brunning wrote: > > If you call its code, it's a library. If it calls yours, it's a framework. > > Such concision deserves applause. ;-) Thank you. ;-) As others have pointed out, this is a *drastic*

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-15 Thread rafi
Simon Brunning wrote: > On 8/15/05, Rocco Moretti <[EMAIL PROTECTED]> wrote: > >>Which lead me to the question - what's the difference between a library >>and a framework? > > If you call its code, it's a library. If it calls yours, it's a framework. Trying to add my 2 cents (As I do not agree

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-15 Thread Terry Hancock
On Monday 15 August 2005 09:54 am, Simon Brunning wrote: > On 8/15/05, Rocco Moretti <[EMAIL PROTECTED]> wrote: > > Which lead me to the question - what's the difference between a library > > and a framework? > > If you call its code, it's a library. If it calls yours, it's a framework. Such conc

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-15 Thread Magnus Lycka
Simon Brunning wrote: > On 8/15/05, Rocco Moretti <[EMAIL PROTECTED]> wrote: > >>Which lead me to the question - what's the difference between a library >>and a framework? > > > If you call its code, it's a library. If it calls yours, it's a framework. Erh, it's not quite that simple. I don't k

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-15 Thread Rocco Moretti
Simon Brunning wrote: > On 8/15/05, Rocco Moretti <[EMAIL PROTECTED]> wrote: > >>Which lead me to the question - what's the difference between a library >>and a framework? > > > If you call its code, it's a library. If it calls yours, it's a framework. Although that definition probably makes se

  1   2   >