[ANNOUNCE] PySide 1.0.5 - And no name was given that day: Python for Qt released!

2011-07-23 Thread Renato Araujo Oliveira Filho
PySide 1.0.5 - And no name was given that day: Python for Qt released! The PySide team is proud to announce the monthly release version 1.0.5 of PySide project. Major changes == . Widgets present on ui files

PyCon Australia 2011: Registration Deadlines

2011-07-23 Thread Ryan Kelly
Hi Everyone, Registrations for PyCon Australia 2011 are closing soon! The conference is now less than a month away, so we need to start finalising numbers for shirts, catering and the venue itself. If you're planning to attend, please register now so you don't miss out. PyCon Australia is

ANN: python-ldap 2.4.3

2011-07-23 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.3 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: Question about timeit

2011-07-23 Thread Frank Millman
On Jul 22, 2:43 pm, Thomas Jollans t...@jollybox.de wrote: On 22/07/11 14:30, Frank Millman wrote: This is what I get after modifying timeit.py as follows -     if args is None:         args = sys.argv[1:] +       print(args) C:\python -m timeit int(float('165.0'))

Re: What Programing Language are the Largest Website Written In?

2011-07-23 Thread John Nagle
On 7/12/2011 4:54 AM, Xah Lee wrote: Then, this question piqued me, even i tried to not waste my time. But it overpowered me before i resisted, becuase i quickly spend 15 min to write this list (with help of Google): 1 Google ◇ Java 2 Facebook ◇ PHP 3 YouTube ◇ Python

Re: I am fed up with Python GUI toolkits...

2011-07-23 Thread Tim Roberts
Gregory Ewing greg.ew...@canterbury.ac.nz wrote: sturlamolden wrote: Or should modern deskop apps be written with something completely different, such as HTML5? I hope not! HTML is great for web pages, but not everything should be a web page. I don't think your glibness is justified. There

Re: Convert '165.0' to int

2011-07-23 Thread Frank Millman
On Jul 22, 9:59 pm, Terry Reedy tjre...@udel.edu wrote: On 7/22/2011 1:55 AM, Frank Millman wrote: As the OP, I will clarify what *my* requirement is. This discussion has gone off at various tangents beyond what I was asking for. Typical. Don't worry about it ;-). As suggested above, I

Re: Convert '165.0' to int

2011-07-23 Thread Chris Angelico
On Sat, Jul 23, 2011 at 4:53 PM, Frank Millman fr...@chagford.com wrote: The problem with that is that it will silently ignore any non-zero digits after the point. Of course int(float(x)) does the same, which I had overlooked. If you know that there will always be a trailing point, you can

Re: Convert '165.0' to int

2011-07-23 Thread Steven D'Aprano
Frank Millman wrote: To recap, the original problem is that it would appear that some third- party systems, when serialising int's into a string format, add a .0 to the end of the string. I am trying to get back to the original int safely. The ideal solution is the one I sketched out

PyCon Australia 2011: Registration Deadlines

2011-07-23 Thread Ryan Kelly
Hi Everyone, Registrations for PyCon Australia 2011 are closing soon! The conference is now less than a month away, so we need to start finalising numbers for shirts, catering and the venue itself. If you're planning to attend, please register now so you don't miss out. PyCon Australia is

Re: Convert '165.0' to int

2011-07-23 Thread Frank Millman
On Jul 23, 9:42 am, Chris Angelico ros...@gmail.com wrote: On Sat, Jul 23, 2011 at 4:53 PM, Frank Millman fr...@chagford.com wrote: The problem with that is that it will silently ignore any non-zero digits after the point. Of course int(float(x)) does the same, which I had overlooked. If

Re: Convert '165.0' to int

2011-07-23 Thread Frank Millman
On Jul 23, 10:23 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Frank Millman wrote: To recap, the original problem is that it would appear that some third- party systems, when serialising int's into a string format, add a .0 to the end of the string. I am trying to get

Re: I am fed up with Python GUI toolkits...

