[RELEASE] Python 2.7.18, the end of an era

2020-04-20 Thread Benjamin Peterson
I'm eudaemonic to announce the immediate availability of Python 2.7.18. Python 2.7.18 is a special release. I refer, of course, to the fact that "2.7.18" is the closest any Python version number will ever approximate e, Euler's number. Simply exquisite! A less transcendent property of Python 2.

[RELEASE] Python 2.7.18 release candidate 1

2020-04-06 Thread Benjamin Peterson
Greetings, 2.7.18 release candidate 1, a testing release for the last release of the Python 2.7 series, is now available for download. The CPython core developers stopped applying routine bugfixes to the 2.7 branch on January 1. 2.7.18 will includes fixes that were made between the release of 2.

[RELEASE] Python 2.7.17

2019-10-19 Thread Benjamin Peterson
Greetings, I'm wealful to announce the immediate availability of Python 2.7.17, another bugfix release in the Python 2.7 series. Downloads are on python.org: https://www.python.org/downloads/release/python-2717/ No code changes occurred between the 2.7.17 release candidate and the final re

[RELEASE] Python 2.7.17 release candidate 1

2019-10-08 Thread Benjamin Peterson
The first release candidate of Python 2.7.17 is now available for download and testing. Python 2.7.17 includes 80 fixes over Python 2.7.16. Downloads may be found on python.org: https://www.python.org/downloads/release/python-2717rc1/ Read the full changelog at: https://raw.githubuser

[RELEASE] Python 2.7.16

2019-03-03 Thread Benjamin Peterson
Hello all, I'm pleased to announce the immediate availability of Python 2.7.16 for download at https://www.python.org/downloads/release/python-2716/. The only change since the release candidate was a fix for the IDLE icon on macOS. See https://bugs.python.org/issue32129. Refer to the changelog f

[RELEASE] Python 2.7.16 release candidate 1

2019-02-16 Thread Benjamin Peterson
I'm pleased to announce the immediate availability of Python 2.7.16 release candidate 1. This is a prerelease for yet another bug fix release in the Python 2.7.x series. It includes over 100 fixes over Python 2.7.15. See the changelog at https://raw.githubusercontent.com/python/cpython/baa

[RELEASE] Python 2.7.15

2018-04-30 Thread Benjamin Peterson
Greetings, I'm pleased to announce the immediate availability of Python 2.7.15, the latest bug fix release in the senescent Python 2.7 series. Source and binary downloads may be found on python.org: https://www.python.org/downloads/release/python-2715/ Bugs should be reported to https://bu

[RELEASE] Python 2.7.15 release candidate 1

2018-04-14 Thread Benjamin Peterson
I'm pleased to announce the immediate availability of Python 2.7.15 release candidate 1. Python 2.7.15rc1 is a preview release of the next bug fix release in the Python 2.7.x series. Python 2.7.15rc1 may be downloaded in source and binary forms from https://www.python.org/downloads/release/p

[RELEASE] Python 2.7.14

2017-09-16 Thread Benjamin Peterson
I'm happy to announce to the immediate availability of Python 2.7.14, yet another bug fix release in the Python 2.7 series. 2.7.14 includes 9 months of conservative bug fixes from the 3.x branch. Downloads of source code and binaries are at: https://www.python.org/downloads/release/python-2714

[RELEASE] Python 2.7.13

2016-12-17 Thread Benjamin Peterson
: https://bugs.python.org/ 2.7.14 will appear mid-2017. All the best in the new year, Benjamin Peterson 2.7 release manager -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7.13 release candidate 1

2016-12-03 Thread Benjamin Peterson
It is my pleasure to announce the first release candidate of Python 2.7.13, a new bugfix release in the Python 2.7x series. Downloads may be found on python.org: https://www.python.org/downloads/release/python-2713rc1/ Please test the release and report any bugs to https://bugs.python.or

[RELEASE] Python 2.7.12

