pafo 0.1 released

2010-07-05 Thread Daneel Yaitskov
Hi All, pafo is a help debug library. it allows programmer to observer data fields' state of a complex object or a bundle of objects. Even if some objects in the bundle haven't __str__ or __repr__ methods. Such situation is very usual. Nobody want to writer code only that to print the state of

Python Ireland's pre-PyCon drinks - Wed, 14th July @ Trinity Capital Hotel

2010-07-05 Thread Vicky Twomey-Lee
Hi All, Join us for drinks and a chat (a warm-up session to PyCon Ireland ;-) ). When: Wed 14th July, from 7pm Where: Trinity Capital Hotel More details at: http://www.python.ie/meetup/2010/python_ireland_meetup_-_july_2010/ Cheers, /// Vicky ~ ~~

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Steven D'Aprano
On Sun, 04 Jul 2010 17:34:04 -0700, sturlamolden wrote: Using Python 2.x for new projects is not advisable (at least many will think so), and using 3.x is not possible. What to do? It's not a helpful situation for Python. That's pure FUD. Python 2.7 will be supported longer than the normal

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Lawrence D'Oliveiro
In message 7xpqzbj8st@ruckus.brouhaha.com, Paul Rubin wrote: ... and argc/argv were passed to the child process on its stack. I’ve always felt that to be a misfeature. It means you can’t implement a self-contained argument-parsing library, it still needs the mainline to explicitly

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Lawrence D'Oliveiro
In message xns9da77f36b9f6emithrandirisawes...@80.93.112.4, Mithrandir wrote: I think that Python could be a alternative to bash and have some advantages, but it's a long way off from being fully implemented. Would you prefer to do the following sort of thing in Python or Bash?

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Lawrence D'Oliveiro
In message op.ve06nlvia8n...@gnudebst, Rhodri James wrote: Classic Unix programming is a matter of stringing a bunch of tools together with pipes to get the output you want. This isn't a great paradigm for GUIs (not without tweaking that hasn't really been done), but then again it was never

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread John Nagle
On 7/4/2010 10:44 PM, Terry Reedy wrote: On 7/4/2010 7:58 PM, John Nagle wrote: The incompatible with all extension modules I need part is the problem right now. A good first step would be to identify the top 5 or 10 modules that are blocking a move to Python 3 by major projects with many

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Steven D'Aprano
On Sun, 04 Jul 2010 18:59:03 -0700, John Nagle wrote: Denying that there's a problem does not help. Nobody is denying that there is a problem, but there are plenty of people denying that there are any solutions. The folks doing development of CPython are genuinely interested in constructive

Re: Python 3 put-downs: What's the point?

2010-07-05 Thread Antoine Pitrou
On Sun, 4 Jul 2010 18:20:38 -0700 (PDT) CM cmpyt...@gmail.com wrote: Any online group is an opportunity to register dissent in a way that is public, open, immediate, interactive, and will (probably) be preserved for historians to check. The fact is, some people have gripes with Python 3;

Re: SyntaxError not honoured in list comprehension?

2010-07-05 Thread Mark Dickinson
On Jul 4, 11:02 pm, John Machin sjmac...@lexicon.net wrote: On Jul 5, 1:08 am, Thomas Jollans tho...@jollans.com wrote: On 07/04/2010 03:49 PM, jmfauth wrote:   File psi last command, line 1     print9.0            ^ SyntaxError: invalid syntax somewhat strange, yes. There are

Re: Python 3 put-downs: What's the point?

2010-07-05 Thread Gregor Horvath
Am Sun, 04 Jul 2010 18:51:54 -0500 schrieb Tim Chase python.l...@tim.thechases.com: I think it's the same venting of frustration that caused veteran VB6 developers to start calling VB.Net Visual Fred -- the language was too different and too non-backwards-compatible. VB6 - VB.NET and

Re: Python 2.7 released

2010-07-05 Thread Benjamin Kaplan
On Sun, Jul 4, 2010 at 7:58 PM, John Machin sjmac...@lexicon.net wrote: On Jul 5, 12:27 pm, Martineau ggrp2.20.martin...@dfgh.net wrote: On Jul 4, 8:34 am, Benjamin Peterson benja...@python.org wrote: On behalf of the Python development team, I'm jocund to announce the second release

Re: delegation pattern via descriptor