2011-07-23 Thread Gregory Ewing
Tim Roberts wrote: Gregory Ewing greg.ew...@canterbury.ac.nz wrote: sturlamolden wrote: Or should modern deskop apps be written with something completely different, such as HTML5? I hope not! HTML is great for web pages, but not everything should be a web page. I don't think your

Re: Convert '165.0' to int

2011-07-23 Thread Billy Mays
On 7/23/2011 3:42 AM, Chris Angelico wrote: int(s.rstrip('0').rstrip('.')) Also, it will (in?)correct parse strings such as: '16500' to 165. -- Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert '165.0' to int

2011-07-23 Thread Chris Angelico
On Sun, Jul 24, 2011 at 1:12 AM, Billy Mays no...@nohow.com wrote: On 7/23/2011 3:42 AM, Chris Angelico wrote: int(s.rstrip('0').rstrip('.')) Also, it will (in?)correct parse strings such as: '16500' to 165. Yes, it will, but is that an issue to the OP?

Re: Is there a way to customise math.sqrt(x) for some x?

2011-07-23 Thread John Nagle
On 7/16/2011 2:14 AM, Chris Angelico wrote: On Sat, Jul 16, 2011 at 6:35 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I have a custom object that customises the usual maths functions and operators, such as addition, multiplication, math.ceil etc. Is there a way to also

Re: Convert '165.0' to int

2011-07-23 Thread rantingrick
On Jul 23, 1:53 am, Frank Millman fr...@chagford.com wrote: -- The problem with that is that it will silently ignore any non-zero digits after the point. Of course int(float(x)) does the same, which I had overlooked.

ANN: python-ldap 2.4.3

2011-07-23 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.3 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: Is there a way to customise math.sqrt(x) for some x?

2011-07-23 Thread rantingrick
On Jul 16, 3:35 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: I have a custom object that customises the usual maths functions and operators, such as addition, multiplication, math.ceil etc. Is there a way to also customise math.sqrt? I don't think there is, but I may have

Strings show as brackets with a 'u'.

2011-07-23 Thread goldtech
Hi, n [u'174'] Probably newbie question but not sure how suppress the brackets and the 'u' ? I assume pyhon is telling me it's a unicode string in the n variable. I'm using using Idle on winXP, activestate 2.7. Is there a way to suppress this and just show 174 in the shell ? A script

Re: Strings show as brackets with a 'u'.

2011-07-23 Thread rantingrick
On Jul 23, 7:33 pm, goldtech goldt...@worldpost.com wrote: n [u'174'] Probably newbie question but not sure how suppress the brackets and the 'u' ? I assume pyhon is telling me it's a unicode string in the n variable. Try type(n) and see what happens. Then report back. :) --

Re: Strings show as brackets with a 'u'.

2011-07-23 Thread Dan Stromberg
It's probably a list containing a single unicode string. You can pull the first element from the list with n[0]. To print a unicode string in 2.x without the u stuff: print u'174'.encode('ISO-8859-1') On Sat, Jul 23, 2011 at 5:33 PM, goldtech goldt...@worldpost.com wrote: Hi, n [u'174']

Re: Strings show as brackets with a 'u'.

2011-07-23 Thread Chris Angelico
On Sun, Jul 24, 2011 at 10:33 AM, goldtech goldt...@worldpost.com wrote:  I'm using using Idle on winXP, activestate 2.7. Is there a way to suppress this and just show 174  in the shell ? A script reading data and assigns 174 to n via some regex. Links on this appreciated - I've tried to

Re: Strings show as brackets with a 'u'.

2011-07-23 Thread Thomas Jollans
On 24/07/11 02:52, Dan Stromberg wrote: It's probably a list containing a single unicode string. You can pull the first element from the list with n[0]. To print a unicode string in 2.x without the u stuff: print u'174'.encode('ISO-8859-1') just print u'174' will do. Encoding the

Re: Convert '165.0' to int

2011-07-23 Thread Billy Mays
On 7/23/2011 2:28 PM, rantingrick wrote: On Jul 23, 1:53 am, Frank Millmanfr...@chagford.com wrote: -- The problem with that is that it will silently ignore any non-zero digits after the point. Of course int(float(x)) does the same, which I had

