[Python-Dev] Code highlighting in tracker

2011-04-06 Thread anatoly techtonik
Is it a good idea to have code highlighting in tracker? I'd like to gather independent unbiased opinion for a little research of Python development. Unfortunately, there is no way to create a poll, but if you just say yes or no without reading all other comments - that would be fine. Thanks. -- a

Re: [Python-Dev] Force build form

2011-04-07 Thread anatoly techtonik
On Thu, Apr 7, 2011 at 12:40 AM, Antoine Pitrou wrote: > > For the record, I've tried to make the force build form clearer on the > buildbot Web UI. See e.g.: > http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%20custom Cool. I've recently discovered buildbot page for twisted. It

Re: [Python-Dev] Code highlighting in tracker

2011-04-07 Thread anatoly techtonik
On Thu, Apr 7, 2011 at 7:01 AM, Benjamin Peterson wrote: > 2011/4/6 anatoly techtonik : >> Is it a good idea to have code highlighting in tracker? > > Why would we need it? Because tracker is ugly. ___ Python-Dev mailing list Python-Dev@

Re: [Python-Dev] Python 2.6.7

2011-04-19 Thread anatoly techtonik
On Mon, Apr 18, 2011 at 3:53 PM, Barry Warsaw wrote: > With Martin getting ready to release 2.5.6, I think it's time to prepare a > 2.6.7 source-only security release. > > I'll work my way through the NEWS file and recent commits, but if there is > anything that you know is missing from the 2.6 br

Re: [Python-Dev] Issue Tracker

2011-04-30 Thread anatoly techtonik
On Tue, Mar 29, 2011 at 4:37 AM, R. David Murray wrote: > > The hardest part is debugging the TAL when you make a mistake, but > even that isn't a whole lot worse than any other templating language. How much in % is it worse than Django templating language? -- anatoly t. _

Re: [Python-Dev] 2to3 status, repositories and HACKING guide

2011-05-01 Thread anatoly techtonik
st unclear part. -- anatoly t. On Fri, Mar 25, 2011 at 9:12 PM, Benjamin Peterson wrote: > The main cpython repo. > > 2011/3/25 anatoly techtonik : >> Hi, Benjamin, >> >> Is your repository for 2to3 is still actual? >> http://svn.python.org/view/sandbox/trunk/2to3/ &

Re: [Python-Dev] Issue Tracker

2011-05-02 Thread anatoly techtonik
On Sun, May 1, 2011 at 7:31 PM, Georg Brandl wrote: > On 30.04.2011 16:53, anatoly techtonik wrote: >> On Tue, Mar 29, 2011 at 4:37 AM, R. David Murray >> wrote: >>> >>> The hardest part is debugging the TAL when you make a mistake, but >>> even t

[Python-Dev] PEP 386 and dev repository versions workflow

2011-05-02 Thread anatoly techtonik
http://guide.python-distribute.org/quickstart.html proposes suffixing version of a module in repository with 'dev' in a way that after release of '1.0' version, the repository version is changed to '2.0dev'. This makes sense, but it is not compatible with PEP 386, which suggests using 2.0.devN, whe

Re: [Python-Dev] [RELEASED] Python 3.2.1 rc 1

2011-05-17 Thread anatoly techtonik
That's great, but where is the list if changes? -- anatoly t. On Tue, May 17, 2011 at 9:50 PM, Georg Brandl wrote: > On behalf of the Python development team, I am pleased to announce the > first release candidate of Python 3.2.1. > > Python 3.2.1 will the first bugfix release for Python 3.2, f

Re: [Python-Dev] [RELEASED] Python 3.2.1 rc 1

2011-05-18 Thread anatoly techtonik
On Wed, May 18, 2011 at 9:18 AM, Amaury Forgeot d'Arc wrote: > Hi, > > 2011/5/18 anatoly techtonik : >> That's great, but where is the list if changes? > > All changes are always listed in the Misc/NEWS file. > A "Change log" link on every download p

Re: [Python-Dev] [RELEASED] Python 3.2.1 rc 1

2011-05-18 Thread anatoly techtonik
On Wed, May 18, 2011 at 9:34 AM, "Martin v. Löwis" wrote: >>> That's great, but where is the list if changes? >> >> All changes are always listed in the Misc/NEWS file. >> A "Change log" link on every download page displays this file. > > I think it would be good if the release announcement made s

Re: [Python-Dev] [RELEASED] Python 3.2.1 rc 1