2010-07-05 Thread Bruno Desthuilliers
kedra marbun a écrit : i'm confused which part that doesn't make sense? this is my 2nd attempt to py, the 1st was on april this year, it was just a month, i'm afraid i haven't got the fundamentals right yet. so i'm gonna lay out how i got to this conclusion, CMIIW **explanation of feeling (0)

What is the name of the name space I am in?

2010-07-05 Thread Anthra Norell
I try to use new.new.classobj (name, baseclass, dict) and have no clue what the dict of the current name space is. I can name dicts of imported modules, because their name exists in the current name space. If, for instance, I import a module service then that module's name space would be

Re: What is the name of the name space I am in?

2010-07-05 Thread Thomas Jollans
On 07/05/2010 11:07 AM, Anthra Norell wrote: I try to use new.new.classobj (name, baseclass, dict) and have no clue what the dict of the current name space is. I can name dicts of imported modules, because their name exists in the current name space. If, for instance, I import a module

Re: GAE + recursion limit

2010-07-05 Thread Soltys
On 2 Lip, 22:49, Paul McGuire pt...@austin.rr.com wrote: Does anyone have any clue what that might be? Why the problem is onGAE(even when run locally), when command line run works just fine (even withrecursionlimitdecreased)? Can't explain why you see different behavior onGAEvs. local, but

Re: [ANN] eric 5.0.0 released

2010-07-05 Thread Jean-Michel Pichavant
Detlev Offenbach wrote: Hi, I just uploaded eric 5.0.0. This is the first official release. It is available via the eric web site. http://eric-ide.python-projects.org/index.html What is it? --- eric5 is the Python3 variant of the well know eric4 Python IDE and is the first

Re: What is the name of the name space I am in?

2010-07-05 Thread Chris Rebert
On Mon, Jul 5, 2010 at 2:07 AM, Anthra Norell anthra.nor...@bluewin.ch wrote: I try to use new.new.classobj (name, baseclass, dict) and have no clue Slight tangent: Note that both the `new` module and old-style classes (which are what `classobj` produces) are deprecated. To produce new-style

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread David Cournapeau
On Mon, Jul 5, 2010 at 12:44 PM, Terry Reedy tjre...@udel.edu wrote: On 7/4/2010 7:58 PM, John Nagle wrote: The incompatible with all extension modules I need part is the problem right now. A good first step would be to identify the top 5 or 10 modules that are blocking a move to Python 3 by

SMTPHandler and Unicode

2010-07-05 Thread norbert
Hello, I want to send error messages with SMTPHandler logging. But SMTPHandler does not seem to be unicode aware. Is there something doable without playing with sys.setdefaultencoding ? import logging,logging.handlers smtpHandler = logging.handlers.SMTPHandler(mailhost=(smtp.example.com,25),

Re: Crash in PyThread_acquire_lock

2010-07-05 Thread moerchendiser2k3
Thanks Antoine! :) You were right. It was the wrong thread...uhmm... Bye! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Confusion over etree.ElementTree.Element.getiterator

