ANN Nanpy 0.9

2014-04-23 Thread Andrea Stagi
Hi all, I'm glad to announce you Nanpy 0.9 release! https://pypi.python.org/pypi/nanpy/0.9 The main purpose of Nanpy is making programmers' life easier, giving them something to create prototypes faster and use Arduino in a simpler way, thanks to a simple and powerful language like Python. Also

ANN: Portable Python 2.7.6.1

2014-04-23 Thread Perica Zivkovic
Dear people, I would like to announce new release of the Portable Python based on Python 2.7.6 Included in this release: - * PyScripter v2.5.3 * PyCharm Community Edition 3.1.2 (Thanks to cebik) * NymPy 1.8.1 * SciPy 0.13.3 * Matplotlib 1.3.1 * PyWin32 218 * Django 1.6.2

[ANN] Pylint 1.2 released

2014-04-23 Thread Sylvain Thénault
Hi there, Pylint 1.2 has been uploaded to pypi by the end of the last week! More info on this heavy release on http://www.logilab.org/blogentry/240019. As usual, feedback and comments welcome. Enjoy! -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations

Re: object().__dict__

2014-04-23 Thread Ben Finney
Pavel Volkov sai...@lists.xtsubasa.org writes: The attribute list is different now and there's no __dict__ and the object does not accept new attributes. Please explain what's going on. It's a leaky abstraction, unfortunately. By default, all user-defined types will provide their instances

Re: object().__dict__

2014-04-23 Thread Cameron Simpson
On 23Apr2014 09:39, Pavel Volkov sai...@lists.xtsubasa.org wrote: There are some basics about Python objects I don't understand. Consider this snippet: class X: pass ... x = X() dir(x) ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__',

Re: Unicode in Python

2014-04-23 Thread Devin Jeanpierre
On Tue, Apr 22, 2014 at 10:52 PM, Steven D'Aprano st...@pearwood.info wrote: There's not just the keyboard mapping. There's the mental cost of knowing which keyboard mapping you need (is it Greek, Hebrew, or maths symbols?), the cost of remembering the mapping from the keys you see on the

Re: Unicode in Python

2014-04-23 Thread Ben Finney
Devin Jeanpierre jeanpierr...@gmail.com writes: But yes, typing out the special characters is annoying. I just use words. I use words that describe the meaning, where feasible. The only downside to using words is, how do you specify capital versus lowercase letters? Why do you need to, for

Re: Unicode in Python

2014-04-23 Thread Rustom Mody
On Wednesday, April 23, 2014 11:22:33 AM UTC+5:30, Steven D'Aprano wrote: 25 Unicode characters down, 1114000+ to go :-) The question would arise if there was some suggestion to add 1114000(+) characters to the syntactic/lexical definition of python. IOW while its true that unicode is a

Re: Unicode in Python

2014-04-23 Thread Chris Angelico
On Wed, Apr 23, 2014 at 4:57 PM, Rustom Mody rustompm...@gmail.com wrote: In such a (default) setup typing a ∧ or ∨ is not possible at all without something like a char-picker and at best has an ergonomic cost that is an order of magnitude higher than the 'naturally available' characters. On

Re: Unicode in Python

2014-04-23 Thread Steven D'Aprano
On Tue, 22 Apr 2014 23:57:46 -0700, Rustom Mody wrote: perhaps the following is the most preferred? COMPUTE YEAR MODULO 4 EQUALS 0 AND YEAR MODULO 100 NOT EQUAL TO ZERO OR YEAR MODULO 100 EQUAL to 0 IOW COBOL is desirable? If the only choices are COBOL on one hand and the mutant

how to write list in a file

2014-04-23 Thread Dhananjay
Hello everyone, I am trying hard to write a list to a file as follows: def average_ELECT(pwd): os.chdir(pwd) files = filter(os.path.isfile, os.listdir('./')) folders = filter(os.path.isdir, os.listdir('./')) eelec = 0.0; evdw = 0.0; EELEC = []; elecutoff = []; g =

Re: Unicode in Python

