pdb++ 0.6: a drop-in replacement for pdb

2010-12-11 Thread Antonio Cuni
Hi, I finally released pdb++ (which got some attention due to a lightning talk at last europython). It starts from version 0.6, since it has been around for years now and it is stable enough to be used during normal devlopment. https://bitbucket.org/antocuni/pdb/src From the README: This

ANN: ActivePython 3.1.3.5 is now available

2010-12-11 Thread Sridhar Ratnakumar
ActiveState is pleased to announce ActivePython 3.1.3.5, a complete, ready-to-install binary distribution of Python 3.1. http://www.activestate.com/activepython/downloads What's New in ActivePython-3.1.3.5 == *Release date: 6-Dec-2010* New Features

Re: Python critique

2010-12-11 Thread Octavian Rasnita
From: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info ... Can you please tell me how to write the following program in Python? my $n = 1; { my $n = 2; print $n\n; } print $n\n; If this program if ran in Perl, it prints: 2 1 Lots of ways. Here's one: n = 1

Re: run a function in another processor in python

2010-12-11 Thread Peter Otten
Astan Chee wrote: Sorry about that, here is a summary of my complete code. I haven't cleaned it up much or anything, but this is what it does: import time import multiprocessing test_constx =0 test_consty =0 def functionTester(x): global test_constx You don't need to declare a

how to read o/p of telenet (python) ?!

2010-12-11 Thread Darshak Bavishi
hi experts , i have code to telnet remote machine (unix) i am using port 5400 to telnet but o/p is not in visible format when i run random commands or run when i give as read_some() it displays some lines but in case of read_all() it gets hang !! In actual i want to get some string from o/p and

Re: Python critique

2010-12-11 Thread Lie Ryan
On 12/11/10 11:37, Dan Stromberg wrote: On Fri, Dec 10, 2010 at 3:51 PM, John Nagle na...@animats.com wrote: On 12/10/2010 3:25 PM, Stefan Behnel wrote: Benjamin Kaplan, 11.12.2010 00:13: On Fri, Dec 10, 2010 at 5:46 PM, Octavian Rasnita wrote: The only scopes Python has are module and

Python distribution recommendation?

2010-12-11 Thread Octavian Rasnita
Hi, Is there a recommended Python distribution for Windows XP? I know about the one that can be downloaded from python.org (which I am using for the moment) and the one offered by ActiveState but I don't know which one is better for a beginner nor if there are other distributions available. I

Re: Python distribution recommendation?

2010-12-11 Thread Katie T
On Sat, Dec 11, 2010 at 12:43 PM, Octavian Rasnita orasn...@gmail.com wrote: Hi, Is there a recommended Python distribution for Windows XP? Either will work, although the python.org one is the more popular and is likely the one used by most tutorials and beginners guides. The ActiveState one

Re: Python distribution recommendation?

2010-12-11 Thread Lie Ryan
On 12/11/10 23:43, Octavian Rasnita wrote: Hi, Is there a recommended Python distribution for Windows XP? I know about the one that can be downloaded from python.org (which I am using for the moment) and the one offered by ActiveState but I don't know which one is better for a beginner

Re: Python distribution recommendation?

2010-12-11 Thread Godson Gera
On Sat, Dec 11, 2010 at 6:13 PM, Octavian Rasnita orasn...@gmail.comwrote: I am especially interested in creating MS Windows apps with Python. If you want to access win32api and do some COM programming then ActiveState comes bundled with pywin32. Where in vanilla python distro you have to

Re: instance has no __call__ method

2010-12-11 Thread Steve Holden
On 12/10/2010 5:20 AM, frank cui wrote: Hi all, I'm a novice learner of python and get caught in the following trouble and hope experienced users can help me solve it:) Code: --- $ cat Muffle_ZeroDivision.py

Re: Python distribution recommendation?

