Re: Hello Everyone! A simple questions!

2013-07-26 Thread Thanatos xiao
Thanks I just surprised by three dot 2013/7/26 Florian Baumgartner bflori...@gmail.com As alex23 already indicated you created a recursive data-structure (by inserting a reference to the list into the second place of the list) and the interpreter handles this gracefully by showing [...].

embedded python and threading

2013-07-26 Thread David M. Cotter
in my app i initialize python on the main thread, then immediately call PyEval_SaveThread() because i do no further python stuff on the main thread. then, for each script i want to run, i use boost::threads to create a new thread, then on that thread i ensure the GIL, do my stuff, then release

Re: How to tick checkboxes with the same name?

2013-07-26 Thread Peter Otten
malay...@gmail.com wrote: вторник, 23 июля 2013 г., 11:25:00 UTC+4 пользователь Peter Otten написал: malay...@gmail.com wrote: For all but the most popular projects a url works wonders. I'm assuming http://grablib.org Well, I have read the documentation, I guess the problem lies in

Newbie: Python 3 and web applications?

2013-07-26 Thread Rui Maciel
I'm currently learning Python, and I've been focusing on Python3. To try to kill two birds with one stone, I would also like to learn the basics of writing small web applications. These web applications don't need to do much more than provide an interface to a small database, and they may

Re: Hello Everyone! A simple questions!

2013-07-26 Thread Florian Baumgartner
As alex23 already indicated you created a recursive data-structure (by inserting a reference to the list into the second place of the list) and the interpreter handles this gracefully by showing [...]. In case you really want to insert the lists members into the second place you can assign a copy

Re: embedded python and threading

2013-07-26 Thread Stefan Behnel
David M. Cotter, 26.07.2013 08:15: in my app i initialize python on the main thread, then immediately call PyEval_SaveThread() because i do no further python stuff on the main thread. then, for each script i want to run, i use boost::threads to create a new thread, then on that thread i

Re: Python Script Hashplings

