[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2015-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is your OS? On Ubuntu: >>> import locale, time >>> locale.setlocale(locale.LC_ALL, 'ko_KR.UTF-8') 'ko_KR.UTF-8' >>> time.strftime('%a') '화' >>> locale.setlocale(locale.LC_ALL, 'ko_KR.eucKR') 'ko_KR.eucKR' >>> time.strftime('%a') '화' >>>

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: Zachary Ware added the comment: > To be fair, other buildbots are also segfaulting (or otherwise silently > failing) on those: Sorry, the following issues are unrelated. > 3.4 on XP, test_json: >

Re: python---configure file

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 10:00:26 +0800, "chenc...@inhand.com.cn" write s: > >hi: >I download the python2.7.10 package and execute cmd: ./configure >--help.It is messages as follow: > >Optional Packages: >--with-PACKAGE[=ARG]use PACKAGE [ARG=yes] >--without-PACKAGE

[issue25028] Reading unicode json string fails depending on LANG env

2015-09-08 Thread Yves Müller
New submission from Yves Müller: I am trying to read json containing a UTF-8 string from a file. It works when running it from a shell with LANG=en_GB.utf8 set, but fails from the empty environment. > python3 --version Python 3.4.0 > cat test.json { "test": "Ümläute" } > env -u LANG python3

[issue23415] add-to-pydotorg does not support .exe installers for Windows

2015-09-08 Thread Larry Hastings
Larry Hastings added the comment: I fixed it. My original attempted hack had bad regular expressions. Once my regular expressions worked properly it was all fine. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___

[issue25018] test_shutil.test_make_archive() fails on Windows 8.1

2015-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests failed on Mac OS X. http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.5/builds/254/steps/test/logs/stdio == FAIL: test_make_tarball (test.test_shutil.TestShutil)

[issue25026] (FreeBSD/OSX) Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).

2015-09-08 Thread koobs
koobs added the comment: Thanks for the insight Serhiy. A few questions .. Is clinic code updated based on *.c declarations at build time? If not when/how is the best place/method to run this for our ports/package builds? Does your suggestion to switch unsigned_int to unsigned_long imply that

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Christoph Gohlke
Changes by Christoph Gohlke : Added file: http://bugs.python.org/file40402/test_dll_load_failed.py ___ Python tracker ___

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Christoph Gohlke
New submission from Christoph Gohlke: This issue was first mentioned at . The attached script (test_dll_load_failed.py) builds up to 256 C extension modules and imports them. On Python 3.4.3 the script passes while on Python 3.5.0rc3 the script

Re: Python handles globals badly.

2015-09-08 Thread Antoon Pardon
Op 04-09-15 om 02:47 schreef Mark Lawrence: > On 04/09/2015 01:06, Michael Torrie wrote: >> On 09/03/2015 01:05 PM, t...@freenet.de wrote: >> >>> [The same e.g. with switch statement: add it] >> >> Switch is a nice-to-have thing, but definitely not essential. A PEP here >> (probably already has

Re: Python handles globals badly.

2015-09-08 Thread Mark Lawrence
On 08/09/2015 09:59, Antoon Pardon wrote: Op 04-09-15 om 02:47 schreef Mark Lawrence: On 04/09/2015 01:06, Michael Torrie wrote: On 09/03/2015 01:05 PM, t...@freenet.de wrote: [The same e.g. with switch statement: add it] Switch is a nice-to-have thing, but definitely not essential. A PEP

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-08 Thread Zachary Ware
Zachary Ware added the comment: Note: the ICC buildbot does fail much more consistently on those. -- ___ Python tracker ___

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-08 Thread Zachary Ware
Zachary Ware added the comment: Stefan Krah commented: > The buildbot segfaults all over the place, also in test_tokenize > and test_json: To be fair, other buildbots are also segfaulting (or otherwise silently failing) on those: 3.4 on XP, test_json:

Re: Python handles globals badly.

2015-09-08 Thread Antoon Pardon
Op 05-09-15 om 02:05 schreef Vladimir Ignatov: >> To me, marking a variable as global in a large number of functions is >> a code smell that indicates that you're probably overusing globals. >> Lua is an example of a language that takes the opposite approach: in >> Lua, every variable is global

[issue25026] (FreeBSD/OSX) Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).

2015-09-08 Thread koobs
koobs added the comment: @Serhiy If by "type of code at the time of commit" you mean upstream python code, msg250163 contains a link to what bits we replace in fcntlmodule.c and that "I -> k" has always been the same. -- ___ Python tracker

