[ANN]: distlib 0.1.9 released on PyPI

2014-05-22 Thread Vinay Sajip
I've just released version 0.1.9 of distlib on PyPI [1]. For newcomers, distlib is a library of packaging functionality which is intended to be usable as the basis for third-party packaging tools. The main changes in this release are as follows:     Fixed issue #47: Updated binary launchers to

[RELEASED] Python 3.4.1

2014-05-22 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.1. Python 3.4.1 has over three hundred bugfixes and other improvements over 3.4.0. One notable change: the version of OpenSSL bundled with the Windows

PyDev 3.5.0 Released

2014-05-22 Thread Fabio Zadrozny
What is PyDev? --- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details

Re: Python and Math

2014-05-22 Thread wxjmfauth
Le jeudi 22 mai 2014 01:14:29 UTC+2, chris@noaa.gov a écrit : On Tuesday, May 20, 2014 5:51:27 AM UTC-7, Frank Millman wrote: I used it to install IPython, with the following results. First I ran 'pip install ipython', which worked. Then I read the IPython docs,

Re: Python and Math

2014-05-22 Thread Frank Millman
chris.bar...@noaa.gov wrote in message news:281f5806-8793-4fd2-877c-214927dda...@googlegroups.com... pip looked and saw that you already had it, so did nothing -- what did it report? In this caes: 'pip install -U ipython[notebook]' might have worked: -U means upgrade even if I already

Re: tkinter errors out without clear message

2014-05-22 Thread Serhiy Storchaka
21.05.14 20:19, Terry Reedy написав(ла): There is also the issue that TkVersion == 8.5 is underspecied -- there are multiple bugfix releases. root.call('info', 'patchlevel') returns more detailed info. -- https://mail.python.org/mailman/listinfo/python-list

转发: hi,How much time can transition to python3

2014-05-22 Thread who2are2...@gmail.com
hi, i learn python is 0.5 year, i'm so much love python, i come from non English speaking countries, Python2 coding problem has been troubling me, I started to learn the python3 now, But many libraries do not support python3, I know python3 publishing for many years. Why do so many libraries or

Re: 转发: hi,How much time can transition to python3

2014-05-22 Thread Ben Finney
who2are2...@gmail.com who2are2...@gmail.com writes: i learn python is 0.5 year, i'm so much love python, Welcome, you have found a very good programming language. I'm glad you like it. i come from non English speaking countries, Python2 coding problem has been troubling me, I started to

Perhaps it is because of your home page, still in the striking position put python2 download link,

2014-05-22 Thread lovePython999999
hi, i learn python is 0.5 year, i'm so much love python, i come from non English speaking countries, Python2 coding problem has been troubling me, I started to learn the python3 now, But many libraries do not support python3, I know python3 publishing for many years. Why do so many libraries or

Can Python do this? First steps, links to resources or complete software referals appreciated.

2014-05-22 Thread ed . cottam
Hi, I'm an academic and I want to find/adapt/create a script that will grab abstracts (150-250 words of text) from Google Scholar search results and sort them by relevance (e.g. keywords, keyword combinations, anything other way you can think of). Any of you guys know of a script that does

Python is horribly slow compared to bash!!

2014-05-22 Thread Chris Angelico
Figure some of you folks might enjoy this. Look how horrible Python performance is! http://thedailywtf.com/Articles/Best-of-Email-Brains,-Security,-Robots,-and-a-Risky-Click.aspx Actually, probably a lot of you folks already read TDWTF, but maybe some don't (yet). ChrisA --

hashing strings to integers for sqlite3 keys

2014-05-22 Thread Adam Funk
I'm using Python 3.3 and the sqlite3 module in the standard library. I'm processing a lot of strings from input files (among other things, values of headers in e-mail news messages) and suppressing duplicates using a table of seen strings in the database. It seems to me --- from past experience

Re: 转发: hi,How much time can transition to python3

