[ANN] pypiserver 1.0.0 - minimal private pypi server

2012-10-27 Thread Ralf Schmitt
Hi, I've just uploaded pypiserver 1.0.0 to the python package index. pypiserver is a minimal PyPI compatible server. It can be used to serve a set of packages and eggs to easy_install or pip. pypiserver is easy to install (i.e. just 'pip install pypiserver'). It doesn't have any external

Re: how to change os.popen4 to subprocess

2012-10-27 Thread skyworld
On Oct 27, 11:02 am, MRAB pyt...@mrabarnett.plus.com wrote: On 2012-10-27 03:28, skyworld wrote: Hi, I'm new to python and I'm trying to porting some scripts from v0.96 to v2.0.1. A piece of code is like this: cmd_h = os.popen4(env['SYSCMDLINE'])[1] the system indicates the popen4 is

Re: a.index(float('nan')) fails

2012-10-27 Thread Thomas Rachel
Am 27.10.2012 06:48 schrieb Dennis Lee Bieber: I don't know about the more modern calculators, but at least up through my HP-41CX, HP calculators didn't do (binary) floating point... They did a form of BCD with a fixed number of significant /decimal/ digits Then, what about sqrt(x)**2

Re: better way for ' '.join(args) + '\n'?

2012-10-27 Thread Thomas Rachel
Am 26.10.2012 09:49 schrieb Ulrich Eckhardt: Hi! General advise when assembling strings is to not concatenate them repeatedly but instead use string's join() function, because it avoids repeated reallocations and is at least as expressive as any alternative. What I have now is a case where I'm

Sphinx / sys.path

2012-10-27 Thread mining . facts
Hi, I figure out how it works with sphinx documentation. But I'm stucked in the sys.path issue? sys.path.insert(0, '/home/chris/projekte/dev/testmodule') /home/chris/projekte/dev/testmodule/doc/source/code.rst:4: WARNING: autodoc can't import/find module 'myproject', it reported error: No

Re: Sphinx / sys.path

2012-10-27 Thread Dave Angel
On 10/27/2012 06:18 AM, mining.fa...@googlemail.com wrote: Hi, I figure out how it works with sphinx documentation. But I'm stucked in the sys.path issue? sys.path.insert(0, '/home/chris/projekte/dev/testmodule') /home/chris/projekte/dev/testmodule/doc/source/code.rst:4: WARNING: autodoc

Re: Sphinx / sys.path

2012-10-27 Thread mining . facts
Got it spelling error! -- http://mail.python.org/mailman/listinfo/python-list

Re: SSH Connection with Python

2012-10-27 Thread Gelonida N
On 10/27/2012 02:21 AM, Roy Smith wrote: In article mailman.2915.1351294793.27098.python-l...@python.org, Gelonida N gelon...@gmail.com wrote: Another problem is, that paramiko depends on pycrypto 2.1+ which doesn't exist as binary release for python 2.7 I'm running paramiko-1.7.6 with

Re: attaching names to subexpressions

2012-10-27 Thread Gelonida N
On 10/27/2012 04:42 AM, Steve Howell wrote: I have been reading the thread while expression feature proposal, and one of the interesting outcomes of the thread is the idea that Python could allow you to attach names to subexpressions, much like C allows. In C you can say something like this:

Re:

2012-10-27 Thread Chris Angelico
On Sun, Oct 28, 2012 at 12:13 AM, Shaojun Li lishaojun2...@gmail.com wrote: nothing Step aside, 'import this', we've found the true Zen of Python! ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Shipping python modules - best practices?

2012-10-27 Thread rambius
Hello, I developed some moderate-sized python scripts that I would like to distribute as python modules. I have never shipped modules before and I read http://docs.python.org/distutils/index.html. I was able to generate a source distribution, but I still have some questions. 1) My module

Re: Sphinx / sys.path

2012-10-27 Thread mining . facts
So now it works, but taking my project get some trouble. I use in MyData my ConfigParser Class for configuration issues. The project.ini file is in /project and has some entries. [Logging] my_data:MyData.py#/tmp/MyData.log#logging.WARN I guess Sphinx has trouble to load the ini-file!? Thanks