2014-04-23 Thread Steven D'Aprano
On Tue, 22 Apr 2014 23:57:46 -0700, Rustom Mody wrote: On the other hand when/if a keyboard mapping is defined in which the characters that are commonly needed are available, it is reasonable to expect the ∨,∧ to cost no more than 2 strokes each (ie about as much as an 'A'; slightly more than

Re: how to write list in a file

2014-04-23 Thread David Palao
2014-04-23 9:53 GMT+02:00 Dhananjay dhananjay.c.jo...@gmail.com: Hello everyone, I am trying hard to write a list to a file as follows: def average_ELECT(pwd): os.chdir(pwd) files = filter(os.path.isfile, os.listdir('./')) folders = filter(os.path.isdir, os.listdir('./'))

Re: object().__dict_

2014-04-23 Thread Duncan Booth
Pavel Volkov sai...@lists.xtsubasa.org wrote: There are some basics about Python objects I don't understand. Consider this snippet: class X: pass ... x = X() dir(x) ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__',

Re: object().__dict__

2014-04-23 Thread Amirouche Boubekki
2014-04-23 8:11 GMT+02:00 Cameron Simpson c...@zip.com.au: On 23Apr2014 09:39, Pavel Volkov sai...@lists.xtsubasa.org wrote: There are some basics about Python objects I don't understand. Consider this snippet: class X: pass ... x = X() dir(x) ['__class__', '__delattr__',

Re: object().__dict__

2014-04-23 Thread Phil Connell
On Wed, Apr 23, 2014 at 03:48:32PM +0200, Amirouche Boubekki wrote: 2014-04-23 8:11 GMT+02:00 Cameron Simpson c...@zip.com.au: Look up the __slots__ dunder var in the Python doco index: https://docs.python.org/3/glossary.html#term-slots You'll see it as a (rarely used, mostly

Re: object().__dict__

2014-04-23 Thread Amirouche Boubekki
2014-04-23 15:59 GMT+02:00 Phil Connell pconn...@gmail.com: On Wed, Apr 23, 2014 at 03:48:32PM +0200, Amirouche Boubekki wrote: 2014-04-23 8:11 GMT+02:00 Cameron Simpson c...@zip.com.au: Look up the __slots__ dunder var in the Python doco index:

Re: object().__dict__

2014-04-23 Thread Phil Connell
On Wed, Apr 23, 2014 at 04:21:26PM +0200, Amirouche Boubekki wrote: 2014-04-23 15:59 GMT+02:00 Phil Connell pconn...@gmail.com: On Wed, Apr 23, 2014 at 03:48:32PM +0200, Amirouche Boubekki wrote: 2014-04-23 8:11 GMT+02:00 Cameron Simpson c...@zip.com.au: Look up the __slots__ dunder

Re: Unicode in Python

2014-04-23 Thread Rustom Mody
On Wednesday, April 23, 2014 1:23:00 PM UTC+5:30, Steven D'Aprano wrote: On Tue, 22 Apr 2014 23:57:46 -0700, Rustom Mody wrote: On the other hand when/if a keyboard mapping is defined in which the characters that are commonly needed are available, it is reasonable to expect the ∨,∧ to cost

App segmentation fault (CentOS 6.5)

2014-04-23 Thread Reginaldo
Hi, I have a GUI app that is written using wx. When I run it on CentOS 6.5, the following error messages are displayed and the app closes: (python:10096): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='DejaVu Sans 10.9990234375', text=''

Re: App segmentation fault (CentOS 6.5)

2014-04-23 Thread Mark H Harris
On 4/23/14 1:08 PM, Reginaldo wrote: I have a GUI app that is written using wx. When I run it on CentOS 6.5, the following error messages are displayed and the app closes: Only fails on CentOS ? I use an idle thread in my application. Is your CentOS launching idle with -n switch ?

Re: object().__dict__

2014-04-23 Thread CHIN Dihedral
On Wednesday, April 23, 2014 10:21:26 PM UTC+8, Amirouche Boubekki wrote: 2014-04-23 15:59 GMT+02:00 Phil Connell pcon...@gmail.com: On Wed, Apr 23, 2014 at 03:48:32PM +0200, Amirouche Boubekki wrote: 2014-04-23 8:11 GMT+02:00 Cameron Simpson c...@zip.com.au: Look up the

Moving to an OOP model from an classically imperitive one

2014-04-23 Thread tim . thelion
Hello, I am currently writting a program called subuser(subuser.org), which is written as classically imperative code. Subuser is, essentially, a package manager. It installs and updates programs from repositories. I have a set of source files

Re: Moving to an OOP model from an classically imperitive one

2014-04-23 Thread Mark Lawrence
On 23/04/2014 21:57, tim.thel...@gmail.com wrote: Hello, I am currently writting a program called subuser(subuser.org), which is written as classically imperative code. Subuser is, essentially, a package manager. It installs and updates programs from repositories. I have a set of source

Re: Moving to an OOP model from an classically imperitive one

2014-04-23 Thread Ian Kelly
On Apr 23, 2014 5:01 PM, tim.thel...@gmail.com wrote: I asked on IRC and it was sugested that I use multiple classes, however I see no logical way to separate a SubuserProgram object into multiple classes. You say you already have the methods logically separated into files. How about adding one

Re: Moving to an OOP model from an classically imperitive one

2014-04-23 Thread Ethan Furman
On 04/23/2014 01:57 PM, tim.thel...@gmail.com wrote: There is one problem though. Currently, I have these functions logically organized into source files, each between 40 and 170 LOC. I fear that if I were to put all of these functions into one class, than I would have a single, very large

Re: Moving to an OOP model from an classically imperitive one

2014-04-23 Thread MRAB
On 2014-04-23 21:57, tim.thel...@gmail.com wrote: Hello, I am currently writting a program called subuser(subuser.org), which is written as classically imperative code. Subuser is, essentially, a package manager. It installs and updates programs from repositories. I have a set of source

Re: Moving to an OOP model from an classically imperitive one

2014-04-23 Thread Chris Angelico
On Thu, Apr 24, 2014 at 7:42 AM, Ethan Furman et...@stoneleaf.us wrote: On 04/23/2014 01:57 PM, tim.thel...@gmail.com wrote: There is one problem though. Currently, I have these functions logically organized into source files, each between 40 and 170 LOC. I fear that if I were to put all

Re: how to write list in a file

2014-04-23 Thread Terry Reedy
On 4/23/2014 3:53 AM, Dhananjay wrote: Hello everyone, I am trying hard to write a list to a file as follows: def average_ELECT(pwd): os.chdir(pwd) I would 'print pwd' to make sure where files are being opened. files = filter(os.path.isfile, os.listdir('./')) folders =

Re: why my cur.executescript can not run?

2014-04-23 Thread Terry Reedy
On 4/23/2014 7:23 AM, length power wrote: please download the attachment Cinfo.zip. Please do not post with attachments. This is a text list, and binary attachments can be a vehicle for malware. Instead, reduce your code to the minimum necessary to exhibit the problem and include it in the

Re: App segmentation fault (CentOS 6.5)

2014-04-23 Thread Terry Reedy
On 4/23/2014 3:46 PM, Mark H Harris wrote: On 4/23/14 1:08 PM, Reginaldo wrote: I have a GUI app that is written using wx. When I run it on CentOS 6.5, the following error messages are displayed and the app closes: Only fails on CentOS ? I use an idle thread in my application.

Re: Moving to an OOP model from an classically imperitive one

2014-04-23 Thread Gregory Ewing
tim.thel...@gmail.com wrote: I think this would be better solved by moving fully to an OOP model. That is, I would have a SubuserProgram class which had methods such as install, describe, isInstalled... This wouldn't necessarily be better. Don't be taken in by the everything is better as a

Re: Moving to an OOP model from an classically imperitive one

2014-04-23 Thread Gregory Ewing
Ian Kelly wrote: How about adding one abstract class per file, and then letting SubuserProgram inherit from each of those individual classes? I'd recommend against that kind of thing, because it makes the code hard to follow. With module-level functions, you can tell where any given function

retrieve source code from code object as returned by compile()

2014-04-23 Thread Justin Ezequiel
Is there a way to get the original source? I am trying to retrieve the main script from a py2exe'd old program. The programmer neglected to commit to SVN before leaving. Using Easy Python Decompiler I am able to get the source for the imported modules. Using Resources Viewer from PlexData and

Re: App segmentation fault (CentOS 6.5)

2014-04-23 Thread Wesley
在 2014年4月24日星期四UTC+8上午2时08分29秒,Reginaldo写道: Hi, I have a GUI app that is written using wx. When I run it on CentOS 6.5, the following error messages are displayed and the app closes: (python:10096): Pango-WARNING **: shaping failure, expect ugly output.

Re: how to write list in a file

2014-04-23 Thread Dave Angel
Terry Reedy tjre...@udel.edu Wrote in message: On 4/23/2014 3:53 AM, Dhananjay wrote: Hello everyone, I am trying hard to write a list to a file as follows: def average_ELECT(pwd): os.chdir(pwd) I would 'print pwd' to make sure where files are being opened. files =

Re:Moving to an OOP model from an classically imperitive one

2014-04-23 Thread Dave Angel
tim.thel...@gmail.com Wrote in message: I don't really understand your problem or your examples, but others apparently do. So I'll just make a few comments. There is one problem though. Currently, I have these functions logically organized into source files, each between 40 and 170

Re: retrieve source code from code object as returned by compile()

2014-04-23 Thread Gregory Ewing
Justin Ezequiel wrote: Using Easy Python Decompiler I am able to get the source for the imported modules. Using Resources Viewer from PlexData and some code I am able to retrieve the code object. I am however stumped as to how to retrieve the source from this code object. Easy Python

[issue19475] Add microsecond flag to datetime isoformat()

2014-04-23 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19475 ___ ___ Python-bugs-list

[issue6305] islice doesn't accept large stop values

2014-04-23 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6305 ___ ___

[issue21291] subprocess Popen objects are not thread safe w.r.t. wait() and returncode being set

2014-04-23 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: Added file: http://bugs.python.org/file35007/issue21291-patch-with-test-gps01.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21291 ___

[issue21331] Reversing an encoding with unicode-escape returns a different result

2014-04-23 Thread Sworddragon
Sworddragon added the comment: The documentation says that unicode_internal is deprecated since Python 3.3 but not unicode_escape. Also, isn't unicode_escape different from utf-8? For example my original intention was to convert 2 byte string characters to their control characters. For

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-23 Thread Charles-François Natali
Charles-François Natali added the comment: Updated patch using an anonymous struct. LGTM! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21207 ___

[issue21291] subprocess Popen objects are not thread safe w.r.t. wait() and returncode being set

2014-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d745d97b7da by Gregory P. Smith in branch '3.4': subprocess's Popen.wait() is now thread safe so that multiple threads http://hg.python.org/cpython/rev/5d745d97b7da New changeset df45d0336dad by Gregory P. Smith in branch 'default': subprocess's

[issue17552] socket.sendfile()

2014-04-23 Thread Charles-François Natali
Charles-François Natali added the comment: 1) I really don't like the use_fallback argument: as a user, I don't care if it's using sendfile/splice/whatever WIndows uses. I view this as a channel transfer (like Java's