2014-05-22 Thread lovePython999999
在 2014年5月22日星期四UTC+8下午5时38分57秒,Ben Finney写道: i learn python is 0.5 year, i'm so much love python, Welcome, you have found a very good programming language. I'm glad you like it. i come from non English speaking countries, Python2 coding problem has been

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Peter Otten
Adam Funk wrote: I'm using Python 3.3 and the sqlite3 module in the standard library. I'm processing a lot of strings from input files (among other things, values of headers in e-mail news messages) and suppressing duplicates using a table of seen strings in the database. It seems to me

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Chris Angelico
On Thu, May 22, 2014 at 9:47 PM, Adam Funk a24...@ducksburg.com wrote: I'm using Python 3.3 and the sqlite3 module in the standard library. I'm processing a lot of strings from input files (among other things, values of headers in e-mail news messages) and suppressing duplicates using a table

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Tim Chase
On 2014-05-22 12:47, Adam Funk wrote: I'm using Python 3.3 and the sqlite3 module in the standard library. I'm processing a lot of strings from input files (among other things, values of headers in e-mail news messages) and suppressing duplicates using a table of seen strings in the database.

Re: Python is horribly slow compared to bash!!

2014-05-22 Thread wxjmfauth
Le jeudi 22 mai 2014 12:54:22 UTC+2, Chris Angelico a écrit : Figure some of you folks might enjoy this. Look how horrible Python performance is! http://thedailywtf.com/Articles/Best-of-Email-Brains,-Security,-Robots,-and-a-Risky-Click.aspx Actually, probably a lot of you folks

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Adam Funk
On 2014-05-22, Peter Otten wrote: Adam Funk wrote: I'm using Python 3.3 and the sqlite3 module in the standard library. I'm processing a lot of strings from input files (among other things, values of headers in e-mail news messages) and suppressing duplicates using a table of seen strings

Re: Can Python do this? First steps, links to resources or complete software referals appreciated.