2010-07-05 Thread Ben Sizer
On Jul 4, 7:33 am, Stefan Behnel stefan...@behnel.de wrote: BenSizer, 04.07.2010 00:32: On Jul 3, 11:12 pm,BenSizerkylo...@gmail.com  wrote: for el in root.getiterator(): ...        print el [much output snipped] Element {http://www.w3.org/1999/xhtml}a at d871e8 Element

Re: Twisted 10.1.0 released

2010-07-05 Thread Daniel Fetchinson
On behalf of Twisted Matrix Laboratories, I am honored to announce the release of Twisted 10.1.0. Highlights include: * Deferreds now support cancellation * A new endpoint interface which can abstractly describe stream transport endpoints such as TCP and SSL * inotify support for

Re: SMTPHandler and Unicode

2010-07-05 Thread Chris Withers
norbert wrote: I want to send error messages with SMTPHandler logging. But SMTPHandler does not seem to be unicode aware. Is there something doable without playing with sys.setdefaultencoding ? try MailingLogger: http://www.simplistix.co.uk/software/python/mailinglogger If you have unicode

Plot problem.. ?? No sign at all

2010-07-05 Thread Ritchy lelis
hello guys.. I'm new at python programming and i'm having some problems with a script that i have been developing for my final project of my graduation. I have a script that is supposed to make a plot of a Residuo (waveform) witch is an output of a ADC ( Analogic To Digital Converter) for the

Re: What is the name of the name space I am in?

2010-07-05 Thread Anthra Norell
Thomas Jollans wrote: On 07/05/2010 11:07 AM, Anthra Norell wrote: I try to use new.new.classobj (name, baseclass, dict) and have no clue what the dict of the current name space is. I can name dicts of imported modules, because their name exists in the current name space. If, for instance,

Re: SMTPHandler and Unicode

2010-07-05 Thread Chris Withers
norbert wrote: Your package has the same unicode problem : import logging,logging.handlers from mailinglogger.MailingLogger import MailingLogger mailingLogger = MailingLogger(mailhost=('smtp.example.com', 25),fromaddr='t...@example.com',toaddrs=('t...@example.com',)) LOG = logging.getLogger()

Re: SMTPHandler and Unicode

2010-07-05 Thread norbert
On 5 juil, 13:17, Chris Withers ch...@simplistix.co.uk wrote: try MailingLogger: If you have unicode problems with that, I'd be interested in fixing them! Your package has the same unicode problem : import logging,logging.handlers from mailinglogger.MailingLogger import MailingLogger

Re: Plot problem.. ?? No sign at all

2010-07-05 Thread MRAB
Ritchy lelis wrote: hello guys.. I'm new at python programming and i'm having some problems with a script that i have been developing for my final project of my graduation. I have a script that is supposed to make a plot of a Residuo (waveform) witch is an output of a ADC ( Analogic To Digital

Re: SMTPHandler and Unicode

2010-07-05 Thread norbert
On 5 juil, 14:32, Chris Withers ch...@simplistix.co.uk wrote: norbert wrote: Your package has the same unicode problem : import logging,logging.handlers from mailinglogger.MailingLogger import MailingLogger mailingLogger = MailingLogger(mailhost=('smtp.example.com',

Re: What is the name of the name space I am in?

2010-07-05 Thread Anthra Norell
Chris Rebert wrote: On Mon, Jul 5, 2010 at 2:07 AM, Anthra Norell anthra.nor...@bluewin.ch wrote: I try to use new.new.classobj (name, baseclass, dict) and have no clue Slight tangent: Note that both the `new` module and old-style classes (which are what `classobj` produces) are

Re: SMTPHandler and Unicode

2010-07-05 Thread Antoine Pitrou
On Mon, 5 Jul 2010 06:17:38 -0700 (PDT) norbert ncaude...@gmail.com wrote: a FileHandler works as expected, the log file being UTF-8 encoded. Ouch. Implicit encoding sounds like a bad behaviour. The SMTPHandler is the only logger I know with this problem, maybe connected to SMTPLib

Re: Python 3 put-downs: What's the point?

2010-07-05 Thread Roy Smith
In article mailman.247.1278309447.1673.python-l...@python.org, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 04 Jul 2010 20:05:03 -0400, Roy Smith r...@panix.com declaimed the following in gmane.comp.python.general: In article mailman.238.1278287528.1673.python-l...@python.org,

black console window of executing os.chmod() and os.access()

2010-07-05 Thread 朱重八
Hi all, I want to use os.chmod or os.access to check the permission of a folder on remote Windows computer: os.chmod(\\1.1.1.1\sharedfolder, stat.S_IWRITE) or os.access(\\1.1.1.1\sharedfolder, os.W_OK) I saved this python file as a.pyw, run it with pythonw.exe a.pyw, then a black console

Re: black console window of executing os.chmod() and os.access()

2010-07-05 Thread Thomas Jollans
On 07/05/2010 04:19 PM, 朱重八 wrote: Hi all, I want to use os.chmod or os.access to check the permission of a folder on remote Windows computer: os.chmod(\\1.1.1.1\sharedfolder, stat.S_IWRITE) or os.access(\\1.1.1.1\sharedfolder, os.W_OK) That won't work: print(\\1.1.1.1\sharedfolder)

ImportError: DLL load failed: The specified module could not be found, SWIG, life, etc

2010-07-05 Thread Bill Davy
I am struggling :-( I have used SWIG to build a module called SHIP. So I have a directory containing SHIP.py and _SHIP.pyd, as follows: H:\Viper\HostPC\V1\SHIP\Releasedir Volume in drive H has no label. Volume Serial Number is B83B-76F2 Directory of H:\Viper\HostPC\V1\SHIP\Release

Re: Plot problem.. ?? No sign at all

2010-07-05 Thread Alan G Isaac
On 7/5/2010 7:45 AM, Ritchy lelis wrote: from pylab import* Vref = arange(1, 20, 0.02) Vi = arange(1, 10,0.1) for i in Vref: for n in Vi: if n i/4: V0 = 2*n-i elif (-i/4)= n and n= i/4: V0 = 2*n elif Vi -i/4:

Re: black console window of executing os.chmod() and os.access()

2010-07-05 Thread 朱重八
Sorry, I mean 1.1.1.1\\sharedfolder Seems os.chmod(), os.access() and os.makedirs() all have this problem when the path is a remote path. 2010/7/5 Thomas Jollans tho...@jollans.com On 07/05/2010 04:19 PM, 朱重八 wrote: Hi all, I want to use os.chmod or os.access to check the

Re: ImportError: DLL load failed: The specified module could not be found, SWIG, life, etc

2010-07-05 Thread Thomas Jollans
On 07/05/2010 04:35 PM, Bill Davy wrote: I am struggling :-( smile! I have used SWIG to build a module called SHIP. So I have a directory containing SHIP.py and _SHIP.pyd, as follows: [ ...] Python appears to find H:\Viper\HostPC\V1\SHIP\Release\_SHIP.pyd but for some reason,

Re: VICIOUS Enemy Insurgents kill 34 US soldiers after 9 hrs attack - Bellies ripped open and numerous injured - call for TRUE PATRIOTS . The deep undercover spies agents of influence mislead the pub

2010-07-05 Thread nanothermite911fbibustards
http://www.veteranstoday.com/2010/06/16/jim-w-dean-faked-israeli-flotilla-v= ideos-provide-opening-to-expose-israeli-expionage-here/ JIM W. DEAN: FAKED ISRAELI FLOTILLA VIDEOS PROVIDE OPENING TO EXPOSE ISRAELI EXPIONAGE HERE June 16, 2010 posted by Gordon Duff =B7 20 Comments Share Faked

throwing exceptions from csv.DictReader or even csv.reader

2010-07-05 Thread Tim
Hullo Csv is a very common format for publishing data as a form of primitive integration. It's an annoyingly brittle approach, so I'd like to ensure that I capture errors as soon as possible, so that I can get the upstream processes fixed, or at worst put in some correction mechanisms and avoid

Re: SMTPHandler and Unicode

2010-07-05 Thread Chris Withers
Antoine Pitrou wrote: On Mon, 5 Jul 2010 06:17:38 -0700 (PDT) norbert ncaude...@gmail.com wrote: a FileHandler works as expected, the log file being UTF-8 encoded. Ouch. Implicit encoding sounds like a bad behaviour. Yes indeed, hence my question on python-dev... Chris -- Simplistix -

Re: throwing exceptions from csv.DictReader or even csv.reader

2010-07-05 Thread Peter Otten
Tim wrote: Csv is a very common format for publishing data as a form of primitive integration. It's an annoyingly brittle approach, so I'd like to ensure that I capture errors as soon as possible, so that I can get the upstream processes fixed, or at worst put in some correction mechanisms

Re: ImportError: DLL load failed: The specified module could notbe found, SWIG, life, etc

2010-07-05 Thread Bill Davy
Thomas Jollans tho...@jollans.com wrote in message news:mailman.265.1278342154.1673.python-l...@python.org... On 07/05/2010 04:35 PM, Bill Davy wrote: I am struggling :-( smile! I have used SWIG to build a module called SHIP. So I have a directory containing SHIP.py and _SHIP.pyd, as

Re: OT Komodo Edit, line selection gutter is one pixel wide?

2010-07-05 Thread Eric Promislow
On Jul 1, 9:39 am, John Doe j...@usenetlove.invalid wrote: Is there a way to increase the line selection gutter width? It seems to be only one pixel wide. In other words... When I single click on the left side of the line, in order to automatically select the line, the pointer must be in a

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Tim Harig
On 2010-07-05, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message op.ve06nlvia8n...@gnudebst, Rhodri James wrote: Classic Unix programming is a matter of stringing a bunch of tools together with pipes to get the output you want. This isn't a great paradigm for GUIs (not

Re: Confusion over etree.ElementTree.Element.getiterator

2010-07-05 Thread Terry Reedy
On 7/5/2010 6:40 AM, Ben Sizer wrote: Admittedly, it's three clicks away from the library docs on docs.python.org. http://effbot.org/zone/element.htm#xml-namespaces Hopefully someone will see fit to roll this important documentation into docs.python.org before the next release... oops, too

Re: SyntaxError not honoured in list comprehension?

2010-07-05 Thread jmfauth
Thank you all for the discussion and the explanations. Mark Dickinson I toyed a littled bit this afternoon and I wrote a colouriser (British spelling?) with the tokenize module. It is quite simple and easy. BTW, if I understand correctly the module tokenize import the module token. So your

Re: Python 3 put-downs: What's the point?

2010-07-05 Thread Terry Reedy
On 7/4/2010 9:20 PM, CM wrote: On Jul 4, 7:14 pm, Terry Reedytjre...@udel.edu wrote: I think there's a good point to Python 3 put-downs (if I take put-down to mean generally reasonable criticism, which is what I've read here recently, and not trolling). And that is simply to register

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Terry Reedy
On 7/5/2010 2:56 AM, John Nagle wrote: On 7/4/2010 10:44 PM, Terry Reedy wrote: I you have any other ideas about other top blockers, please share them. The Twisted team has a list of what they need:

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Emile van Sebille
On 7/5/2010 11:02 AM Tim Harig said... Automating GUI applications requires interal access to the program through some kind of interface and, ideally, decent documention of the interface, something that is missing from many, if not most, GUIs. Anything else relies on ugly and, generally

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Terry Reedy
On 7/5/2010 6:04 AM, David Cournapeau wrote: On Mon, Jul 5, 2010 at 12:44 PM, Terry Reedytjre...@udel.edu wrote: [snip] I think numpy will work for 3.1 as well If numpy were released today for 3.1 (or even anytime before 3.2), that would be great. It would let those waiting for it that it

vidio*****

2010-07-05 Thread eslam
http://www.kavalec.com/thisisislam.swf -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3 put-downs: What's the point?

2010-07-05 Thread Tim Chase
On 07/05/2010 02:50 AM, Gregor Horvath wrote: Am Sun, 04 Jul 2010 18:51:54 -0500 schrieb Tim Chasepython.l...@tim.thechases.com: I think it's the same venting of frustration that caused veteran VB6 developers to start calling VB.Net Visual Fred -- the language was too different and too

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Kevin Walzer
On 7/5/10 2:56 AM, John Nagle wrote: * PyCrypto * PyOpenSSL These, and Mark Pilgrim's feedparser, need to be 3.x compatible before I can think about Python 3.x. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError not honoured in list comprehension?

2010-07-05 Thread Mark Dickinson
On Jul 5, 7:12 pm, jmfauth wxjmfa...@gmail.com wrote: BTW, if I understand correctly the module tokenize import the module token. So your example becomes: from cStringIO import StringIO import tokenize for tok in tokenize.generate_tokens(StringIO(print9.0).readline):         print

Re: Python 2.7 released

2010-07-05 Thread Martineau
On Jul 5, 1:12 am, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Sun, Jul 4, 2010 at 7:58 PM, John Machin sjmac...@lexicon.net wrote: On Jul 5, 12:27 pm, Martineau ggrp2.20.martin...@dfgh.net wrote: On Jul 4, 8:34 am, Benjamin Peterson benja...@python.org wrote: On behalf of the

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread D'Arcy J.M. Cain
On Mon, 05 Jul 2010 14:42:13 -0400 Terry Reedy tjre...@udel.edu wrote: Good start. Now what is blocking those four? Lack of developer interest/time/ability? or something else that they need? How about a basic how-to document? I maintain PyGreSQL and would like to move it to 3.x right now but

Re: Python 2.7 released

2010-07-05 Thread Alexander Kapps
Martineau wrote: Perhaps it's hidden somewhere, but I couldn't find the .chm help file in the python-2.7.msi file using 7-zip, nor saw anything that looked like a Doc folder embedded within it -- so I doubt installing it on a Windows machine would work any better. I don't know much about the

Re: Python 3 put-downs: What's the point?

2010-07-05 Thread CM
On Jul 5, 2:33 pm, Terry Reedy tjre...@udel.edu wrote: On 7/4/2010 9:20 PM, CM wrote: On Jul 4, 7:14 pm, Terry Reedytjre...@udel.edu  wrote: I think there's a good point to Python 3 put-downs (if I take put-down to mean generally reasonable criticism, which is what I've read here

Re: SMTPHandler and Unicode

2010-07-05 Thread norbert
Ouch. Implicit encoding sounds like a bad behaviour. Looking at the FileHandler source ( http://svn.python.org/view/python/trunk/Lib/logging/__init__.py?view=markup ) : the utf-8 encoding is a fallback. But *FileHandler family let you specify the encoding you want, so that's OK I think. But

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Martin v. Loewis
Am 05.07.2010 22:30, schrieb D'Arcy J.M. Cain: On Mon, 05 Jul 2010 14:42:13 -0400 Terry Reedy tjre...@udel.edu wrote: Good start. Now what is blocking those four? Lack of developer interest/time/ability? or something else that they need? How about a basic how-to document? I maintain

Re: Very odd output from subprocess

2010-07-05 Thread m
On Jul 1, 12:42 am, Nobody nob...@nowhere.com wrote: On Wed, 30 Jun 2010 21:12:12 -0700, m wrote: If I add the line:      for l in line: print ord(l),'\t',l after the first readline, I get the following: 27           91         [ 48         0 48         0 109        m 27        

using the netflix api

2010-07-05 Thread member thudfoo
Has anyone had success using the netflix api with Netflix.py? Especially getting access? -- http://mail.python.org/mailman/listinfo/python-list

Getting pyparsing to backtrack

2010-07-05 Thread John Nagle
I'm working on street address parsing again, and I'm trying to deal with some of the harder cases. Here's a subparser, intended to take in things like N MAIN and SOUTH, and break out the directional from street name. Directionals = ['southeast', 'northeast', 'north', 'northwest',

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread John Nagle
On 7/5/2010 12:35 PM, Kevin Walzer wrote: On 7/5/10 2:56 AM, John Nagle wrote: * PyCrypto * PyOpenSSL These, and Mark Pilgrim's feedparser, need to be 3.x compatible before I can think about Python 3.x. There's been an attempt to port feedparser to 3.0, but that needed a port of

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Philip Semanchuk
On Jul 5, 2010, at 4:30 PM, D'Arcy J.M. Cain wrote: On Mon, 05 Jul 2010 14:42:13 -0400 Terry Reedy tjre...@udel.edu wrote: Good start. Now what is blocking those four? Lack of developer interest/time/ability? or something else that they need? How about a basic how-to document? I maintain

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Chris Rebert
On Mon, Jul 5, 2010 at 3:38 PM, Philip Semanchuk phi...@semanchuk.com wrote: On Jul 5, 2010, at 4:30 PM, D'Arcy J.M. Cain wrote: On Mon, 05 Jul 2010 14:42:13 -0400 Terry Reedy tjre...@udel.edu wrote: Good start. Now what is blocking those four? Lack of developer interest/time/ability? or

Python Embedding Importing relative modules

2010-07-05 Thread moerchendiser2k3
Hi all, I have a serious problem I haven't solved yet, hope one of you can help me. The first thing is, I embedded Python into my app and I execute several scripts in this environment. The problem is, the scripts don't import modules from their relative path. I guess this is related to the

Re: What is the name of the name space I am in?

2010-07-05 Thread Gregory Ewing
On 07/05/2010 11:07 AM, Anthra Norell wrote: I try to use new.new.classobj (name, baseclass, dict) and have no clue what the dict of the current name space is. Are you sure that's what you really want to know? The 'dict' argument to classobj() defines the attributes that you want the new

Another Regexp Question

2010-07-05 Thread andrew cooke
As ever, I guess it's most likely I've misunderstood something, but in Python 2.6 lookback seems to actually be lookahead. All the following tests pass: from re import compile assert compile('(a)b(?=(?(2)x|c))(c)').match('abc') assert not

Re: Python 2.7 released

2010-07-05 Thread Steven D'Aprano
On Mon, 05 Jul 2010 12:59:00 -0700, Martineau wrote: I'd like to view the contents of the help file without actually installing the release which would wipe out any currently installed version (I'm one of those rare people who actually reads manuals *before* using or installing most things.)

Re: Python 3 put-downs: What's the point?

2010-07-05 Thread Steven D'Aprano
On Mon, 05 Jul 2010 14:32:13 -0500, Tim Chase wrote: On 07/05/2010 02:50 AM, Gregor Horvath wrote: Am Sun, 04 Jul 2010 18:51:54 -0500 schrieb Tim Chasepython.l...@tim.thechases.com: I think it's the same venting of frustration that caused veteran VB6 developers to start calling VB.Net

Re: Shared object access problems

2010-07-05 Thread Tim Johnson
John Nagle wrote: On 7/4/2010 6:36 PM, Philip Semanchuk wrote: hi Tim, This seems more likely to be a MySQLdb problem than a Python one. Have you considered asking in the MySQLdb forums? On Jul 4, 2010, at 7:46 PM, Tim Johnson wrote: Using python 2.6.4 on slackware 13.1 I have MySQLdb

Re: Python 2.7 released

2010-07-05 Thread David Robinow
On Mon, Jul 5, 2010 at 8:15 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Mon, 05 Jul 2010 12:59:00 -0700, Martineau wrote: I'd like to view the contents of the help file without actually installing the release which would wipe out any currently installed version (I'm one

Re: Another Regexp Question

2010-07-05 Thread MRAB
andrew cooke wrote: As ever, I guess it's most likely I've misunderstood something, but in Python 2.6 lookback seems to actually be lookahead. All the following tests pass: from re import compile assert compile('(a)b(?=(?(2)x|c))(c)').match('abc') assert not

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Philip Semanchuk
On Jul 5, 2010, at 6:41 PM, Chris Rebert wrote: On Mon, Jul 5, 2010 at 3:38 PM, Philip Semanchuk phi...@semanchuk.com wrote: On Jul 5, 2010, at 4:30 PM, D'Arcy J.M. Cain wrote: On Mon, 05 Jul 2010 14:42:13 -0400 Terry Reedy tjre...@udel.edu wrote: Good start. Now what is blocking those

Re: Another Regexp Question

2010-07-05 Thread andrew cooke
On Jul 5, 8:56 pm, MRAB pyt...@mrabarnett.plus.com wrote: andrew cooke wrote: What am I missing this time? :o( Nothing. It's a bug. :-( Sweet :o) Thanks - do you want me to raise an issue or will you? Cheers, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Another Regexp Question

2010-07-05 Thread MRAB
andrew cooke wrote: On Jul 5, 8:56 pm, MRAB pyt...@mrabarnett.plus.com wrote: andrew cooke wrote: What am I missing this time? :o( Nothing. It's a bug. :-( Sweet :o) Thanks - do you want me to raise an issue or will you? You found it. You can have the pleasure. --

Re: markmin 0.1

2010-07-05 Thread Chris Rebert
On Mon, Jul 5, 2010 at 4:56 PM, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: Markmin is a wiki markup language implemented in less than 100 lines of code (one file, no dependencies) easy to read secure support table, ul, ol, code support html5 video and audio elements can align images

Re: Python 2.7 released

2010-07-05 Thread Martineau
On Jul 5, 1:31 pm, Alexander Kapps alex.ka...@web.de wrote: Martineau wrote: Perhaps it's hidden somewhere, but I couldn't find the .chm help file in the python-2.7.msi file using 7-zip, nor saw anything that looked like a Doc folder embedded within it -- so I doubt installing it on a

Re: Python 2.7 released

2010-07-05 Thread Martineau
On Jul 5, 5:53 pm, David Robinow drobi...@gmail.com wrote: On Mon, Jul 5, 2010 at 8:15 PM, Steven D'Apranost...@remove-this-cybersource.com.au wrote: On Mon, 05 Jul 2010 12:59:00 -0700, Martineau wrote: I'd like to view the contents of the help file without actually installing the

Re: Python 2.7 released

2010-07-05 Thread Martin v. Loewis
Benjamin (or anyone else), do you know where I can get the Compiled Windows Help file -- python27.chm -- for this release? I have now put that file separately on the release page. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: delegation pattern via descriptor

2010-07-05 Thread kedra marbun
On Jul 5, 3:42 pm, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: kedra marbun a écrit : i'm confused which part that doesn't make sense? this is my 2nd attempt to py, the 1st was on april this year, it was just a month, i'm afraid i haven't got the fundamentals

Re: delegation pattern via descriptor

2010-07-05 Thread kedra marbun
On Jul 5, 7:49 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: kedra marbun wrote: now, i'm asking another favor, what about the 2nd point in my 1st post? Your original post has dropped off my newsscope, so you'll have to remind me what the 2nd point was. -- Greg it's like 'name',

Re: Getting the name of the file that imported current module

2010-07-05 Thread kedra marbun
On Jul 5, 6:29 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sun, 04 Jul 2010 21:05:56 +, Tobiah wrote: foo.py: import bar bar.show_importer() output: 'foo' or 'foo.py' or 'path/to/foo' etc. Possible? I don't think so. Your question isn't even

Re: Getting the name of the file that imported current module

2010-07-05 Thread kedra marbun
On Jul 5, 4:05 am, Tobiah t...@rcsreg.com wrote: foo.py: import bar bar.show_importer() output: 'foo' or 'foo.py' or 'path/to/foo' etc. Possible? Thanks, Tobiah if what you mean by 'importer' is the one that really cause py to load the mod, then why not dynamically set it? foo.py

Re: Getting pyparsing to backtrack

2010-07-05 Thread John Nagle
On 7/5/2010 3:19 PM, John Nagle wrote: I'm working on street address parsing again, and I'm trying to deal with some of the harder cases. The approach below works for the cases given. The Or operator (^) supports backtracking, but Optional() apparently does not. direction =

Re: delegation pattern via descriptor

2010-07-05 Thread Steven D'Aprano
On Mon, 05 Jul 2010 21:12:47 -0700, kedra marbun wrote: On Jul 5, 7:49 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: kedra marbun wrote: now, i'm asking another favor, what about the 2nd point in my 1st post? Your original post has dropped off my newsscope, so you'll have to

Re: delegation pattern via descriptor

2010-07-05 Thread Rami Chowdhury
On Monday 05 July 2010 21:10:51 kedra marbun wrote: On Jul 5, 3:42 pm, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: kedra marbun a écrit : i'm confused which part that doesn't make sense? this is my 2nd attempt to py, the 1st was on april this year, it was

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-05 Thread Terry Reedy
On 7/5/2010 9:00 PM, Philip Semanchuk wrote: On Jul 5, 2010, at 6:41 PM, Chris Rebert wrote: On Mon, Jul 5, 2010 at 3:38 PM, Philip Semanchuk I ported two pure C extensions from 2 to 3 and was even able to keep a single C codebase. I'd be willing to contribute my experiences to a document

[issue3802] smtpd.py __getaddr insufficient handling

2010-07-05 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Note there is a patch inline, not sure if a doc patch is needed for this. -- keywords: +patch nosy: +BreamoreBoy stage: - unit test needed type: - behavior ___ Python tracker

[issue3964] quiet the freeze makefile

2010-07-05 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Assuming the patch works (I don't do makefiles) would anyone use this yes or no? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3964

[issue9162] License for multiprocessing files

2010-07-05 Thread Michael Fladischer
New submission from Michael Fladischer mich...@fladi.at: The files in Lib/multiprocessing (except __init__.py) are referring to their license by point to a nonexistent file called COPYING.txt. This possibly needs clarification as if this file is missing or the license is to be found somewhere

[issue9162] License for multiprocessing files

2010-07-05 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9162 ___ ___ Python-bugs-list mailing list

[issue9160] Documentation link of 3.2 not working at docs.python.org

2010-07-05 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: For me only http://www.python.org/doc/3.1.1/ gives 403. Seems like all other links should be updated from http://www.python.org/doc/2.3.2/ to http://docs.python.org/release/2.3.2/ format to avoid additional redirect. -- nosy:

[issue9160] Documentation link of 3.2 not working at docs.python.org

2010-07-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: 3.1.1 docs are fixed. Development docs will be rebuilt soon automatically; after that everything should work again. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python

[issue9136] RuntimeError when profiling Decimal

2010-07-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I don't quite understand the point of catching NameError here So that the initialization of DefaultContext itself doesn't fail. -- ___ Python tracker rep...@bugs.python.org

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-05 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: To further explain, I had code e.g.: parser.add_option(u'-s', u'--seqfile', dest='seq_file_name', help=u'Write sequence file output to FILE', metavar=u'FILE') I had to remove the unicode designator for the first parameter:

[issue9163] test_gdb fails

2010-07-05 Thread Michael Blume
New submission from Michael Blume blume.m...@gmail.com: After building Python 2.7 on two separate X68 Ubuntu boxes, test_gdb failed both times. ./configure make make test output follows: test_gdb test test_gdb failed -- Traceback (most recent call last): File

  1   2   >