Taskinoor Hasan | 12 Oct 14:52

2 modifications in robotparser.py

im a novice python programmer. i have made two changes to robotparser.py. i apologize if this is the wrong list to post this mail.

1. some sites /* specially wikipedia */ returns 403 when default User-Agent is used. so i have changed the code to use urllib2 and added a set_user_agent method. this is simple.

2. this problem is slight complicated. please check the robots.txt file from mathworld.

   http://mathworld.wolfram.com/robots.txt

it contains 2 User-Agent: * lines.

from http://www.robotstxt.org/norobots-rfc.txt
These name tokens are used in User-agent lines in /robots.txt to
identify to which specific robots the record applies. The robot
must obey the first record in /robots.txt that contains a User-
Agent line whose value contains the name token of the robot as a
substring. The name comparisons are case-insensitive. If no such
record exists, it should obey the first record with a User-agent
line with a "*" value, if present. If no record satisfied either
condition, or no records are present at all, access is unlimited.

but it seems that our robotparser is obeying the 2nd one. the problem occures because robotparser assumes that no robots.txt will contain two * user-agent. it should not have two two such line, but in reality many site may have two.

so i have changed the code as follow:

    def _add_entry(self, entry):
        if "*" in entry.useragents:
            # the default entry is considered last
            if self.default_entry == None:
                   self.default_entry = entry
        else:
            self.entries.append(entry)

and at the end of parse(self, lines) method

        if state==2:
#            self.entries.append(entry)
            self._add_entry(entry)

red marked lines are added by me.

as im a very novice python programmer, i really want some experts comment about this matter.

i apologize again if im wasting ur times.

thanks in advance
Taskinoor Hasan Sajid

Attachment (customrobotparser.py): application/octet-stream, 10 KiB
_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org
Jim Jewett | 10 Oct 18:08

backporting tests [was: [Python-checkins] r66863 - python/trunk/Modules/posixmodule.c]

In http://mail.python.org/pipermail/python-dev/2008-October/082994.html
Martin v. Löwis wrote:

> So 2.6.0 will contain a lot of tests that have never been tested in
> a wide variety of systems. Some are incorrect, and get fixed in 2.6.1,
> and stay fixed afterwards. This is completely different from somebody
> introducing a new test in 2.6.4. It means that there are more failures
> in a maintenance release, not less as in the first case.

If 2.6.1 has some (possibly accidental, but exposed to the users)
behavior that is not a clear bug, it should be kept through 2.6.x.
You may well want to change it in 2.7, but not in 2.6.4.  Adding a
test to 2.6.2 ensures that the behavior will not silently disappear
because of an unrelated bugfix in 2.6.3.

-jJ
_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org

Python tracker | 10 Oct 18:04
Favicon

Summary of Python tracker Issues


ACTIVITY SUMMARY (10/03/08 - 10/10/08)
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.

 2105 open (+49) / 13818 closed (+21) / 15923 total (+70)

Open issues with patches:   690

Average duration of open issues: 707 days.
Median duration of open issues: 1884 days.

Open Issues Breakdown
   open  2089 (+49)
pending    16 ( +0)

Issues Created Or Reopened (73)
_______________________________

zlib.crc32() and adler32() return value                          10/06/08
       http://bugs.python.org/issue1202    reopened facundobatista            
       64bit, easy                                                             

Fix test_cProfile                                                10/06/08
       http://bugs.python.org/issue2744    reopened benjamin.peterson         

"make check" suggest a testing target under GNU coding standards 10/03/08
CLOSED http://bugs.python.org/issue3758    reopened brett.cannon              
       patch                                                                   

08 value popups an stdin error, no date handle allowed           10/03/08
CLOSED http://bugs.python.org/issue4031    created  pgimelli                  

disutils cannot recognize ".dll.a" as library on cygwin          10/03/08
       http://bugs.python.org/issue4032    created  ocean-city                

python search path - .pth recursion                              10/03/08
       http://bugs.python.org/issue4033    created  jolleyjoe                 

traceback attribute error                                        10/03/08
       http://bugs.python.org/issue4034    created  ghazel                    
       patch, needs review                                                     

Support bytes for os.exec*()                                     10/03/08
       http://bugs.python.org/issue4035    created  haypo                     
       patch, patch                                                            

Support bytes for subprocess.Popen()                             10/03/08
       http://bugs.python.org/issue4036    created  haypo                     
       patch, patch                                                            