Re: I am fed up with Python GUI toolkits...

2011-07-23 Thread Cameron Simpson
On 23Jul2011 22:21, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: | Tim Roberts wrote: | Gregory Ewing greg.ew...@canterbury.ac.nz wrote: | sturlamolden wrote: | Or should modern deskop apps be written with something completely | different, such as HTML5? | | I hope not! HTML is great for web

Re: Convert '165.0' to int

2011-07-23 Thread Dan Stromberg
On Sat, Jul 23, 2011 at 8:53 PM, Billy Mays no...@nohow.com wrote: I'll probably get flak for this, but damn the torpedoes: def my_int(num): import re try: m = re.match('^(-?[0-9]+)(.0)?$', num) return int(m.group(1)) except AttributeError: #raise your own

Re: I am fed up with Python GUI toolkits...

2011-07-23 Thread Chris Angelico
On Sun, Jul 24, 2011 at 1:56 PM, Cameron Simpson c...@zip.com.au wrote: And then you have the cross platform nirvana. Except for the browsers' various differences and bugs etc etc... The platform ceases to be Windows/Linux/Mac, ceases to be Qt/GTK/Tk, and instead becomes Webkit/Gecko/Trident.

Re: I am fed up with Python GUI toolkits...

2011-07-23 Thread Dan Stromberg
On Wed, Jul 20, 2011 at 12:20 AM, Stefan Behnel stefan...@behnel.de wrote: Steven D'Aprano, 20.07.2011 06:28: Python has a GIL. Except for Jython, IronPython and PyPy. PyPy has a GIL, too. There's been talk of removing PyPy's GIL using transactional memory though. --

[issue12600] Support parameterized TestCases in unittest

2011-07-23 Thread Austin Bingham
Austin Bingham austin.bing...@gmail.com added the comment: Yes, in some sense that's what I'm thinking of. But one problem with this straightforward approach is that it doesn't scale well. If I've got many TestCases, each if which I want to parameterize, I have to create subclasses for each

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: OK, I can reproduce the problem on a clean virtual machine running a pristine XP home SP2. No Python was previously installed. Steps to reproduce: 1. Install Python 3.2.1 MSI from http://www.python.org/download/releases/3.2.1/ 2. Run IDLE from

[issue11049] add tests for test.support

2011-07-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Several buildbot are failing after the commit: == FAIL: test_get_original_stdout (test.test_support.TestSupport)

[issue12576] urlib.request fails to open some sites

2011-07-23 Thread angus
angus an...@amcinnes.info added the comment: I'm experiencing a related problem: --- from urllib.request import urlopen print(urlopen('https://mtgox.com/').read()) --- prints b'' rather than the page content. It looks like mtgox.com always sends 'Connection: Keep-Alive'. So some hack like

[issue12576] urlib.request fails to open some sites

2011-07-23 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12576 ___ ___

[issue12576] urlib.request fails to open some sites

2011-07-23 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: I am against hacks like tion: close. Under worst case, we shall revert the change which caused this regression in the first place. -- ___ Python tracker rep...@bugs.python.org

[issue12576] urlib.request fails to open some sites

2011-07-23 Thread Robert Xiao
Robert Xiao nneon...@gmail.com added the comment: S3 also doesn't send any kind of connection header at all. x-amz-id-2: WWuo30Fk2inKVcC5dH4GOjvHxnqMa5Q2+AduPm2bMhL1h3GqzOR0EPwUv0biqv2V x-amz-request-id: 3CCF6B6A000E6446 Date: Sat, 23 Jul 2011 06:42:45 GMT x-amz-meta-s3fox-filesize: 27692

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Am I missing something, or is there no explicit command to kill the subprocess on Windows in PyShell.py The kill_subprocess method (which does get invoked) of ModifiedInterpreter is: def kill_subprocess(self): try:

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I give up. Call it 'linux3', then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12326 ___

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Sjoerd de Vries
New submission from Sjoerd de Vries sjdv1...@gmail.com: When you specify cfile to be in the current directory, an error occurs (line 133). I have fixed the file, see attached -- components: Library (Lib) files: py_compile.py messages: 140940 nosy: sjdv1982 priority: normal severity:

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Please create a patch in unified format. -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12618