[issue21291] subprocess Popen objects are not thread safe w.r.t. wait() and returncode being set

2014-04-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: This fix is also present in subprocess32 3.2.6 on PyPI for use on Python 2. -- resolution: - fixed stage: - commit review status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org

[issue21334] nntplib throws exceptions making sinntp unusable

2014-04-23 Thread randomcoder1
New submission from randomcoder1: Sinntp is a nntp client. It uses nntplib from Python as a nntp library to fetch messages from NNTP servers. I've tested this on two environments with the following package versions: 1) Ubuntu 12.04.4 , python-support 1.0.14ubuntu2, Python 2.7.3-0ubuntu2.2 ,

[issue21334] nntplib throws exceptions making sinntp unusable

2014-04-23 Thread randomcoder1
randomcoder1 added the comment: I'm cross-referencing this here too. https://code.google.com/p/sinntp/issues/detail?id=9 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21334 ___

[issue21334] nntplib throws exceptions making sinntp unusable

2014-04-23 Thread randomcoder1
randomcoder1 added the comment: I forgot to mention that in the environment 1) described above, everything worked fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21334 ___

[issue21334] nntplib throws exceptions making sinntp unusable

2014-04-23 Thread Jakub Wilk
Jakub Wilk added the comment: For the reference, the exception is: Traceback (most recent call last): File /home/user/sources/sinntp/sinntp, line 357, in module connection.quit() File /usr/lib/python2.7/nntplib.py, line 608, in quit resp = self.shortcmd('QUIT') File