2014-05-22 Thread William Ray Wing
On May 22, 2014, at 6:03 AM, ed.cot...@gmail.com wrote: Hi, I'm an academic and I want to find/adapt/create a script that will grab abstracts (150-250 words of text) from Google Scholar search results and sort them by relevance (e.g. keywords, keyword combinations, anything other way you

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Adam Funk
On 2014-05-22, Chris Angelico wrote: On Thu, May 22, 2014 at 9:47 PM, Adam Funk a24...@ducksburg.com wrote: I'm using Python 3.3 and the sqlite3 module in the standard library. I'm processing a lot of strings from input files (among other things, values of headers in e-mail news messages)

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Adam Funk
On 2014-05-22, Tim Chase wrote: On 2014-05-22 12:47, Adam Funk wrote: I'm using Python 3.3 and the sqlite3 module in the standard library. I'm processing a lot of strings from input files (among other things, values of headers in e-mail news messages) and suppressing duplicates using a

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Chris Angelico
On Thu, May 22, 2014 at 11:41 PM, Adam Funk a24...@ducksburg.com wrote: On further reflection, I think I asked for that. In fact, the table I'm using only has one column for the hashes --- I wasn't going to store the strings at all in order to save disk space (maybe my mind is stuck in the

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Chris Angelico
On Thu, May 22, 2014 at 11:54 PM, Adam Funk a24...@ducksburg.com wrote: from hashlib import sha1 s = Hello world h = sha1(s) h.hexdigest() '7b502c3a1f48c8609ae212cdfb639dee39673f5e' int(h.hexdigest(), 16) 703993777145756967576188115661016000849227759454L That ties in with a

Re: daemon.DaemonContext

2014-05-22 Thread wonko
I know it's 4 years later, but I'm currently battling this myself. I do exactly this and yet it doesn't appear to be keeping the filehandler open. Nothing ever gets written to logs after I daemonize! -- https://mail.python.org/mailman/listinfo/python-list

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Adam Funk
On 2014-05-22, Chris Angelico wrote: On Thu, May 22, 2014 at 11:41 PM, Adam Funk a24...@ducksburg.com wrote: On further reflection, I think I asked for that. In fact, the table I'm using only has one column for the hashes --- I wasn't going to store the strings at all in order to save disk

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread alister
On Thu, 22 May 2014 12:47:31 +0100, Adam Funk wrote: I'm using Python 3.3 and the sqlite3 module in the standard library. I'm processing a lot of strings from input files (among other things, values of headers in e-mail news messages) and suppressing duplicates using a table of seen strings

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Adam Funk
On 2014-05-22, Chris Angelico wrote: On Thu, May 22, 2014 at 11:54 PM, Adam Funk a24...@ducksburg.com wrote: That ties in with a related question I've been wondering about lately (using MD5s SHAs for other things) --- getting a hash value (which is internally numeric, rather than string,

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Chris Angelico
On Fri, May 23, 2014 at 12:47 AM, Adam Funk a24...@ducksburg.com wrote: I don't know that there is, at least not with hashlib. You might be able to use digest() followed by the struct module, but it's no less convoluted. It's the same in several other languages' hashing functions; the result

Re: daemon.DaemonContext and logging

2014-05-22 Thread wonko
On Saturday, April 10, 2010 11:52:41 PM UTC-4, Ben Finney wrote: pid = daemon.pidlockfile.TimeoutPIDLockFile( /tmp/dizazzo-daemontest.pid, 10) Has pidlockfile been removed? (1.6) -brian -- https://mail.python.org/mailman/listinfo/python-list

Re: daemon.DaemonContext

2014-05-22 Thread wonko
On Thursday, May 22, 2014 10:31:11 AM UTC-4, wo...@4amlunch.net wrote: I know it's 4 years later, but I'm currently battling this myself. I do exactly this and yet it doesn't appear to be keeping the filehandler open. Nothing ever gets written to logs after I daemonize! Ok, made it work,

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread Peter Otten
Adam Funk wrote: On 2014-05-22, Chris Angelico wrote: On Thu, May 22, 2014 at 11:54 PM, Adam Funk a24...@ducksburg.com wrote: That ties in with a related question I've been wondering about lately (using MD5s SHAs for other things) --- getting a hash value (which is internally numeric,

Re: daemon.DaemonContext

2014-05-22 Thread Ethan Furman
On 05/22/2014 07:31 AM, wo...@4amlunch.net wrote: I know it's 4 years later, but I'm currently battling this myself. I do exactly this and yet it doesn't appear to be keeping the filehandler open. Nothing ever gets written to logs after I daemonize! You didn't include any context (important

shebang windows: call an extensionless git hook

2014-05-22 Thread Albert-Jan Roskam
Hi, I wrote the git pre-commit hook below. It is supposed to reject commits that contain large files (e.g. accidental commits by inexperienced users, think of git add .) Anyway, I tried this under Linux, but the target platform is Windows. As per Git design the hook name *must* be pre-commit

Re: All-numeric script names and import

2014-05-22 Thread Xavier de Gaye
On 05/21/2014 03:46 PM, Chris Angelico wrote: If I have a file called 1.py, is there a way to import it? Obviously I can't import it as itself, but in theory, it should be possible to import something from it. I can manage it with __import__ (this is Python 2.7 I'm working on, at least for

Re: All-numeric script names and import

2014-05-22 Thread Xavier de Gaye
On 05/22/2014 12:32 PM, Xavier de Gaye wrote: import 1.py as module_1 on Python 2.7 (module_1 is not inserted in sys.modules): import imp module_1 = imp.new_module('module_1') execfile('1.py', module_1.__dict__) del module_1.__dict__['__builtins__'] Oups.. should not remove the

Re: All-numeric script names and import

2014-05-22 Thread Chris Angelico
On Thu, May 22, 2014 at 8:32 PM, Xavier de Gaye xdeg...@gmail.com wrote: import 1.py as module_1 on Python 2.7 (module_1 is not inserted in sys.modules): import imp module_1 = imp.new_module('module_1') execfile('1.py', module_1.__dict__) del module_1.__dict__['__builtins__'] Heh, I think

Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread Aseem Bansal
I am working on a hobby project - a Bookmarker https://github.com/anshbansal/Bookmarker. Basically bookmarks like in webbrowser stored in a app. The twist is storage by categories. I have spent some time on choosing the correct tech for making this project but it seems it would be better to

Re: daemon.DaemonContext and logging

2014-05-22 Thread Mark H Harris
On 5/22/14 10:28 AM, wo...@4amlunch.net wrote: On Saturday, April 10, 2010 11:52:41 PM UTC-4, Ben Finney wrote: pid = daemon.pidlockfile.TimeoutPIDLockFile( /tmp/dizazzo-daemontest.pid, 10) Has pidlockfile been removed? (1.6) -brian Have you released the inertial dampener?

Re: Python is horribly slow compared to bash!!

2014-05-22 Thread Mark H Harris
On 5/22/14 5:54 AM, Chris Angelico wrote: Figure some of you folks might enjoy this. Look how horrible Python performance is! http://thedailywtf.com/Articles/Best-of-Email-Brains,-Security,-Robots,-and-a-Risky-Click.aspx From TDWTF: Most of the interesting physics analysis code here is

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread John Gordon
In 6a3c5b20-bce5-4c95-b27f-3840e9cc7...@googlegroups.com Aseem Bansal asmbans...@gmail.com writes: But I hit a snag today that webbrowser's won't allow client to open hyperlinks with file protocol. I have both offline and online bookmarks so that was a problem for me. What do you mean by

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread Mark H Harris
On 5/22/14 1:54 PM, Aseem Bansal wrote: I am working on a hobby project - a Bookmarker{snip} hi, no django is not really the correct tool-set. Django is for server-side content management, but who knows, you might come up with a great hack (I don't want to discourage you). But, a straight

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread Ian Kelly
On Thu, May 22, 2014 at 1:28 PM, John Gordon gor...@panix.com wrote: In 6a3c5b20-bce5-4c95-b27f-3840e9cc7...@googlegroups.com Aseem Bansal asmbans...@gmail.com writes: But I hit a snag today that webbrowser's won't allow client to open hyperlinks with file protocol. I have both offline and

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread John Gordon
In mailman.10231.1400789042.18130.python-l...@python.org Ian Kelly ian.g.ke...@gmail.com writes: My web browser works just fine with links such as this: a href=file:///C:/Users/gordonj/Documents/foo.htmlfoo.html/a It works if the document that contains the link is also opened from the

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread Ethan Furman
On 05/22/2014 11:54 AM, Aseem Bansal wrote: I am working on a hobby project - a Bookmarker https://github.com/anshbansal/Bookmarker. Take a look at delicio.us -- it seems to be a similar type of experience. -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: All-numeric script names and import

2014-05-22 Thread Rustom Mody
On Wednesday, May 21, 2014 7:16:46 PM UTC+5:30, Chris Angelico wrote: If I have a file called 1.py, is there a way to import it? Obviously I can't import it as itself, but in theory, it should be possible to import something from it. I can manage it with __import__ (this is Python 2.7 I'm

Re: All-numeric script names and import

2014-05-22 Thread Chris Angelico
On Fri, May 23, 2014 at 12:08 PM, Rustom Mody rustompm...@gmail.com wrote: $ cat ا.py x = 1 def foo(x): print(Hi %s!! % x) Yeah, no thanks. I am not naming my scripts in Arabic. :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread STINNER Victor
STINNER Victor added the comment: Have you considered whether the genererated PYC files need a different magic number or some other way to indicate that they aren't production code? Would it make sense to use a different sys.implementation.cache_tag? For example, the tag si currently

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread STINNER Victor
STINNER Victor added the comment: Oh, another option to solve the .pyc file issue is to *not* write .pyc files if the peephole optimizer is disabled. If you disable an optimizer, you probably don't care of performances. -- ___ Python tracker

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread Ned Batchelder
Ned Batchelder added the comment: I thought we were discussing this on Python-Ideas? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: If you are thinking TL;DR: This fails on FreeBSD: signal.signal(signal.SIGRTMAX, lambda *a: None) Traceback (most recent call last): File stdin, line 1, in module ValueError: signal number out of range Although of infrequent use, I doubt that this is

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread STINNER Victor
STINNER Victor added the comment: The current implementation of _signal requires a limit on the number of signals to its internal array used to store Python callback: static volatile struct { sig_atomic_t tripped; PyObject *func; } Handlers[NSIG]; If you want to kill the arbitrary

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-22 Thread David Harrigan
David Harrigan added the comment: I've added the example and modified the final comment. -- keywords: +patch nosy: +David.Harrigan Added file: http://bugs.python.org/file35311/datastructures.patch ___ Python tracker rep...@bugs.python.org

[issue21552] String length overflow in Tkinter

2014-05-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Tkinter converts str argument to C string and then pass it to Tcl. But Tcl handles string length as int and it can overflow if strlen() returns value INT_MAX. Proposed patch introduces special conversion functions which ensure that string length will not

[issue21552] String length overflow in Tkinter

2014-05-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file35313/tkinter_strlen_overflow-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21552 ___

[issue19662] smtpd.py should not decode utf-8

2014-05-22 Thread R. David Murray
R. David Murray added the comment: Yes, this will be fixed in 3.5 one way or another. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19662 ___

[issue19662] smtpd.py should not decode utf-8

2014-05-22 Thread Maciej Szulik
Maciej Szulik added the comment: I'll try to take care of this issue in the following few days. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19662 ___

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread mythsmith
New submission from mythsmith: I found a condition where different behaviour could be observed depending on how a module is imported. It seems to be different to write: import module # against: from package import module In the attachment you find a minimal package (imptest) with this

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21553 ___

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2014-05-22 Thread Zachary Ware
Zachary Ware added the comment: Thank you, Serhiy; those are exactly the kinds of things I don't know enough about and had concerns about. I'll take another stab and see if I can come up with anything better. Suggestions welcome :) -- ___ Python

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread Peter Otten
Peter Otten added the comment: Here's a simpler demo for what I believe you are experiencing: $ mkdir package $ cd package/ $ touch __ini__.py module.py $ export PYTHONPATH=.. $ python3 Python 3.3.2+ (default, Feb 28 2014, 00:52:16) [GCC 4.8.1] on linux Type help, copyright, credits or license

[issue21554] Possible Error in Brief Tour of the Standard Library

2014-05-22 Thread Erik Kusko
New submission from Erik Kusko: In https://docs.python.org/3/tutorial/stdlib.html, there is an example: import shutil shutil.copyfile('data.db', 'archive.db') shutil.move('/build/executables', 'installdir') Should it not be: import shutil shutil.copyfile('data.db', 'archive.db')

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread Eric Snow
Eric Snow added the comment: This is a consequence of a script's directory getting prepended to sys.path. See issue #13475. -- resolution: - duplicate stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue21554] Possible Error in Brief Tour of the Standard Library

2014-05-22 Thread R. David Murray
R. David Murray added the comment: Yes, this is a recent enhancement and the example was not updated to match. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21554

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: You're right, CPU time is burnt by stackdepth_walk(). The underlying issue is that max stacksize is computed a bit pessimistically with the new opcodes (JUMP_IF_{TRUE,FALSE}_OR_POP). On normal functions there wouldn't be a sizable difference, but on

[issue15293] AST nodes do not support garbage collection

2014-05-22 Thread Charles-François Natali
Charles-François Natali added the comment: Would it be possible to backport this to 2.7? We've been bitten by this at work (pyflakes introduces reference cycles in AST). -- nosy: +neologix ___ Python tracker rep...@bugs.python.org

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file35315/stackdepth.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21523 ___

[issue21455] add default backlog to socket.listen()

2014-05-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09371221e59d by Charles-François Natali in branch 'default': Issue #21455: Add a default backlog to socket.listen(). http://hg.python.org/cpython/rev/09371221e59d -- nosy: +python-dev ___ Python tracker

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch adding some tests. -- stage: - patch review versions: -Python 3.3 Added file: http://bugs.python.org/file35316/stackdepth2.patch ___ Python tracker rep...@bugs.python.org

[issue15293] AST nodes do not support garbage collection

2014-05-22 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15293 ___ ___ Python-bugs-list

[issue21555] gcmodule.c could use pytime.h

2014-05-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: gcmodule.c is able to displayed elapsed time of garbage collection runs. It currently does it by poking inside the time module to call time.time() and convert it to a C double. It could instead use the new pytime.h facilities. -- components:

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: If you want to kill the arbitrary limit, you need to change this structure. Or the structure could simply host up to 256 handlers, regardless of NSIG. I'm uncomfortable with tweaking NSIG specifically for FreeBSD. If the FreeBSD headers export the wrong

[issue21555] gcmodule.c could use pytime.h

2014-05-22 Thread Sunny K
Changes by Sunny K sunfin...@gmail.com: -- nosy: +sunfinite ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21555 ___ ___ Python-bugs-list mailing

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread Charles-François Natali
Charles-François Natali added the comment: Or the structure could simply host up to 256 handlers, regardless of NSIG. I'm uncomfortable with tweaking NSIG specifically for FreeBSD. If the FreeBSD headers export the wrong value, it's not really Python's problem. Agreed. And the current code

[issue21534] 404 on documentation download links

2014-05-22 Thread Zachary Ware
Zachary Ware added the comment: Reports continue to pour in on docs@, 25 reports for 2.7.7rc1 and 3.4.1 so far by my count. Is there anything I can do to help on this? It looks to me like the files just haven't been uploaded, but I don't know where exactly they should be uploaded to, nor do

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread STINNER Victor
STINNER Victor added the comment: Extract of system signal.h: #if __BSD_VISIBLE #define NSIG32 /* number of old signals (counting 0) */ #endif whereas sys/_sigset.h contains: #define _SIG_MAXSIG 128 In signalmodule.c, NSIG is still important in the function

[issue21534] 404 on documentation download links

2014-05-22 Thread Ned Deily
Ned Deily added the comment: At the moment, the links for 3.4.1 documentation downloads at https://docs.python.org/3/download.html appear to be working AFAICT; anyone see otherwise? However, the 2.7.7rc1 links are broken (https://docs.python.org/2/download.html). Benjamin? -- nosy:

[issue21554] Possible Error in Brief Tour of the Standard Library

2014-05-22 Thread David Harrigan
Changes by David Harrigan dharrigan...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file35318/stdlib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21554 ___

[issue21534] 404 on documentation download links

2014-05-22 Thread Zachary Ware
Zachary Ware added the comment: You're right, Ned; 3.4.1 is working for me now, but 2.7.7rc1 is still broken. (Sorry for not checking again!) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21534

[issue21455] add default backlog to socket.listen()

2014-05-22 Thread Charles-François Natali
Charles-François Natali added the comment: Committed, thanks! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21455

[issue21556] try to use hashtable in pickle

2014-05-22 Thread Charles-François Natali
New submission from Charles-François Natali: This patch is an attempt at making pickle use Modules/hashtable.{h,c} instead of its hash table ad-hoc implementation for its memoization table. I'm saying attempt, because although it works correctly, some benchmarks are actually slower. I didn't

[issue21555] gcmodule.c could use pytime.h

2014-05-22 Thread Maciej Szulik
Changes by Maciej Szulik solt...@gmail.com: -- nosy: +maciej.szulik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21555 ___ ___ Python-bugs-list

[issue21557] os.popen os.system lack shell-related security warnings

2014-05-22 Thread Chris Rebert
New submission from Chris Rebert: Since these functions run shell commands, which is a common vector for security-related bugs (see * http://cwe.mitre.org/data/definitions/78.html * http://cwe.mitre.org/data/definitions/88.html ), I suggest that they should have security warning boxes analogous

[issue16442] PATH_MAX vs MAXPATHLEN vs pathconf(..., _PC_PATH_MAX).

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16442 ___ ___ Python-bugs-list

[issue18061] m68k Python 3.3 test results

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18061 ___ ___ Python-bugs-list

[issue20260] Argument Clinic: add unsigned integers converters

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20260 ___ ___ Python-bugs-list

[issue19463] assertGdbRepr depends on hash randomization / endianess

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19463 ___ ___ Python-bugs-list

[issue20260] Argument Clinic: add unsigned integers converters

2014-05-22 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20260 ___ ___

[issue15989] Possible integer overflow of PyLong_AsLong() results

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15989 ___ ___ Python-bugs-list

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20015 ___ ___ Python-bugs-list

[issue19533] Unloading docstrings from memory if -OO is given

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19533 ___ ___ Python-bugs-list

[issue21261] Teach IDLE to Autocomplete dictionary keys

2014-05-22 Thread Jason Browne
Changes by Jason Browne thecodede...@gmail.com: -- nosy: +cdspace ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21261 ___ ___ Python-bugs-list

[issue19531] Loading -OO bytecode files if -O was requested can lead to problems

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19531 ___ ___ Python-bugs-list

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks like the correct solution. That said, I'm more impressed that you were able to test it so cleanly :-) -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Victor] Oh, another option to solve the .pyc file issue is to *not* write .pyc files if the peephole optimizer is disabled. If you disable an optimizer, you probably don't care of performances. That is an inspired idea and would help address one of the

[issue21554] Possible Error in Brief Tour of the Standard Library

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21554 ___

[issue21383] make touch fails when the build directory is not the source directory

2014-05-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1fd37eefa141 by Ned Deily in branch '2.7': Issue #21383: Allow make touch to work when building outside of the http://hg.python.org/cpython/rev/1fd37eefa141 New changeset 6f85967c908e by Ned Deily in branch '2.7': Issue #21383: OS X installer

[issue21383] make touch fails when the build directory is not the source directory

2014-05-22 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21383 ___ ___ Python-bugs-list mailing

[issue21556] try to use hashtable in pickle

2014-05-22 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +alexandre.vassalotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21556 ___ ___ Python-bugs-list

[issue21554] Possible Error in Brief Tour of the Standard Library

2014-05-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset e07e347688a0 by Raymond Hettinger in branch '3.4': Issue 21554: Repair an out-of-date tutorial example to reflect changes in shutil. http://hg.python.org/cpython/rev/e07e347688a0 -- nosy: +python-dev

  1   2   >