Re: [Python-Dev] Mingw help

2015-06-05 Thread anatoly techtonik
On Fri, Jun 5, 2015 at 2:24 AM, Steve Dower wrote: > If you have an interest in linking to the Windows builds of Python 2.7 and > 3.5+ using mingw, please visit http://bugs.python.org/issue24385 > > Unless someone can provide me with the One True Way to generate a lib that > will work for everyone

Re: [Python-Dev] Automated testing of patches from bugs.python.org

2015-05-20 Thread anatoly techtonik
ertain module has by downloading all patches from open issues, parsing them and comparing the paths. It is possible to reuse the parser to check paths in patch against paths present in certain Python versions, or add different heuristics. https://bitbucket.org/techtonik/python-stdlib All this is pure

[Python-Dev] 2.7.9 regression in argparse

2015-03-20 Thread anatoly techtonik
Just a pointer for possible regression http://bugs.python.org/issue23058 -- anatoly t. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] hg vs Github [was: PEP 481 - Migrate Some Supporting Repositories to Git and Github]

2015-01-17 Thread anatoly techtonik
On Mon, Dec 1, 2014 at 8:37 PM, Jim J. Jewett wrote: > >> What I really don't understand is why this discussion is hg v. >> GitHub, when it should be hg v. git. Particular hosting is >> a secondary issue > > I think even the proponents concede that git isn't better enough > to justify a switch in

[Python-Dev] python 2.7.9 regression in argparse?

2015-01-06 Thread anatoly techtonik
https://github.com/nickstenning/honcho/pull/121 -- anatoly t. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.c

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

2014-12-17 Thread anatoly techtonik
On Wed, Dec 17, 2014 at 12:56 AM, Guido van Rossum wrote: > This thread hasn't been productive for a really long time now. I agree. The constructive way would be to concentrate on looking for causes. I don't know if there is a discipline of "programming language usability" in computer science, bu

Re: [Python-Dev] bytes-like objects

2014-10-05 Thread anatoly techtonik
That's a cool stuff. `bytes-like object` is really a much better name for users. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive

[Python-Dev] subprocess research - max limit for piped output

2014-07-20 Thread anatoly techtonik
I am trying to figure out what is maximum size for piped input in subprocess.check_output() I've got limitation of about 500Mb after which Python exits with MemoryError without any additional details. I have only 2.76Gb memory used out of 8Gb, so what limit do I hit? 1. subprocess output read bu

[Python-Dev] Excess help() output

2014-07-01 Thread anatoly techtonik
Hi, The help() output is confusing for beginners: >>> class B(object): ... pass ... >>> help(B) Help on class B in module __main__: class B(__builtin__.object) | Data descriptors defined here: | | __dict__ | dictionary for instance variables (if defined) |

Re: [Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

2014-06-14 Thread anatoly techtonik
On Thu, Jun 12, 2014 at 5:12 AM, Chris Angelico wrote: > On Thu, Jun 12, 2014 at 12:07 PM, Chris Angelico wrote: > > ISTM what you want is not shell=True, but a separate function that > > follows the system policy for translating a command name into a > > path-to-binary. That's something that, A

Re: [Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

2014-06-14 Thread anatoly techtonik
On Fri, Jun 13, 2014 at 5:11 AM, Nikolaus Rath wrote: > "R. David Murray" writes: > > Also notice that using a list with shell=True is using the API > > incorrectly. It wouldn't even work on Linux, so that torpedoes > > the cross-platform concern already :) > > > > This kind of confusion is why

Re: [Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

2014-06-14 Thread anatoly techtonik
On Fri, Jun 13, 2014 at 2:55 AM, Ryan Gonzalez wrote: > SHELLS ARE NOT CROSS-PLATFORM Seriously, there are going to be > differences. If you really must: > > escape = lambda s: s.replace('^', '^^') if os.name == 'nt' else s > It is not about generic shell problem, it is about specific behavi

Re: [Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

2014-06-11 Thread anatoly techtonik
On Thu, Jun 12, 2014 at 2:00 AM, R. David Murray wrote: > Also notice that using a list with shell=True is using the API > incorrectly. It wouldn't even work on Linux, so that torpedoes > the cross-platform concern already :) > > This kind of confusion is why I opened http://bugs.python.org/issu

Re: [Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

2014-06-11 Thread anatoly techtonik
On Thu, Jun 12, 2014 at 1:30 AM, Chris Angelico wrote: > Why pass shell=True when executing a single > command? I don't get it. > I don't know about Linux, but on Windows programs are not directly available as /usr/bin/python, so you need to find command in PATH directories. Passing shell=True m

Re: [Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

2014-06-11 Thread anatoly techtonik
On Thu, Jun 12, 2014 at 1:30 AM, Chris Angelico wrote: > On Thu, Jun 12, 2014 at 7:58 AM, Ryan wrote: > > In all seriousness, to me this is obvious. When you pass a command to the > > shell, naturally, certain details are shell-specific. > On Windows cmd.exe is used by default: http://hg.python

[Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

2014-06-11 Thread anatoly techtonik
I am banned from tracker, so I post the bug here: Normal Windows behavior: >hg status --rev ".^1" M mercurial\commands.py ? pysptest.py >hg status --rev .^1 abort: unknown revision '.1'! So, ^ is an escape character. See http://www.tomshardware.co.uk/forum/35565-45-when-special-comman

Re: [Python-Dev] Python 2.7.7. on Windows

2014-04-29 Thread anatoly techtonik
On Mon, Apr 28, 2014 at 11:07 PM, Mike Miller wrote: > On 04/29/2014 05:12 AM, Steve Dower wrote: >> >> This would be an incredibly painful change that would surprise and hurt a >> lot of >> people. > > > Hi, I think "incredibly painful" is overstating the case a bit. ;) We're > talking about an

[Python-Dev] Python usability study (Was: Language Summit notes)

2014-04-20 Thread anatoly techtonik
On Thu, Apr 10, 2014 at 2:24 PM, Kushal Das wrote: > Glyph wants a PSF fund to a usability study on Python. There were a > few other suggestion on PSF support for tooling development. +2 on initiative -- anatoly t. ___ Python-Dev mailing list Python-D

[Python-Dev] New absolute __file__ in Python 3.4

2014-04-04 Thread anatoly techtonik
https://docs.python.org/3.4/whatsnew/3.4.html#other-language-changes 1. Is this absolute name with symlinks resolved? 2. Why there is a special case for __main__? (i.e. Special cases aren't special enough to break the rules.) 3. What link should I click in Python reference to read about standa

[Python-Dev] Dead code in json/encoder?

2014-03-20 Thread anatoly techtonik
It looks like _one_shot parameter is always called with True argument and unused. What is the purpose of it? https://github.com/python/cpython/blob/de1b33f6e6071816a1fc52cd5f0c6cd47d704251/Lib/json/encoder.py#L239-L249 -- anatoly t. ___ Python-Dev mail

Re: [Python-Dev] PyPI offline, status is ok

2014-02-10 Thread anatoly techtonik
On Mon, Feb 10, 2014 at 1:42 PM, Chris Angelico wrote: > On Mon, Feb 10, 2014 at 5:23 PM, anatoly techtonik > wrote: >> http://status.python.org/ shows all green >> >> https://pypi.python.org/pypi/gazest shows >> >> Error 503 backend read error >> &

[Python-Dev] PyPI offline, status is ok

2014-02-10 Thread anatoly techtonik
http://status.python.org/ shows all green https://pypi.python.org/pypi/gazest shows Error 503 backend read error backend read error Guru Meditation: XID: 2792709923 Varnish cache server https://pypi.python.org/pypi/ shows XID: 4199593736 -- anatoly t. _

Re: [Python-Dev] cpython (3.3): Update Sphinx toolchain.

2014-01-13 Thread anatoly techtonik
t; instead of dir names, and move dir names into parameters, because it is how it is most often used. -- anatoly t. On Sun, Jan 12, 2014 at 4:53 PM, Georg Brandl wrote: > That's also planned, see > https://bitbucket.org/birkenfeld/sphinx-new-make-mode/. > > Georg > > Am 12.01.

Re: [Python-Dev] cpython (3.3): Update Sphinx toolchain.

2014-01-12 Thread anatoly techtonik
>> Python-Dev mailing list >> Python-Dev@python.org >> https://mail.python.org/mailman/listinfo/python-dev >> Unsubscribe: >> https://mail.python.org/mailman/options/python-dev/songofacandy%40gmail.com > > > > > -- > INADA Naoki > > __

Re: [Python-Dev] Python3 "complexity"

2014-01-09 Thread anatoly techtonik
On Thu, Jan 9, 2014 at 10:00 AM, Mark Lawrence wrote: > On 09/01/2014 06:50, Lennart Regebro wrote: >> >> On Thu, Jan 9, 2014 at 1:07 AM, Ben Finney >> wrote: >>> >>> Kristján Valur Jónsson writes: >>> Believe it or not, sometimes you really don't care about encodings. Sometimes you ju

Re: [Python-Dev] PEP process entry point and ill fated initiatives

2013-11-29 Thread anatoly techtonik
On Thu, Nov 28, 2013 at 9:39 PM, Guido van Rossum wrote: > Anatoly, the Python community is a lot more diverse than you think. "Pull > requests" (whatever that means) are not the way to start a PEP. You should > start by focusing on the contents, and the mechanics of editing it and > getting it fo

[Python-Dev] PEP process entry point and ill fated initiatives

2013-11-28 Thread anatoly techtonik
I wanted to help people who are trying to find out more about PEP submission process by providing relevant info (or a pointer) in README.rst that is located at the root of PEPs repository. You can see it here. https://bitbucket.org/rirror/peps I filled this issue with b.p.o http://bugs.python.or

Re: [Python-Dev] buildbot's are needlessly compiling -O0

2013-11-24 Thread anatoly techtonik
On Sun, Nov 24, 2013 at 12:43 PM, Nick Coghlan wrote: > > On 24 Nov 2013 17:15, "Gregory P. Smith" wrote: >> >> our buildbots are setup to configure --with-pydebug which also >> unfortunately causes them to compile with -O0... this results in a python >> binary that is excruciatingly slow and mak

Re: [Python-Dev] PEP 428 (pathlib) now committed

2013-11-23 Thread anatoly techtonik
> Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/techtonik%40gmail.com ___ Python-Dev mailing list

Re: [Python-Dev] PEP 428 (pathlib) now committed

2013-11-22 Thread anatoly techtonik
ython.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/techtonik%40gmail.com ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Assign(expr* targets, expr value) - why targetS?

2013-11-22 Thread anatoly techtonik
On Fri, Nov 22, 2013 at 3:29 PM, Benjamin Peterson wrote: > 2013/11/22 anatoly techtonik : >> On Fri, Nov 15, 2013 at 5:43 PM, Benjamin Peterson >> wrote: >>> 2013/11/15 anatoly techtonik : >>>> On Tue, Nov 12, 2013 at 5:08 PM, Benjamin Peterson >>&g

Re: [Python-Dev] Assign(expr* targets, expr value) - why targetS?

2013-11-22 Thread anatoly techtonik
On Fri, Nov 15, 2013 at 5:43 PM, Benjamin Peterson wrote: > 2013/11/15 anatoly techtonik : >> On Tue, Nov 12, 2013 at 5:08 PM, Benjamin Peterson >> wrote: >>> 2013/11/12 anatoly techtonik : >>>> On Sun, Nov 10, 2013 at 8:34 AM, Benjamin Peterson >>&g

Re: [Python-Dev] Assign(expr* targets, expr value) - why targetS?

2013-11-15 Thread anatoly techtonik
On Fri, Nov 15, 2013 at 12:54 PM, anatoly techtonik wrote: > On Tue, Nov 12, 2013 at 5:08 PM, Benjamin Peterson > wrote: >> 2013/11/12 anatoly techtonik : >>> On Sun, Nov 10, 2013 at 8:34 AM, Benjamin Peterson >>> wrote: >>>> 2013/11/10 anatoly tech

Re: [Python-Dev] Assign(expr* targets, expr value) - why targetS?

2013-11-15 Thread anatoly techtonik
On Tue, Nov 12, 2013 at 5:08 PM, Benjamin Peterson wrote: > 2013/11/12 anatoly techtonik : >> On Sun, Nov 10, 2013 at 8:34 AM, Benjamin Peterson >> wrote: >>> 2013/11/10 anatoly techtonik : >>>> http://hg.python.org/cpython/file/1ee45eb6aab9/Parser/Python.as

Re: [Python-Dev] Assign(expr* targets, expr value) - why targetS?

2013-11-11 Thread anatoly techtonik
On Sun, Nov 10, 2013 at 8:34 AM, Benjamin Peterson wrote: > 2013/11/10 anatoly techtonik : >> http://hg.python.org/cpython/file/1ee45eb6aab9/Parser/Python.asdl >> >> In Assign(expr* targets, expr value), why the first argument is a list? > > x = y = 42 Thanks. S

[Python-Dev] Assign(expr* targets, expr value) - why targetS?

2013-11-09 Thread anatoly techtonik
http://hg.python.org/cpython/file/1ee45eb6aab9/Parser/Python.asdl In Assign(expr* targets, expr value), why the first argument is a list? -- anatoly t. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev

[Python-Dev] PEP 453 (pip bootstrap) TL;DR and Usage Scenario

2013-09-28 Thread anatoly techtonik
On Mon, Sep 23, 2013 at 2:15 PM, Nick Coghlan wrote: > With the last round of updates, I believe PEP 453 is ready for > Martin's pronouncement. > > HTML: http://www.python.org/dev/peps/pep-0453/ > Major diffs: http://hg.python.org/peps/rev/b2993450b32a I'd enjoy concise PEP texts, but it is extre

[Python-Dev] TransformDict (PEP 455) Naming

2013-09-15 Thread anatoly techtonik
Does anybody know if http://vote.python.org is already operational? I decided to start a separate thread for TransformDict name, because I want to change it. Current implementation of PEP 455 only touches dictionary keys and it is more narrow than the name suggests. I'd reserve TransformDict name

[Python-Dev] Fwd: Issue 1229 in nativeclient: Get Python to work under Native Client

2013-07-18 Thread anatoly techtonik
Does Python build system support cross-compiling? NaCl projects seems to have problem with that. Just thought you might be interested to know about it. -- Forwarded message -- From: Date: Tue, Jul 16, 2013 at 9:24 PM Subject: Re: Issue 1229 in nativeclient: Get Python to work un

Re: [Python-Dev] Python Language Summit at PyCon: Agenda

2013-02-27 Thread anatoly techtonik
about work being done on interpreter and stdlib * split the information about stdlib development by modules * describe modules composing in stdlib in formal way https://bitbucket.org/techtonik/python-stdlib * build a roadmap by module (join personal wishlist from involved people) * externa

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

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

[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] 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

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-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 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] 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

[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] 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] 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

[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] 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)

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] 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] 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] 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] 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

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-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

[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. __

[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] 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] 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__

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] 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] [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

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] 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] 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

[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

[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] 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: >>> >>> &

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

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 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-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/

[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:

[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

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] 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

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

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

[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

[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] 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] Dev In a Box: Pumped for a better UX (with video)

2012-02-03 Thread anatoly techtonik
MnO_c This tool can be greatly improved to provide entrypoint for other healthy activities. Like improving docs by editing, comparing, building and sending patches for review. Specialized menus can greatly help with automating common tasks, which are not limited by sources fetching. https://bit

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] 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] 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

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-21 Thread anatoly techtonik
; Chris > > -- > Simplistix - Content Management, Batch Processing & Python Consulting >- http://www.simplistix.co.uk > __**_ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/**mailman/listinfo/python-dev<http://mail.pyth

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] 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] 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] 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? >>> >>>

[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

[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] 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] 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

  1   2   3   4   >