doctest.py should include method descriptors when looking inside 10/04/08
       http://bugs.python.org/issue4037    created  daaku                     

py3k error in distutils file_copy exception handlers             10/04/08
CLOSED http://bugs.python.org/issue4038    created  mhammond                  
       patch, patch                                                            

Add __enter__ and __exit__ methods to StringIO/cStringIO classes 10/04/08
CLOSED http://bugs.python.org/issue4039    created  peppergrower              

ignored exceptions in generators (regression?)                   10/04/08
       http://bugs.python.org/issue4040    created  benjamin.peterson         

reference to rexec in __import__                                 10/04/08
CLOSED http://bugs.python.org/issue4041    created  wplappert                 

IDLE won't start in 2.6 final. A known fix was overlooked?       10/04/08
CLOSED http://bugs.python.org/issue4042    created  rbtyod                    

Warnings in IDLE raise TypeError (such as attempting to import d 10/04/08
       http://bugs.python.org/issue4043    created  craigh                    

test_output_textcalendar fails on non-englisch locale            10/05/08
       http://bugs.python.org/issue4044    created  oefe                      

test_mboxmmdf_to_maildir fails on non-englisch locale            10/05/08
       http://bugs.python.org/issue4045    created  oefe                      

test_formatdate_usegmt fails on non-englisch locale              10/05/08
       http://bugs.python.org/issue4046    created  oefe                      

test_run_abort triggers CrashReporter on MacOS X                 10/05/08
       http://bugs.python.org/issue4047    created  oefe                      

parsermodule won't validate relative imports                     10/05/08
       http://bugs.python.org/issue4048    created  dbinger                   
       patch                                                                   

IDLE does not open at all                                        10/06/08
       http://bugs.python.org/issue4049    created  Chris_L                   

inspect.findsource() returns binary data for shared library modu 10/06/08
       http://bugs.python.org/issue4050    created  brodierao                 
       patch                                                                   

use of TCHAR under win32                                         10/06/08
       http://bugs.python.org/issue4051    created  eckhardt                  
       patch                                                                   

Build on 2.6 on AIX 5.3 fails (syntax error / undeclared identif 10/06/08
CLOSED http://bugs.python.org/issue4052    created  gerard                    

str.split unintentionally strips char 'I' from the string        10/06/08
CLOSED http://bugs.python.org/issue4053    created  Govind                    

str.split unintentionally strips char 'I' from the string        10/06/08
CLOSED http://bugs.python.org/issue4054    created  Govind                    

Documentation on website is missing section numbers              10/06/08
CLOSED http://bugs.python.org/issue4055    created  ivazquez                  

:Class: causes exception                                         10/06/08
CLOSED http://bugs.python.org/issue4056    created  ianb                      

Popen(..., cwd=...) does not set PWD environment variable        10/06/08
       http://bugs.python.org/issue4057    created  tebeka                    

markup in What's New in 2.6                                      10/06/08
CLOSED http://bugs.python.org/issue4058    created  lehmannro                 
       patch                                                                   

sqlite3 docs incomplete                                          10/06/08
CLOSED http://bugs.python.org/issue4059    created  lehmannro                 
       patch                                                                   

PyUnicode_DecodeUTF16(..., byteorder=0) gets it wrong on Mac OS  10/06/08
       http://bugs.python.org/issue4060    created  trentm                    
       patch                                                                   

summing two numbers-strange answer                               10/06/08
CLOSED http://bugs.python.org/issue4061    created  mhmtyozcu001              

Reference to non-existent __version__ in ast module              10/06/08
       http://bugs.python.org/issue4062    created  orestis                   

sphinx: make all-pdf does not exist.                             10/07/08
CLOSED http://bugs.python.org/issue4063    created  guettli                   

distutils.util.get_platform() is wrong for universal builds on m 10/07/08
       http://bugs.python.org/issue4064    created  ronaldoussoren            
       patch, needs review                                                     

_multiprocessing doesn't build on macosx 10.3                    10/07/08
       http://bugs.python.org/issue4065    created  ronaldoussoren            

smtplib SMTP_SSL._get_socket doesn't return a value              10/07/08
       http://bugs.python.org/issue4066    created  marcin.bachry             
       patch                                                                   

ast.fix_missing_locations() breaks if node doesn't have "_attrib 10/07/08
       http://bugs.python.org/issue4067    created  marcin.bachry             
       patch                                                                   

Backport fix for issue 3312                                      10/07/08
CLOSED http://bugs.python.org/issue4068    created  ghaering                  
       patch, patch                                                            

set.remove raises confusing KeyError                             10/07/08
CLOSED http://bugs.python.org/issue4069    created  cfbolz                    
       patch                                                                   

python tests failure if builddir <> sourcedir                    10/07/08
       http://bugs.python.org/issue4070    created  rpetrov                   
       patch                                                                   

ntpath.abspath fails for long str paths                          10/08/08
       http://bugs.python.org/issue4071    created  JDay                      
       patch                                                                   

build_py support for lib2to3 is stale                            10/08/08
       http://bugs.python.org/issue4072    created  mhammond                  
       patch                                                                   

distutils build_scripts and install_data commands need 2to3 supp 10/08/08
       http://bugs.python.org/issue4073    created  mhammond                  

Building a list of tuples has non-linear performance             10/08/08
       http://bugs.python.org/issue4074    created  gregory.p.smith           

Use WCHAR variant of OutputDebugString                           10/08/08
       http://bugs.python.org/issue4075    created  eckhardt                  
       patch                                                                   

Cannot build non-framework tkinter Python on Mac OS X.5          10/08/08
CLOSED http://bugs.python.org/issue4076    created  indiedan                  

Py_FatalError cleanup patch                                      10/08/08
       http://bugs.python.org/issue4077    created  eckhardt                  
       patch, easy                                                             

asyncore fixes are not backwards compatible                      10/08/08
       http://bugs.python.org/issue4078    created  sidnei                    

new urllib2.Request 'timeout' attribute needs to have a default  10/08/08
       http://bugs.python.org/issue4079    created  sidnei                    

pyunit - display time of each test case - patch                  10/08/08
       http://bugs.python.org/issue4080    created  pprokop                   
       patch                                                                   

Error copying directory to _static in Sphinx                     10/08/08
       http://bugs.python.org/issue4081    created  tcdelaney                 

python2.6 -m site doesn't run site._script() any more            10/08/08
       http://bugs.python.org/issue4082    created  christian.heimes          

try statement in language reference not updated for v2.6         10/09/08
       http://bugs.python.org/issue4083    created  davipo                    

Decimal.max(NaN, x) gives incorrect results when x is finite and 10/09/08
       http://bugs.python.org/issue4084    created  marketdickinson           
       patch                                                                   

2.5.2 whatsnew document corrupts names, by having broken HTML, a 10/09/08
CLOSED http://bugs.python.org/issue4085    created  drj                       

support %z format in time.strftime and _strptime?                10/09/08
       http://bugs.python.org/issue4086    created  skip.montanaro            

Document the effects of NotImplemented on == and !=              10/09/08
       http://bugs.python.org/issue4087    created  marketdickinson           

Patch to implement a real poplib test suite                      10/09/08
       http://bugs.python.org/issue4088    created  giampaolo.rodola          
       patch                                                                   

linking python2.6.dll crash on windows xp                        10/09/08
       http://bugs.python.org/issue4089    created  Manuel                    

Documenting set comparisons and operations                       10/09/08
       http://bugs.python.org/issue4090    created  tjreedy                   

python dll not installed in windows system directory             10/09/08
       http://bugs.python.org/issue4091    created  theller                   

inspect.getargvalues return type not ArgInfo                     10/09/08
       http://bugs.python.org/issue4092    created  castironpi                

add gc/memory management tests to pybench                        10/09/08
       http://bugs.python.org/issue4093    created  pitrou                    

"Future statements" Doc from 2.6 refers to 2.5                   10/09/08
CLOSED http://bugs.python.org/issue4094    created  martin.marcher            

Delivery Status                                                  10/10/08
CLOSED http://bugs.python.org/issue4095    created  nobody                    

Lib/lib2to3/*.pickle are shipped / modified in the build         10/10/08
       http://bugs.python.org/issue4096    created  doko                      

Traceback doesn't run back all the way                           10/10/08
       http://bugs.python.org/issue4097    created  pinkisntwell              

surprised by default list parameter                              10/10/08
CLOSED http://bugs.python.org/issue4098    created  trott                     

dir on a compiled re does not show pattern as a part of the list 10/10/08
       http://bugs.python.org/issue4099    created  bartoszr                  

xml.etree.ElementTree does not read xml-text over page bonderies 10/10/08
       http://bugs.python.org/issue4100    created  roland                    

Issues Now Closed (44)
______________________

test_socket.py fails                                              297 days
       http://bugs.python.org/issue1610    Tinctorius                

PythonLauncher not working correctly on OS X 10.5/Leopad          261 days
       http://bugs.python.org/issue1905    thelawnmowerman           

[Py3k] line number is wrong after encoding declaration            206 days
       http://bugs.python.org/issue2384    amaury.forgeotdarc        
       patch                                                                   

file that breaks 2to3 (despite being correct python)              185 days
       http://bugs.python.org/issue2532    collinwinter              

os.listdir can return byte strings                                105 days
       http://bugs.python.org/issue3187    loewis                    
       patch                                                                   

[proposal] alternative for re.sub                                  93 days
       http://bugs.python.org/issue3255    ocean-city                

float.as_integer_ratio method is not documented                    95 days
       http://bugs.python.org/issue3288    georg.brandl              
       patch                                                                   

2to3 Iterative Wildcard Matching                                   81 days
       http://bugs.python.org/issue3358    collinwinter              
       patch                                                                   

Fraction and Decimal in the Tutorial                               79 days
       http://bugs.python.org/issue3412    rhettinger                

PEP 3121 --- module state is not nul-initalized as claimed in th   38 days
       http://bugs.python.org/issue3740    loewis                    
       patch                                                                   

"make check" suggest a testing target under GNU coding standards    3 days
       http://bugs.python.org/issue3758    brett.cannon              
       patch                                                                   

_lsprof issue                                                      19 days
       http://bugs.python.org/issue3895    benjamin.peterson         

Building PDF documentation from tex files                          19 days
       http://bugs.python.org/issue3909    georg.brandl              

bisect insort C implementation ignores methods on list subclasse   16 days
       http://bugs.python.org/issue3935    georg.brandl              
       patch                                                                   

PyTraceBack_Print() doesn't respect # coding: xxx header           13 days
       http://bugs.python.org/issue3975    amaury.forgeotdarc        
       patch                                                                   

Additional 2to3 documentation updates                               5 days
       http://bugs.python.org/issue4000    georg.brandl              

2to3 does relative import for modules not in a package.             3 days
       http://bugs.python.org/issue4001    benjamin.peterson         
       patch                                                                   

missing newline in "Could not convert argument %s to string" err    7 days
       http://bugs.python.org/issue4004    amaury.forgeotdarc        
       patch                                                                   

Python-2.6-py2.6.egg-info contains Alpha reference                  4 days
       http://bugs.python.org/issue4014    loewis                    

convert os.getcwdu() to os.getcwd(), and getcwdu() to getcwd()      1 days
       http://bugs.python.org/issue4023    benjamin.peterson         
       patch                                                                   

Documentation displays incorrectly in iexplore.                     4 days
       http://bugs.python.org/issue4029    LambertDW                 

08 value popups an stdin error, no date handle allowed              0 days
       http://bugs.python.org/issue4031    amaury.forgeotdarc        

py3k error in distutils file_copy exception handlers                1 days
       http://bugs.python.org/issue4038    mhammond                  
       patch, patch                                                            

Add __enter__ and __exit__ methods to StringIO/cStringIO classes    0 days
       http://bugs.python.org/issue4039    benjamin.peterson         

reference to rexec in __import__                                    0 days
       http://bugs.python.org/issue4041    georg.brandl              

IDLE won't start in 2.6 final. A known fix was overlooked?          1 days
       http://bugs.python.org/issue4042    loewis                    

Build on 2.6 on AIX 5.3 fails (syntax error / undeclared identif    0 days
       http://bugs.python.org/issue4052    loewis                    

str.split unintentionally strips char 'I' from the string           0 days
       http://bugs.python.org/issue4053    haypo                     

str.split unintentionally strips char 'I' from the string           0 days
       http://bugs.python.org/issue4054    haypo                     

Documentation on website is missing section numbers                 2 days
       http://bugs.python.org/issue4055    georg.brandl              

:Class: causes exception                                            2 days
       http://bugs.python.org/issue4056    georg.brandl              

markup in What's New in 2.6                                         2 days
       http://bugs.python.org/issue4058    georg.brandl              
       patch                                                                   

sqlite3 docs incomplete                                             2 days
       http://bugs.python.org/issue4059    georg.brandl              
       patch                                                                   

summing two numbers-strange answer                                  0 days
       http://bugs.python.org/issue4061    benjamin.peterson         

sphinx: make all-pdf does not exist.                                1 days
       http://bugs.python.org/issue4063    georg.brandl              

Backport fix for issue 3312                                         1 days
       http://bugs.python.org/issue4068    ghaering                  
       patch, patch                                                            

set.remove raises confusing KeyError                                0 days
       http://bugs.python.org/issue4069    amaury.forgeotdarc        
       patch                                                                   

Cannot build non-framework tkinter Python on Mac OS X.5             1 days
       http://bugs.python.org/issue4076    amaury.forgeotdarc        

2.5.2 whatsnew document corrupts names, by having broken HTML, a    0 days
       http://bugs.python.org/issue4085    georg.brandl              

"Future statements" Doc from 2.6 refers to 2.5                      0 days
       http://bugs.python.org/issue4094    benjamin.peterson         

Delivery Status                                                     0 days
       http://bugs.python.org/issue4095    loewis                    

surprised by default list parameter                                 0 days
       http://bugs.python.org/issue4098    amaury.forgeotdarc        

optparse enable_interspersed_args disable_interspersed_args       982 days
       http://bugs.python.org/issue1415508 akuchling                 
       patch                                                                   

Failed to build Python 2.5.1 with sqlite3                         528 days
       http://bugs.python.org/issue1706863 ocean-city                
       patch                                                                   

Top Issues Most Discussed (10)
______________________________

 15 os.listdir can return byte strings                               105 days
closed  http://bugs.python.org/issue3187   

 14 python2.6 -m site doesn't run site._script() any more              2 days
open    http://bugs.python.org/issue4082   

 14 PyUnicode_DecodeUTF16(..., byteorder=0) gets it wrong on Mac OS    4 days
open    http://bugs.python.org/issue4060   

 13 Cross compiling patches for MINGW                                694 days
open    http://bugs.python.org/issue1597850

 12 PyTraceBack_Print() doesn't respect # coding: xxx header          13 days
closed  http://bugs.python.org/issue3975   

 12 compile() cannot decode Latin-1 source encodings                  55 days
open    http://bugs.python.org/issue3574   

 10 ntpath.abspath fails for long str paths                            3 days
open    http://bugs.python.org/issue4071   

  9 Use WCHAR variant of OutputDebugString                             2 days
open    http://bugs.python.org/issue4075   

  7 importing from UNC roots doesn't work                             46 days
open    http://bugs.python.org/issue3677   

  6 Document the effects of NotImplemented on == and !=                1 days
open    http://bugs.python.org/issue4087   

_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org
Jim Jewett | 10 Oct 17:51

syntax change justification

Nick Coghlan's explanation of what justifies a syntax change (most of message
http://mail.python.org/pipermail/python-dev/2008-October/082831.html )
should probably be added to the standard docs/FAQs somewhere.

At the moment, I'm not sure exactly where, though.  At the moment, the
Developer FAQ (http://www.python.org/dev/faq/)  is mostly about using
specific tools (rather than design philosophy), and Nick's explanation
may be too detailed for the current Explanations section of
www.python.org/dev/

Possibly as a Meta-PEP?

-jJ
_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org

Jim Jewett | 10 Oct 17:34

www.python.org/doc and docs.python.org hotfixed

> For the search engine issue, is there any way we can tell robots to
> ignore the rewrite rules so they see the broken links? (although even
> that may not be ideal, since what we really want is to tell the robot
> the link is broken, and provide the new alternative)

I may be missing something obvious, but isn't this the exact intent of

HTTP response code 301 Moved Permanently

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2

-jJ
_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org

skip | 10 Oct 05:07
Favicon

another test message - please ignore

still working on spam filter...

Skip
_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org

skip | 10 Oct 05:03
Favicon

test message - please ignore

(messing with the python.org spam filter - please ignore)

Skip
_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org

Raymond Hettinger | 10 Oct 01:08

Documentation idea

Background
----------
In the itertools module docs, I included pure python equivalents for each of the C functions.  Necessarily,
some of those 
equivalents are only approximate but they seem to have greatly enhanced the docs.  Something similar is in
the builtin docs for 
any() and all().  The new collections.namedtuple() factory function also includes a verbose option that
prints a pure python 
equivalent for the generated class. And in the decimal module, I took examples directly from the spec and
included them in 
doc-testable docstrings.  This assured compliance with the spec while providing clear examples to anyone
who bothers to look at the 
docstrings.

For itertools docs, I combined those best practices and included sample calls in the pure-python code (see
the current docs for 
itertools to see what I mean -- perhaps look at the docs for a new tool like itertools.product() or
itertools.izip_longest() to see 
how useful it is).

Bright idea
----------
Let's go one step further and do this just about everywhere and instead of putting it in the docs, attach an
exec-able string as an 
attribute to our C functions.  Further, those pure python examples should include doctests so that the user
can see a typical 
invocation and calling pattern.

Say we decide to call the attribute something like ".python", then you could write something like:

    >>> print(all.python)
   def all(iterable):
        '''Return True if all elements of the iterable are true.

        >>> all(isinstance(x, int) for x in [2, 4, 6.13, 8])
        False
        >>> all(isinstance(x, int) for x in [2, 4, 6, 8])
        True
        '''

        for element in iterable:
            if not element:
                 return False
        return True

There you have it, a docstring, doctestable examples, and pure python equivalent all in one place.  And
since the attribute is 
distinguished from __doc__, we can insist that the string be exec-able (something we can't insist on for
arbitrary docstrings).

Benefits
--------

* I think this will greatly improve the understanding of tools like str.split() which have proven to be
difficult to document with 
straight prose.  Even with simple things like any() and all(), it makes it self-evident that the functions
have early-out behavior 
upon hitting the first mismatch.

* The exec-able definitions and docstrings will be testable

* It will assist pypy style projects and other python implementations when they have to build equivalents
to CPython.

* We've gotten good benefits from doctests for pure python functions, why not extend this best practice to
our C functions.

* The whole language will become more self-explanatory and self-documenting.

* Will eliminate confusion about what functions were exactly intended to do.

* Will confer benefits similar to test driven development where the documentation and  pure python version
are developed first and 
doctests gotten to pass, then the C version is created to match.

* For existing code, this is a perfect project for people who want to start contributing to the language but
aren't ready to start 
writing C (the should be able to read C however so that the equivalent really does match the C code).

Limits
-----

* In some cases, there may be no pure python equivalent (i.e. sys.getsize()).

* Sometimes the equivalent can only be approximate because the actual C function is too complex (i.e. itertools.tee()).

* Some cases, like int(), are useful as a type, have multiple functions, and are hard to write as pure python equivalents.

* For starters, it probably only makes to do this for things that are more "algorithmic" like any() and all()
or things that have a 
straight-forward equivalent like property() written using descriptors.

Premise
-------

Sometimes pure python is more expressive, precise, and easy to read than English prose. 

_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org

A.M. Kuchling | 9 Oct 22:22

Distutils/packaging sprint this weekend

Tarek Zidae' is organizing a sprint on general
distutils/setuptools/packaging this weekend.  Physically it's in
Arlington VA, but participants will be hanging out in #distutils on
freenode's IRC.

More information at
<http://www.openplans.org/projects/plone-conference-2008-dc/distribute>.

--am"If you're in Fairfax County and need a lift, let me know"k
_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org

Ulrich Eckhardt | 9 Oct 10:46

Subversion access down?

Hi!

Is it only me or does it fail for other people, too? I'm getting

| Server sent unexpected return value (503 Service
| Unavailable) in response to OPTIONS request 
| for 'http://svn.python.org/projects/python/trunk'  

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann
vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie
nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder
gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten.
Sator Laser GmbH ist für diese Folgen nicht verantwortlich.

**************************************************************************************

_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org

Benjamin Peterson | 8 Oct 22:43

Re: [Python-3000] Proposed Python 3.0 schedule

On Wed, Oct 8, 2008 at 12:51 AM, Dmitry Vasiliev <dima <at> hlabs.spb.ru> wrote:
>
> BTW, I think the following issues should be also marked as release blockers:

Agreed and done.

>
> - http://bugs.python.org/issue3714 (nntplib module broken by str to
> unicode conversion)
> - http://bugs.python.org/issue3725 (telnetlib module broken by str to
> unicode conversion)
> - http://bugs.python.org/issue3727 (poplib module broken by str to
> unicode conversion)
>
> --
> Dmitry Vasiliev <dima at hlabs.spb.ru>
> http://hlabs.spb.ru
>

--

-- 
Cheers,
Benjamin Peterson
"There's nothing quite as beautiful as an oboe... except a chicken
stuck in a vacuum cleaner."
_______________________________________________
Python-Dev mailing list
Python-Dev <at> python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org


Gmane