pygame basic question

2015-09-08 Thread ast
Hi DISPLAYSURF = pygame.display.set_mode((400, 300)) pygame.display.set_caption('Hello World!') The first line opens a 400x300 pygame window. The second one writes "Hello World" on top of it. I am just wondering how function set_caption finds the windows since the window's name DISPLAYSURF

[issue25026] (FreeBSD/OSX) Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).

2015-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Originally the type of the code variable in fcntl_ioctl() was int. In cbad1f5cabb1 it was changed to unsigned int. I guess that the log message that you cited was written before this. -- ___ Python tracker

[RELEASED] Python 3.5.0rc3 is now available

2015-09-08 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm relieved to announce the availability of Python 3.5.0rc3, also known as Python 3.5.0 Release Candidate 3. The next release of Python 3.5 will be Python 3.5.0 final. There should be few (or no) changes to

Re: Python handles globals badly.

2015-09-08 Thread Antoon Pardon
Op 04-09-15 om 04:33 schreef Steven D'Aprano: > On Fri, 4 Sep 2015 05:05 am, t...@freenet.de wrote: > >> Would you remove this keyword if it would be technically possible > Absolutely not. > > I do not believe that it is technically possible, but even if it were, I > would still argue that the Zen

[issue25026] (FreeBSD/OSX) Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).

2015-09-08 Thread koobs
New submission from koobs: In my current attempt to create a FreeBSD port for python35, I've come across a patch rejection for the fcntlmodule.c for a local port patch we've been carrying since Python 2.6:

[issue25026] (FreeBSD/OSX) Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).

2015-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You need just replace unsigned_int with unsigned_long in Clinic declaration for fcntl.ioctl in Modules/fcntlmodule.c and regenerate Clinic code (make clinic). -- nosy: +larry, serhiy.storchaka ___ Python tracker

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 08/09/2015 01:21, David Barnett a écrit : > > My use case was that I had an equality check like this failing: > expected_path = pathlib.Path.cwd() / pathlib.Path('some/path') > pathlib.Path('some/path') == expected_path > I suppose I should file that as

[issue25026] (FreeBSD/OSX) Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).

2015-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, the clinic code is not updated at build time. Your should either update clinic code just after patching Modules/fcntlmodule.c (Python 3 is needed), or update clinic code at patch creation time and include changes of generated clinic files in the patch.

[issue25021] product_setstate() Out-of-bounds Read

2015-09-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Interesting. Let me have a look. -- ___ Python tracker ___ ___

Re: Python handles globals badly.

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 10:59:01 +0200, Antoon Pardon writes: >Were those polls, like the poll he once did for the condtional expression? >There the poll indicated no specific proposal had a majority, so for each >specific proposal one could say it didn't have popular support, but the

Re: pygame basic question

2015-09-08 Thread Mark Lawrence
On 08/09/2015 11:14, Laura Creighton wrote: Try the pygame mailing list for that one. http://www.pygame.org/wiki/info?action=view=4890 Laura Or https://www.reddit.com/r/pygame -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

[issue24937] Multiple problems in getters & setters in capsulethunk.h

2015-09-08 Thread Larry Hastings
Larry Hastings added the comment: I'm the author of capsulethunk.h, and I am happy to relicense it under MIT. How would you feel about leaving capsulethunk.h there, for posterity's sakes, but adding "for updates please see py3c"? We could even update the capsulethunk.h there. I'm not saying

[issue25025] Missing 3.5.0 RC3 tarballs (FTP)

2015-09-08 Thread koobs
koobs added the comment: @Martin, weird, I'm still not seeing any files/dirs matching 'rc3'. I have refreshed properly (cache-control 0 + empty cache) and still getting a similar listing. Fresh fetch output on the index URL: Python-3.5.0rc1.tar.xz 11-Aug-2015 01:00 14798596^M

Re: Python handles globals badly.

2015-09-08 Thread Antoon Pardon
Op 08-09-15 om 11:22 schreef Mark Lawrence: > On 08/09/2015 09:59, Antoon Pardon wrote: > >> There the poll indicated no specific proposal had a majority, so for >> each >> specific proposal one could say it didn't have popular support, but the >> majority still prefered to have a conditional

Re: passing double quotes in subprocess

2015-09-08 Thread Chris Angelico
On Tue, Sep 8, 2015 at 9:03 PM, loial wrote: > I need to execute an external shell script via subprocess on Linux. > > One of the parameters needs to be passed inside double quotes > > But the double quotes do not appear to be passed to the script > > I am using : > >

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list