Re: How to correctly pass “pointer-to-pointer” into DLL via ctypes?

2012-10-27 Thread zlchen . ken
On Thursday, November 18, 2010 8:03:57 PM UTC+8, Grigory Petrov wrote: Hello. I have a DLL that allocates memory and returns it. Function in DLL is like this: void Foo( unsigned char** ppMem, int* pSize ) {   * pSize = 4;   * ppMem = malloc( * pSize );   for( int i = 0; i * pSize; i

Error compiling python3.2.3: architecture of input file is incompatible

2012-10-27 Thread Tobias Marquardt
Hello, I am trying to compile Python 3.2.3. On my 64 bit Ubuntu machine I have no problems but using Ubuntu 32 but I get the following error: /usr/bin/ld: i386:x86-64 architecture of input file `Parser/tokenizer_pgen.o' is incompatible with i386 output /usr/bin/ld: i386:x86-64 architecture

ctypes free memory which is allocated in C DLL

2012-10-27 Thread zlchen . ken
Hi Guys, I have a DLL which written in C language, one of the function is to allocate a structure, fill the members and then return the pointer of the structure. After Python called this function, and done with the returned structure, I would like to free the returned structure. How can I

Re: ctypes free memory which is allocated in C DLL

2012-10-27 Thread Chris Angelico
On Sun, Oct 28, 2012 at 1:42 AM, zlchen@gmail.com wrote: Hi Guys, I have a DLL which written in C language, one of the function is to allocate a structure, fill the members and then return the pointer of the structure. After Python called this function, and done with the returned

Re: ctypes free memory which is allocated in C DLL

2012-10-27 Thread Ken Chen
On Saturday, October 27, 2012 10:56:54 PM UTC+8, Chris Angelico wrote: On Sun, Oct 28, 2012 at 1:42 AM, zlchen@gmail.com wrote: Hi Guys, I have a DLL which written in C language, one of the function is to allocate a structure, fill the members and then return the pointer of

Re: a.index(float('nan')) fails

2012-10-27 Thread Nobody
On Thu, 25 Oct 2012 22:04:52 -0400, Terry Reedy wrote: Containment of nan in collection is tested by is, not ==. AFAICT, it isn't specific to NaN. The test used by .index() and in appears to be equivalent to: def equal(a, b): return a is b or a == b IOW, it always checks

Re: a.index(float('nan')) fails

2012-10-27 Thread Nobody
On Sat, 27 Oct 2012 08:56:16 +0200, Thomas Rachel wrote: Am 27.10.2012 06:48 schrieb Dennis Lee Bieber: I don't know about the more modern calculators, but at least up through my HP-41CX, HP calculators didn't do (binary) floating point... They did a form of BCD with a fixed number of

Re: a.index(float('nan')) fails

2012-10-27 Thread Mark Adam
On Thu, Oct 25, 2012 at 9:04 PM, Terry Reedy tjre...@udel.edu wrote: On 10/25/2012 9:46 PM, mambokn...@gmail.com wrote: a = [float('nan'), 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] a [nan, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] a.index(float('nan')) Traceback (most recent call last): File stdin,

Re: while expression feature proposal

2012-10-27 Thread Tim Chase
On 10/26/12 19:18, Steven D'Aprano wrote: def iterate_until_none_or_false(func, *args, **kwargs): while True: x = func(*args, **kwargs) # Halt if x is None or False, but not other falsey values. if x is None or x is False: return yield x

Re: ctypes free memory which is allocated in C DLL

2012-10-27 Thread Chris Angelico
On Sun, Oct 28, 2012 at 2:40 AM, Ken Chen zlchen@gmail.com wrote: Yes, I agree writing a corresponding API to free the memory is the best practice and best bet. Sometimes, the third party API may not provide that. Then that's a majorly dangerous third party API. The only time it's safe to

Re: Error compiling python3.2.3: architecture of input file is incompatible

2012-10-27 Thread Hans Mulder
On 27/10/12 16:11:48, Tobias Marquardt wrote: Hello, I am trying to compile Python 3.2.3. On my 64 bit Ubuntu machine I have no problems but using Ubuntu 32 but I get the following error: /usr/bin/ld: i386:x86-64 architecture of input file `Parser/tokenizer_pgen.o' is incompatible with

Re: Shipping python modules - best practices?

2012-10-27 Thread Demian Brecht
1) IMHO, these should be two distinct steps. You will definitely want to run unit tests without sdist and likewise, I'm sure you'll want to sdist without unit tests. Personally, if I wanted to combine the two, I'd create tasks in a makefile and just run something along the lines of: make unit

Re: Shipping python modules - best practices?

2012-10-27 Thread Demian Brecht
I should also mention that these are just my personal best practices that I've put together during my time working with/on OS projects. You'll almost never find two projects with identical packaging, so really at the end of the day, it's totally up to you and your particular project

Re: ctypes free memory which is allocated in C DLL

2012-10-27 Thread Nobody
On Sat, 27 Oct 2012 07:42:01 -0700, zlchen.ken wrote: I have a DLL which written in C language, one of the function is to allocate a structure, fill the members and then return the pointer of the structure. After Python called this function, and done with the returned structure, I would

Re: SSH Connection with Python

2012-10-27 Thread Cameron Simpson
On 27Oct2012 14:18, Gelonida N gelon...@gmail.com wrote: | On 10/27/2012 02:21 AM, Roy Smith wrote: | In article mailman.2915.1351294793.27098.python-l...@python.org, |Gelonida N gelon...@gmail.com wrote: | | Another problem is, that paramiko depends on pycrypto 2.1+ | which doesn't exist

Re: attaching names to subexpressions

2012-10-27 Thread rusi
On Oct 28, 5:49 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: It's sure as hell more beautiful and readable than assignment as an expression. If we are going to judge code on the ability of people to take a quick glance and immediately understand it, then pretty much

Re: ctypes free memory which is allocated in C DLL

2012-10-27 Thread zlchen . ken
On Sunday, October 28, 2012 6:26:28 AM UTC+8, Nobody wrote: On Sat, 27 Oct 2012 07:42:01 -0700, zlchen.ken wrote: I have a DLL which written in C language, one of the function is to allocate a structure, fill the members and then return the pointer of the structure.

problems with xml parsing (python 3.3)

2012-10-27 Thread jannidis
Hello all, I am new to Python and have a problem with the behaviour of the xml parser. Assume we have this xml document: ?xml version=1.0 encoding=UTF-8? bibliography entry Title of the first book. /entry entry coauthored/ Title of the second book.

Re: problems with xml parsing (python 3.3)

2012-10-27 Thread jannidis
To my understanding the empty element is a child of entry as is the text node. Is there anything I am doing wrong here? Any help is appreciated, Fotis -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with xml parsing (python 3.3)

2012-10-27 Thread MRAB
On 2012-10-28 02:27, janni...@gmail.com wrote: Hello all, I am new to Python and have a problem with the behaviour of the xml parser. Assume we have this xml document: ?xml version=1.0 encoding=UTF-8? bibliography entry Title of the first book. /entry entry

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Georg Brandl
Georg Brandl added the comment: For future reference, it's okay (and perhaps preferable) to upload a patch just for the default branch when no substantive changes are needed for other branches. This is especially true early in the review process when multiple iterations may be uploaded.

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Georg Brandl
Georg Brandl added the comment: Attaching a simplified version of the patch. -- Added file: http://bugs.python.org/file27743/versionswitcher.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue16307] multiprocess.pool.map_async callables not working

2012-10-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: LGTM. Presuming you want to submit more patches in future, please take the time to sign a Python contributor agreement: http://www.python.org/psf/contrib/ . You'll get a pretty star next to your name in the bug tracker in return. ;) --

[issue16250] URLError invoked with reason as filename

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e71f2712076 by Senthil Kumaran in branch '3.2': Issue #16250: Fix URLError invocation with proper args. http://hg.python.org/cpython/rev/5e71f2712076 New changeset 30547e2cd04d by Senthil Kumaran in branch '3.3': Issue #16250: Fix URLError

[issue16336] Check input in surrogatepass error handler

2012-10-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch fixes input checking in surrogatepass error handler. Also it fixes 10% speed regression introduced by changeset 74d65c746f63. -- components: Interpreter Core, Unicode files: codecs_surrogatepass_2.patch keywords: patch messages:

[issue16250] URLError invoked with reason as filename

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3fb84c1da8c5 by Senthil Kumaran in branch '2.7': Add some tests in 2.7 for Issue #16250 http://hg.python.org/cpython/rev/3fb84c1da8c5 -- ___ Python tracker rep...@bugs.python.org

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-27 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: @Chris The example given by Holger Krekel (http://stackoverflow.com/a/13094042/95735) showing how it can be done with pytest is exactly the thing I had in mind. It would be good to have this feature incorporated into unittest. @Michael I guess checking

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in 3.3 and 3.2 3.2 5e71f2712076 3.3 30547e2cd04d -- resolution: - fixed status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16301

[issue16250] URLError invoked with reason as filename

2012-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in all versions now. -- assignee: - orsenthil resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Buildbot issues are taken care. They are green for while. Tests have been backported 3.3 and 3.2 as well. 3.2 5e71f2712076 3.3 30547e2cd04d -- resolution: - fixed stage: - committed/rejected status: open - closed

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: This has been backported. 3.2 5e71f2712076 3.3 30547e2cd04d -- assignee: - orsenthil resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue16307] multiprocess.pool.map_async callables not working

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1bccec4ff980 by Hynek Schlawack in branch '3.3': #16307: Fix multiprocessing.Pool.map_async not calling its callbacks http://hg.python.org/cpython/rev/1bccec4ff980 -- nosy: +python-dev ___ Python tracker

[issue16307] multiprocess.pool.map_async callables not working

2012-10-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: Applied. Thank you for your contribution! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16307

[issue16337] typo in documentation regarding Bytearray Objects, chapter 4.8.2

2012-10-27 Thread Winfried Plappert
New submission from Winfried Plappert: In the online documentation at http://docs.python.org/py3k/library/stdtypes.html?highlight=bytearray%20objects%20copying%20existing%20binary%20data%20via%20buffer%20protocol and the PDF version 3.3.0, page 46, both in chapter 4.8.2: Bullet 4 is

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-27 Thread Michael Foord
Michael Foord added the comment: @piotr Yes, protecting the set up with a lock would be easy, although unittest doesn't directly support running tests in parallel anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16312

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Attaching a simplified version of the patch. I'm OK, but you actually reduced the functionality with saving those 500 bytes. In 'py3_version_switch.3.patch', JS sets the current selected option text to show the the *full* release number. I.e. if you are on

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Georg Brandl
Georg Brandl added the comment: My bad, you're right. Next try attached. -- Added file: http://bugs.python.org/file27745/versionswitcher.5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Georg, Are you sure you've attached the right one? I don't see a change in the version_switch.js... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: Removed file: http://bugs.python.org/file27745/versionswitcher.5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Georg Brandl
Georg Brandl added the comment: Now it should be the right one. -- Added file: http://bugs.python.org/file27746/versionswitcher.5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Looks good, let's commit it? ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Maybe it's a good idea to modify `url_re` from /\.org\/(py3k|dev|((release\/)?\d\.\d[\w\d\.]*))\// to /\.org\/(\d|py3k|dev|((release\/)?\d\.\d[\w\d\.]*))\// To be prepared for PEP 430. -- ___ Python tracker

[issue16107] distutils2.version doesn't str() 1.0.post1 correctly

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e98237abde9 by Éric Araujo in branch 'default': Fix stringification of final versions (#16107). http://hg.python.org/distutils2/rev/6e98237abde9 -- nosy: +python-dev ___ Python tracker

[issue16107] distutils2.version doesn't str() 1.0.post1 correctly

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Fixed. Vinay, you probably want to apply this to your forked version module too. -- nosy: +vinay.sajip resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue16108] Include maintainer information in register/upload

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Would that result in displaying both author and maintainer info on the PyPI page? For what cases is it useful? Questions about author/maintainer come up from time to time. The way I understand it, the goal of these fields is to give contact information to the

[issue16163] Wrong name in Lib/pkgutil.py:iter_importers

2012-10-27 Thread Berker Peksag
Berker Peksag added the comment: I've attached a new patch. -- Added file: http://bugs.python.org/file27747/pkgutil-name-with-test_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16163

[issue16163] Wrong name in Lib/pkgutil.py:iter_importers

2012-10-27 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: Removed file: http://bugs.python.org/file27487/pkgutil-name.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16163 ___

[issue8996] Add a default role to allow writing bare `len` instead of :func:`len`

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Unless Georg would still like this, I retract the proposal. Ezio: Disabling `...` sounds OK to me (I don't think we have many left, if any). I think some of them crept up in logging and unittest docs, but they are easy to find with Doc/tools/rst-lint.py

[issue15957] README.txt points to broken contributing url in python wiki

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 421e74040326 by Éric Araujo in branch 'default': Fix link in README (#15957). Patch by Cliff Dyer. http://hg.python.org/distutils2/rev/421e74040326 -- nosy: +python-dev ___ Python tracker

[issue15957] README.txt points to broken contributing url in python wiki

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Thanks! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15957 ___

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-10-27 Thread R. David Murray
R. David Murray added the comment: It does seem to be possible to do this at command invocation. Patch attached. -- keywords: +patch nosy: +r.david.murray status: closed - open Added file: http://bugs.python.org/file27748/test_gdb_security.patch ___

[issue16338] pysnmp/asyncore - timeout ineffective?

2012-10-27 Thread Trenton Craig
New submission from Trenton Craig: I have an application that is set to use pysnmp to obtain sysDescription and system names from devices on our network. Currently, we are using python 2.6.2, due to the limitations of the box (solaris), and it works fine. However, our new environment uses

[issue6478] time.tzset does not reset _strptime's locale time cache

2012-10-27 Thread Berker Peksag
Berker Peksag added the comment: 2. Please use @run_with_tz decorator. Done. Patch attached. -- Added file: http://bugs.python.org/file27749/issue6478_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6478

[issue3636] Managing dual 2.x and 3.0 installations on Windows

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Now fixed thanks to PEP 397. http://docs.python.org/py3k/whatsnew/3.3.html#pep-397-python-launcher-for-windows -- nosy: +eric.araujo resolution: - out of date stage: needs patch - committed/rejected status: open - closed versions: +Python 3.3 -Python 3.2

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: I think it should be documented and tested that this change is backward-compatible, as the new error class inherits from the one previously used. -- ___ Python tracker rep...@bugs.python.org

[issue15961] Missing return value in ``system_message``

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Found it! I will backport the fix to distutils now. -- resolution: - duplicate stage: test needed - committed/rejected status: open - closed superseder: - setup.py register fails if long_description contains ReST ___

[issue13614] setup.py register fails if long_description contains ReST

2012-10-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +malthe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13614 ___ ___ Python-bugs-list mailing

[issue16107] distutils2.version doesn't str() 1.0.post1 correctly

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d328dcd07449 by Éric Araujo in branch 'python3': Merge fixes for #16107 and #15957 from default http://hg.python.org/distutils2/rev/d328dcd07449 -- ___ Python tracker rep...@bugs.python.org

[issue15957] README.txt points to broken contributing url in python wiki

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d328dcd07449 by Éric Araujo in branch 'python3': Merge fixes for #16107 and #15957 from default http://hg.python.org/distutils2/rev/d328dcd07449 -- ___ Python tracker rep...@bugs.python.org

[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-10-27 Thread Mark Dickinson
New submission from Mark Dickinson: In Python 2, the 'exec' statement supports 'exec'-ing a (statement, globals, locals) tuple: exec(print 2, {}, {}) 2 This doesn't seem to be documented at http://docs.python.org/reference/simple_stmts.html#the-exec-statement. If I understand correctly,

[issue8996] Add a default role to allow writing bare `len` instead of :func:`len`

2012-10-27 Thread Georg Brandl
Georg Brandl added the comment: I'm not very attached to it, so I'm fine with closing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8996 ___

[issue16323] Wrong C API documentation for locale encoding

2012-10-27 Thread Berker Peksag
Berker Peksag added the comment: Also, the documentation for PyUnicode_DecodeLocaleAndSize() is wrong. Patch attached. Related changeset: http://hg.python.org/cpython/rev/07802351ccad -- keywords: +patch nosy: +berker.peksag Added file:

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset b71cda2f48c6 by R David Murray in branch '3.2': #15043: Improve test_gdb support of gdb = 7.4. http://hg.python.org/cpython/rev/b71cda2f48c6 New changeset 6f064689b8c0 by R David Murray in branch '3.3': merge #15043: Improve test_gdb support of gdb

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b1ead5cecae by R David Murray in branch '2.7': #15043: Improve test_gdb support of gdb = 7.4. http://hg.python.org/cpython/rev/1b1ead5cecae -- ___ Python tracker rep...@bugs.python.org

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-10-27 Thread R. David Murray
R. David Murray added the comment: Committed. Also deleted the paragraph from the devguide faq, since it is no longer needed. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15043

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Would you like to work on a patch? -- stage: - test needed versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16326

[issue16323] Wrong C API documentation for locale encoding

2012-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, you forgot to update the documentation. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16323 ___

[issue8996] Add a default role to allow writing bare `len` instead of :func:`len`

2012-10-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8996 ___

[issue16340] Error: 'utf-8' codec can't decode byte 0x9e in position 0: invalid start byte

2012-10-27 Thread Konstantin Zemlyak
New submission from Konstantin Zemlyak: When installing python 3.3 under windows and checking Compile .py files to byte code after installation Lib/venv/scripts/nt/pydoc.py gets precompiled as well. This causes venv module to abort with Error: 'utf-8' codec can't decode byte 0x9e in position

[issue16340] Decoding error in venv when byte-compiling stdlib

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Which file exactly causes the error? If it’s pydoc.py, it’s strange because the source is ASCII. Are you installing in a path with non-ASCII characters? -- nosy: +eric.araujo, vinay.sajip title: Error: 'utf-8' codec can't decode byte 0x9e in position 0:

[issue16340] Decoding error in venv when byte-compiling stdlib

2012-10-27 Thread Konstantin Zemlyak
Konstantin Zemlyak added the comment: If option to precompile python files is checked in installer, pydoc.py gets compiled into binary files Lib\venv\scripts\nt\__pycache__\pydoc.cpython33.pyc and Lib\venv\scripts\nt\__pycache__\pydoc.cpython33.pyo. --

[issue12890] cgitb displays p tags when executed in text mode

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 715e5b337c91 by R David Murray in branch '2.7': #12890: don't emit p tags in text mode when logdir specified. http://hg.python.org/cpython/rev/715e5b337c91 New changeset abbfb89055d3 by R David Murray in branch '3.2': #12890: don't emit p tags in

[issue12890] cgitb displays p tags when executed in text mode

2012-10-27 Thread R. David Murray
R. David Murray added the comment: Committed with Ezio's \p and with simplification of the tests by using script_helper. Thanks, Jeff! -- nosy: +r.david.murray resolution: - fixed status: open - closed versions: +Python 3.4 ___ Python tracker

[issue16340] Decoding error in venv when byte-compiling stdlib

2012-10-27 Thread Konstantin Zemlyak
Konstantin Zemlyak added the comment: Also current title is a bit wrong, since decoding error happens in runtime each time venv is invoked, while the source of the problem happens while byte-compiling stdlib at install time once. -- ___ Python

[issue16340] Decoding error at install time when byte-compiling venv scripts

2012-10-27 Thread Éric Araujo
Éric Araujo added the comment: Are you installing in a path with non-ASCII characters? -- title: Decoding error in venv when byte-compiling stdlib - Decoding error at install time when byte-compiling venv scripts ___ Python tracker

[issue16323] Wrong C API documentation for locale encoding

2012-10-27 Thread STINNER Victor
STINNER Victor added the comment: Encode a Unicode object to the current locale encoding. The encoder is strict if *errors* is equal to ``strict``, otherwise it uses the ``'surrogateescape'`` error handler (:pep:`383`). Hum, this is not correct. There are three valid values: - NULL: strict

[issue16340] Decoding error at install time when byte-compiling venv scripts

2012-10-27 Thread Konstantin Zemlyak
Konstantin Zemlyak added the comment: Not at all. I have installed Python into C:\Program Files (x86)\Python33. Also made a copy into D:\Python33 and got the same results. The problem is in file contents (pyc/pyo files are binary, utf-8 fails to decode them), not in filenames. --

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 006f9ade82f2 by Ezio Melotti in branch '2.7': #8040: add a version switcher to the documentation. Patch by Yury Selivanov. http://hg.python.org/cpython/rev/006f9ade82f2 New changeset 35a2a0e166d0 by Ezio Melotti in branch '3.2': #8040: add a

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3adbe20bb4b by Ezio Melotti in branch '2.7': #8040: enable the versionswitcher for the autobuild-dev target. http://hg.python.org/cpython/rev/c3adbe20bb4b New changeset 740be7346c92 by Ezio Melotti in branch '3.2': #8040: enable the

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: Ezio, Georg's modification introduced one more bug: 1. Documentation for py2 seems to be missing DOCUMENTATION_OPTIONS.RELEASE 2. DOCUMENTATION_OPTIONS.VERSION is in a wrong format for the rest of the script, i.e. 3.3.0 and not 3.3. Before, in my version

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ca30af90c11 by Ezio Melotti in branch '2.7': #8040: fix the version. http://hg.python.org/cpython/rev/7ca30af90c11 New changeset 36a35b86e3b0 by Ezio Melotti in branch '3.2': #8040: fix the version. http://hg.python.org/cpython/rev/36a35b86e3b0

[issue1294] Management of KeyboardInterrupt in cmd.py

2012-10-27 Thread Philip Zerull
Philip Zerull added the comment: Hello, Being of a similar mindset to draghuram on the do_KeyboardInterrupt idea and thought I'd implement it as a subclass. While this probably wasn't fully implemented correctly, I think it provides an interesting solution to stephbul's frustrations and

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Georg Brandl
Georg Brandl added the comment: Indeed RELEASE is not defined anywhere. I was confusing JS variables and Jinja template variables: DOCUMENTATION_OPTIONS.VERSION is in fact what Sphinx calls release. So the fix should be to use VERSION as release and VERSION[:3] as version. Thanks for

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: I think we should also apply patch for 2.6, right? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: And last bit - are you sure we shouldn't add the switch for 2.5? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___

[issue16239] PEP8 arithmetic operator examples

2012-10-27 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16239 ___ ___ Python-bugs-list

[issue8040] documentation pages should link to other versions of the same page

2012-10-27 Thread Yury Selivanov
Yury Selivanov added the comment: And if you guys can - please re-run the docs generation script manually... As it's showing an incorrect version everywhere. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue16337] typo in documentation regarding Bytearray Objects, chapter 4.8.2

2012-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset a0e20651 by Ezio Melotti in branch '3.3': #16337: fix typo. http://hg.python.org/cpython/rev/a0e20651 New changeset fd3bc0323505 by Ezio Melotti in branch 'default': #16337: merge with 3.3. http://hg.python.org/cpython/rev/fd3bc0323505

  1   2   >