2010-12-11 Thread Octavian Rasnita
Ok, thank you all for your recommendations. I think I will install ActivePython because it seems that it offers more features for Windows programming than the other distro (by default, which is important for a beginner). I will use WxPython and not other GUIS like QT, Tk or GTK because they

Re: 64 bit memory usage

2010-12-11 Thread Steve Holden
On 12/10/2010 2:03 PM, Rob Randall wrote: I manged to get my python app past 3GB on a smaller 64 bit machine. On a test to check memory usage with gc disabled only an extra 6MB was used. The figures were 1693MB to 1687MB. This is great. Thanks again for the help. Do remember, though,

Integrating doctest with unittest

2010-12-11 Thread Steven D'Aprano
I have a module with doctests, and a module that performs unit testing for it. The test module looks like this: import doctest import unittest import module_to_test # ... # many test suites # ... if __name__ == '__main__': doctest.testmod(module_to_test) unittest.main() but now

python-parser running Beautiful Soup needs to be reviewed

2010-12-11 Thread Martin Kaspar
Hello commnity i am new to Python and to Beatiful Soup also! It is told to be a great tool to parse and extract content. So here i am...: I want to take the content of a td-tag of a table in a html document. For example, i have this table table class=bp_ergebnis_tab_info tr td

Re: python-parser running Beautiful Soup needs to be reviewed

2010-12-11 Thread Nitin Pawar
try using lxml ... its very useful On Sat, Dec 11, 2010 at 11:24 AM, Martin Kaspar martin.kas...@campus-24.com wrote: Hello commnity i am new to Python and to Beatiful Soup also! It is told to be a great tool to parse and extract content. So here i am...: I want to take the content of a

Making os.unlink() act like rm -f

2010-12-11 Thread Roy Smith
I just wrote an annoying little piece of code: try: os.unlink(file) except OSError: pass The point being I want to make sure the file is gone, but am not sure if it exists currently. Essentially, I want to do what rm -f does in the unix shell. In fact, what I did doesn't even do that.

Re: Making os.unlink() act like rm -f

2010-12-11 Thread Christian Heimes
Am 11.12.2010 18:04, schrieb Roy Smith: if os.access(file, os.F_OK): os.unlink(file) but that's annoying too. What would people think about a patch to os.unlink() to add an optional second parameter which says to ignore attempts to remove non-existent files (just like rm -f)? Then

Re: Making os.unlink() act like rm -f

2010-12-11 Thread Nobody
On Sat, 11 Dec 2010 12:04:01 -0500, Roy Smith wrote: I just wrote an annoying little piece of code: try: os.unlink(file) except OSError: pass The point being I want to make sure the file is gone, but am not sure if it exists currently. Essentially, I want to do what rm -f does

Re: Making os.unlink() act like rm -f

2010-12-11 Thread Godson Gera
On Sat, Dec 11, 2010 at 10:34 PM, Roy Smith r...@panix.com wrote: os.unlink(file, ignore=True) -- http://mail.python.org/mailman/listinfo/python-list Take a look at shutil.rmtree http://docs.python.org/library/shutil.html?highlight=shutil#shutil.rmtree -- Thanks Regards, Godson Gera

Enabling the use of POSIX character classes in Python

2010-12-11 Thread Perry Johnson
Python's re module does not support POSIX character classes, for example [:alpha:]. It is, of course, trivial to simulate them using character ranges when the text to be matched uses the ASCII character set. Sadly, my problem is that I need to process Unicode text. The re module has its own

Re: how to read o/p of telenet (python) ?!

2010-12-11 Thread Ian Kelly
On 12/11/2010 4:20 AM, Darshak Bavishi wrote: i have code to telnet remote machine (unix) i am using port 5400 to telnet but o/p is not in visible format when i run random commands or run What is o/p? when i give as read_some() it displays some lines but in case of read_all() it gets hang !!

Re: Enabling the use of POSIX character classes in Python