issue while doing pexpect ssh

2015-09-08 Thread harirammanohar159
Some where i am missing simple logic :) = child = pexpect.spawn('ssh hari@hostname') child.logfile = sys.stdout child.expect('hari\'s Password: ') = getting error as follows: child.expect('hari\'s Password: ') TypeError: must be str, not bytes === Thanks... --

Re: pygame basic question

2015-09-08 Thread Laura Creighton
Try the pygame mailing list for that one. http://www.pygame.org/wiki/info?action=view=4890 Laura -- https://mail.python.org/mailman/listinfo/python-list

[issue25026] (FreeBSD/OSX) Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).

2015-09-08 Thread Martin Panter
Martin Panter added the comment: If necessary, perhaps we could unconditionally change the Python-level argument to unsigned_long, and then add a conditional bit in the C code to convert it to int if appropriate. But I wonder if most of the problem is fixed by Issue 1471 (linked from the

passing double quotes in subprocess

2015-09-08 Thread loial
I need to execute an external shell script via subprocess on Linux. One of the parameters needs to be passed inside double quotes But the double quotes do not appear to be passed to the script I am using : myscript = '/home/john/myscript' commandline = myscript + ' ' + '\"Hello\"' process =

Re: passing double quotes in subprocess

2015-09-08 Thread loial
Yep, that did the trick...cheers On Tuesday, September 8, 2015 at 12:04:05 PM UTC+1, loial wrote: > I need to execute an external shell script via subprocess on Linux. > > One of the parameters needs to be passed inside double quotes > > But the double quotes do not appear to be passed to the

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-08 Thread Stefan Krah
Stefan Krah added the comment: Yes, according to C99 the shift is undefined: 6.5.7: "If the value of the right operand is negative or is greater than or equal to the width of the promoted left operand, the behavior is undefined." -- ___ Python

Re: Permission denied error in download nltk_data...

2015-09-08 Thread Dwight GoldWinde
import nltk nltk.download('maxent_treebank_pos_tagger¹) Is now giving the error: [nltk_data] Error loading maxent_treebank_pos_tagger: Any suggestions, please. BIG SMILE... Always, Dwight -- https://mail.python.org/mailman/listinfo/python-list

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Stefan Krah
Stefan Krah added the comment: If the scientific stack is unusable, I think this should be a release blocker. -- nosy: +skrah priority: normal -> release blocker ___ Python tracker

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-09-08 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +easy stage: -> needs patch ___ Python tracker ___

[issue25014] Add contextlib.itercm()

2015-09-08 Thread Ezio Melotti
Ezio Melotti added the comment: > Having spent a few days pondering this after Ezio first mentioned the > concept to me on IRC, I'm rejecting this on the basis of "not every 3 > line function needs to be in the standard library". When I first mentioned this to Nick on IRC, the implementation

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-08 Thread Stefan Krah
Stefan Krah added the comment: Perhaps the stack overflow hypothesis applies here, too. You could try changing Py_DEFAULT_RECURSION_LIMIT in ceval.c to lower values. -- ___ Python tracker

[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2015-09-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +belopolsky -serhiy.storchaka ___ Python tracker ___

[issue25029] MemoryError in test_strptime

2015-09-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: All builds on edelsohn-fedora-ppc64 are red starting from build 55 for 3.x and build 41 for 3.5. 3.4 is green. http://buildbot.python.org/all/builders/PPC64%20Fedora%203.x/builds/55/ http://buildbot.python.org/all/builders/PPC64%20Fedora%203.5/builds/41/

Python CI and CD support available on Semaphore (feedback appreciated)

2015-09-08 Thread Filip Komnenović
HI folks, We have recently launched Python support on our continuous integration and deployment service and are looking for communities feedback. If you're up for it, please give a test drive to our service with your Python projects and give us your thoughts on what we could further improve

[issue25028] Reading unicode json string fails depending on LANG env

2015-09-08 Thread Martin Panter
Martin Panter added the comment: By default, open("test.json") will open the file in text mode, decoding from the encoding determined by your environment. See , in particular, “The default encoding is platform dependent (whatever

[issue25021] product_setstate() Out-of-bounds Read

2015-09-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: An alternative patch. Please test this since I don't have a development system. -- keywords: +needs review Added file: http://bugs.python.org/file40404/itertoolsmodule.c.patch ___ Python tracker

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Larry Hastings
Larry Hastings added the comment: This is your wheelhouse, Steve. -- assignee: -> steve.dower ___ Python tracker ___

[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-08 Thread Mark Roseman
Mark Roseman added the comment: Ok. In case you're curious or might find it useful elsewhere, I've attached sphinxview.py, which renders the HTML into a text widget (with formatting, it's not converted to plain text). -- Added file: http://bugs.python.org/file40405/sphinxview.py

[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2015-09-08 Thread eryksun
eryksun added the comment: It seems VC 14 has a bug here. In the new C runtime, strftime is implemented by calling wcsftime as follows: size_t const result = _Wcsftime_l(wstring.get(), maxsize, wformat.get(), timeptr, lc_time_arg, locale); if (result == 0) return 0; //

[issue24937] Multiple problems in getters & setters in capsulethunk.h

2015-09-08 Thread Petr Viktorin
Petr Viktorin added the comment: This patch removes capsulethunk.h from the docs, and directs the kind reader to the py3c project, which carries a fixed and tested version of it, along with the docs. Larry, would you be OK with releasing capsulethunk.h under the MIT license? The PSF license

Re: passing double quotes in subprocess

2015-09-08 Thread Akira Li
loial writes: > I need to execute an external shell script via subprocess on Linux. > > One of the parameters needs to be passed inside double quotes > > But the double quotes do not appear to be passed to the script > > I am using : > > myscript = '/home/john/myscript' >

[issue25029] MemoryError in test_strptime

2015-09-08 Thread Larry Hastings
Larry Hastings added the comment: Any clue here? Is this unaligned access? -- ___ Python tracker ___ ___

[issue13053] Add Capsule migration documentation to "cporting"

2015-09-08 Thread Petr Viktorin
Petr Viktorin added the comment: As capsulethunk.h is only needed for Python 2.6 and below, which are no longer maintained, in issue24937 we are discussing moving the header to an external project. -- nosy: +encukou ___ Python tracker

Re: Python handles globals badly.

2015-09-08 Thread Vladimir Ignatov
>> I had some experience programming in Lua and I'd say - that language >> is bad example to follow. >> Indexes start with 1 (I am not kidding) > > What is so bad about that? It's different from the rest 99.9% of languages for no particular reason. ( => perfect example of "design smell" => not

[issue25021] product_setstate() Out-of-bounds Read

2015-09-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: There are two problems with the previous patch: 1) it can put out of bounds values into lz->indices. This can cause problems then next time product_next() is called. 2) the case of a pool having zero size is not dealt with (it wasn't before either).

Re: Permission denied error in download nltk_data...

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 18:56:15 +0800, Dwight GoldWinde writes: >import nltk >nltk.download('maxent_treebank_pos_tagger¹) > >Is now giving the error: > >[nltk_data] Error loading maxent_treebank_pos_tagger: [nltk_data] [Errno 57] Socket is not connected> > > >Any suggestions, please.

[issue25025] Missing 3.5.0 RC3 tarballs (FTP)

2015-09-08 Thread Martin Panter
Martin Panter added the comment: They seem to be there now: https://www.python.org/ftp/python/3.5.0/Python-3.5.0rc3.tar.xz https://www.python.org/ftp/python/3.5.0/Python-3.5.0rc3.tgz Perhaps you were just too impatient? Or maybe confused by the strange sorting, EXE files following tar files?

Re: passing double quotes in subprocess

2015-09-08 Thread Larry Martell
On Tue, Sep 8, 2015 at 7:03 AM, loial wrote: > I need to execute an external shell script via subprocess on Linux. > > One of the parameters needs to be passed inside double quotes > > But the double quotes do not appear to be passed to the script > > I am using : > >

Re: Wheels For ...

2015-09-08 Thread Sven R. Kunze
On 06.09.2015 22:06, Ned Batchelder wrote: As a developer of a Python package, I don't see how this would be better. The developer would still have to get their software into some kind of uniform configuration, so the central authority could package it. You've moved the problem from, "everyone

Re: issue while doing pexpect ssh

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 04:37:09 -0700, harirammanohar...@gmail.com wr ites: >Some where i am missing simple logic :) > >= >child = pexpect.spawn('ssh hari@hostname') >child.logfile = sys.stdout >child.expect('hari\'s Password: ') >= > >getting error as follows: >

[issue25029] MemoryError in test_strptime

2015-09-08 Thread David Edelsohn
David Edelsohn added the comment: PPC64 is not a strict alignment system. The system is running a non-recent release of Fedora, so it could be a bad interaction with libc. -- ___ Python tracker

Re: Python handles globals badly.

2015-09-08 Thread Akira Li
Vladimir Ignatov writes: >>> I had some experience programming in Lua and I'd say - that language >>> is bad example to follow. >>> Indexes start with 1 (I am not kidding) >> >> What is so bad about that? > > It's different from the rest 99.9% of languages for no particular

[issue24989] scan_eol() Buffer Over-read

2015-09-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

RE: Python CI and CD support available on Semaphore (feedback appreciated)

2015-09-08 Thread Albert-Jan Roskam
> To: python-list@python.org > From: tjre...@udel.edu > Subject: Re: Python CI and CD support available on Semaphore (feedback > appreciated) > Date: Tue, 8 Sep 2015 14:46:28 -0400 > > On 9/8/2015 6:27 AM, Filip Komnenović wrote: > > > We have recently launched Python support on our continuous

[issue10716] Modernize pydoc to use better HTML and separate CSS

2015-09-08 Thread Adam
Changes by Adam : -- nosy: +azsorkin ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24899] Add an os.path <=> pathlib equivalence table in pathlib docs

2015-09-08 Thread Adam
Changes by Adam : -- nosy: +azsorkin ___ Python tracker ___ ___ Python-bugs-list mailing

Re: Python CI and CD support available on Semaphore (feedback appreciated)

2015-09-08 Thread Terry Reedy
On 9/8/2015 6:27 AM, Filip Komnenović wrote: We have recently launched Python support on our continuous integration and deployment service and are looking for communities feedback. If you're up for it, please give a test drive to our service with your Python projects and give us your

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-08 Thread Anthon van der Neut
New submission from Anthon van der Neut: Since 3.4.1, string.Formatter() accepts empty keys {}. If these are nested they give different results from explicitly numbered, where the same arguments applied "".format() give the expected results: from string import Formatter f =

[issue24249] unittest API for detecting test failure in cleanup/teardown

2015-09-08 Thread Adam
Changes by Adam : -- nosy: +azsorkin ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24991] Define instance mutability explicitly on type objects

2015-09-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue24913] deque.index() overruns deque boundary

2015-09-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2015-09-08 Thread Adam
Changes by Adam : -- nosy: +azsorkin ___ Python tracker ___ ___ Python-bugs-list mailing

PIP does not appear to handle diacritics correctly.

2015-09-08 Thread Laszlo Lebrun via Python-list
Dear group, I do use Windows 7 and have a user name with diacritics. Whenever I am querying an extension with pip, it will fail since it does not pass on the user folder correctly. I thought PIP deals well with unicode, doesn't it? Has anyone a clue how to fix it? Thank you -- Stand up

[issue24912] The type of cached objects is mutable

2015-09-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: Thread on python-dev: https://mail.python.org/pipermail/python-dev/2015-September/141439.html -- ___ Python tracker

[issue25002] Deprecate asyncore/asynchat

2015-09-08 Thread Mark Lawrence
Mark Lawrence added the comment: IIRC I flagged up oustanding asyncore/asynchat issues months or even years back and Victor closed a lot down, so there shouldn't be many left to deal with. -- nosy: +BreamoreBoy ___ Python tracker

Re: Need Help w. PIP!

2015-09-08 Thread Cody Piersall
On Sat, Sep 5, 2015 at 3:14 AM, Thomas 'PointedEars' Lahn < pointede...@web.de> wrote: > > Cody Piersall wrote: > > > Please respond to the list as well as the person you're actually talking > > to. It works out better for everyone that way. (You should just have to > > "reply all" instead of

Re: PIP does not appear to handle diacritics correctly.

2015-09-08 Thread Mark Lawrence
On 08/09/2015 20:14, Laszlo Lebrun via Python-list wrote: Dear group, I do use Windows 7 and have a user name with diacritics. Whenever I am querying an extension with pip, it will fail since it does not pass on the user folder correctly. I thought PIP deals well with unicode, doesn't it? Has

[issue25030] io.[Text]IOBase.seek doesn't take keyword parameter

2015-09-08 Thread shiyao.ma
New submission from shiyao.ma: The doc is here: https://docs.python.org/3.5/library/io.html#io.IOBase.seek and here: https://docs.python.org/3.5/library/io.html#io.TextIOBase.seek It is said the parameter list is in the form of: seek(offset, whence=SEEK_SET) But actually only: seek(offset) or

[issue25029] MemoryError in test_strptime

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: It's a regression introduced by c31dad22c80d (Issue #24917). -- nosy: +steve.dower ___ Python tracker ___

[issue25029] MemoryError in test_strptime

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: Script to reproduce the issue: --- import time import locale import pprint time_tuple = time.struct_time((1999,3,17,1,44,55,2,76,0)) p1 = time.strftime("%p", time_tuple) print("current LC_TIME", repr(p1)) locale.setlocale(locale.LC_TIME, ('de_DE', 'UTF8')) p2

[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

2015-09-08 Thread Steve Dower
Steve Dower added the comment: Let me experiment today with a few of the proposals I posted in the other thread and get back to you. I suspect someone will need to ship vcruntime.dll, and I'd rather it was the extension. -- ___ Python tracker

[issue25022] Remove PC/example_nt/

2015-09-08 Thread Steve Dower
Steve Dower added the comment: Go for it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24937] Multiple problems in getters & setters in capsulethunk.h

2015-09-08 Thread Petr Viktorin
Petr Viktorin added the comment: Thank you for the license. I mentioned my project mainly as a place where this code can be *tested*. I have no problem with keeping capsulethunk.h in the Python docs, and synchronizing the two projects if changes are made on either side. In other words, feel

Re: Python handles globals badly.

2015-09-08 Thread Mario Figueiredo
On 08-09-2015 12:55, Vladimir Ignatov wrote: I had some experience programming in Lua and I'd say - that language is bad example to follow. Indexes start with 1 (I am not kidding) What is so bad about that? It's different from the rest 99.9% of languages for no particular reason. ( =>

[issue25029] MemoryError in test_strptime

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: Again, this issue remembers me the idea of rewriting strftime() in Python. We already have _strptime.py. -- ___ Python tracker

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-08 Thread David Barnett
David Barnett added the comment: Right, and to clarify a bit further why I didn't just use A.resolve() == B.resolve() from the beginning, this is in a unit test where the equality check wasn't in my code. I wanted to assert I received a certain call on my mock, like

[issue25029] MemoryError in test_strptime

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: Oh wait, the VmPeak is *much* high when running test_strptime: * test_os VmPeak: 380 992 kB * test_strptime VmPeak: 8 608 972 kB (8 GB!?) 1 GB should be enough for everybody: $ bash -c 'ulimit -v 100; ./python -m test -v test_strptime' ..

[issue24917] time_strftime() Buffer Over-read

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: The change c31dad22c80d introduced a regression: issue #25029. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue25029] MemoryError in test_strptime

2015-09-08 Thread STINNER Victor
STINNER Victor added the comment: I ran test_strptime & test_os with tracemalloc: test_os memory peak is higher than test_strptime memory peak (I ran the two tests independently). So the bug cannot be reproduce on my Fedora 22 (x86_64). -- nosy: +haypo

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-08 Thread Tim Tisdall
Tim Tisdall added the comment: Martin, looks good. Thanks for pointing out how to properly tag the version change, and thanks for adding me to the ACKS file. -- ___ Python tracker

[issue25000] _mock_call does not properly grab args and kwargs

2015-09-08 Thread Michael Foord
Michael Foord added the comment: This is actually the specified and documented behaviour of mock when it is passed mutable arguments. Deep copying arguments on calls is rife with potential problems (not everything can be copied and it breaks comparison by identity). The documentation suggests

Re: issue while doing pexpect ssh

2015-09-08 Thread Chris Angelico
On Tue, Sep 8, 2015 at 9:37 PM, wrote: > Some where i am missing simple logic :) > > = > child = pexpect.spawn('ssh hari@hostname') > child.logfile = sys.stdout > child.expect('hari\'s Password: ') > = > > getting error as follows: > >

Re: pygame basic question

2015-09-08 Thread Dave Farrance
"ast" wrote: >DISPLAYSURF = pygame.display.set_mode((400, 300)) >pygame.display.set_caption('Hello World!') > >The first line opens a 400x300 pygame window. >The second one writes "Hello World" on top of it. > >I am just wondering how function set_caption finds the windows

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file40349/timedelta_round_half_up_py34.patch ___ Python tracker ___

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread Larry Hastings
Larry Hastings added the comment: I wish people wouldn't remove old patches. There's no harm in leaving them, and it may be a useful historical record. -- ___ Python tracker

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file40362/round_half_up_py34-2.patch ___ Python tracker ___

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file40365/combined_py34.patch ___ Python tracker ___

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file40364/fromtimestamp_round_half_up_py34-2.patch ___ Python tracker

  1   2   3   >