2016-06-27 Thread Benjamin Peterson
It is my privilege to present you with another release in the Python 2.7 series, Python 2.7.12. Since the release candidate, there were two changes: - The Windows binaries have been changed to use OpenSSL 1.0.2h. - The "about" dialog in IDLE was fixed. Downloads, as always, are on python.org:

[RELEASE] Python 2.7.12 release candidate 1

2016-06-12 Thread Benjamin Peterson
Python 2.7.12 release candidate 1 is now available for download. This is a preview release of the next bugfix release in the Python 2.7.x series. Assuming no horrible regressions are located, a final release will follow in two weeks. Downloads for 2.7.12rc1 can be found python.org: https://www

[RELEASED] Python 2.7.11

2015-12-05 Thread Benjamin Peterson
Python 2.7.11, the latest bugfix release of the Python 2.7 series, is now available for download at https://www.python.org/downloads/release/python-2711/ Thank you as always to Steve Dower and Ned Deily, who build our binaries. Enjoy the rest of the year, Benjamin -- https://mail.python.org/

[RELASE] Python 2.7.11 release candidate 1

2015-11-21 Thread Benjamin Peterson
bugs to https://bugs.python.org If no serious problems are found, 2.7.11 final will be released in two weeks. Regards, Benjamin Peterson (on behalf of Python 2.7.11's contributors) -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7.10

2015-05-23 Thread Benjamin Peterson
The next bugfix release of the Python 2.7.x series, Python 2.7.10, has been released. The only interesting change since the release candidate is a fix for a regression in cookie parsing. Downloads are available at: https://www.python.org/downloads/release/python-2710/ Report bugs at: https://

[RELEASE] Python 2.7.10 release candidate 1

2015-05-11 Thread Benjamin Peterson
It is my privilege to announce the first release candidate of 2.7.10, the next bugfix release in the 2.7 series. Downloads are at https://www.python.org/downloads/release/python-2710rc1/ The full changelog is at https://hg.python.org/cpython/raw-file/80ccce248ba2/Misc/NEWS Please conside

[RELEASE] Python 2.7.9

2014-12-10 Thread Benjamin Peterson
It is my pleasure to announce the release of Python 2.7.9, a new bugfix release in the Python 2.7 series. Despite technically being a maintenance release, Python 2.7.9 includes several majors changes from 2.7.8: - The "ensurepip" module has been backported to Python 2.7 - Python 3's ssl module has

[RELEASE] Python 2.7.9 release candidate 1

2014-11-26 Thread Benjamin Peterson
I'm pleased to announce the first release candidate of Python 2.7.9, which will be the next bugfix release in the Python 2.7 series. Despite technically being a maintenance release, Python 2.7.9 will include several majors changes from 2.7.8: - The "ensurepip" module has been backported to Python 2

[RELEASE] Python 2.7.8

2014-07-01 Thread Benjamin Peterson
http://bugs.python.org/ Till next time, Benjamin Peterson 2.7 Release Manager (on behalf of all of Python's contributors) [1] http://bugs.python.org/issue21652 [2] http://bugs.python.org/issue21831 [3] http://bugs.python.org/issue21766 [4] http://bugs.python.org/issue21672 --

[RELEASE] Python 2.7.7

2014-06-01 Thread Benjamin Peterson
s the implementation of PEP 466, Network Security Enhancements for Python 2.7.x. Downloads are at https://python.org/download/releases/2.7.7/ This is a production release. As always, please report bugs to http://bugs.python.org/ Build great things, Benjamin Peterson 2.7 Release Manage

[RELEASED] Python 2.7.7 release candidate 1

2014-05-18 Thread Benjamin Peterson
sting release. Assuming no horrible bugs are found, 2.7.7 final will be released in two weeks time. Please consider testing your applications and libraries with the release candidate and reporting bugs to http://bugs.python.org/ Enjoy, Benjamin Peterson 2.7 Release Manager [1] http://bugs.pytho

Re: [Python-Dev] [RELEASE] Python 2.7.6