2010-12-11 Thread MRAB
On 11/12/2010 17:33, Perry Johnson wrote: Python's re module does not support POSIX character classes, for example [:alpha:]. It is, of course, trivial to simulate them using character ranges when the text to be matched uses the ASCII character set. Sadly, my problem is that I need to process

Re: Enabling the use of POSIX character classes in Python

2010-12-11 Thread Martin v. Loewis
Am 11.12.2010 18:33, schrieb Perry Johnson: Python's re module does not support POSIX character classes, for example [:alpha:]. It is, of course, trivial to simulate them using character ranges when the text to be matched uses the ASCII character set. Sadly, my problem is that I need to

Re: how to read o/p of telenet (python) ?!

2010-12-11 Thread MRAB
On 11/12/2010 17:44, Ian Kelly wrote: On 12/11/2010 4:20 AM, Darshak Bavishi wrote: i have code to telnet remote machine (unix) i am using port 5400 to telnet but o/p is not in visible format when i run random commands or run What is o/p? [snip] o/p is an abbreviation for output (and i/p

Re: ctypes question

2010-12-11 Thread MrJean1
It is not entirely clear what the functions and especially what their signatures are in that C library clibsmi. In general, for shared libraries, you need to define those first as prototype using ctypes.CFUNCTYPE() and then instantiate each prototype once supplying the necessary parameter flags

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread mpnordland
sorry, I've been busy, it's on linux, and current active user is the user currently using the computer. My program needs to switch log files when a different user starts using the computer. -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread mpnordland
about the pyutmp, is the most recent entry at the top or bottom of the file? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python critique

2010-12-11 Thread Steve Holden
On 12/11/2010 6:46 AM, Lie Ryan wrote: On 12/11/10 11:37, Dan Stromberg wrote: On Fri, Dec 10, 2010 at 3:51 PM, John Nagle na...@animats.com wrote: On 12/10/2010 3:25 PM, Stefan Behnel wrote: Benjamin Kaplan, 11.12.2010 00:13: On Fri, Dec 10, 2010 at 5:46 PM, Octavian Rasnita wrote: The only

Re: Python critique

2010-12-11 Thread Steve Holden
On 12/11/2010 6:46 AM, Lie Ryan wrote: Also, class scope and instance scope, though similar, are distinct scopes. Python also have the hidden interpreter-level scope (the __builtins__). Kindly ignore my last post. Class scopes are lexical, instance scopes are not. regards Steve -- Steve

Re: Python distribution recommendation?

2010-12-11 Thread Steve Holden
On 12/11/2010 9:31 AM, Octavian Rasnita wrote: Ok, thank you all for your recommendations. I think I will install ActivePython because it seems that it offers more features for Windows programming than the other distro (by default, which is important for a beginner). I will use WxPython

Re: Making os.unlink() act like rm -f

2010-12-11 Thread Roy Smith
In article mailman.424.1292088328.2649.python-l...@python.org, Christian Heimes li...@cheimes.de wrote: Am 11.12.2010 18:04, schrieb Roy Smith: if os.access(file, os.F_OK): os.unlink(file) but that's annoying too. What would people think about a patch to os.unlink() to add an

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread Tim Chase
On 12/11/2010 01:43 PM, mpnordland wrote: it's on linux, and current active user is the user currently using the computer. My program needs to switch log files when a different user starts using the computer. The problem is that multiple users can be logged on at the same time. You might be

Re: python-parser running Beautiful Soup needs to be reviewed

2010-12-11 Thread Stef Mientki
On 11-12-2010 17:24, Martin Kaspar wrote: Hello commnity i am new to Python and to Beatiful Soup also! It is told to be a great tool to parse and extract content. So here i am...: I want to take the content of a td-tag of a table in a html document. For example, i have this table table

Re: python-parser running Beautiful Soup needs to be reviewed

2010-12-11 Thread Peter Pearson
On Sat, 11 Dec 2010 22:38:43 +0100, Stef Mientki wrote: [snip] So the simplest solution I came up with: Text = table class=bp_ergebnis_tab_info tr td This is a sample text /td td This is the second sample

Re: python-parser running Beautiful Soup needs to be reviewed

2010-12-11 Thread Alexander Kapps
On 11.12.2010 22:38, Stef Mientki wrote: On 11-12-2010 17:24, Martin Kaspar wrote: Hello commnity i am new to Python and to Beatiful Soup also! It is told to be a great tool to parse and extract content. So here i am...: I want to take the content of atd-tag of a table in a html document. For

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread Tim Harig
Mr. Chase, I really wouldn't even bother wasting my time on this one. He asked an incomplete question to start with; so, the replies that he received were insufficient to solve his problem. He still has not provided enough information to know how to answer his question propery. He doesn't

Bind C++ program for use with both Python 2.x and 3.x

2010-12-11 Thread Peter C.
Hello, I am looking at the possibility of making a program in C++. The catch is it will require the ability to work with binding for use with scripting in both Python 2.x and 3.x for various tool plugins. Is there any way to bind a C++ app to work with both Python 2.x and 3.x using the Python C

Re: Bind C++ program for use with both Python 2.x and 3.x

2010-12-11 Thread Martin v. Loewis
Am 11.12.2010 23:41, schrieb Peter C.: Hello, I am looking at the possibility of making a program in C++. The catch is it will require the ability to work with binding for use with scripting in both Python 2.x and 3.x for various tool plugins. Is there any way to bind a C++ app to work with

Re: Enabling the use of POSIX character classes in Python

2010-12-11 Thread Perry Johnson
On 2010-12-11, MRAB wrote: On 11/12/2010 17:33, Perry Johnson wrote: Python's re module does not support POSIX character classes, for example [:alpha:]. It is, of course, trivial to simulate them using character ranges when the text to be matched uses the ASCII character set. Sadly, my

Re: Ways of accessing this mailing list?

2010-12-11 Thread Martin Schoeoen
On 2010-11-04, Mark Wooding m...@distorted.org.uk wrote: John Bond li...@asd-group.com writes: Hope this isn't too O/T - I was just wondering how people read/send to this mailing list, eg. normal email client, gmane, some other software or online service? My normal inbox is getting

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread Steven D'Aprano
On Sat, 11 Dec 2010 11:43:13 -0800, mpnordland wrote: sorry, I've been busy, it's on linux, and current active user is the user currently using the computer. My program needs to switch log files when a different user starts using the computer. I think you have missed what people are trying to

array and strings in Python 3

2010-12-11 Thread wander.lairson
Hello, This is my first post on python mailing list. I've working in code which must run on python 2 and python 3. I am using array.array as data buffers. I am stuck with the following code line, which works on Python 2, but not on Python 3.1.2: import array array.array('B', 'test') Traceback

Re: array and strings in Python 3

2010-12-11 Thread Chris Rebert
On Sat, Dec 11, 2010 at 5:32 PM, wander.lairson wander.lair...@gmail.com wrote: Hello, This is my first post on python mailing list. I've working in code which must run on python 2 and python 3. I am using array.array as data buffers. I am stuck with the following code line, which works on

Re: array and strings in Python 3

2010-12-11 Thread wander.lairson
The `array` module's handling of strings changed as well. Reading the Python 3 docs @ http://docs.python.org/dev/library/array.html , we find (all emphases added): class array.array(typecode[, initializer])    [...]    If given a list or string, the initializer is passed to the new array’s

Re: Ways of accessing this mailing list?

2010-12-11 Thread Monte Milanuk
On 12/11/10 3:32 PM, Martin Schoeoen wrote: On 2010-11-04, Mark Woodingm...@distorted.org.uk wrote: John Bondli...@asd-group.com writes: Hope this isn't too O/T - I was just wondering how people read/send to this mailing list, eg. normal email client, gmane, some other software or online

Re: Ways of accessing this mailing list?

2010-12-11 Thread Harishankar
On Sat, 11 Dec 2010 21:15:13 -0800, Monte Milanuk wrote: Thunderbird + gmane works for me. I myself post using Pan Usenet client accessing this mailing list from gmane. The advantage of a proper newsreader software is that it quotes correctly (i.e. quote at top, reply below). Many Usenet and

[issue10676] Confusing note in Numeric Types

2010-12-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r87169. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10676

[issue10677] make altinstall includes ABI codes in versioned executable name

2010-12-11 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: make altinstall is currently installing python3.2m rather than python3.2. Since PEP 3149 makes no mention of changing the executable name, this should be fixed to correctly install the executable as python3.2. I suspect this will also

[issue10677] make altinstall includes ABI codes in versioned executable name

2010-12-11 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- components: +Build stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10677 ___

[issue10678] email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate .

2010-12-11 Thread Phyo Arkar Lwin
New submission from Phyo Arkar Lwin phyo.arkarl...@gmail.com: DESCRIPTION: I am trying to parse Time Zone information out of email messages and i found out that mktime_tz is totally ignoring TimeZone information from parsedate_tz. VERSION: 2.6.5 CODE and RESULTS: from time import mktime

[issue10678] email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate_tz .

2010-12-11 Thread Phyo Arkar Lwin
Changes by Phyo Arkar Lwin phyo.arkarl...@gmail.com: -- title: email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate . - email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate_tz .

[issue10679] make altinstall will clobber OS provided scripts

2010-12-11 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: make altinstall installs 2to3, pydoc3 and idle3 without version specific names. This was at least a deliberate decision in the case of 2to3, but there doesn't appear to be any reason not to use a properly qualified version suffix on the

[issue10679] make altinstall may clobber OS provided scripts

2010-12-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Softened the wording, since OS packages will often omit installing any executable files other than the main python binary. -- title: make altinstall will clobber OS provided scripts - make altinstall may clobber OS provided scripts

[issue10678] email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate_tz .

2010-12-11 Thread Phyo Arkar Lwin
Changes by Phyo Arkar Lwin phyo.arkarl...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10678 ___ ___

[issue10677] make altinstall includes ABI codes in versioned executable name

2010-12-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The other thing that makes this clearly an error is, of course, the fact that all the shebang lines expect the executable to be called python3.2 -- ___ Python tracker rep...@bugs.python.org

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-12-11 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: From the comment in the test_csv.py: +# XXX: I don't know what the correct behavior should be for these. +# Currently the first one raises an error that the delimiter can't +# be determined while the second one returns

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Milko Krachounov pyt...@milko.3mhz.net added the comment: I attached unit tests that test that cloexec is properly set. I can't test my tests too well with the unpatched version because runtests.sh is too complicated to use, and doesn't print any useful output by default. -- Added

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov pyt...@milko.3mhz.net: Removed file: http://bugs.python.org/file20007/subprocess-cloexec-atomic-py3k-tests1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7213 ___

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov pyt...@milko.3mhz.net: Added file: http://bugs.python.org/file20008/subprocess-cloexec-atomic-py3k-tests1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7213 ___

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov pyt...@milko.3mhz.net: Removed file: http://bugs.python.org/file20008/subprocess-cloexec-atomic-py3k-tests1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7213 ___

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov pyt...@milko.3mhz.net: Added file: http://bugs.python.org/file20009/subprocess-cloexec-atomic-py3k-tests1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7213 ___

[issue969718] BASECFLAGS are not passed to module build line

2010-12-11 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue969718 ___ ___ Python-bugs-list mailing list

[issue10642] site.py crashes on python startup due to defective .pth file

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I suggest to: - Print path to the .pth file, which causes exception. Current traceback doesn't help in finding the cause of problem: # echo import nonexistent /usr/lib64/python3.2/site-packages/some_file.pth #

[issue6559] [PATCH]add pass_fds paramter to subprocess.Popen()

2010-12-11 Thread Milko Krachounov
Milko Krachounov pyt...@milko.3mhz.net added the comment: The patch doesn't seem to work. I added this before closerange in _close_all_but_a_sorted_few_fds: print(Closing, start_fd, up to, fd, exclusive) And used the attached script to run as a subprocess to check for open fds (taken from my

[issue6559] [PATCH]add pass_fds paramter to subprocess.Popen()

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov pyt...@milko.3mhz.net: Added file: http://bugs.python.org/file20011/test_pass_fds.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6559 ___

[issue6559] [PATCH]add pass_fds paramter to subprocess.Popen()

2010-12-11 Thread Milko Krachounov
Changes by Milko Krachounov pyt...@milko.3mhz.net: Added file: http://bugs.python.org/file20012/subprocess-pass_fd_fix_example.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6559 ___

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-12-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yeah, obviously wrong. I forgot to finish editing the comment. I think a fallback of ',' makes more sense than ''. What would a delimiter of nothing mean? I don't think the unquoted case can be changed for backward compatibility

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Milko Krachounov
Milko Krachounov pyt...@milko.3mhz.net added the comment: I add a patch that tests close_fds (there's no test for close_fds), that requires the tests1 patch. By the way, should there be a test for the atomicity of the operations? -- Added file:

[issue10642] site.py crashes on python startup due to defective .pth file

2010-12-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I like the suggestion of turning it into a warning, myself, but you are right that at the least the error message should be improved. -- resolution: invalid - stage: committed/rejected - needs patch status: closed - open

[issue10677] make altinstall includes ABI codes in versioned executable name

2010-12-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Nice, definitely a blocker. (BTW, if you configured without any specific --prefix, you shouldn't clobber anything installed by the distribution...) -- ___ Python tracker rep...@bugs.python.org

[issue10679] make altinstall may clobber OS provided scripts

2010-12-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, this already irked me with previous versions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10679 ___

[issue10678] email.utils.mktime_tz Giving wrong result , by ignoring Timezone that comes from value of parsedate_tz .

2010-12-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: mktime_tz is documented as turning the input into a *UTC* timestamp. That's what your example shows it doing. There is an open issue elsewhere in this tracker for providing a way to round-trip RFC2822 timestamps. -- nosy:

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2010-12-11 Thread Mads Michelsen
New submission from Mads Michelsen madch...@gmail.com: This is a follow-up to Issue 58 from the Google Project Hosting bug tracker (http://code.google.com/p/argparse/issues/detail?id=58). I couldn't find any equivalent/re-posting of it here, so I took the liberty of creating a new one -

[issue10642] site.py crashes on python startup due to defective .pth file

2010-12-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Aren’t there studies that show that people don’t read warnings? I’m +0 on a warning and +1 on an error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10642

[issue10677] make altinstall includes ABI codes in versioned executable name

2010-12-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10677 ___ ___ Python-bugs-list

[issue10679] make altinstall may clobber OS provided scripts

2010-12-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10679 ___ ___ Python-bugs-list

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2010-12-11 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please formulate that is a test case? Use this structure: 1. do this 2. this happens 3. this should happen instead -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue10631] ZipFile and current directory change

2010-12-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10631 ___ ___ Python-bugs-list

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2010-12-11 Thread Mads Michelsen
Mads Michelsen madch...@gmail.com added the comment: Okay, I'll try: Save the following code as argparse_test.py: [CODE] #! /usr/bin/env python2 import argparse def args_config(about): parser = argparse.ArgumentParser(description=about) dummy_group =

[issue10642] Improve the error message of addpackage() (site.py) for defective .pth file

2010-12-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: site.py crashes on python startup due to defective .pth file - Improve the error message of addpackage() (site.py) for defective .pth file ___ Python tracker rep...@bugs.python.org

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: subprocess-cloexec-atomic-py3k-tests2-close_fds.patch adds a test called to Win32ProcessTestCase which is specific to Windows. And this class has already a test with the same name. You should move your test to ProcessTestCase (and

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: subprocess-cloexec-atomic-py3k-tests2-close_fds.patch adds a test called [test_close_fds] to Win32ProcessTestCase ... Oops, forget my last comment, I didn't applied the patches in the right order. There are too much patches :-p

[issue7695] missing termios constants

2010-12-11 Thread Rodolpho Eckhardt
Rodolpho Eckhardt r...@rhe.vg added the comment: Because these constants might not exist on all platforms, the patch uses ifdef's around them. -- keywords: +patch nosy: +Rodolpho.Eckhardt Added file: http://bugs.python.org/file20015/patch_termios_consts_issue7695.diff

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: subprocess-cloexec-atomic-py3k.patch: +case $ac_sys_system in + GNU*|Linux*) + AC_CHECK_FUNC(pipe2, AC_DEFINE(HAVE_PIPE2, 1, [Define if the OS supports pipe2()]), ) +esac I think that you can remove the test on the OS name.

[issue10502] Add unittestguirunner to Tools/

2010-12-11 Thread Mark Roddy
Mark Roddy markro...@gmail.com added the comment: Attaching patch that adds the unittestgui to Tools/scripts. Also has updates to the unittest documentation which includes a note that this tool is for beginners and a CI system should be used in general. -- keywords: +patch nosy:

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_pipe_cloexec_unix_tools() is specific to UNIX/BSD because it requires cat and grep programs. You should try to reuse the Python interpreter to have a portable test (eg. working on Windows), as you did with fd_status.py. +

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-11 Thread Jurko Gospodnetić
Jurko Gospodnetić jurko.gospodne...@gmail.com added the comment: Also this class, because it defines __del__ too simply, will display a user-unfriendly error message when cleaning up a TemporaryDirectory object whose constructor raised an exception when attempting to create its temporary

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-11 Thread Jurko Gospodnetić
Jurko Gospodnetić jurko.gospodne...@gmail.com added the comment: Clicked send too soon on the previous comment. :-( The simplest way I see you can fix the __del__ issue is to patch TemporaryDirectory.__init__() as follows: def __init__(self, suffix=, prefix=template, dir=None):

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Phil Thompson
New submission from Phil Thompson p...@riverbankcomputing.com: In Python v3.2b1 the type of the first argument of PySlice_GetIndices() and PySlice_GetIndicesEx() has changed from PySliceObject* to PyObject*. The documentation does not reflect this change. Which is correct, the source code or

[issue10677] make altinstall includes ABI codes in versioned executable name

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10677 ___

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The source is correct. Fixed in r87171. -- nosy: +loewis resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10681

[issue10679] make altinstall may clobber OS provided scripts

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10679 ___

[issue10663] configure shouldn't set a default OPT

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10663 ___

[issue969718] BASECFLAGS are not passed to module build line

2010-12-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue969718 ___

[issue7213] Popen.subprocess change close_fds default to True

2010-12-11 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7213 ___ ___ Python-bugs-list mailing list

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Phil Thompson
Phil Thompson p...@riverbankcomputing.com added the comment: You might want to add a Changed in Python v3.2 because as it is an incompatible change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10681

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied the fix from msg123808 in r87172. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10188 ___

[issue10681] PySlice_GetIndices() signature changed

2010-12-11 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It's not an incompatible change, but I added the versionchanged anyway in r87173. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10681

[issue10642] Improve the error message of addpackage() (site.py) for defective .pth file

2010-12-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: My guess is people don't read warnings when they are a common occurrence. A working Python should not emit any warnings, and a properly working Python program (post 2.6/3.1 (or whenever it was we decided to suppress deprecation

  1   2   >