[issue20136] Logging: StreamHandler does not use OS line separator.

2014-04-23 Thread Thorsten Weimann
Thorsten Weimann added the comment: Please re-open. The IO system only takes care of line separators, if no encoding is given. -- nosy: +Thorsten.W ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20136

[issue21251] Standard library trace module crashes with exception

2014-04-23 Thread Martin Kolman
Martin Kolman added the comment: @ 1.: Reproducer attached to the comment - just build the C code and run trace_test.py It is maybe not as minimal as it could be but I'm afraid the context of what the module is doing would be lost if it was cut down too aggressively. @ 2.: I'm afraid this is

[issue21332] subprocess bufsize=1 docs are misleading

2014-04-23 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21332 ___ ___ Python-bugs-list mailing list

[issue9338] argparse optionals with nargs='?', '*' or '+' can't be followed by positionals

2014-04-23 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9338 ___ ___ Python-bugs-list mailing list

[issue21109] tarfile: Traversal attack vulnerability

2014-04-23 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21109 ___ ___ Python-bugs-list mailing list

[issue20995] Use Better Default Ciphers for the SSL Module

2014-04-23 Thread Mark Kubacki
Mark Kubacki added the comment: The cipher strings rely too much on AES for my taste. Imagine that ChaCha20Poly1305 or any other strong cipher suite is introduced to OpenSSL in the future. Enabling using general, and demoting using narrow terms, seems IMHO a better approach. For example:

[issue20995] Use Better Default Ciphers for the SSL Module

2014-04-23 Thread Donald Stufft
Donald Stufft added the comment: The cipher string includes HIGH, so if ChaCha20Poly1305 or another cipher suite is added to OpenSSL it'll get included in the cipher string by default. So the major difference of what you suggest would be no longer prioritizing ciphers. However I would argue

[issue21333] Document recommended exception for objects that shouldn't be pickled

2014-04-23 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21333 ___

[issue20995] Use Better Default Ciphers for the SSL Module

2014-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: For any device that has hardware support for AES (AES-NI) AES-GCM is hands down a better choice of cipher. It is secure, has no issues in the spec itself, and it is *fast*, like 900MB/s for AES-128-GCM on a Sandy Bridge Xeon w/ AES-NI (ChaCha20Poly1305 got

[issue20995] Use Better Default Ciphers for the SSL Module

2014-04-23 Thread Donald Stufft
Donald Stufft added the comment: I think performance isn't really relevant, except perhaps on very busy servers. A smartphone acting as a *client* certainly shouldn't need to download 20 MB/s of encrypted data. Well, if you factor out performance then ChaCha20Poly1305 and AES-GCM are more or

[issue20995] Use Better Default Ciphers for the SSL Module

2014-04-23 Thread Mark Kubacki
Mark Kubacki added the comment: Thanks for the detailed insight, Donald! And I certainly love the progress these changes here bring. :-) Perhaps limiting the scope to ChaCha20Poly1305 (»CCP«) has been a wrong approach of mine to explain my concerns: We should not refer to any particular

[issue21334] nntplib throws exceptions making sinntp unusable

2014-04-23 Thread randomcoder1
randomcoder1 added the comment: @Jakub Sure, I've submitted a patch in the sinntp googlecode issue tracker. When you have some time, please have a look at it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21334

[issue20995] Use Better Default Ciphers for the SSL Module

2014-04-23 Thread Alex Gaynor
Alex Gaynor added the comment: It would be great if we could rely on OpenSSL's ordering. It would be seriously fantastic. OpenSSL is best positioned to be able to do the right things, it's updated at the right times. It should be where we do this. Unfortunately the OpenSSL maintainers have

[issue21334] nntplib throws exceptions making sinntp unusable

2014-04-23 Thread randomcoder1
Changes by randomcoder1 randomcod...@gmail.com: -- resolution: - third party status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21334 ___

[issue21335] Update importlib.__init__ to reset _frozen_imnportlib's loader to SourceFileLoader

2014-04-23 Thread Brett Cannon
New submission from Brett Cannon: When importlib.__init__ tries to mask the fact that _frozen_importlib is frozen it should also reset __loader__ to be an instance of SourceFileLoader. This will allow tracebacks to include source lines thanks to SourceFileLoader.get_source(). --

[issue21335] Update importlib.__init__ to reset _frozen_importlib's loader to SourceFileLoader

2014-04-23 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- title: Update importlib.__init__ to reset _frozen_imnportlib's loader to SourceFileLoader - Update importlib.__init__ to reset _frozen_importlib's loader to SourceFileLoader ___ Python tracker

[issue20136] Logging: StreamHandler does not use OS line separator.

2014-04-23 Thread Vinay Sajip
Vinay Sajip added the comment: Please re-open. This is configurable in Python 3.2 and later using the terminator attribute, but this can't be added to 2.7 as it would constitute a new feature. -- ___ Python tracker rep...@bugs.python.org

[issue17160] test_urllib2net fails