2013-07-26 Thread Devyn Collier Johnson
On 07/25/2013 09:54 AM, MRAB wrote: On 25/07/2013 14:42, Devyn Collier Johnson wrote: If I execute a Python3 script with this haspling (#!/usr/bin/python3.3) and Python3.3 is not installed, but Python3.2 is installed, would the script still work? Would it fall back to Python3.2? Why don't

Re: Critic my module

2013-07-26 Thread Devyn Collier Johnson
On 07/25/2013 09:58 AM, Schneider wrote: Hi, nice idea. mybe - for security reasons - you should ensure, that the right tool is called and not some tool put the path with the same name. bg, Johannes On Thu 25 Jul 2013 03:24:30 PM CEST, Devyn Collier Johnson wrote: Aloha Python Users!

Re: Python Script Hashplings

2013-07-26 Thread Devyn Collier Johnson
On 07/25/2013 10:01 AM, Matthew Lefavor wrote: The answer is probably not. If you just want to use the latest version of Python 3 you have installed on your system, use: #!/usr/bin/python3. When you use the specific minor version numbers, they point to that specific minor version. Actually,

Re: Python Script Hashplings

2013-07-26 Thread Chris Angelico
On Fri, Jul 26, 2013 at 11:37 AM, Devyn Collier Johnson devyncjohn...@gmail.com wrote: On 07/25/2013 09:54 AM, MRAB wrote: On 25/07/2013 14:42, Devyn Collier Johnson wrote: If I execute a Python3 script with this haspling (#!/usr/bin/python3.3) and Python3.3 is not installed, but Python3.2

Re: Python Script Hashplings

2013-07-26 Thread Tim Golden
On 26/07/2013 11:37, Devyn Collier Johnson wrote: On 07/25/2013 09:54 AM, MRAB wrote: On 25/07/2013 14:42, Devyn Collier Johnson wrote: If I execute a Python3 script with this haspling (#!/usr/bin/python3.3) and Python3.3 is not installed, but Python3.2 is installed, would the script still

Re: Critic my module

2013-07-26 Thread Devyn Collier Johnson
On 07/25/2013 10:09 AM, Alain Ketterlin wrote: Devyn Collier Johnson devyncjohn...@gmail.com writes: I made a Python3 module that allows users to use certain Linux shell commands from Python3 more easily than using os.system(), subprocess.Popen(), or subprocess.getoutput(). This module

Re: virtualenv problem

2013-07-26 Thread D. Xenakis
Yeah trying to run virtualenv under IDLE was a desperate move as i couldnt make anything work under cmd. Apparently my problem was that i did not have correctly setup the new path.. Solution for me was the following from

Re: RE Module Performance

2013-07-26 Thread wxjmfauth
Le jeudi 25 juillet 2013 22:45:38 UTC+2, Ian a écrit : On Thu, Jul 25, 2013 at 12:18 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 26 Jul 2013 01:36:07 +1000, Chris Angelico wrote: On Fri, Jul 26, 2013 at 1:26 AM, Steven D'Aprano

Re: RE Module Performance

2013-07-26 Thread wxjmfauth
Le vendredi 26 juillet 2013 05:09:34 UTC+2, Michael Torrie a écrit : On 07/25/2013 11:18 AM, Steven D'Aprano wrote: JMF has explained that it is impossible, impossible I say!, to write an editor using a flexible string representation. Since Emacs uses such a flexible string

Re: PyGLet, 2to3...?

2013-07-26 Thread Jerry Hill
On Thu, Jul 25, 2013 at 7:49 PM, John Ladasky john_lada...@sbcglobal.net wrote: === john@john:~/Desktop/pyglet-1.2alpha1$ sudo python3 setup.py install [sudo] password for john: running install running build running build_py running install_lib

Re: RE Module Performance

2013-07-26 Thread wxjmfauth
Le vendredi 26 juillet 2013 05:20:45 UTC+2, Ian a écrit : On Thu, Jul 25, 2013 at 8:48 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: UTF-8 uses a flexible representation on a character-by-character basis. When parsing UTF-8, one needs to look at EVERY character to

Re: Python Script Hashplings

2013-07-26 Thread MRAB
On 26/07/2013 11:43, Chris Angelico wrote: On Fri, Jul 26, 2013 at 11:37 AM, Devyn Collier Johnson devyncjohn...@gmail.com wrote: On 07/25/2013 09:54 AM, MRAB wrote: On 25/07/2013 14:42, Devyn Collier Johnson wrote: If I execute a Python3 script with this haspling (#!/usr/bin/python3.3)

RE: Creating a Simple User Interface for a Function

2013-07-26 Thread Prasad, Ramit
CTSB01 wrote: On Thursday, July 25, 2013 3:19:27 PM UTC-4, Dave Angel wrote: On 07/25/2013 12:03 PM, CTSB01 wrote: I have the following code that runs perfectly: def psi_j(x, j): rtn = [] for n2 in range(0, len(x) * j - 2): n =

Re: Python Script Hashplings

2013-07-26 Thread Chris Angelico
On Fri, Jul 26, 2013 at 2:53 PM, MRAB pyt...@mrabarnett.plus.com wrote: If you want to test what would happen if that version wasn't installed, set the shebang line to a future version, such as Python 3.4. I doubt you have that installed! :-) Be careful, some people DO have a python3.4 binary

Re: Newbie: Python 3 and web applications?

2013-07-26 Thread John Gordon
In kstdma$pir$1...@dont-email.me Rui Maciel rui.mac...@gmail.com writes: I'm currently learning Python, and I've been focusing on Python3. To try to kill two birds with one stone, I would also like to learn the basics of writing small web applications. These web applications don't need

Re: PyGLet, 2to3...?

2013-07-26 Thread Kushal Kumaran
John Ladasky john_lada...@sbcglobal.net writes: On Thursday, July 25, 2013 3:26:01 PM UTC-7, John Ladasky wrote: I'll try again from scratch, and see whether that clears up my problems. Nope, that didn't work. === john@john:~/Desktop/pyglet-1.2alpha1$

Re: Python Script Hashplings

2013-07-26 Thread Matthew Lefavor
Thanks Matthew Lefavor! But specifically, why use #!/usr/bin/env python3 instead of #!/usr/bin/python3? The env program looks up its argument in the current $PATH environment variable, and then executes that. This means you aren't necessarily tied to /usr/bin/python3. It makes things more

Re: Critic my module

2013-07-26 Thread Alister
The main point of this is for shell users that are using Python and do not know some of the Python commands. This module would make Python more like a Linux shell. For instance, a shell user would type boash.uname() because they may not know they can type import platform; platform.uname().

RE: Python Script Hashplings

2013-07-26 Thread Prasad, Ramit
Devyn Collier Johnson wrote: Thanks Matthew Lefavor! But specifically, why use #!/usr/bin/env python3 instead of #!/usr/bin/python3? Mahalo, DCJ I believe this will work on Windows for Python 3.3+ and also with virtualenv. https://pypi.python.org/pypi/virtualenv Virtualenv is highly

Re: RE Module Performance

2013-07-26 Thread wxjmfauth
Le vendredi 26 juillet 2013 05:20:45 UTC+2, Ian a écrit : On Thu, Jul 25, 2013 at 8:48 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: UTF-8 uses a flexible representation on a character-by-character basis. When parsing UTF-8, one needs to look at EVERY character to

Re: how to package embedded python?

2013-07-26 Thread David M. Cotter
does nobody know how to do this? does nobody know where proper documentation on this is? -- http://mail.python.org/mailman/listinfo/python-list

Re: embedded python and threading

2013-07-26 Thread David M. Cotter
okay, i have simplified it: here is the code == import time def main(): while True: print i'm alive time.sleep(0.25) #- if __name__ == __main__: main()

Re: embedded python and threading

2013-07-26 Thread David Robinow
Works for me. Except that if I then do: touch time.py I get the same error as you do. Can you figure out the problem now? On Fri, Jul 26, 2013 at 11:57 AM, David M. Cotter m...@davecotter.com wrote: okay, i have simplified it: here is the code ==

Re: embedded python and threading

2013-07-26 Thread John Gordon
In 965b463e-e5bf-4ccd-9a3c-b0cb964b3...@googlegroups.com David M. Cotter m...@davecotter.com writes: == 9: Traceback (most recent call last): 9: File string, line 10, in ? 9: File string, line 6, in main 9: AttributeError:

Re: Critic my module

2013-07-26 Thread Joshua Landau
On 26 July 2013 16:08, Alister alister.w...@ntlworld.com wrote: The main point of this is for shell users that are using Python and do not know some of the Python commands. This module would make Python more like a Linux shell. For instance, a shell user would type boash.uname() because

Re: embedded python and threading

2013-07-26 Thread David M. Cotter
no, there is no time.py anywhere (except perhaps as the actual python library originally imported) did you understand that the function works perfectly, looping as it should, up until the time i run a second script on a separate thread? -- http://mail.python.org/mailman/listinfo/python-list

Re: embedded python and threading

2013-07-26 Thread David M. Cotter
DOH! as my second thread, i had been using a sample script that i had copy-pasted without much looking at it. guess what? it prints the time. and yes, it did from time import time, which explains it all. thanks for the hints here, that helped me figure it out! --

Re: embedded python and threading

2013-07-26 Thread Stefan Behnel
David M. Cotter, 26.07.2013 19:28: DOH! as my second thread, i had been using a sample script that i had copy-pasted without much looking at it. guess what? it prints the time. and yes, it did from time import time, which explains it all. Ah, and you were using the same globals dict for

dump a multi dimensional dictionary

2013-07-26 Thread cerr
Hi, Can I somehow use pickle.dump() to store a dictionary of lists to a file? I tried this: import pickle mylist = [] mydict = {} mylist = '1','2' mydict['3'] = mylist fhg = open (test, 'w') pickle.dump(fhg,mydict) Traceback (most recent call last):

Re: dump a multi dimensional dictionary

2013-07-26 Thread John Gordon
In efdc6f6b-c061-4d3d-9d02-c397f8953...@googlegroups.com cerr ron.egg...@gmail.com writes: Can I somehow use pickle.dump() to store a dictionary of lists to a file? I tried this: import pickle mylist = [] mydict = {} mylist = '1','2' mydict['3'] = mylist

RE: dump a multi dimensional dictionary

2013-07-26 Thread Prasad, Ramit
cerr wrote: Hi, Can I somehow use pickle.dump() to store a dictionary of lists to a file? I tried this: import pickle mylist = [] mydict = {} mylist = '1','2' mydict['3'] = mylist fhg = open (test, 'w') pickle.dump(fhg,mydict) Traceback (most

Re: Python Script Hashplings

2013-07-26 Thread Ben Finney
Tim Golden m...@timgolden.me.uk writes: Devyn, I'm not a *nix person so someone can point out if I'm wrong, but my understanding is that the shebang line (or whatever you want to call it) just tells the shell: run this command to run this file. So you can put #!/usr/bin/fish-and-chips as the

Re: Python Script Hashplings

2013-07-26 Thread Devyn Collier Johnson
On 07/26/2013 10:14 AM, Chris Angelico wrote: On Fri, Jul 26, 2013 at 2:53 PM, MRAB pyt...@mrabarnett.plus.com wrote: If you want to test what would happen if that version wasn't installed, set the shebang line to a future version, such as Python 3.4. I doubt you have that installed! :-) Be

Re: dump a multi dimensional dictionary

2013-07-26 Thread Chris Angelico
On Fri, Jul 26, 2013 at 9:21 PM, cerr ron.egg...@gmail.com wrote: mylist = [] mydict = {} mylist = '1','2' Side point: mylist is no longer a list, it's a tuple. I don't think pickle has problems with tuples, but it's worth noting that difference. ChrisA --

Re: PyGLet, 2to3...?

2013-07-26 Thread John Ladasky
On Thursday, July 25, 2013 4:49:16 PM UTC-7, John Ladasky wrote: On Thursday, July 25, 2013 3:26:01 PM UTC-7, John Ladasky wrote: I'll try again from scratch, and see whether that clears up my problems. Nope, that didn't work. Thanks to both Jerry and Kushal. You were right, I was doing

Re: PyGLet, 2to3...?

2013-07-26 Thread John Ladasky
I'm making progress, but I'm not out of the woods yet. I'm trying to run some of the programs from the tutorial web pages, and from the pyglet1.2alpha1/examples directory. I've realized that I will probably need to run 2to3 on the many of the latter. The Hello, World example runs.

Re: RE Module Performance

2013-07-26 Thread Michael Torrie
On 07/26/2013 07:21 AM, wxjmfa...@gmail.com wrote: sys.getsizeof('––') - sys.getsizeof('–') I have already explained / commented this. Maybe it got lost in translation, but I don't understand your point with that. Hint: To understand Unicode (and every coding scheme), you should understand

Re: Critic my module

2013-07-26 Thread Steven D'Aprano
As requested, some constructive criticism of your module. On Thu, 25 Jul 2013 09:24:30 -0400, Devyn Collier Johnson wrote: #!/usr/bin/python3 #Made by Devyn Collier Johnson, NCLA, Linux+, LPIC-1, DCTS What's NCLA, Linux+, LPIC-1, DCTS? Do these mean anything? Are we supposed to know what

Re: dump a multi dimensional dictionary

2013-07-26 Thread Steven D'Aprano
On Fri, 26 Jul 2013 13:21:47 -0700, cerr wrote: or should I just write my own dump function that can hanle thiS? Please advise! Given the choice between reading the documentation to pickle.dump: help(pickle.dump) or spending the next month writing a replacement for pickle, testing it,

Re: RE Module Performance

2013-07-26 Thread Steven D'Aprano
On Thu, 25 Jul 2013 21:20:45 -0600, Ian Kelly wrote: On Thu, Jul 25, 2013 at 8:48 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: UTF-8 uses a flexible representation on a character-by-character basis. When parsing UTF-8, one needs to look at EVERY character to decide how

Re: Help

2013-07-26 Thread tyler
Thank you everybody who replied. The problem is fixed now and the program is running correctly. I will also try to use your suggestions in the future to make sure I don't make the same mistake. Thanks again :). -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGLet, 2to3...?

2013-07-26 Thread John Ladasky
On Friday, July 26, 2013 6:19:48 PM UTC-7, John Ladasky wrote: I'm making progress, but I'm not out of the woods yet. And while I appreciate any comments that may appear here, I've just found the pyglet-users group... https://groups.google.com/forum/#!forum/pyglet-users ...so that's probably

Re: RE Module Performance

2013-07-26 Thread Ian Kelly
On Fri, Jul 26, 2013 at 9:37 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: See the similarity now? Both flexibly change the width used by code- points, UTF-8 based on the code-point itself regardless of the rest of the string, Python based on the largest code-point in the

Re: RE Module Performance

2013-07-26 Thread Steven D'Aprano
On Fri, 26 Jul 2013 22:12:36 -0600, Ian Kelly wrote: On Fri, Jul 26, 2013 at 9:37 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: See the similarity now? Both flexibly change the width used by code- points, UTF-8 based on the code-point itself regardless of the rest of the

Best python web framework to build university/academic website

2013-07-26 Thread b . krishna2020
Hi, I got a chance to build an university website, within very short period of time. I know web2py, little bit of Django, so please suggest me the best to build rapidly. Thanks in advance Raghu -- http://mail.python.org/mailman/listinfo/python-list

[issue18555] type_set_bases() doesn't check return value of PyArg_UnpackTuple()

2013-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: This appears to be harmless. The contents of the temp list are added by mro_subclasses, and that function only adds tuples of 2 elements. That means that the call to PyArg_UnpackTuple cannot fail. It might be better to explicitly document this, either using

[issue18555] type_set_bases() doesn't check return value of PyArg_UnpackTuple()

2013-07-26 Thread Christian Heimes
Christian Heimes added the comment: Ah, you are right! Good catch :) I have marked CID 486265 as intentional / ignore. -- priority: normal - low stage: needs patch - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18555

[issue8079] make install fails with -j8 with python2.6/config on FreeBSD

2013-07-26 Thread Christian Heimes
Christian Heimes added the comment: I have never seen that kind of error with Python 2.7 or 3.3+. It's probably fixed. -- nosy: +christian.heimes resolution: - out of date stage: - committed/rejected status: open - closed type: - compile error

[issue18559] _pickle: NULL ptr dereference when PyLong_FromSsize_t() fails

2013-07-26 Thread Christian Heimes
New submission from Christian Heimes: Two functions in _pickle Py_DECREF() a variable although it may be NULL. The patch corrects the error handling paths. CID 1058277 CID 1058278 -- components: Extension Modules files: pickle_pylong_null.patch keywords: patch messages: 193729 nosy:

[issue12978] Figure out extended attributes on BSDs

2013-07-26 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12978 ___ ___

[issue18560] builtin_sum() doesn't check return value of PyLong_FromLong()

2013-07-26 Thread Christian Heimes
New submission from Christian Heimes: 2032result = PyLong_FromLong(i_result); CID 1058287 (#1 of 1): Dereference null return value (NULL_RETURNS) 34. dereference: Dereferencing a pointer that might be null result when calling PyNumber_Add(PyObject *, PyObject *). [show details] 2033

[issue18561] ctypes _build_callargs() doesn't check name for NULL

2013-07-26 Thread Christian Heimes
New submission from Christian Heimes: http://hg.python.org/cpython/file/40bec72df2a1/Modules/_ctypes/_ctypes.c#l3565 3565case PARAMFLAG_FIN: 3566/* 'in' parameter. Copy it from inargs. */ CID 486199 (#1 of 1): Explicit null dereferenced (FORWARD_NULL) 31. var_deref_model:

[issue12978] Figure out extended attributes on BSDs

2013-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: The OSX API also has a position argument for both getting and setting extended attributes. The position should be 0 for normal attributes, and can have other values when accessing the resource fork of a file. --

[issue18562] Regex howto: revision pass

2013-07-26 Thread A.M. Kuchling
New submission from A.M. Kuchling: I read through the 3.3 regex howto and have made various edits in the attached patch. * describe how \w is different when used in bytes and Unicode patterns. * describe re.ASCII flag to change that behaviour. * remove a personal reference ('I generally

[issue18562] Regex howto: revision pass

2013-07-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +ezio.melotti versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18562 ___

[issue18563] No unit test for yiq to rgb and rgb to yiq converting functions

2013-07-26 Thread Vajrasky Kok
New submission from Vajrasky Kok: Module colorsys has hsv_to_rgb, rgb_to_hsv, hls_to_rgb, rgb_to_hls, yiq_to_rgb, rgb_to_yig public API functions. But only hsv_to_rgb, rgb_to_hsv, hls_to_rgb, rgb_to_hls functions are being unit tested. Attached the patch for adding unit test to cover the

[issue14074] argparse allows nargs1 for positional arguments but doesn't allow metavar to be a tuple

2013-07-26 Thread paul j3
Changes by paul j3 ajipa...@gmail.com: -- nosy: +paul.j3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14074 ___ ___ Python-bugs-list mailing list

[issue16360] argparse: comma in metavar causes assertion failure when formatting long usage message

2013-07-26 Thread paul j3
paul j3 added the comment: My rewrite of _format_actions_usage in http://bugs.python.org/issue11874 should take care of this issue. It keeps the groups and actions separate until the final formatting step, bypassing the regular expression parsing. -- nosy: +paul.j3

[issue18538] `python -m dis ` relying on argparse

2013-07-26 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18538 ___ ___

[issue18564] Integer overflow in socketmodule

2013-07-26 Thread Michele Orrù
New submission from Michele Orrù: In Modules/socketmodule.c , the bluetooth address supplied is vulnerable to integer overflow. Attaching patch and a couple of tests, which should be considered as a step forward in #7687. -- components: Extension Modules files: btoverflow.patch

[issue18538] `python -m dis ` should use argparse

2013-07-26 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: `python -m dis ` relying on argparse - `python -m dis ` should use argparse versions: +Python 3.4 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18538

[issue14074] argparse allows nargs1 for positional arguments but doesn't allow metavar to be a tuple

2013-07-26 Thread paul j3
paul j3 added the comment: This patch fixes the problem by joining the metavar terms with '|'. So the help for the test case (adapted from an existing tuple test) looks like: usage: PROG [-h] W1 [W2 ...] [X1 [X2 ...]] Y1 Y2 Y3 [Z1] positional arguments: W1|W2 w X1|X2

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7a0a4e0ada4 by Victor Stinner in branch 'default': Issue #18519: the Python authorizer callback of sqlite3 must not raise Python exceptions http://hg.python.org/cpython/rev/f7a0a4e0ada4 -- ___ Python

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-07-26 Thread STINNER Victor
STINNER Victor added the comment: I take it the overflow error is the only one the C code could ever raise? If so, the patch looks good to me. Yes, _PyLong_AsInt() was the last function raising Python exception (without clearing it). Thanks for your help on fixing this function --

[issue18504] IDLE:Improvements- Improving Mock_Text

2013-07-26 Thread R. Jayakrishnan
R. Jayakrishnan added the comment: Yes,correcting myself. I should aim indexes which actual idlelib uses. Thank you Terry for the grammar. Fighting with the index parsing last week, and finally came up with a level to break the index into base and modifier and decode it along with using

[issue18559] _pickle: NULL ptr dereference when PyLong_FromSsize_t() fails

2013-07-26 Thread STINNER Victor
STINNER Victor added the comment: The patch looks good to me. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18559 ___ ___

[issue18559] _pickle: NULL ptr dereference when PyLong_FromSsize_t() fails

2013-07-26 Thread Christian Heimes
Christian Heimes added the comment: Thanks Victor -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18559

[issue18559] _pickle: NULL ptr dereference when PyLong_FromSsize_t() fails

2013-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset dbdd07657e23 by Christian Heimes in branch '3.3': Issue #18559: Fix NULL pointer dereference error in _pickle module http://hg.python.org/cpython/rev/dbdd07657e23 New changeset b33f81974516 by Christian Heimes in branch 'default': Issue #18559: Fix

[issue791968] Arguments tooltip wrong if def contains tuple

2013-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: If someone pushes a patch and closes the issue and the buildbots break, reopening the issue is the appropriate response. Too much later and the pool of potentially interested people will have changed. Anyway, the new issue is #18539. -- nosy:

[issue18560] builtin_sum() doesn't check return value of PyLong_FromLong()

2013-07-26 Thread STINNER Victor
STINNER Victor added the comment: The patch looks good to me. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18560 ___ ___

[issue15892] _PyImport_GetDynLoadFunc() doesn't check return value of fstat()

2013-07-26 Thread Christian Heimes
Christian Heimes added the comment: Already fixed -- resolution: - out of date stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15892

[issue15892] _PyImport_GetDynLoadFunc() doesn't check return value of fstat()

2013-07-26 Thread STINNER Victor
STINNER Victor added the comment: changeset: 84741:654268ff29b5 branch: 3.3 parent: 84736:ce771c2d0220 user:Christian Heimes christ...@cheimes.de date:Sat Jul 20 22:17:55 2013 +0200 files: Python/dynload_shlib.c description: Check return value of fstat() in

[issue18560] builtin_sum() doesn't check return value of PyLong_FromLong()

2013-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset de7e4fd634fb by Christian Heimes in branch '3.3': Issue #18560: Fix potential NULL pointer dereference in sum() http://hg.python.org/cpython/rev/de7e4fd634fb New changeset a5d9e2f3f6c7 by Christian Heimes in branch 'default': Issue #18560: Fix

[issue15892] _PyImport_GetDynLoadFunc() doesn't check return value of fstat()

2013-07-26 Thread Christian Heimes
Christian Heimes added the comment: I wonder why I did not mention the issue # in the checkin message... Thanks :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15892 ___

[issue18560] builtin_sum() doesn't check return value of PyLong_FromLong()

2013-07-26 Thread Christian Heimes
Christian Heimes added the comment: Thanks again! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18560

[issue18561] ctypes _build_callargs() doesn't check name for NULL

2013-07-26 Thread STINNER Victor
STINNER Victor added the comment: _get_arg() should skip not check keywords if name is NULL (which looks to be a valid case, since name is check at the end of the function). -- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file31044/issue18561.patch

[issue18561] ctypes _build_callargs() doesn't check name for NULL

2013-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57457028dd7a by Christian Heimes in branch '3.3': Issue #18561: Skip name in ctypes' _build_callargs() if name is NULL. http://hg.python.org/cpython/rev/57457028dd7a New changeset d543829eda7d by Christian Heimes in branch 'default': Issue #18561:

[issue18528] Possible fd leak in socketmodule

2013-07-26 Thread STINNER Victor
STINNER Victor added the comment: http://bugs.python.org/file31016/closesock3.patch looks overkill. For example, BEGIN_SELECT_LOOP already sets errno to 0. Here is a simpler patch. -- nosy: +haypo Added file: http://bugs.python.org/file31045/accept.patch

[issue18528] Possible fd leak in socketmodule

2013-07-26 Thread STINNER Victor
STINNER Victor added the comment: @pitrou: Does accept.patch look correct? I don't understand why we would call accept() more than once. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18528

[issue18529] Use long dash

2013-07-26 Thread Éric Araujo
Éric Araujo added the comment: This looks like the kind of high-churn, low-benefit patches that we typically encourage new contributors not to do. It’s fine to update dashes when modifying the surrounding text for another fix, and it may be useful to encourage using them in the markup docs,

[issue18555] type_set_bases() doesn't check return value of PyArg_UnpackTuple()

2013-07-26 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18555 ___

[issue18539] Idle 2.7: Calltip wrong if def contains float default value

2013-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you are the same 'ariel' as on SO, thank you for the detective work and the informative report here. Without it this 2.7-only bug would be low priority and might have sat open until we stopped patching 2.7. The underlying issue is that a) 2.x had the

[issue4079] new urllib2.Request 'timeout' attribute needs to have a default

2013-07-26 Thread Indra Talip
Indra Talip added the comment: Ah sorry you are right the tests didn't test the specific case of someone overriding the OpenerDirector. The intent was to demonstrate that adding a default timeout to Request didn't break things. I think you are right about how much of an issue this is. I agree

[issue18539] Idle 2.7: Calltip wrong if def contains float default value

2013-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3236709650b0 by Terry Jan Reedy in branch '2.7': Issue #18539: Calltips now work for float default arguments. http://hg.python.org/cpython/rev/3236709650b0 -- nosy: +python-dev ___ Python tracker

[issue18539] Idle 2.7: Calltip wrong if def contains float default value

2013-07-26 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18539 ___

[issue18552] obj2ast_object() doesn't check return value of PyArena_AddPyObject()

2013-07-26 Thread STINNER Victor
STINNER Victor added the comment: -Py_XINCREF(obj); +Py_INCREF(obj); This change is not correct. Here is an updated patch. -- nosy: +haypo Added file: http://bugs.python.org/file31046/obj2ast_object.patch ___ Python tracker

[issue18561] ctypes _build_callargs() doesn't check name for NULL

2013-07-26 Thread Christian Heimes
Christian Heimes added the comment: Thanks! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18561 ___

[issue18552] obj2ast_object() doesn't check return value of PyArena_AddPyObject()

2013-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 65121aa79ab3 by Christian Heimes in branch '3.3': Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object(). http://hg.python.org/cpython/rev/65121aa79ab3 New changeset ad90fc28769a by Christian Heimes in branch 'default': Issue

[issue18552] obj2ast_object() doesn't check return value of PyArena_AddPyObject()

2013-07-26 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18552 ___

[issue18369] X509 cert class for ssl module

2013-07-26 Thread Derek Wilson
Derek Wilson added the comment: For ssl.match_hostname to work with this, you need to get the info dict first. I've attached at patch for it. -- nosy: +underrun Added file: http://bugs.python.org/file31047/ssl_pyx509cert_match_hostname_fix.patch

[issue15893] Py_FrozenMain() resource leak and missing malloc checks

2013-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab8121466785 by Victor Stinner in branch '3.3': Issue #15893: frozenmain.c now handles PyMem_Malloc() failure http://hg.python.org/cpython/rev/ab8121466785 New changeset 386ab2c12301 by Victor Stinner in branch 'default': (Merge 3.3) Issue #15893:

[issue18548] In unittest doc change WidgetTestCase to SimpleWidgetTestCase in suite()

2013-07-26 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ezio.melotti, michael.foord stage: - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18548 ___

[issue11152] pb in zipfile module

2013-07-26 Thread Damien M Calloway
Changes by Damien M Calloway dama...@gmail.com: -- nosy: +dmcalloway ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11152 ___ ___ Python-bugs-list

[issue18558] Iterable glossary entry needs clarification

2013-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Stephen, your class, or rather instances thereof when initialized with a sequence, follow the old iteration protocol. You might call them iterators in the generic sense, though I cannot remember whether we used 'iterator' much before the introduction of the

  1   2   >