[Python-Dev] Summary of Python tracker Issues

2009-07-17 Thread Python tracker

ACTIVITY SUMMARY (07/10/09 - 07/17/09)
Python tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue 
number.  Do NOT respond to this message.


 2255 open (+32) / 16072 closed (+15) / 18327 total (+47)

Open issues with patches:   892

Average duration of open issues: 662 days.
Median duration of open issues: 414 days.

Open Issues Breakdown
   open   (+31)
pending33 ( +1)

Issues Created Or Reopened (48)
___

locale.D_* and .T_* are int, not string  07/10/09
CLOSED http://bugs.python.org/issue6456reopened r.david.murray  
  
   

distutils.command.build_ext.get_export_symbols should use the P 07/11/09
CLOSED http://bugs.python.org/issue6459reopened tarek   
  
   patch   

test failure in test_xmlrpc on Gentoo in trunk   07/11/09
   http://bugs.python.org/issue6460created  r.david.murray  
  
   

multiprocessing: freezing apps on Windows07/11/09
   http://bugs.python.org/issue6461created  sgm 
  
   

bsddb3 intermittent test failures07/11/09
   http://bugs.python.org/issue6462created  r.david.murray  
  
   

IDLE with Tk-Cocoa: Edit, format menus hang  07/11/09
   http://bugs.python.org/issue6463created  wordtech
  
   

test_normalization failures due to truncated NormalizationTest.t 07/11/09
CLOSED http://bugs.python.org/issue6464created  r.david.murray  
  
   easy

email.feedparser regular expression bug (NLCRE_crack)07/11/09
   http://bugs.python.org/issue6465created  jkg 
  
   patch   

duplicate get_version() code between cygwinccompiler and emxccom 07/12/09
   http://bugs.python.org/issue6466created  tarek   
  
   

raw_input() doesn't work as expected when it gets multiple ^D07/12/09
   http://bugs.python.org/issue6467created  lucaspmelo  
  
   

__missing__ not completely implemented in dictobject.c   07/12/09
CLOSED http://bugs.python.org/issue6468created  bvukov  
  
   

Function definition expressions feature  07/12/09
CLOSED http://bugs.python.org/issue6469created  grammati
  
   patch   

Tkinter import fails when running Python.exe from a network shar 07/12/09
   http://bugs.python.org/issue6470created  cgohlke 
  
   patch, needs review 

errno and strerror attributes incorrectly set on socket errors w 07/12/09
   http://bugs.python.org/issue6471created  ezio.melotti
  
   

Inconsistent use of iterator in ElementTree doc  diff between 07/13/09
   http://bugs.python.org/issue6472created  MLModel 
  
   

hmac sha384/sha512 fails test vectors07/13/09
CLOSED http://bugs.python.org/issue6473created  iwade   
  
   

Inconsistent TypeError message on function calls with wrong numb 07/13/09
   http://bugs.python.org/issue6474created  hagen   
  
   

Documentation  Tutorial  List Comprehensions   07/13/09
CLOSED http://bugs.python.org/issue6475created  Retro   
  
   

MSVCRT's spawnve/spawnvpe are not thread safe07/13/09
   http://bugs.python.org/issue6476created  jfonseca
  
   

[Python-Dev] Experiment: Adding re to string objects.

2009-07-17 Thread Sean Reifschneider
I'm mailing this to python-dev because I'd like feedback on the idea of
adding an re attribute to strings.  I'm not sure if it's a good idea or
not yet, but I figure it's worth discussion.  The module mentioned here
includes a class called restr() which allows you to play with s.re.

As some of you may recall, I'm not particularly fond of the recipe:

   m = re.match(r'whatever(.*)', s)
   if m:
  m.group(1)

The other morning I came up on the idea of adding an re to strings, so
you could do things like:

   if s.re.match(r'whatever(.*)'):
  print s.re.group(1)

or:

   if (date.re.match(r'(?Pyear\d\d\d\d)-(?Pmonth\d\d)' or
 date.re.match(r'(?Pmonth\d\d)-(?Pyear\d\d\d\d)'):
  print date.re.groupdict('year')

So I decided to try experimenting with it and see how I like it.  I've also
thrown a bunch of other stuff into it and made a module called
filtertools:

   http://pypi.python.org/pypi/filtertools/0.01
   ftp://ftp.tummy.com/pub/tummy/Python/python-filtertools/

As the version number is meant to indicate, this is something that I'm
still exploring whether it is the right thing done in the right way.
Though at the moment the only thing I plan to change is that some of the
iterators (having nothing to do with adding re to string objects)
probably shouldn't consume the barrier such as the dropwhile() and
takewhile().  You might want to do something like:

   fp = filtertools.reopen('mailbox')
   for header in filtertools.takewhile([ r'^\S' ], fp.readlines()) :
  print 'HEADER:', header.rstrip()
  for continued in filtertools.takewhile([ r'^\s+\S' ], fp.readlines()) :
 print 'CONTINUED:', continued.rstrip()

But, the takewhile() I will consume the first non-matching line.

Anyway, I appreciate any feedback folks have.

Thanks,
Sean
-- 
 What we see depends on mainly what we look for.
 -- John Lubbock
Sean Reifschneider, Member of Technical Staff j...@tummy.com
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Experiment: Adding re to string objects.

2009-07-17 Thread Aahz
On Fri, Jul 17, 2009, Sean Reifschneider wrote:

 I'm mailing this to python-dev because I'd like feedback on the idea of
 adding an re attribute to strings.  I'm not sure if it's a good idea or
 not yet, but I figure it's worth discussion.  The module mentioned here
 includes a class called restr() which allows you to play with s.re.

Ideas should go to python-ideas, please.
-- 
Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/

If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur.  --Red Adair
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Experiment: Adding re to string objects.

2009-07-17 Thread MRAB

Sean Reifschneider wrote:

I'm mailing this to python-dev because I'd like feedback on the idea of
adding an re attribute to strings.  I'm not sure if it's a good idea or
not yet, but I figure it's worth discussion.  The module mentioned here
includes a class called restr() which allows you to play with s.re.

As some of you may recall, I'm not particularly fond of the recipe:

   m = re.match(r'whatever(.*)', s)
   if m:
  m.group(1)

The other morning I came up on the idea of adding an re to strings, so
you could do things like:

   if s.re.match(r'whatever(.*)'):
  print s.re.group(1)

or:

   if (date.re.match(r'(?Pyear\d\d\d\d)-(?Pmonth\d\d)' or
 date.re.match(r'(?Pmonth\d\d)-(?Pyear\d\d\d\d)'):
  print date.re.groupdict('year')


[snip]
Why not drop the .re part? You would, however, then need a new name
for the re split, eg re_split.

Or you could make the string the pattern, eg r'whatever(.*)'.match(s).
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com