[issue11435] Links to source code should now point to hg repo

2011-07-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Done (in rev e32f140a020b). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-07-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: index does create targets, but they are not accessible for creating a link *to* it. They are only used for links from the indices. -- ___ Python tracker rep...@bugs.python.org

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-23 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: this does sound very ugly. so we get now another mostly unmaintained platform directory? unfortunately the generated header files are almost never updated during a releaes cycle. and we repeat the mistakes that some constants differ on some

[issue12605] Enhancements to gdb 7 debugging hooks

2011-07-23 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12605 ___ ___

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Sjoerd de Vries
Sjoerd de Vries sjdv1...@gmail.com added the comment: The attached file just works. You can diff with trunk, or wherever python devs store the latest version. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12618

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It might work right now, but in case the file changes before your change can be processed, we will lose the previous changes if we just copy in your new file. IOW, you're making our work much harder and your change is less likely to be applied.

[issue12576] urlib.request fails to open some sites

2011-07-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Recognizing ction: close as Connection: close is exactly what those servers do *not* want you to do. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12576

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Doesn't unix_terminate() also get called on Windows? If so, what does os.kill() do on Windows? The docs for os.kill say New in version 3.2: Windows support. Perhaps this was being skipped before and now has some negative effect? --

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It's too late to fix sys.platform. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12326 ___

[issue12581] Increased test coverage of test_urlparse

2011-07-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Peter’s patch now uses iter(thing) instead of len(thing) to assess sequenciness. I made this comment: You can iterate over an iterator (which is not a sequence). Here I don’t know if the code talks about sequence because it pre-dates

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Same bug. I’ve added debug prints to find out the rights (UNIX permission system) of the files, and they’re very strange: --wxrw--wt (the read bit is missing, and the t is strange). It should be -rwxr-xr-x, like other programs. The bug is

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: I suggest that platform-specific modules be automatically regenerated during installation. I'm attaching a patch. -- files: python-regenerate_platdir.patch keywords: patch messages: 140952 nosy: Arfrever,

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Sjoerd de Vries
Sjoerd de Vries sjdv1...@gmail.com added the comment: Makes no sense to me: since I don't have the trunk version, I can only diff -c against 3.2 release. Doing a diff against trunk is 1 sec of work for you. But I am just being a helpful user; so if a diff is what you want, here it is. No

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Indeed, unix_terminate is invoked on Windows, and since Windows now has os.kill it runs. However, it appears that the actual os.kill call throws OSError, saying: [Error 87] The parameter is incorrect --

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: See issue #12619 for potential solution for platform-specific modules. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12326

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I confirm fixing 0o755 makes the tests pass for me. Your code gives one warning: build_scripts.py:241: BytesWarning: str() on a bytes instance hdr = #!%(executable)s%(options)s\n % locals() The object with the name executable or options is

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (Autotools/make newbie here) Why during install and not build? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12619 ___

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I don't care when they will be regenerated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12619 ___

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: It's a context patch, not a unified patch, and it is reversed :) . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12618

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-23 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12617 ___ ___ Python-bugs-list

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-07-23 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Should the component really be extension modules? I don't believe _sre.c is a part of the API, and the problem is embedding Python as a whole. -- ___ Python tracker rep...@bugs.python.org

[issue12581] Increased test coverage of test_urlparse

2011-07-23 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: On Sat, Jul 23, 2011 at 09:37:27AM +, Éric Araujo wrote: I’ve had a look at the docstring and the reST docs, and they clearly say that sequences are supported, not arbitrary iterables. Yeah. At the first cut, when I saw the suggestion

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: is auto-generation wanted? are you sure that you can't end up with bad syntax? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12619 ___

[issue12581] Increased test coverage of test_urlparse