2013-11-10 Thread Benjamin Peterson
2013/11/10 Victor Stinner : > 2013/11/10 Benjamin Peterson : >> All the changes in Python 2.7.6 are described in full detail in the Misc/NEWS >> file of the source tarball. You can also view online at >> >> http://hg.python.org/cpython/raw-file/99d03261c1ba/Misc/

[RELEASE] Python 2.7.6

2013-11-10 Thread Benjamin Peterson
/ As always, report bugs to http://bugs.python.org/ Have a nice November, Benjamin Peterson 2.7 Release Manager [1] http://bugs.python.org/issue19435 -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7.6 release candidate 1

2013-10-27 Thread Benjamin Peterson
final release will follow in a week. Enjoy, Benjamin Peterson 2.7 Release Manager -- https://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 2.7.5

2013-05-15 Thread Benjamin Peterson
in 2.7.4.) This is a production release. Happy May, Benjamin Peterson 2.7 Release Manager (on behalf of all of Python 2.7's contributors) -- http://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7.4

2013-04-06 Thread Benjamin Peterson
Best wishes, Benjamin Peterson 2.7 Release Manager (on behalf of all of Python 2.7's contributors) -- http://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7.4 release candidate 1

2013-03-24 Thread Benjamin Peterson
will occur in 2 weeks. Downloads are at http://python.org/download/releases/2.7.4/ As always, please report bugs to http://bugs.python.org/ Enjoy, Benjamin Peterson 2.7 Release Manager -- http://mail.python.org/mailman/listinfo/python-list

Re: Py 3.3, unicode / upper()

2012-12-19 Thread Benjamin Peterson
gmail.com> writes: > I really, really do not know what I should think about that. > (It is a complex subject.) And the real question is why? Because that's what the Unicode spec says to do. -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3

2012-04-11 Thread Benjamin Peterson
3.2.3/ As always, please report bugs to http://bugs.python.org/ Happy-to-put-hash-attack-issues-behind-them-ly yours, The Python release team Barry Warsaw (2.6), Georg Brandl (3.2), and Benjamin Peterson (2.7 and 3.1) [1] http://www.ocert.org/advisories/ocert-2011-003.html [2] ht

[RELEASED] Second release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3

2012-03-18 Thread Benjamin Peterson
ses/3.1.5/ http://python.org/download/releases/3.2.3/ Please test these candidates and report bugs to http://bugs.python.org/ With regards, The Python release team Barry Warsaw (2.6), Georg Brandl (3.2), Benjamin Peterson (2.7 and 3.1) [1] http://www.ocert.org/advisories/ocert-2011-003.h

Re: sys.stdout.detach() results in ValueError

2012-03-07 Thread Benjamin Peterson
Peter Kleiweg xs4all.nl> writes: > Not yet using fp in any way, this script gives the following error: > > Exception ValueError: 'underlying buffer has been detached' in You're probably using print() or some such which tries to write to sys.stdout. It's safest to just write to sys.stdout.buf

Re: [RELEASED] Release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3

2012-02-27 Thread Benjamin Peterson
Ben Finney benfinney.id.au> writes: > > Putting “RELEASED” in the subject, when they're not released and are > instead *candidates for* release, is confusing and muddies the issue of > what you even mean by “release”. > {alpha, beta, release candidate, final} \subsetof releases -- http://mai

[RELEASED] Release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3

2012-02-25 Thread Benjamin Peterson
/ With regards, The Python release team Barry Warsaw (2.6), Georg Brandl (3.2), Benjamin Peterson (2.7 and 3.1) [1] http://www.ocert.org/advisories/ocert-2011-003.html [2] http://bugs.python.org/issue13703 -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble with internationalized path under windows

2012-01-22 Thread Benjamin Peterson
Jacob Hallén sotospeak.se> writes: > > I have a problem which ought to have an obvious solution, but I haven't found > one despite searching for many hours. The problem occurs on Windows. You may be running into the brokenness of the Python import system prior to 3.2. See http://bugs.python.or

Re: 'super' object has no attribute '__setitem__'

2011-08-18 Thread Benjamin Peterson
luvspython gmail.com> writes: > def __setitem__(self, item, value): > super(HistoryKeeper, self).__setitem__(item, value) object has no __setitem__. Are you looking for __setattr__? > > class Vehicle(HistoryKeeper): > def __init__(self, tag, make, model): > args = locals

Re: [Python-Dev] [RELEASED] Python 3.1.4

2011-06-12 Thread Benjamin Peterson
2011/6/12 Paul Moore : > On 12 June 2011 18:58, Benjamin Peterson wrote: >> On behalf of the Python development team, I'm sanguine to announce a release >> candidate for the fourth bugfix release for the Python 3.1 series, Python >> 3.1.4. > > Is this actually a R

[RELEASED] Python 3.1.4

2011-06-12 Thread Benjamin Peterson
s can always be reported to: http://bugs.python.org Enjoy and be merry! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 3.1.4's contributors) -- http://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7.2

2011-06-12 Thread Benjamin Peterson
those in the northern hemisphere, have a nice summer! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7.2's contributors) -- http://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7.2 release candidate 1

2011-05-29 Thread Benjamin Peterson
major problems, 2.7.2 will be released in two weeks. Please report any bugs you find to http://bugs.python.org/ Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7.2's contributors) -- http://mail.python.org/mailman/listinfo/python-list

[RELEASE] 3.1.4 release candidate 1

2011-05-29 Thread Benjamin Peterson
ed to: http://bugs.python.org Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 3.1.4's contributors) -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido rethinking removal of cmp from sort method

2011-04-01 Thread Benjamin Peterson
Paul Rubin nospam.invalid> writes: > > I actually think Python3 actually didn't go far enough in fixing > Python2. I'd have frankly preferred delaying it by a few years, to > allow PyPy to come to maturity and serve as the new main Python > implementation, and have that drive the language change

[RELEASED] Python 3.1.3

2010-11-27 Thread Benjamin Peterson
n.org/download/releases/3.1.3/ A list of changes in 3.1.3 can be found here: http://svn.python.org/projects/python/tags/r313/Misc/NEWS The 3.1 documentation can be found at: http://docs.python.org/3.1 Bugs can always be reported to: http://bugs.python.org Enjoy! -- Benjamin Pet

[RELEASED] Python 2.7.1

2010-11-27 Thread Benjamin Peterson
n can be found at: http://docs.python.org/2.7/ This is a production release. Please report any bugs you find to the bug tracker: http://bugs.python.org/ Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7.1's co

[RELEASED] Python 2.7.1 release candidate 1

2010-11-13 Thread Benjamin Peterson
find, so they can be fixed in the final release. The bug tracker is at: http://bugs.python.org/ Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7.1's contributors) -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.1.3 release candidate 1

2010-11-13 Thread Benjamin Peterson
s can always be reported to: http://bugs.python.org Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 3.1.3's contributors) -- http://mail.python.org/mailman/listinfo/python-list

Re: Interaction btw unittest.assertRaises and __getattr__. Bug?

2010-10-26 Thread Benjamin Peterson
Inyeol gmail.com> writes: > > or am I missing something obvious? The attribute access is evaluated before the call to assertRaises, so unittest never has a cache to cache it. -- http://mail.python.org/mailman/listinfo/python-list

Re: overriding a property

2010-10-19 Thread Benjamin Peterson
Lucasm gmail.com> writes: > I would like to override the property for an instance of A to say the > string 'bla'. A.return_five = "blah" -- http://mail.python.org/mailman/listinfo/python-list

Re: PyPy and RPython

2010-09-01 Thread Benjamin Peterson
sarvi gmail.com> writes: > > > Is there a plan to adopt PyPy and RPython under the python foundation > in attempt to standardize both. There is not. > > Secondly I have always fantasized of never having to write C code yet > get its compiled performance. > With RPython(a strict subset of Pyt

Re: python+sqlite3 in memory database

2010-08-30 Thread Benjamin Peterson
John Nagle animats.com> writes: > "sqlite" has reasonably good SELECT performance on simple indices, > but anything beyond that isn't all that great. Multiple processes > updating the same sqlite database will have terrible performance, > because the locking mechanism not only locks the entir

Re: python+sqlite3 in memory database

2010-08-30 Thread Benjamin Peterson
Denis Gomes gmail.com> writes: > > > Hey Benjamin, >   >  Take a look at this website I found about cached and in-memory databases.  I think the gist of the article is that caching is good if you are doing SELECTs on data that is frequently used whereas in-memory speeds up writes, (inserts and

Re: python+sqlite3 in memory database

2010-08-30 Thread Benjamin Peterson
Denis Gomes gmail.com> writes: > > Eventually my goal is to dynamically load and unload sections of a file based database (could be tables or rows) in and out of memory for effeciency purposes. Have you actually found this to be an useful optimization? SQLite already internally caches database

Re: Optimising literals away

2010-08-30 Thread Benjamin Peterson
Tobias Weber gmx.net> writes: > > Hi, > whenever I type an "object literal" I'm unsure what optimisation will do > to it. > > def m(arg): > if arg & set([1,2,3]): > return 4 > > Is the set created every time the method is called? Yes, and the list. > What about a > frozenset? Yep.

Re: bug? context managers vs ImportErrors

2010-08-19 Thread Benjamin Peterson
Chris Withers simplistix.co.uk> writes: > When was it introduced? It depends on how the exception was raised. -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] [RELEASED] Python 3.2 alpha 1

2010-08-01 Thread Benjamin Peterson
Hey, Georg! Congrats on your first release! 2010/8/1 Georg Brandl : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On behalf of the Python development team, I'm happy to announce the > first alpha preview release of Python 3.2. > > Python 3.2 is a continuation of the efforts to improve and

Re: [RELEASE] Python 2.7 released

2010-07-04 Thread Benjamin Peterson
2010/7/4 Benjamin Peterson : > On behalf of the Python development team, I'm jocund to announce the second > release candidate of Python 2.7. Arg!!! This should, of course, be "final release". -- Regards, Benjamin -- http://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7 released

2010-07-04 Thread Benjamin Peterson
http://bugs.python.org/ Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7's contributors) -- http://mail.python.org/mailman/listinfo/python-list

Re: deprecated string module issue

2010-06-24 Thread Benjamin Peterson
GrayShark gmail.com> writes: > Sorry, I meant "from string import lowercase, uppercase" Technically, you should use ascii_lowercase and ascii_uppercase, though I don't know if that's the cause of pylint's complaints. -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 2.7 release candidate 2

2010-06-21 Thread Benjamin Peterson
helps ensure that those upgrading to Python 2.7 will encounter as few bumps as possible. 2.7 documentation can be found at: http://docs.python.org/2.7/ Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7's contributors

Re: GUIs - A Modest Proposal

2010-06-05 Thread Benjamin Peterson
ant uklinux.net> writes: > PyQt is tied to one platform. What do you mean one platform? -- http://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 2.7 release candidate 1 released

2010-06-05 Thread Benjamin Peterson
s few bumps as possible. 2.7 documentation can be found at: http://docs.python.org/2.7/ Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7's contributors) -- http://mail.python.org/mailman/listinfo/python-list

Re: Need some Python 3 help

2010-05-25 Thread Benjamin Peterson
Paul McGuire austin.rr.com> writes: > In this section of code, instring is a string, loc is an int, and wt > is a string. Any clues why instring[loc] would be evaluating as int? > (I am unfortunately dependent on the kindness of strangers when it > comes to testing my Python 3 code, as I don't ha

Re: compile() error

2010-05-19 Thread Benjamin Peterson
Iuri gmail.com> writes: > Any ideas about what is happening? Until Python 2.7/3.2, compile() does't like sources which don't end in a newline. -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 2.7 beta 2

2010-05-08 Thread Benjamin Peterson
lease and is thus not suitable for production use, we encourage Python application and library developers to test the release with their code and report any bugs they encounter to: http://bugs.python.org/ 2.7 documentation can be found at: http://docs.python.org/2.7/ Enjoy! -- Ben

Re: List comprehension + lambdas - strange behaviour

2010-05-06 Thread Benjamin Peterson
Artur Siekielski gmail.com> writes: > > Of course I was expecting the list [0, 1, 2, 3, 4] as the result. The > 'x' was bound to the final value of 'range(5)' expression for ALL > defined functions. Can you explain this? Is this only counterintuitive > example or an error in CPython? The former.

Re: Oddity with large dictionary (several million entries)

2010-04-27 Thread Benjamin Peterson
Lothar Werzinger tradescape.biz> writes: > Wow, that really MAKES a difference! Thanks a lot! You should also try Python 2.7 or 3.1. We've recently optimized the garabage collector for situations where many objects are being created. -- http://mail.python.org/mailman/listinfo/python-list

Re: Destructor being called twice?

2010-04-12 Thread Benjamin Peterson
Longpoke gmail.com> writes: > So either this test case is wrong to assume the destructor can only be > called once, or there is a bug in Python? Destructors can be called more than once in CPython, but other implementations have proper finalization behavior. -- http://mail.python.org/mailman

[RELEASED] 2.7 beta 1

2010-04-10 Thread Benjamin Peterson
ion can be found at: http://docs.python.org/2.7 Please consider trying Python 2.7 with your code and reporting any bugs you may notice to: http://bugs.python.org Enjoy! -- Benjamin Peterson 2.7 Release Manager benjamin at python.org (on behalf of the entire python-dev team

[RELEASED] Python 3.1.2

2010-03-21 Thread Benjamin Peterson
list of changes in 3.1.2 can be found here: http://svn.python.org/projects/python/tags/r312/Misc/NEWS The 3.1 documentation can be found at: http://docs.python.org/3.1 Bugs can always be reported to: http://bugs.python.org Enjoy! -- Benjamin Peterson Release Manager benjam

[RELEASED] Python 2.7 alpha 4

2010-03-06 Thread Benjamin Peterson
.7 Please consider trying Python 2.7 with your code and reporting any bugs you may notice to: http://bugs.python.org Enjoy! -- Benjamin Peterson 2.7 Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7's contributors) -- http://mail.python.org/m

[RELEASED] Python 3.1.2 release candidate

2010-03-06 Thread Benjamin Peterson
st of changes in 3.1.2rc1 can be found here: http://svn.python.org/projects/python/tags/r312rc1/Misc/NEWS The 3.1 documentation can be found at: http://docs.python.org/3.1 Bugs can always be reported to: http://bugs.python.org Enjoy! -- Benjamin Peterson Release Manager benjam

Re: TABS in the CPython C source code

2010-02-06 Thread Benjamin Peterson
Alf P. Steinbach start.no> writes: > Anyways, I would suggest converting all those tabs to spaces This has been discussed to death of Python-dev. We use spaces for all new files and tabs for historical reasons in old files. Mixed ones should be converted one way or the other. > > That's much m

Re: TABS in the CPython C source code

2010-02-06 Thread Benjamin Peterson
Neil Hodgson gmail.com> writes: >This would damage the usefulness of source control histories (svn > annotate) as all of the converted lines would show this recent cosmetic > change rather than the previous change which is likely to be a > substantive modification. That's not completely true

[RELEASED] Python 2.7 alpha 3

2010-02-06 Thread Benjamin Peterson
.7 Please consider trying Python 2.7 with your code and reporting any bugs you may notice to: http://bugs.python.org Enjoy! -- Benjamin Peterson 2.7 Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7's contributors) -- http://mail.python.org/mailman/

Re: PEP 3147 - new .pyc format

2010-01-31 Thread Benjamin Peterson
Sean DiZazzo gmail.com> writes: > Does "magic" really need to be used? Why not just use the revision > number? Because magic is easier and otherwise CPython developers would have to rebuild their pycs everytime their working copy was updated. -- http://mail.python.org/mailman/listinfo/python-

Re: iglob performance no better than glob

2010-01-31 Thread Benjamin Peterson
Kyp stsci.edu> writes: > So the iglob was faster, but accessing the first file took about the > same time as glob.glob. That would be because glob is implemented in terms of iglob. -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 2.7 alpha 2

2010-01-09 Thread Benjamin Peterson
ation can be found at: http://docs.python.org/2.7 Please consider trying Python 2.7 with your code and reporting any bugs you may notice to: http://bugs.python.org Have fun! -- Benjamin Peterson 2.7 Release Manager benjamin at python.org (on behalf of the entire python-dev team and

Re: PyCFunction_New(): to Py_DECREF() or not to Py_DECREF()

2009-12-26 Thread Benjamin Peterson
Ecir Hana gmail.com> writes: > do I have to > > Py_DECREF(function) > > or not? Yes, you still own the reference to the function. -- http://mail.python.org/mailman/listinfo/python-list

Re: lib2to3 pattern creation with unexpected results

2009-12-22 Thread Benjamin Peterson
Zac Burns gmail.com> writes: > I'm trying to match any function block, the two examples were just a part of my unit tests.   I know. I was just giving an example to indicate why it doesn't work. find_pattern.py is useful because it gives you a base from which it's easy to extrapolate the genera

Re: lib2to3 pattern creation with unexpected results

2009-12-22 Thread Benjamin Peterson
Zac Burns gmail.com> writes: > > > Greetings,I'm trying to re-purpose the lib2to3 module and along the way came up with this pattern:"funcdef<'def' name=NAME parameters ['->' test] ':' suite=suite>"It seems to have 2 problems: > > Single-line defs are not matched. Eg: "def singleLineFunc(): re

Re: C to Python

2009-12-10 Thread Benjamin Peterson
Emeka gmail.com> writes: > > > Hello All, >   > I am finding it difficult getting my head around PyObject_CallObject(x,y). I need a gentle and thorough introduction to it. I also need examples. Could someone come to my need? PyObject_CallFunction is probably easier to use. http://docs.python.o

Re: [RELEASED] Python 2.7 alpha 1

2009-12-05 Thread Benjamin Peterson
My apologies. The whatsnew link is actually http://docs.python.org/dev/whatsnew/2.7. 2009/12/5 Benjamin Peterson : > On behalf of the Python development team, I'm pleased to announce the first > alpha release of Python 2.7. -- Regards, Benjamin -- http://mail.python.org/mailm

[RELEASED] Python 2.7 alpha 1

2009-12-05 Thread Benjamin Peterson
e 2.7 documentation can be found at: http://docs.python.org/2.7 Please consider trying Python 2.7 with your code and reporting any bugs you may notice to: http://bugs.python.org Have fun! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and

Re: Python3 - encoding issues

2009-11-28 Thread Benjamin Peterson
DreiJane h-labahn.de> writes: > > Ohhh - that's nice. But no words of that in the library reference > here: > > http://docs.python.org/3.1/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range That's because it's here: http://docs.python.org/3.1/library/stdtypes.html#bytes-

Re: Python3 - encoding issues

2009-11-28 Thread Benjamin Peterson
DreiJane h-labahn.de> writes: > Does anybody want to make a PEP from this (i won't do so) ? I will answer this query with a little interactive prompt session: $ python3 Python 3.1.1 (r311:74480, Nov 14 2009, 13:56:40) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for mor

Re: pointless musings on performance

2009-11-24 Thread Benjamin Peterson
Tim Wintle teamrubber.com> writes: > Out of interest - has anyone else spotted that the call to > PyObject_IsTrue in the XXX_JUMP_IF_ blocks performs two unnecessary > pointer comparisons? I doubt two pointer comparisons will make much of a difference. > Would it be worth in-lining the remai

Re: Threaded import hang in cPickle.dumps

2009-11-10 Thread Benjamin Peterson
Zac Burns gmail.com> writes: > What can I do about this? Not run it in a thread. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python C api: create a new object class

2009-11-10 Thread Benjamin Peterson
lallous lgwm.org> writes: > Is there is a one line syntax to instantiate an instance? You can't instantiate an instance; it's already instantiated. > > Any other ways than this: > o = new.classobj('object', (), {}) class x: pass > How can I, similarly, create an object "o" in C api: Use PyOb

Re: 2to3 ParseError with UTF-8 BOM

2009-11-05 Thread Benjamin Peterson
Farshid gmail.com> writes: > If I remove the BOM then it works fine. Is this expected behavior or a > bug in the 2to3 script? Try the 2to3 distributed in Python 3.1. -- http://mail.python.org/mailman/listinfo/python-list

Re: '11' + '1' is '111'?

2009-10-29 Thread Benjamin Peterson
metal gmail.com> writes: > > '11' + '1' == '111' is well known. > > but it suprises me '11'+'1' IS '111'. > > Why? Obviously they are two differnt object. > > Is this special feature of imutable object? As other posters have pointed out, CPython does cache some small strings. In this case, h

Re: restriction on sum: intentional bug?

2009-10-16 Thread Benjamin Peterson
Alan G Isaac gmail.com> writes: > So of course join is better, as originally noted, > but that does not constitute a reason to intentionally > violate duck typing. As Stephen pointed out, duck typing is not an absolute. -- http://mail.python.org/mailman/listinfo/python-list

Re: restriction on sum: intentional bug?

2009-10-16 Thread Benjamin Peterson
MRAB mrabarnett.plus.com> writes: > It checks to see whether you're trying to sum strings, so it's already > treating them as a special case. Why can't it just use str.join > internally instead in that case instead of raising an exception? Because that violates explicit is better than implicit.

Re: code in a module is executed twice (cyclic import problems) ?

2009-10-10 Thread Benjamin Peterson
Stef Mientki gmail.com> writes: > Why is the B.py executed twice ? Because it's executed once as a script and once as a module. -- http://mail.python.org/mailman/listinfo/python-list

Re: No module named os

2009-10-10 Thread Benjamin Peterson
home.com> writes: > I'm trying to build a small program and I get the above error. > I have had this error popup in the past while trying to build other > programs. What can I do? You're python is apparently not finding the standard library. -- http://mail.python.org/mailman/listinfo/python

Re: Syntax question

2009-10-10 Thread Benjamin Peterson
Helmut Jarausch skynet.be> writes: > As I said, it's 'make' in Python's source directory > (SVN revision 75309 Last Changed Date: 2009-10-10) I can't reproduce your failure. What are the exact commands you are using? -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax question

2009-10-10 Thread Benjamin Peterson
Helmut Jarausch skynet.be> writes: > > Hi, > > I'm trying to build the recent Python-3.2a (SVN). > It fails in > Lib/tokenize.py (line 87) How are you invoking it? -- http://mail.python.org/mailman/listinfo/python-list

Re: An assessment of the Unicode standard

2009-08-29 Thread Benjamin Peterson
Neil Hodgson gmail.com> writes: \\ > > Unicode was > developed by corporations from the US left coast in order to sell their > products in foreign markets at minimal cost. Like Sanskrit or Snowman language? -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules/packages by GvR?

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

Re: PyObject_CallFunction and writable memory

2009-08-26 Thread Benjamin Peterson
Christopher Nebergall gmail.com> writes: > > I'm currently using > "PyObject_CallFunction(pFunc, "(s#)",p->lpbMemory, p->dwSize);" to > send an immutable string but I haven't seen what I need to set in the > format string which makes the data writable to python.The solution > can be for eith

Re: conditional for-statement

2009-08-23 Thread Benjamin Peterson
seb gmail.com> writes: > > Hi, > > i was wondering if there is a syntax alike: > > for i in range(10) if i > 5: > print i for i in range(10): if i > 5: print i -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >