Re: [Python-Dev] Mingw help

2015-06-05 Thread anatoly techtonik
On Fri, Jun 5, 2015 at 2:24 AM, Steve Dower steve.do...@microsoft.com 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

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

2015-05-20 Thread anatoly techtonik
On Tue, May 19, 2015 at 11:37 PM, Terry Reedy tjre...@udel.edu wrote: On 5/19/2015 11:02 AM, Kushal Das wrote: Hi, With the help of CentOS project I am happy to announce an automated system [1] to test patches from bugs.python.org. This can be fully automated to test the patches whenever

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 jimjjew...@gmail.com 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

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

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 gu...@python.org 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

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:

[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

[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 Fri, Jun 13, 2014 at 2:55 AM, Ryan Gonzalez rym...@gmail.com 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

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 nikol...@rath.org wrote: R. David Murray rdmur...@bitdance.com 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 :)

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 ros...@gmail.com wrote: On Thu, Jun 12, 2014 at 12:07 PM, Chris Angelico ros...@gmail.com 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

[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

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 ros...@gmail.com 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.

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 ros...@gmail.com wrote: On Thu, Jun 12, 2014 at 7:58 AM, Ryan rym...@gmail.com 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

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 rdmur...@bitdance.com 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

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 python-...@mgmiller.net 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

[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 kushal...@gmail.com 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

[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

[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

[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] PyPI offline, status is ok

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

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

2014-01-13 Thread anatoly techtonik
. -- anatoly t. On Sun, Jan 12, 2014 at 4:53 PM, Georg Brandl g.bra...@gmx.net wrote: That's also planned, see https://bitbucket.org/birkenfeld/sphinx-new-make-mode/. Georg Am 12.01.2014 09:49, schrieb anatoly techtonik: And cross-platform automation tools in Python instead of make https

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

2014-01-12 Thread anatoly techtonik
And cross-platform automation tools in Python instead of make https://bitbucket.org/birkenfeld/sphinx/issue/456/makepy-command-script -- anatoly t. On Sun, Jan 12, 2014 at 11:12 AM, INADA Naoki songofaca...@gmail.com wrote: What about using venv and pip instead of svn? On Sun, Jan 12, 2014

Re: [Python-Dev] Python3 complexity

2014-01-09 Thread anatoly techtonik
On Thu, Jan 9, 2014 at 10:00 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 09/01/2014 06:50, Lennart Regebro wrote: On Thu, Jan 9, 2014 at 1:07 AM, Ben Finney ben+pyt...@benfinney.id.au wrote: Kristján Valur Jónsson krist...@ccpgames.com writes: Believe it or not, sometimes you

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 gu...@python.org 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

[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

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 ncogh...@gmail.com wrote: On 24 Nov 2013 17:15, Gregory P. Smith g...@krypto.org 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

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

2013-11-23 Thread anatoly techtonik
I'd vote for a different perspective on path handling. For me the pathlib is not the good way to go. Especially with copying ill behaviour of old os.path functions. We definitely need a task force page dedicated to working with paths in Python to collaborate. ML + PEP with privileged write access

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 benja...@python.org wrote: 2013/11/15 anatoly techtonik techto...@gmail.com: On Tue, Nov 12, 2013 at 5:08 PM, Benjamin Peterson benja...@python.org wrote: 2013/11/12 anatoly techtonik techto...@gmail.com: On Sun, Nov 10, 2013 at 8:34 AM

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 benja...@python.org wrote: 2013/11/22 anatoly techtonik techto...@gmail.com: On Fri, Nov 15, 2013 at 5:43 PM, Benjamin Peterson benja...@python.org wrote: 2013/11/15 anatoly techtonik techto...@gmail.com: On Tue, Nov 12, 2013 at 5:08 PM

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

2013-11-22 Thread anatoly techtonik
It was too fast. I didn't had a chance to send the comments. -- anatoly t. On Fri, Nov 22, 2013 at 7:44 PM, Antoine Pitrou solip...@pitrou.net wrote: Hello, I've pushed pathlib to the repository. I'm hopeful there won't be new buildbot failures because of it, but still, there may be some

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 benja...@python.org wrote: 2013/11/12 anatoly techtonik techto...@gmail.com: On Sun, Nov 10, 2013 at 8:34 AM, Benjamin Peterson benja...@python.org wrote: 2013/11/10 anatoly techtonik techto...@gmail.com: http://hg.python.org/cpython/file

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 techto...@gmail.com wrote: On Tue, Nov 12, 2013 at 5:08 PM, Benjamin Peterson benja...@python.org wrote: 2013/11/12 anatoly techtonik techto...@gmail.com: On Sun, Nov 10, 2013 at 8:34 AM, Benjamin Peterson benja...@python.org wrote: 2013

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 benja...@python.org wrote: 2013/11/10 anatoly techtonik techto...@gmail.com: 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

[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 ncogh...@gmail.com 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,

[Python-Dev] TransformDict (PEP 455) Naming

2013-09-16 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: nativecli...@googlecode.com Date: Tue, Jul 16, 2013 at 9:24 PM Subject: Re: Issue 1229 in

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

2013-02-27 Thread anatoly techtonik
On Wed, Feb 27, 2013 at 7:51 PM, Michael Foord mich...@voidspace.org.ukwrote: Hello all, PyCon, and the Python Language Summit, is nearly upon us. We have a good number of people confirmed to attend. If you are intending to come to the language summit but haven't let me know please do so.

[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

Re: [Python-Dev] My CLA

2013-02-11 Thread anatoly techtonik
On Mon, Feb 11, 2013 at 4:01 PM, Oleg Broytman p...@phdru.name 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 submitted to it, under any

Re: [Python-Dev] My CLA

2013-02-11 Thread anatoly techtonik
On Mon, Feb 11, 2013 at 9:27 PM, Guido van Rossum gu...@python.org 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

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

2012-12-24 Thread anatoly techtonik
of the original 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 5:20 PM, anatoly

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 chris.jerdo...@gmail.comwrote: On Sun, Dec 9, 2012 at 3:30 PM, anatoly techtonik techto...@gmail.com wrote: Just to let you know that annotate in hgweb is broken for Python sources. http://hg.python.org/cpython/annotate/692be1f9fa1d/Lib

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

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

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 g...@krypto.org 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

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

2012-12-19 Thread anatoly techtonik
On Thu, Dec 20, 2012 at 3:47 AM, Glyph gl...@twistedmatrix.com wrote: On Dec 19, 2012, at 2:14 PM, anatoly techtonik techto...@gmail.com wrote: On Sun, Dec 9, 2012 at 7:14 AM, Glyph gl...@twistedmatrix.com wrote: On Dec 7, 2012, at 5:10 PM, anatoly techtonik techto...@gmail.com wrote

[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

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

2012-12-07 Thread anatoly techtonik
On Tue, Sep 15, 2009 at 9:24 PM, exar...@twistedmatrix.com 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

[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

[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 Python 3

[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 p...@boddie.org.uk 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,

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 they

[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 techto...@gmail.comwrote: Hi, I wonder why Python

[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

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

[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 victor.stin...@gmail.com 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

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 christ...@python.org 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 it outputs

[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__, ...)?

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

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 rege...@gmail.com wrote: Switched from python-dev to python-porting. On Sun, Sep 2, 2012 at 9:48 PM, anatoly techtonik techto...@gmail.com wrote: I work offline from remote location about 2000m above the sea level. There is no internet

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 miki.teb...@gmail.com 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

[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-01 Thread anatoly techtonik
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 it be nice to introduce more first class functions to work with them? One

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 oscar.j.benja...@gmail.com wrote: On Sun, 22 Jul 2012 20:22:50 +0100, Oscar Benjamin oscar.benja...@bristol.ac.uk wrote: On 22 July 2012 14:08, R. David Murray rdmur...@bitdance.com wrote: On Sun, 22 Jul 2012 11:21:38 +0300, anatoly

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 mer...@netwok.org 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

[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

[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

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

2012-07-05 Thread anatoly techtonik
...@udel.edu wrote: 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://stackoverflow.com/questions/tagged/python) would it be nice to introduce

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 stefan...@behnel.de 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'

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 tjre...@udel.edu wrote: On 7/4/2012 5:57 AM, anatoly techtonik wrote: On Fri, Jun 29, 2012 at 11:32 PM, Georg Brandl g.bra...@gmx.net wrote: Anatoly, so far there were no negative votes -- would you care to go another step and propose a patch

[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 stefan...@behnel.de 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: This has been rejected before. I quite often see

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

2012-07-04 Thread anatoly techtonik
On Fri, Jun 29, 2012 at 6:58 AM, Eli Bendersky eli...@gmail.com 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

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 g.bra...@gmx.net 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

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

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 tjre...@udel.edu 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

[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 e...@netwok.org 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

[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

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 techto...@gmail.com 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 traction

[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 ncogh...@gmail.com 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.

[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

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 solip...@pitrou.net wrote: On Fri, 13 Jan 2012 17:00:57 +0100 Xavier Morel python-...@masklinn.net 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

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 may take another year or two

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 ch...@simplistix.co.ukwrote: What's the python-dev

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 fuzzy...@voidspace.org.ukwrote: 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 -

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 step...@xemacs.orgwrote: 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

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

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

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 ncogh...@gmail.com 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

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 benja...@python.org wrote: 2011/10/21 Tres Seaver tsea...@palladion.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/21/2011 12:31 PM, Benjamin Peterson wrote: 2011/10/21 Eric V. Smith e...@trueblade.com: What's the logic for adding

[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

[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 fij...@gmail.com wrote: On Sun, Oct 2, 2011 at 8:05 AM, Maciej Fijalkowski fij...@gmail.com wrote: On Sun, Oct 2, 2011 at 5:02 AM, anatoly techtonik techto...@gmail.com wrote: Hello, I've stumbled upon Dave Beazley's article [1] about

[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

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

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

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

  1   2   3   >