2011-07-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e171db785c37 by Senthil Kumaran in branch '3.2': Fix closes issue12581 - Increase the urllib.parse test coverage. Patch by Petter Haggholm. http://hg.python.org/cpython/rev/e171db785c37 New changeset fcccda3c546f

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, we can work with this patch. Thanks. Yes, we can diff against 3.2, but for that you would have at least needed to specify * that you worked on a released version * and that that version is 3.2 Otherwise, we cannot know what to diff

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Here's a simple reproducer for the same problem, without the context of IDLE. As far as I understand, what IDLE's spawn and then kill process are doing is: import os from signal import SIGTERM pid = os.spawnv(os.P_NOWAIT, notepad.exe,

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, this is a bug in bytearray and should be fixed. -- assignee: docs@python - components: -Documentation nosy: +georg.brandl versions: +Python 2.7, Python 3.2 -Python 3.1 ___ Python tracker

[issue12581] Increased test coverage of test_urlparse

2011-07-23 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Thanks a lot for the patch, Petter Haggholm. I was initially hesitant to have separate tests for functions/methods which are helper functions and not necessarily have documented api. My thought was that those should be tested as part of the

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Hmm, the docs say Any other value for sig will cause the process to be unconditionally killed by the TerminateProcess API [...] What happens if you try to use other signals (like signal.SIGKILL) instead of SIGTERM? --

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The other question is if it is an access control problem. win32_kill tries to open the process with PROCESS_ALL_ACCESS, while IMO PROCESS_TERMINATE would suffice. -- ___ Python tracker

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Georg, I'm now debugging into win32_kill, and it's an error in OpenProcess, so this *could* be a security issue. The process is started with _spawnv, so maybe this causes problems opening it with OpenProcess later. --

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2011-07-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: This behavior was introduced (exposed by?) r68460. After a quick look, I don't see anything wrong with r68460, but it might very well have exposed this problem which was lurking before. When Python is compiled without threads, the

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: According to http://msdn.microsoft.com/en-us/library/7zt1y878%28v=vs.80%29.aspx, on Windows _spawnv in async mode (P_NOWAIT) returns the process _handle_, not the process ID. win32_kill uses OpenProcess, passing it pid to obtain the handle,

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Hmm, on the other hand there may be valid use cases for using os.kill() with a PID. Argh. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12540

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I don't think there's a problem with os.spawnv and os.kill - they do what their docs describe. IMHO, the solution should be to change IDLE so that it uses subprocess.Popen for both starting and killing the child process. --

[issue12620] pending calls: make `pendingbusy` flag static to Py_MakePendingCalls()

2011-07-23 Thread Charles-François Natali
New submission from Charles-François Natali neolo...@free.fr: Trivial patch. In Python/ceval.c, when compiled with threads, make the `pendingbusy` flag used to guard against reentrant calls static to Py_MakePendingCalls(). Also, make it an int and rename it to `busy` to be consistent with the

[issue11049] add tests for test.support

2011-07-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0018a28583f4 by Eli Bendersky in branch 'default': Issue #11049: skip a test that fails on some buildbots http://hg.python.org/cpython/rev/0018a28583f4 -- ___ Python

[issue12608] crash in PyAST_Compile when running Python code

2011-07-23 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- dependencies: +add a AST validator ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12608 ___

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread higery
higery shoulderhig...@gmail.com added the comment: An octal literal in 3.x is 0o755. Decimal 755 means 0o1363, which is not good :) Thank you for your reminding. The reason I made this mistake is that I'm not familiar with the right way to set permission code in Python3+ . --

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread higery
higery shoulderhig...@gmail.com added the comment: The object with the name executable or options is bytes, which you should explicitly convert to a string with decode. I also don’t like using locals(), but that’s a personal style thing. Thanks for your test, I'll amend it. --

[issue11049] add tests for test.support

2011-07-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: OK, the bots are green again after the last push. Sorry about that, folks. I tested this on two different machines (Ubuntu Win XP) before pushing the original commit. -- ___ Python tracker

[issue10883] urllib: socket is not closed explicitly

2011-07-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c741ba9e37ef by Nadeem Vawda in branch '3.2': Issue #10883: Fix socket leaks in urllib.request. http://hg.python.org/cpython/rev/c741ba9e37ef New changeset d68765bd6490 by Nadeem Vawda in branch 'default': Merge:

[issue11877] Change os.fsync() to support physical backing store syncs

2011-07-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Even PEP 3151 won't help. I don't understand. If the syscall supposed to flush the disk's buffer cache fails - be it fcntl() or sync_file_range() - I think the error should be propagated, not silently ignored and replaced

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread higery
higery shoulderhig...@gmail.com added the comment: Your test should catch stdout (see other packaging tests for how to do that), so that people or buildbots running the tests don’t see “Hello world!”, and so that you can run asserts for the output. Thanks. Got it - captured_stdout

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: The new patch creates platform-specific modules at build time and verifies their syntax. -- Added file: http://bugs.python.org/file22726/python-regenerate_platdir.patch

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Removed file: http://bugs.python.org/file22723/python-regenerate_platdir.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12619

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: this does sound very ugly. so we get now another mostly unmaintained platform directory? unfortunately the generated header files are almost never updated during a releaes cycle. I would be +1 to deprecate this stuff, but that's quite

[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)

2011-07-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: and Darwin). It would have been useful... interp 0x0, thread state 0x81855380: Program received signal SIGSEGV, Segmentation fault. Here, the interpreter state is NULL, and this shouldn't happen. It could be a bug linked to

[issue10883] urllib: socket is not closed explicitly

2011-07-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset dbf1e1a27427 by Nadeem Vawda in branch '2.7': Issue #10883: Fix socket leaks in urllib.request. http://hg.python.org/cpython/rev/dbf1e1a27427 -- ___ Python tracker

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread higery
Changes by higery shoulderhig...@gmail.com: Added file: http://bugs.python.org/file22727/c5692393c621.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12394 ___

[issue12581] Increased test coverage of test_urlparse

2011-07-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Exhaustion of the iterator is easily solved by simply retaining a reference to it and iterating that (which is what I had in mind). However, I had not thought about the problem of an *in*exhaustable iterator, and to cover that case len

[issue12528] Implement configurable bitfield allocation strategy

2011-07-23 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Updated patch to reflect review feedback. Allocation strategy is now specified as string in Python code. I kept asserts in CanContinueField/CanExpandField because, as I said, default case should never be hit. Input is validated in

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Sjoerd de Vries
Sjoerd de Vries sjdv1...@gmail.com added the comment: Good to hear that the patch is helpful. Again, I am just trying to be a helpful user, making a (very very little) contribution to make Python better. I am not a Python dev at all: Python is already awesome enough for me, no desire to

[issue12560] libpython.so not built on OpenBSD

2011-07-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Unassigning: I tested on OpenBSD 4.5 and get other (probably unrelated errors). -- assignee: skrah - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12560

[issue12560] libpython.so not built on OpenBSD

2011-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo, neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12560 ___ ___ Python-bugs-list

[issue12620] pending calls: make `pendingbusy` flag static to Py_MakePendingCalls()

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks obviously fine :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12620 ___ ___

[issue12605] Enhancements to gdb 7 debugging hooks

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The improvements are welcome, but I'm not sure they're ok for 3.2 or 2.7, since they're technically a new feature. OTOH, one could argue that better debuggability trumps the no-feature rule. -- nosy: +pitrou stage: - patch review

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12603 ___ ___ Python-bugs-list mailing

[issue12620] pending calls: make `pendingbusy` flag static to Py_MakePendingCalls()

2011-07-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cda93720c06d by Charles-François Natali in branch 'default': Issue 12620: Make pendingbusy flag static to Py_MakePendingCalls(). http://hg.python.org/cpython/rev/cda93720c06d -- nosy: +python-dev

[issue12620] pending calls: make `pendingbusy` flag static to Py_MakePendingCalls()

2011-07-23 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12620

  1   2   >