2014-04-23 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: Well, ok, thanks :-) But I'm still wondering if it's not possible to use mocks for this test. or at least example.com (as in issue #20939) which is supposed to be more stable than python.org -- ___ Python

[issue17386] Bring Doc/make.bat as close to Doc/Makefile as possible

2014-04-23 Thread Zachary Ware
Zachary Ware added the comment: Having looked at this again, the current patch is just far bigger than it needs to be and tries to do too much, not to mention being rather out of date now. So, here's a much less ambitious, much simpler patch with many fewer ways it can go wrong (but also not

[issue21336] ntpath.splitdrive fails on None argument

2014-04-23 Thread Ben Ma
New submission from Ben Ma: import ntpath ntpath.splitdrive(None) Traceback (most recent call last): File stdin, line 1, in module File E:\python3\lib\ntpath.py, line 159, in splitdrive if p and len(p) 1: TypeError: object of type 'NoneType' has no len() Solution: (that I've found)

[issue21336] ntpath.splitdrive fails on None argument

2014-04-23 Thread Eric V. Smith
Eric V. Smith added the comment: Why are you passing None, and what would you expect the result to be? The function is documented as taking a string. -- nosy: +eric.smith type: crash - behavior ___ Python tracker rep...@bugs.python.org

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-04-23 Thread Ezio Melotti
Ezio Melotti added the comment: One of the Mercurial devs convinced me to pursue what I had initially proposed in msg197645 and write a merge script (attached). The script is still a proof of concept, it makes a few assumptions and doesn't handle all the cases, but I did a few tests and it

[issue17552] socket.sendfile()

2014-04-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: 1) I really don't like the use_fallback argument Apart from complicating the prototype, what do this bring? My initial thought was that the user might want to know *why* a file cannot be sent by using the fastest method and hence wants to see the original

[issue17552] socket.sendfile()

2014-04-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Note: my example about limiting the transfer speed does not really apply 'cause as this stands right now it cannot be used with non-blocking sockets. Other arguments do though and I hope it's clear that we need blocksize. --

[issue17552] socket.sendfile()

2014-04-23 Thread akira
akira added the comment: I really don't like the use_fallback argument .. I initially also thought so. But I've suggested the parameter to replace `(was_os_sendfile_used, os_sendfile_error)` returned value as a *trade off* between a slight complexity in the interface vs. allowing to detect

[issue20849] add exist_ok to shutil.copytree

2014-04-23 Thread Justin Myers
Changes by Justin Myers jus...@justinmyers.net: -- nosy: +justin.myers ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20849 ___ ___

[issue21332] subprocess bufsize=1 docs are misleading

2014-04-23 Thread akira
Changes by akira 4kir4...@gmail.com: -- nosy: +akira ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21332 ___ ___ Python-bugs-list mailing list

[issue9764] Tools/buildbot/external.bat should download and built tix

2014-04-23 Thread Zachary Ware
Zachary Ware added the comment: This is fixed in 3.5, PCbuild/tix.vcxproj builds Tix in Debug and Release modes. -- nosy: +zach.ware resolution: - fixed stage: needs patch - resolved status: open - closed versions: +Python 3.5 -Python 3.2 ___ Python

[issue9765] tcl-8 vs tcl8

2014-04-23 Thread Zachary Ware
Zachary Ware added the comment: PCbuild/tix.vcxproj explicitly sets TCL_DIR and TK_DIR in the command line used to build Tix, using the paths used by the rest of the solution and the Tools/buildbot scripts; would the attached patch now be acceptable (for 3.5 only)? -- nosy:

[issue9765] tcl-8 vs tcl8

2014-04-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: For 3.5, it's fine. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9765 ___

[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-04-23 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: Ok, let me dig into it and see if I can figure it out On 04/20/2014 05:10 PM, Ezio Melotti wrote: Ezio Melotti added the comment: Do you want to propose a patch? -- components: +Tests nosy: +ezio.melotti type: - behavior

[issue9765] tcl-8 vs tcl8

2014-04-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ff37fbcd4e8 by Zachary Ware in branch 'default': Issue #9765: Adjust where Tools/msi/msi.py looks for Tcl/Tk license terms. http://hg.python.org/cpython/rev/4ff37fbcd4e8 -- nosy: +python-dev ___ Python

[issue9765] tcl-8 vs tcl8

2014-04-23 Thread Zachary Ware
Zachary Ware added the comment: Done, thanks! -- assignee: - zach.ware resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9765

[issue21337] Add tests for Tix

2014-04-23 Thread Zachary Ware
New submission from Zachary Ware: We should have some tests for Tix, which currently has none. The Windows buildbots will be able to run the tests, but Tix is not guaranteed to be available elsewhere. -- components: Tests, Tkinter keywords: easy messages: 217089 nosy: zach.ware

[issue17552] socket.sendfile()

2014-04-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Considering the current indecision about certain design aspects I started a discussion on python-ideas: https://mail.python.org/pipermail/python-ideas/2014-April/027752.html -- ___ Python tracker

[issue17552] socket.sendfile()

2014-04-23 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17552 ___ ___

[issue19385] dbm.dumb should be consistent when the database is closed

2014-04-23 Thread Jim Jewett
Jim Jewett added the comment: _check_closed sounds like you expect it to be closed, and might even assert that it is closed, except that you want the check run even in release mode and/or it might fail. Since being closed is actually the unexpectedly broken state, I would prefer that you

[issue17305] IDNA2008 encoding missing

2014-04-23 Thread Derek Wilson
Derek Wilson added the comment: It is worth noting that the do exist some domains that have been registered in the past that work with IDNA2003 but not IDNA2008. There definitely needs to be IDNA2008 support, for my use case I need to attempt IDNA2008 and then fall back to IDNA2003. When

[issue19385] dbm.dumb should be consistent when the database is closed

2014-04-23 Thread Claudiu.Popa
Claudiu.Popa added the comment: gzip uses the same name, _check_closed, but your suggestion sounds good. I'll update the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19385 ___

[issue21331] Reversing an encoding with unicode-escape returns a different result

2014-04-23 Thread R. David Murray
R. David Murray added the comment: Using unicode_escape to decode non-ascii is simply wrong. It can't work. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21331 ___

[issue21331] Reversing an encoding with unicode-escape returns a different result

2014-04-23 Thread R. David Murray
R. David Murray added the comment: To understand why, understand that a byte string has no encoding inherent. So when you call b'utf8string'.decode('unicode_escape'), python has no way to know how to interpret the non-ascii characters in that bytestring. If you want the unicode_escape

[issue21331] Reversing an encoding with unicode-escape returns a different result

2014-04-23 Thread R. David Murray
R. David Murray added the comment: Also, I'm not sure what this should do, but what it does do doesn't look right: codecs.decode('ä', 'unicode-escape') 'ä' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21331

[issue19385] dbm.dumb should be consistent when the database is closed

2014-04-23 Thread Jim Jewett
Jim Jewett added the comment: I think the requested timing regression was for the non-broken case. When the database has NOT been closed, and keys() still works, will it be way slower than before? Note that I am not asking you to do that test (though the eventual committer might); the

[issue2159] dbmmodule inquiry function is performance prohibitive

2014-04-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: First, Python 2.4 has been out of support for a really long time. Deleting. Eric, let me clarify the situation, because this report is old and I forgot the details. I think current situation is this, when doing something like if db : DO_SOMETHING: a) If

[issue17552] socket.sendfile()

2014-04-23 Thread Guido van Rossum
Guido van Rossum added the comment: Can you also think about how this would be wrapped in asyncio? -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17552 ___

[issue16104] Compileall script: add option to use multiple cores

2014-04-23 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: Use multiprocessing in compileall script - Compileall script: add option to use multiple cores ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16104

[issue21338] Silent mode for compileall

2014-04-23 Thread Thomas Kluyver
New submission from Thomas Kluyver: The compileall module's command line interface has a -q (quiet) flag which suppresses most of the output, but it still prints error messages. I'd like an entirely silent mode with no output. My use case is byte-compiling Python files as part of a graphical

[issue21324] dbhash leaks random memory fragments to a database

2014-04-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I could be wrong, but I think this is an Oracle Berkeley DB bug. I contacted Oracle yesterday about this. Stand by. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21324

[issue21324] dbhash/bsddb leaks random memory fragments to a database

2014-04-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- title: dbhash leaks random memory fragments to a database - dbhash/bsddb leaks random memory fragments to a database ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21324

[issue21338] Silent mode for compileall

2014-04-23 Thread Ezio Melotti
Ezio Melotti added the comment: This seems a reasonable request. Do you want to propose a patch? -- keywords: +easy nosy: +ezio.melotti stage: - needs patch type: - enhancement versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org

  1   2   >