2011-05-18 Thread anatoly techtonik
On Wed, May 18, 2011 at 1:40 PM, Nick Coghlan wrote: > On Wed, May 18, 2011 at 5:58 PM, anatoly techtonik > wrote: >> On Wed, May 18, 2011 at 9:18 AM, Amaury Forgeot d'Arc >> wrote: >>> Hi, >>> >>> 2011/5/18 anatoly techtonik : >>>&g

[Python-Dev] Inconsistent case in directory names for installed Python on Windows

2011-05-18 Thread anatoly techtonik
Greetings, While studying `virtualenv` code I've noticed that in Python directory tree `include`, `libs` and `tcl` are lowercased while other dirs are capitalized. It doesn't seem important (especially for developers here), but it still can leave an unpleasant image for people new to Python (and p

Re: [Python-Dev] Inconsistent case in directory names for installed Python on Windows

2011-05-18 Thread anatoly techtonik
On Wed, May 18, 2011 at 3:47 PM, Brian Curtin wrote: > > On May 18, 2011 7:03 AM, "anatoly techtonik" wrote: >> >> Greetings, >> >> While studying `virtualenv` code I've noticed that in Python directory >> tree `include`, `libs` and `tcl` are

Re: [Python-Dev] [RELEASED] Python 3.2.1 rc 1

2011-05-18 Thread anatoly techtonik
On Wed, May 18, 2011 at 10:37 PM, Georg Brandl wrote: > On 18.05.2011 21:09, "Martin v. Löwis" wrote: >> Am 18.05.2011 20:39, schrieb Hagen Fürstenau: On behalf of the Python development team, I am pleased to announce the first release candidate of Python 3.2.1. >>> >>> Shouldn't there b

[Python-Dev] Sniffing passwords from PyPI using insecure connection

2011-05-31 Thread anatoly techtonik
Hi, I'd like to escalate http://bugs.python.org/issue12226 : 'use secured channel for uploading packages to pypi' to be shipped with next Python 2.6+ This will prevent pydotorg password sniffing when submitting packages through public networks (such as hotels). -- anatoly t. _

[Python-Dev] Is there any fun with benchmarks

2011-06-22 Thread anatoly techtonik
I run across a snippet in SCons.Util (don't worry, I've double-checked To: field) that claims it is faster than os.path.splitext() while basically doing the same thing. def splitext(path): "Same as os.path.splitext() but faster." sep = rightmost_separator(path, os.sep) dot = path.rfind

Re: [Python-Dev] New update to PEP397 - Python launcher for Windows

2011-07-21 Thread anatoly techtonik
If you're going to include this into standard Python distribution, it needs more attention from _users_. As a user, I can not find any references to any user stories in this PEP article. Abstract chapter is totally useless "This PEP (named 'Python launcher for Windows') describes a Python launcher

Re: [Python-Dev] My patches

2008-11-13 Thread anatoly techtonik
On Thu, Oct 30, 2008 at 4:22 PM, Eric Smith <[EMAIL PROTECTED]> wrote: >> Bazaar. Take a look at the developers' pages on python.org, they mention >> that a BZR checkout is available. I know that it works (though the initial >> checkout is glacially slow) but I don't know what "official" support i

[Python-Dev] Upgrade SVN server to 1.5.4

2008-11-13 Thread anatoly techtonik
I use new sparse checkouts feature added in SVN 1.5 a lot to save some traffic when working with Python code. However, when server is older than 1.5, partial checkouts filter directory tree on client side fetching whole SVN tree again and again. Are there any objections against upgrading server to

Re: [Python-Dev] Reindenting the C code base?

2008-12-16 Thread anatoly techtonik
On Sat, Dec 13, 2008 at 11:26 PM, Guido van Rossum wrote: > > I think we should not do this. We should use 4 space indents for new > files, but existing files should not be reindented. If you reindent, > much of the history of the file is essentially lost -- "svn blame" > will blame whoever reinde

Re: [Python-Dev] os.defpath for Windows

2008-12-26 Thread anatoly techtonik
I can't see any logical reason for that. There should not be such a hack to avoid "magical bugs" when PATH is empty. On Sun, Dec 21, 2008 at 11:19 AM, Yinon Ehrlich wrote: > Hi, > > just saw that os.defpath for Windows is defined as >Lib/ntpath.py:30:defpath = '.;C:\\bin' > > Most Windows

[Python-Dev] Single Sign-On for *.python.org

2009-01-18 Thread anatoly techtonik
Hello, Should we open a ticket to make a single sign-on service for *.python.org sites? There are at least 3 logins there may be more, for example if we are going to make some online content edition/comment system for docs. These are: bugs.python.org wiki.python.org pypi.python.org History

Re: [Python-Dev] Single Sign-On for *.python.org

2009-01-22 Thread anatoly techtonik
I do have some old patches for roundup that I was unable to test, because of blocking issues with openidenabled python-openid library and my Blogger server. See the top issue with the patch at openidenabled tracker: http://trac.openidenabled.com/trac/query?status=new&status=assigned&status=reopene

[Python-Dev] About SCons Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-22 Thread anatoly techtonik
On Thu, Jan 22, 2009 at 12:51 AM, Roumen Petrov wrote: >> >> Against 2.3, rejected due to dependence on SCons. >> Also appears to have been incomplete, needing more work. > > No it was complete but use SCons. Most of changes changes in code you will > see again in 3871. > I would better use SCons

Re: [Python-Dev] Single Sign-On for *.python.org

2009-01-22 Thread anatoly techtonik
On Thu, Jan 22, 2009 at 8:50 PM, "Martin v. Löwis" wrote: >> I do not know alternative OpenID implementation for Python, so the >> only way I see to continue development is to fork the lib. > > PyPI reports 15 packages when you search for OpenID. Not sure whether > any of these are any good. djan

Re: [Python-Dev] About SCons Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-24 Thread anatoly techtonik
On Sat, Jan 24, 2009 at 12:28 AM, Roumen Petrov >> >> I would better use SCons for both unix and windows builds. In case of >> windows for both compilers - mingw and microsoft ones. To port curses >> extension to windows I need to know what gcc options mean, what are >> the rules to write Makefiles

[Python-Dev] subprocess crossplatformness and async communication

2009-01-24 Thread anatoly techtonik
Greetings, This turned out to be a rather long post that in short can be summarized as: "please-please-please, include asynchronous process communication in subprocess module and do not allow "available only on ..." functionality", because it hurts the brain". Code to speak for itself: http://cod

Re: [Python-Dev] subprocess crossplatformness and async communication

2009-01-26 Thread anatoly techtonik
ing, but your post doesn't make it clear what > exactly, and the recipe you reference is too large to digest easily. > Can you explain what it is that the current subprocess does't have > beyond saying "async communication" (which could mean many things to > many people)?

[Python-Dev] Inconsistent script/console behaviour

2011-09-23 Thread anatoly techtonik
Currently if you work in console and define a function and then immediately call it - it will fail with SyntaxError. For example, copy paste this completely valid Python script into console: def some(): print "XXX" some() There is an issue for that that was just closed by Eric. However, I'd lik

[Python-Dev] Python Core Tools

2011-10-02 Thread anatoly techtonik
Hello, I've stumbled upon Dave Beazley's article [1] about trying ancient GIL removal patch at http://dabeaz.blogspot.com/2011/08/inside-look-at-gil-removal-patch-of.html and looking at the output of Python dis module thought that it would be cool if there were tools to inspect, explain and play w

[Python-Dev] SimpleHTTPServer slashdot (Was: Python Core Tools)

2011-10-07 Thread anatoly techtonik
On Sun, Oct 2, 2011 at 3:17 PM, Maciej Fijalkowski wrote: > On Sun, Oct 2, 2011 at 8:05 AM, Maciej Fijalkowski wrote: >> On Sun, Oct 2, 2011 at 5:02 AM, anatoly techtonik >> wrote: >>> Hello, >>> >>> I've stumbled upon Dave Beazley's artic

[Python-Dev] Define Tracker workflow

2011-10-19 Thread anatoly techtonik
Does everybody feel comfortable with 'stage' and 'resultion' fields in tracker? I understand that 'stage' defines workflow and 'resolution' is status indicator, but the question is - do we really need to separate them? For example, right now when a ticket's 'status' is closed (all right - there is

Re: [Python-Dev] cpython (3.2): adjust braces a bit

2011-11-01 Thread anatoly techtonik
On Fri, Oct 21, 2011 at 8:17 PM, Benjamin Peterson wrote: > 2011/10/21 Tres Seaver : >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 10/21/2011 12:31 PM, Benjamin Peterson wrote: >>> 2011/10/21 Eric V. Smith : What's the logic for adding some braces, but removing others? >>> >>>

Re: [Python-Dev] PEP 405 (proposed): Python 2.8 Release Schedule

2011-11-10 Thread anatoly techtonik
On Thu, Nov 10, 2011 at 1:58 AM, Nick Coghlan wrote: > > Getting boring for a moment, I suggest including the following new > section just before the copyright section: I'd also include a "roadmap" section with all 2.x wannabes that are not going to be be released with 2.8. And a special epilogue

Re: [Python-Dev] Inconsistent script/console behaviour

2011-12-15 Thread anatoly techtonik
On Sat, Sep 24, 2011 at 11:27 AM, Georg Brandl wrote: > Am 24.09.2011 01:32, schrieb Guido van Rossum: > > On Fri, Sep 23, 2011 at 4:25 PM, anatoly techtonik > wrote: > >> Currently if you work in console and define a function and then > >> immediately call it -

Re: [Python-Dev] Inconsistent script/console behaviour

2011-12-20 Thread anatoly techtonik
On Mon, Dec 19, 2011 at 7:47 AM, Stephen J. Turnbull wrote: > Fernando Perez writes: > > > Apology for the advertising, > > If there's any apologizing to be done, it's on Anatoly's part. Your > post was short, to the point, information-packed, and should put a big > fat open-centered ideographic

Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread anatoly techtonik
I believe most AppEngine applications in Python are still using 2.5 run-time. So are development boxes for these applications. It may take another year or two for the transition. -- anatoly t. On Wed, Dec 21, 2011 at 10:16 AM, Chris Withers wrote: > What's the python-dev view on this? > > -

Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread anatoly techtonik
On Thu, Dec 22, 2011 at 4:49 AM, Michael Foord wrote: > > On 22 Dec 2011, at 01:25, Mark Hammond wrote: > > > FWIW, the most recent version of pywin32 has the following download > counts (rounded to the nearest thousand) > > > > Version 32bit 64bit > > - > > 3.2 - 75

Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-22 Thread anatoly techtonik
On Thu, Dec 22, 2011 at 4:55 AM, Victor Stinner < victor.stin...@haypocalc.com> wrote: > On 21/12/2011 15:26, anatoly techtonik wrote: > >> I believe most AppEngine applications in Python are still using 2.5 >> run-time. So are development boxes for these applications. It

[Python-Dev] Backwards incompatible sys.stdout.write() behavior in Python 3 (Was: [Python-ideas] Pythonic buffering in Py3 print())

2012-01-13 Thread anatoly techtonik
Posting to python-dev as it is no more relates to the idea of improving print(). sys.stdout.write() in Python 3 causes backwards incompatible behavior that breaks recipe for unbuffered character reading from stdin on Linux - http://code.activestate.com/recipes/134892/ At first I though that the

Re: [Python-Dev] Backwards incompatible sys.stdout.write() behavior in Python 3 (Was: [Python-ideas] Pythonic buffering in Py3 print())

2012-01-17 Thread anatoly techtonik
On Fri, Jan 13, 2012 at 7:19 PM, Antoine Pitrou wrote: > On Fri, 13 Jan 2012 17:00:57 +0100 > Xavier Morel wrote: > > FWIW this is not restricted to Linux (the same behavior change can > > be observed in OSX), and the script is overly complex you can expose > > the change with 3 lines > > > >

[Python-Dev] Dev In a Box: Pumped for a better UX (with video)

2012-02-03 Thread anatoly techtonik
Hi, If you don't know, Dev In a Box is "everything you need to contribute to Python in under 700 MB". I've patched it up to the latest standards of colorless console user interfaces and uploaded a video of the process for you to enjoy. http://www.youtube.com/watch?v=jbJcI9MnO_c This tool can be

[Python-Dev] Python in Native Client

2012-02-20 Thread anatoly techtonik
Hi, People on NaCl list are asking about Python support for development of native web applications in Python. Does anybody have experience compiling Python for NaCl? 1. https://groups.google.com/d/topic/native-client-discuss/ioY2jmw_OUQ/discussion -- anatoly t. __

[Python-Dev] PEP 394

2012-02-20 Thread anatoly techtonik
On Mon, Feb 20, 2012 at 4:58 PM, Nick Coghlan wrote: > PEP 394 > was at the top of my list recently > I've tried to edit it to be a little bit shorter (perhaps cleaner) and commented (up to revision 2) up to Migration Notes. http://piratepad.net/pep-0394 The main points: 1. `python2.7` should b

[Python-Dev] Security issue with the tracker

2012-04-13 Thread anatoly techtonik
Are there any good small Python libraries for making HTML safe out there? http://goo.gl/D6ag1 Just to make sure that devs are aware of the problem, which was reported more than 6 months ago, gain some traction and release fix sooner. I am not sure what can you do with a stolen bugs.python.org coo

Re: [Python-Dev] Security issue with the tracker

2012-04-13 Thread anatoly techtonik
On Fri, Apr 13, 2012 at 9:23 PM, anatoly techtonik wrote: > Are there any good small Python libraries for making HTML safe out there? > > http://goo.gl/D6ag1 > > Just to make sure that devs are aware of the problem, which was > reported more than 6 months ago, gain some tracti

Re: [Python-Dev] Security issue with the tracker

2012-04-15 Thread anatoly techtonik
On Fri, Apr 13, 2012 at 9:53 PM, Éric Araujo wrote: > bugs.python.org already sanitizes the ok_message and Ezio already posted a > patch to the upstream bug tracker, so I don’t see what else we could do. I am +1 with Glyph that XSS protection in Roundup is an unreliable hack. Ezio's patch just pr

[Python-Dev] WSGI paranoia with stdout/stderr

2012-05-13 Thread anatoly techtonik
There is fear and uncertainty in this pull request to PyPI - https://bitbucket.org/techtonik/pypi-techtonik/changeset/5396f8c60d49#comment-18915 - which is about that writing to stderr _might_ break things in WSGI applications. As a consequence logging to console will not be accepted in debug mode

Re: [Python-Dev] Cross-compiling python and PyQt

2012-06-06 Thread anatoly techtonik
On Wed, Jun 6, 2012 at 12:35 AM, Terry Reedy wrote: > On 6/5/2012 4:24 PM, Tarek Sheasha wrote: >> >> Hello, >> I have been working for a long time on cross-compiling python for >> android I have used projects like: >> http://code.google.com/p/android-python27/ >> >> I am stuck in a certain area,

[Python-Dev] itertools.chunks(iterable, size, fill=None)

2012-06-26 Thread anatoly techtonik
Now that Python 3 is all about iterators (which is a user killer feature for Python according to StackOverflow - http://stackoverflow.com/questions/tagged/python) would it be nice to introduce more first class functions to work with them? One function to be exact to split string into chunks. i

[Python-Dev] GitHub mirror (Was: Bitbucket mirror?)

2012-07-04 Thread anatoly techtonik
On Fri, Jun 29, 2012 at 6:58 AM, Eli Bendersky wrote: > > The devguide (http://docs.python.org/devguide/committing.html) says: > > Bitbucket also maintain an up to date clone of the main cpython repository > that can be used as the basis for a new clone or patch queue. > > [the link goes to https:

Re: [Python-Dev] [Python-ideas] itertools.chunks(iterable, size, fill=None)

2012-07-04 Thread anatoly techtonik
On Fri, Jun 29, 2012 at 11:32 PM, Georg Brandl wrote: > On 26.06.2012 10:03, anatoly techtonik wrote: >> >> Now that Python 3 is all about iterators (which is a user killer >> feature for Python according to StackOverflow - >> http://stackoverflow.com/questions/tagged/

Re: [Python-Dev] [Python-ideas] itertools.chunks(iterable, size, fill=None)

2012-07-05 Thread anatoly techtonik
On 6/29/2012 4:32 PM, Georg Brandl wrote: >> >> On 26.06.2012 10:03, anatoly techtonik wrote: >>> >>> Now that Python 3 is all about iterators (which is a user killer >>> feature for Python according to StackOverflow - >>> http://stackoverfl

Re: [Python-Dev] [Python-ideas] itertools.chunks(iterable, size, fill=None)

2012-07-05 Thread anatoly techtonik
On Sun, Jul 1, 2012 at 3:01 PM, Stefan Behnel wrote: > > To address the main problem of users not finding what they need, what about > simply extending the docstring of the grouper() function with a sentence > like this: > > "This functionality is also called 'chunking' or 'blocking' and can be us

Re: [Python-Dev] [Python-ideas] itertools.chunks(iterable, size, fill=None)

2012-07-05 Thread anatoly techtonik
On Wed, Jul 4, 2012 at 9:31 PM, Terry Reedy wrote: > On 7/4/2012 5:57 AM, anatoly techtonik wrote: >> >> On Fri, Jun 29, 2012 at 11:32 PM, Georg Brandl wrote: > > >>> Anatoly, so far there were no negative votes -- would you care to go >>> another step and

[Python-Dev] Bloody FAQ (Was: [Python-ideas] itertools.chunks(iterable, size, fill=None))

2012-07-05 Thread anatoly techtonik
On Thu, Jul 5, 2012 at 7:50 PM, Stefan Behnel wrote: > anatoly techtonik, 05.07.2012 15:36: >> On Sun, Jul 1, 2012 at 12:09 AM, Terry Reedy wrote: >>> From Raymond's first message on http://bugs.python.org/issue6021 , add >>> grouper: >>> >>> &

[Python-Dev] 2to3 porting HOWTO: setup.py question

2012-07-22 Thread anatoly techtonik
http://docs.python.org/py3k/howto/pyporting.html#during-installation What's the point in making implicit Python 3 check here: try: # Python 3 from distutils.command.build_py import build_py_2to3 as build_py except ImportError: # Python 2 from distutils.command.build_py import build_py inste

[Python-Dev] Print policy for deprecated modules

2012-07-22 Thread anatoly techtonik
What is a print policy for deprecated modules? "new" module is deprecated in 2.6, but 2.7.3 doesn't print any warnings. Is it a bug? python -Wd -c "import new" -- anatoly t. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] 2to3 porting HOWTO: setup.py question

2012-07-23 Thread anatoly techtonik
On Mon, Jul 23, 2012 at 12:21 AM, Oscar Benjamin wrote: >> On Sun, 22 Jul 2012 20:22:50 +0100, Oscar Benjamin >> wrote: >> > On 22 July 2012 14:08, R. David Murray wrote: >> > >> > > On Sun, 22 Jul 2012 11:21:38 +0300, anatoly techtonik >> > &g

Re: [Python-Dev] 2to3 porting HOWTO: setup.py question

2012-07-23 Thread anatoly techtonik
On Tue, Jul 24, 2012 at 1:27 AM, Éric Araujo wrote: > On 22/07/2012 15:57, R. David Murray wrote: >> >> I'm not familiar with distutils, really, so you could be right about >> what it is important to test. I was commenting based on the code >> snippet presented, which just deciding which "build"

Re: [Python-Dev] [Python-ideas] itertools.chunks(iterable, size, fill=None)

2012-08-31 Thread anatoly techtonik
n 29, 2012 at 11:32 PM, Georg Brandl wrote: > On 26.06.2012 10:03, anatoly techtonik wrote: >> >> Now that Python 3 is all about iterators (which is a user killer >> feature for Python according to StackOverflow - >> http://stackoverflow.com/questions/tagged/python) would

Re: [Python-Dev] [Python-ideas] itertools.chunks(iterable, size, fill=None)

2012-09-02 Thread anatoly techtonik
On Sat, Sep 1, 2012 at 5:42 PM, Miki Tebeka wrote: > See the "grouper" example in http://docs.python.org/library/itertools.html As was discussed before, the problem is visibility of the solution, not the implementation. If we can divide core Python API into levels where 0 is the less important an

[Python-Dev] Should 2to3 convert Exceptions from

2012-09-02 Thread anatoly techtonik
I work offline from remote location about 2000m above the sea level. There is no internet connection here, so I can not use tracker online. I need a Python editor here, and I have Spyder checkout. The problem is that my installation has only Python3. I've tried using 2to3 from setup.py (attached),

Re: [Python-Dev] Should 2to3 convert Exceptions from

2012-09-03 Thread anatoly techtonik
On Sun, Sep 2, 2012 at 11:26 PM, Lennart Regebro wrote: > Switched from python-dev to python-porting. > > On Sun, Sep 2, 2012 at 9:48 PM, anatoly techtonik wrote: >> I work offline from remote location about 2000m above the sea level. There >> is no internet connection h

[Python-Dev] PEP or formal description of Python module structure

2012-10-15 Thread anatoly techtonik
Hi, I am trying to figure out what Python module is internally (WIP http://wiki.python.org/moin/techtonik)? Is there already a good piece of documentation that I missed that can answer all these questions already? ...what properties do you get in empty Python module (__doc__, __name__, ...)? ...w

[Python-Dev] urlretrieve regression in Python 3

2012-10-15 Thread anatoly techtonik
Can anybody raise the priority of this issue to make it visible during the next bug hunting day? http://bugs.python.org/issue10836 ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://ma

[Python-Dev] Web accessible core code search and other devguide questions

2012-10-22 Thread anatoly techtonik
Hi again, http://docs.python.org/devguide/faq.html?highlight=search What can I use to browse, search and troubleshoot core Python sources online? Why the question "Where do I find Python core code?" is not the first in the dev. guide? =) There is clearly a lot of stuff on http://hg.python.org/ t

[Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows

2012-10-22 Thread anatoly techtonik
Could anybody reopen http://bugs.python.org/issue8766 ? I can't. Reproducible 100% with Python 3.2 and 3.3 (3.1 didn't test). > set PYTHONHOME=C:\ > python BTW, what is the role of PYTHONPATH on Windows? Is it a path for %INSTALLDIR%\Lib\site-packages? -- anatoly t. __

Re: [Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows

2012-10-22 Thread anatoly techtonik
On Mon, Oct 22, 2012 at 4:40 PM, Victor Stinner wrote: >> >>> set PYTHONHOME=C:\ >>> python > > The issue #8766 is about PYTHONPATH environment variable, not > PYTHONHOME. Test on Linux with Python 3.4: > > $ PYTHONHOME=/x ./python > Fatal Python error: Py_Initialize: Unable to get the locale enco

Re: [Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows

2012-10-22 Thread anatoly techtonik
On Mon, Oct 22, 2012 at 7:37 PM, Christian Heimes wrote: > Am 22.10.2012 18:26, schrieb anatoly techtonik: >> I don't know what is abort() on Linux, but I believe coredumps is not >> something you want to get while setting some environment variable. On >> Windows i

Re: [Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows

2012-10-31 Thread anatoly techtonik
On Tue, Oct 23, 2012 at 2:39 AM, Stephen J. Turnbull < turnb...@sk.tsukuba.ac.jp> wrote: > > So it shuts down abnormally. That's what an abort means, in > programming as in rocket launches. Users should be scared if this > happens; somebody really screwed up. (Unless it's themselves, and > then

[Python-Dev] Sign of bytes

2012-10-31 Thread anatoly techtonik
Hi, I wonder why Python uses signed chars for bytes http://docs.python.org/2/library/ctypes.html#ctypes.c_byte This is a Java thing, but Java doesn't have unsigned types at all http://en.wikipedia.org/wiki/Criticism_of_Java#Unsigned_integer_types Windows implements BYTE as unsigned char, and it

Re: [Python-Dev] Sign of bytes

2012-10-31 Thread anatoly techtonik
The thing that made me wonder is here - http://bugs.python.org/issue16376 When I inspect contents of Windows structures, I get negative values that are not present in MSDN. -- anatoly t. On Wed, Oct 31, 2012 at 7:44 PM, anatoly techtonik wrote: > Hi, > > I wonder why Python uses sig

[Python-Dev] Improve error message "UnboundLocalError: local variable referenced before assignment"

2012-10-31 Thread anatoly techtonik
Here is the code: ---[cut]- DEBUG = [] FONT_NAMES = [] def names(): if len(DEBUG): print(len(DEBUG)) if len(FONT_NAMES): print(len(FONT_NAMES)) if len(FONT_NAMES)==0: FONT_NAMES = "query()" names() ---[cut]- Here is the

Re: [Python-Dev] Using Wiki for Python development coordination

2012-11-03 Thread anatoly techtonik
On Sat, Nov 3, 2012 at 5:54 PM, Paul Boddie wrote: > > > I'll admit that the current content is just a reformatted version of what was > there before, but tidied up and making better use of vertical space, and it > could be improved. Certainly, there isn't a core development section, so > perhaps

[Python-Dev] ctypes is not an acceptable implementation strategy for modules in the standard library?

2012-11-04 Thread anatoly techtonik
>From http://bugs.python.org/issue16410 Subj? Aren't there any modules in stdlib that access system API through ctypes? My arguments for ctypes: 1. doesn't require compilation 2. easier to maintain (no C/toolchain knowledge/ownership needed) 3. pure Python is impossible to exploit (unlike pure C)

[Python-Dev] urlretrieve regression no.2, now in Python 3.3

2012-11-07 Thread anatoly techtonik
urlretrieve has a callback parameter, which takes function with the following prototype: def callback(block_number, block_size, total_size): pass Where block_size was constant and block_size*block_number gave an exact number of transferred bytes. Recent change in Python 3.3 changed the sem

[Python-Dev] Fwd: [issue16424] regression: os.path.split('//hostname/foo/bar.txt')

2012-11-07 Thread anatoly techtonik
Forwarding to python-dev. Does everybody agree that the following behavior is not a regression, but a feature of os.path.split()? Python 3: >>> import os.path as osp >>> osp.split('//hostname/foo/') ('//hostname/foo/', '') Python 2: >>> osp.split('//hostname/foo/') ('//hostname/foo', '') But P

Re: [Python-Dev] PEP 3145 (With Contents)

2012-12-07 Thread anatoly techtonik
On Tue, Sep 15, 2009 at 9:24 PM, wrote: > On 04:25 pm, eric.pru...@gmail.com wrote: > >> I'm bumping this PEP again in hopes of getting some feedback. >> > This is useful, indeed. ActiveState recipe for this has 10 votes, which is high for ActiveState (and such hardcore topic FWIW). > On Tue, S

[Python-Dev] hg annotate is broken on hg.python.org

2012-12-09 Thread anatoly techtonik
Just to let you know that annotate in hgweb is broken for Python sources. http://hg.python.org/cpython/annotate/692be1f9fa1d/Lib/distutils/tests/test_register.py -- anatoly t. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] hg annotate is broken on hg.python.org

2012-12-19 Thread anatoly techtonik
On Mon, Dec 10, 2012 at 4:39 AM, Chris Jerdonek wrote: > On Sun, Dec 9, 2012 at 3:30 PM, anatoly techtonik > wrote: > > Just to let you know that annotate in hgweb is broken for Python sources. > > > > > http://hg.python.org/cpython/annotate/692be1f9fa1d/Lib/distu

Re: [Python-Dev] PEP 3145 (With Contents)

2012-12-19 Thread anatoly techtonik
On Sun, Dec 9, 2012 at 7:14 AM, Glyph wrote: > On Dec 7, 2012, at 5:10 PM, anatoly techtonik wrote: > > What about reading from other file descriptors? subprocess.Popen allows >> arbitrary file descriptors to be used. Is there any provision here for >> reading and writing

Re: [Python-Dev] PEP 3145 (With Contents)

2012-12-19 Thread anatoly techtonik
On Sun, Dec 9, 2012 at 7:17 AM, Gregory P. Smith wrote: > I'm really not sure what this PEP is trying to get at given that it > contains no examples and sounds from the descriptions to be adding a > complicated api on top of something that already, IMNSHO, has too much it > (subprocess.Popen). >

Re: [Python-Dev] PEP 3145 (With Contents)

2012-12-19 Thread anatoly techtonik
On Thu, Dec 20, 2012 at 3:47 AM, Glyph wrote: > > On Dec 19, 2012, at 2:14 PM, anatoly techtonik > wrote: > > On Sun, Dec 9, 2012 at 7:14 AM, Glyph wrote: > >> On Dec 7, 2012, at 5:10 PM, anatoly techtonik >> wrote: >> >> What about reading from

Re: [Python-Dev] PEP 3145 (With Contents)

2012-12-24 Thread anatoly techtonik
nal > owners, nor can you add yourself as an author to a PEP without permission > from the original authors. > > And please do not CC the peps mailing list on discussions. It should only > be used to mail in new PEPs or acceptable patches to PEPs. > > > On Wed, Dec 19, 2012 at

[Python-Dev] My CLA

2013-02-11 Thread anatoly techtonik
Python Contributor Agreement I allow PSF to release all my code that I submitted to it, under any open source license. -- anatoly t. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/py

Re: [Python-Dev] My CLA

2013-02-11 Thread anatoly techtonik
On Mon, Feb 11, 2013 at 4:01 PM, Oleg Broytman wrote: > On Mon, Feb 11, 2013 at 03:49:39PM +0300, anatoly techtonik < > techto...@gmail.com> wrote: > > Python Contributor Agreement > > > > I allow PSF to release all my code that I submi

Re: [Python-Dev] My CLA

2013-02-11 Thread anatoly techtonik
On Mon, Feb 11, 2013 at 9:27 PM, Guido van Rossum wrote: > Anatoly, stop this discussion *NOW*. It is not appropriate for python-dev > and you risk being banned from python-dev if you keep it up. > It is not a problem for me to keep silence for another couple of months. But this weekend there wi

<    1   2   3