[RELEASED] Python 2.7.1

2010-11-28 Thread Benjamin Peterson
On behalf of the Python development team, I'm happy as a clam to announce the immediate availability of Python 2.7.1. 2.7 includes many features that were first released in Python 3.1. The faster io module, the new nested with statement syntax, improved float repr, set literals, dictionary views,

[RELEASED] Python 3.1.3

2010-11-28 Thread Benjamin Peterson
On behalf of the Python development team, I'm happy as a lark to announce the third bugfix release for the Python 3.1 series, Python 3.1.3. This bug fix release features numerous bug fixes and documentation improvements over 3.1.2. The Python 3.1 version series focuses on the stabilization and

Re: Comparing floats

2010-11-28 Thread Peter Otten
kj wrote: I understand that, in Python 2.7 and 3.x = 3.1, when the interactive shell displays a float it shows the shortest decimal fraction that rounds correctly back to the true binary value. Is there a way to access this rounding functionality from code that must be able to run under

Re: Kind of plugin system

2010-11-28 Thread Gaëtan Podevijn
Hello, Thank you both, I'll look at this in more depth ! Regards, Gaëtan 2010/11/27 Marc-Andre Belzile marc-andre.belz...@autodesk.com I guess you could just define an entry-point in your source provider files that would return a specific instance of an InformationProvider class. This

TDD in python

2010-11-28 Thread Rustom Mody
Does anyone know of something like this for python? http://www.vimeo.com/13240481 -- http://mail.python.org/mailman/listinfo/python-list

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread coldpizza
On Nov 24, 11:08 pm, Raymond Hettinger pyt...@rcn.com wrote: I'm writing-up more guidance on how to use super() and would like to point at some real-world Python examples of cooperative multiple inheritance. Google searches take me to old papers for C++ and Eiffel, but that don't seem to be

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread Mark Wooding
Steve Holden st...@holdenweb.com writes: It isn't. Even inheritance itself isn't as useful as it at first appears, and composition turns out in practice to be much more useful. That goes double for multiple inheritance. Composition /with a convenient notation for delegation/ works fairly

Standard module implementation

2010-11-28 Thread candide
I was wondering if all the standard module are implemented in C. For instance, I can't find a C implementation for the minidom xml parser under Python 2.6. -- http://mail.python.org/mailman/listinfo/python-list

Re: Standard module implementation

2010-11-28 Thread Benjamin Kaplan
On Sun, Nov 28, 2010 at 9:08 AM, candide cand...@free.invalid wrote: I was wondering if all the standard module are implemented in C. For instance, I can't find a C implementation for the minidom xml parser under Python 2.6. -- No they aren't. A good chunk of the standard library is

Re: TDD in python

2010-11-28 Thread Stefan Behnel
Rustom Mody, 28.11.2010 11:58: Does anyone know of something like this for python? http://www.vimeo.com/13240481 The page seems to require a recent version of the Flash player. Could you describe what exactly you are looking for? Stefan --

Re: google group api with python

2010-11-28 Thread News123
On 11/27/2010 11:51 PM, macroasm wrote: hi. i want google group with send python. how do user api. Hi macroasm, You will probably increase tha amount of replies if you elaborate on your question. I personally do not really understand what you exactly asked for. --

How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread He Jibo
Hi, I am writing a small program, which needs to get the URL of the active tab in either of firefox, internet exploerer or chrome. My need is similar as the one posted at, http://stackoverflow.com/questions/3631 ... -ie-chrome I did a lot of Googling, and get the following code. The following

remote control firefox with python

2010-11-28 Thread News123
Hi, I wondered whether there is a simpe way to 'remote' control fire fox with python. With remote controlling I mean: - enter a url in the title bar and click on it - create a new tab - enter another url click on it - save the html document of this page - Probably the most difficult one:

Re: Python 3.1.3

2010-11-28 Thread Gnarlodious
Don't know why, but in Terminal the uparrow now gives me: ^[[A which means I no longer have history scrolling. -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Subprocesses and Ctrl-C handling on windows

2010-11-28 Thread Perry Johnson
I have a python script which spawns a subprocess that takes a few seconds to complete. If I hit Ctrl-C while the subprocess is executing, sometimes the python script and the subprocess end silently and I get back to the shell prompt and sometimes I get the KeyboardInterrupt exception. Is there any

send free sms to any mobile in the world

2010-11-28 Thread mohammed_a_o
send free sms to any mobile in the world http://www.phpforweb.com/askany/sms.php?sms -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.1.3

2010-11-28 Thread Stefan Behnel
Gnarlodious, 28.11.2010 16:35: Don't know why, but in Terminal the uparrow now gives me: ^[[A which means I no longer have history scrolling. You seem to be mailing from a Mac, is that the system you're having this problem with? Did you build Python yourself or use a provided binary? (and,

Re: Python 3.1.3

2010-11-28 Thread Gnarlodious
Ah yes, sorry. This is Mac OSX 10.6.5, I did it build from the file at http://www.python.org/ftp/python/3.1.3/Python-3.1.3.tgz -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.1.3

2010-11-28 Thread Roy Smith
In article 2b22dfa0-41d5-4047-8cfe-7a18e00e3...@o23g2000prh.googlegroups.com, Gnarlodious gnarlodi...@gmail.com wrote: Ah yes, sorry. This is Mac OSX 10.6.5, I did it build from the file at http://www.python.org/ftp/python/3.1.3/Python-3.1.3.tgz -- Gnarlie I'm seeing the same behavior on

Re: Python 3.1.3

2010-11-28 Thread Gnarlodious
Well I don't know what a readline is, but I upgraded from 3.1.1 and it was working fine. I might also add that the downarrow is also broken: ^[[B -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.1.3

2010-11-28 Thread Ned Deily
In article 2b22dfa0-41d5-4047-8cfe-7a18e00e3...@o23g2000prh.googlegroups.com, Gnarlodious gnarlodi...@gmail.com wrote: Ah yes, sorry. This is Mac OSX 10.6.5, I did it build from the file at http://www.python.org/ftp/python/3.1.3/Python-3.1.3.tgz For Python 3.1 on OS X, you'll need to supply

Re: Python 3.1.3

2010-11-28 Thread Ned Deily
In article roy-f66d8a.11273628112...@news.panix.com, Roy Smith r...@panix.com wrote: I'm seeing the same behavior on a build I did of Python 3.2a4+ (py3k:86538, Nov 19 2010, 20:52:31) last week, also on 10.6.5. From the configure output, it looks like it found readline: py3k$ grep -i

Re: remote control firefox with python

2010-11-28 Thread Tim Harig
On 2010-11-28, News123 news1...@free.fr wrote: Thanks in advance for any pointers ideas. google XPCOM -- http://mail.python.org/mailman/listinfo/python-list

nike jordan shoes coach, chane bag COOGI

2010-11-28 Thread dgf dg
=== http://www.stefsclothes.net === Handbags(Coach lv fendi dg) $35 Tshirts (Polo ,ed hardy,lacoste) $16 Jean(True Religion,ed hardy,coogi) $30 Sunglasses(Oakey,coach,gucci,Armaini) $16 New era cap $15 Bikini (Ed hardy,polo) $25 http://www.stefsclothes.net --

Getting current time zone in Python in tzinfo format not implemented

2010-11-28 Thread John Nagle
Getting the local time zone in Python is rather difficult. As of 2008, two articles indicate that the current mechanisms totally suck: Python and time zones part 2: The beast returns!: http://regebro.wordpress.com/2008/05/10/python-and-time-zones-part-2-the-beast-returns/ Time zones in

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread Kirill Simonov
Hi Raymond, We've been using cooperative inheritance to implement stacked utilities such as WSGI middleware or connecting to a database. An example of a WSGI middleware stack: # Declare the interface and provide the default implementation. class WSGI(Utility): def __call__(self, environ,

Re: TDD in python

2010-11-28 Thread Terry Reedy
On 11/28/2010 5:58 AM, Rustom Mody wrote: Does anyone know of something like this for python? http://www.vimeo.com/13240481 This is the first in a series of videos demonstrating TDD in C++ using the Eclipse CDT and CppUTest TDD = Test-Driven Development is a development philosophy

Re: Python 3.1.3

2010-11-28 Thread Roy Smith
In article 53c154fa-e957-4266-ad12-eaf8c2ef3...@35g2000prt.googlegroups.com, Gnarlodious gnarlodi...@gmail.com wrote: Well I don't know what a readline is, but I upgraded from 3.1.1 and it was working fine. I might also add that the downarrow is also broken: ^[[B -- Gnarlie Readline is

Re: Subprocesses and Ctrl-C handling on windows

2010-11-28 Thread Perry Johnson
On 2010-11-28, Perry Johnson wrote: I have a python script which spawns a subprocess that takes a few seconds to complete. If I hit Ctrl-C while the subprocess is executing, sometimes the python script and the subprocess end silently and I get back to the shell prompt and sometimes I get the

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread André Malo
* Steve Holden wrote: Even inheritance itself isn't as useful as it at first appears, and composition turns out in practice to be much more useful. That goes double for multiple inheritance. Amen. nd -- my @japh = (sub{q~Just~},sub{q~Another~},sub{q~Perl~},sub{q~Hacker~}); my $japh = q[sub

Re: How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread Tim Harig
On 2010-11-28, He Jibo hej...@gmail.com wrote: I did a lot of Googling, and get the following code. The following code can get the url of the first tab in internet explorer. My question is, how can I get the url of the current active tab? Thanks. It would be beneficial to know what your

Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-28 Thread python
I had planned on subclassing Tkinter.Toplevel() using property() to wrap access to properties like a window's title. After much head scratching and a peek at the Tkinter.py source, I realized that all Tkinter classes are old-style classes (even under Python 2.7). 1. Is there a technical reason

Re: Standard module implementation

2010-11-28 Thread Chris Rebert
On Sun, Nov 28, 2010 at 6:08 AM, candide cand...@free.invalid wrote: I was wondering if all the standard module are implemented in C. For instance, I can't find a C implementation for the minidom xml parser under Python 2.6. As was already said, no; a significant portion if not the majority of

Re: remote control firefox with python

2010-11-28 Thread News123
On 11/28/2010 06:19 PM, Tim Harig wrote: On 2010-11-28, News123 news1...@free.fr wrote: Thanks in advance for any pointers ideas. google XPCOM thanks a lot -- http://mail.python.org/mailman/listinfo/python-list

Re: Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-28 Thread Terry Reedy
On 11/28/2010 3:47 PM, pyt...@bdurham.com wrote: I had planned on subclassing Tkinter.Toplevel() using property() to wrap access to properties like a window's title. After much head scratching and a peek at the Tkinter.py source, I realized that all Tkinter classes are old-style classes (even

Re: Comparing floats

2010-11-28 Thread Nobody
On Sat, 27 Nov 2010 18:23:48 -0500, Terry Reedy wrote: Therefore, to implement this multiplication operation I need to have a way to verify that the float tuples C and D are equal. I might try the average relative difference: sum(abs((i-j)/(i+j)) for i,j in zip(C,D))/n # assuming lengths

Help required with Tranformation of coordinate system

2010-11-28 Thread BansalMaddy
hi all! i need a help in python! i am struggling to implement this since last 2/3 days. suppose i have a 2D plot (say y=x**2). now on the same plot i want to transform my origin of coordinate system to a point (x',y' on this curve and again create a new plot with origin at x',y') can somebody help

list of regex special characters

2010-11-28 Thread goldtech
I am looking for a list of special character in python regular expressions that need to be escaped if you want their literal meaning. I searched and can not find the list. Any help appreciated. -- http://mail.python.org/mailman/listinfo/python-list

Re: list of regex special characters

2010-11-28 Thread Ben Finney
goldtech goldt...@worldpost.com writes: I am looking for a list of special character in python regular expressions that need to be escaped if you want their literal meaning. You can avoid caring about that by using ‘re.escape’, which escapes any characters in its input character that are not

Re: list of regex special characters

2010-11-28 Thread Tim Chase
On 11/28/2010 05:58 PM, goldtech wrote: I am looking for a list of special character in python regular expressions that need to be escaped if you want their literal meaning. I searched and can not find the list. Any help appreciated. Trust the re module to tell you: import re chars =

Re: list of regex special characters

2010-11-28 Thread Ben Finney
Tim Chase python.l...@tim.thechases.com writes: On 11/28/2010 05:58 PM, goldtech wrote: I am looking for a list of special character in python regular expressions that need to be escaped if you want their literal meaning. Trust the re module to tell you: import re chars = [chr(i)

Re: Help required with Tranformation of coordinate system

2010-11-28 Thread Terry Reedy
On 11/28/2010 6:36 PM, BansalMaddy wrote: hi all! i need a help in python! i am struggling to implement this since last 2/3 days. suppose i have a 2D plot (say y=x**2). now on the same plot i want to transform my origin of coordinate system to a point (x',y' on this curve and again create a new

ANN: ActivePython 2.6.6.17 is now available

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

Re: SQLite date fields

2010-11-28 Thread Tim Roberts
Duncan Booth duncan.bo...@invalid.invalid wrote: Tim Roberts t...@probo.com wrote: However, when it comes to writing-back data to the table, SQLite is very forgiving and is quite happy to store '25/06/2003' in a date field, SQLite is essentially typeless. ALL fields are stored as strings,

Next Melbourne PUG meeting Monday 6th of December

2010-11-28 Thread Richard Jones
Hi all, The Melbourne Python Users Group will be meeting 6PM next Monday, the 6th of December at RMIT University. For details see http://bit.ly/mpug. -- http://mail.python.org/mailman/listinfo/python-list

How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread He Jibo
Hi, I am writing a small program, which needs to get the URL of the active tab in either of firefox, internet exploerer or chrome. My need is similar as the one posted at, http://stackoverflow.com/questions/3631216/how-do-i-get-the-url-of-the-visible-tab-in-firefox-ie-chrome I did a lot of

How do you find out what's happening in a process?

2010-11-28 Thread Leo Jay
Hi all, I'd like to know how do you guys find out what's happening in your code if the process seems not work. In java, I will use jstack pid to check stacks of threads and lock status. But I don't know how to do it in python. -- Best Regards, Leo Jay --

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread Raymond Hettinger
On Nov 28, 4:36 am, coldpizza vri...@gmail.com wrote: Did you try google code search? It is *not* the same as google code hosting. The site ishttp://www.google.com/codesearchand you can select Python in the 'language' dropdown. Yes, I use Google's code search frequently and did try it for

Re: How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread Michel Claveau - MVP
Hello! The InternetExplorer.Application automation object doesn't contain any way to manipulate tabs directly False. Try this example: import win32com.client for instance in win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'): print instance, URL

Re: Help required with Tranformation of coordinate system

2010-11-28 Thread BansalMaddy
On Nov 29, 2:03 am, Terry Reedy tjre...@udel.edu wrote: On 11/28/2010 6:36 PM, BansalMaddy wrote: hi all! i need a help in python! i am struggling to implement this since last 2/3 days. suppose i have a 2D plot (say y=x**2). now on the same plot i want to transform my origin of

Re: Next Melbourne PUG meeting Monday 6th of December

2010-11-28 Thread Ben Finney
Richard Jones r1chardj0...@gmail.com writes: The Melbourne Python Users Group will be meeting 6PM next Monday, the 6th of December at RMIT University. For details see http://bit.ly/mpug. Or for those who prefer their URLs to avoid unnecessary points of failure, that's

Urgent requirement for Php Developer

2010-11-28 Thread Priyanka Kalpande
Urgent requirment for Python programmer. For the further details contact us on 9930698901 or eMail your resumes to hr.mana...@pfhit.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread Tim Harig
On 2010-11-29, Michel Claveau - MVP enleverlesx_xx...@xmclavxeaux.com.invalid wrote: Hello! The InternetExplorer.Application automation object doesn't contain any way to manipulate tabs directly False. Try this example: import win32com.client for instance in

[issue10496] import site failed when Python can't find home directory

2010-11-28 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: I tried running bug.c using the svn head of python and got this: Could not find platform independent libraries prefix Could not find platform dependent libraries exec_prefix Consider setting $PYTHONHOME to prefix[:exec_prefix] Fatal Python error:

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I checked both the 3.1.2 and 3.1.3 x86 msi installers on windows xp machine using Avast and it didn't find anything. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org

[issue6454] Add example keyword argument to optparse constructor

2010-11-28 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: With argparse, you can specify formatter_class= RawDescriptionHelpFormatter and then format things however you want in the description. http://docs.python.org/dev/library/argparse.html#formatter-class So I think there's no need for

[issue5209] nntplib needs updating to RFC 3977

2010-11-28 Thread Julien ÉLIE
Julien ÉLIE jul...@trigofacile.com added the comment: +Whether posting is allowed depends on whether it +is included in results of CAPABILITIES; see +RFC 3977 section 5.1.2. +Deprecated: If the response code is 200, posting is allowed; if

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: At the very least we'd need to know what virus scanner, and what version of it, the OP used. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10500

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: Removed file: http://bugs.python.org/file19844/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10500 ___

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: While the behavior is confusing, I don't think yield inside comprehensions should be disallowed. Rather, the fact that comprehensions have their own scope should be stated clearer. -- nosy: +georg.brandl

[issue10507] Check well-formedness of reST markup within make patchcheck

2010-11-28 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: rst2html doesn't help, since it doesn't recognize Sphinx' and Python's own markup extensions. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10507

[issue3243] Support iterable bodies in httplib

2010-11-28 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: Hi, attached is a ported version of the patch that applies against py3k. -- nosy: +xuanji Added file: http://bugs.python.org/file19852/issue_3243_py3k.diff ___ Python tracker rep...@bugs.python.org

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Checked python-3.1.2.msi with f-prot, no viruses. Checked download with firefox (which claims to do a short virus scan), no results. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue10557] Malformed error message from float()

2010-11-28 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10557 ___ ___ Python-bugs-list

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-11-28 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Thanks for Terry's addition to the patch! On my python3.2a3 on windows(also copied os.py and test_os.py to the installation), I only get the tow os.link errors. And this is because the python3.2a3 hasn't the os.link function, and the

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: No problems when I downloaded and installed on Windows XP. I scanned using the Symantec EndPoint protection and no threats found. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org

[issue10560] Fixes for Windows sources

2010-11-28 Thread Carlo Bramini
New submission from Carlo Bramini carlo.bra...@libero.it: Hello, I was able to compile latest python sources with MSVC5, by importing and fixing a bit the project workspaces of MSVC6. During this action I received some messages, so I gave a look to the sources and I would like to suggest the

[issue10561] The pdb command 'clear bpnumber' may delete more than one breakpoint

2010-11-28 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: Description: 1. When deleting a single breakpoint, all the breakpoints located on the line of this breakpoint are also deleted. See the test case below. 2. The pdb 'clear' command documentation does not mention that all

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Thinking about it, declaring PyMODINIT_FUNC as void would be a huge step backwards. Using PyMODINIT_FUNC is the correct way of doing things. The current situation punishes developers who actually read the docs. If a C module stops

[issue8710] test_xpickle: compat tests: workaround for missing test_support

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Right, Debian's solution is quite reasonable. Closing as wont_fix. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10560] Fixes for Windows sources

2010-11-28 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10560 ___ ___

[issue10537] OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something.

2010-11-28 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Ned: I was thinking of Issue6075 The patch in that issue needs work, IIRC I was pretty sure at the time that the patch was too large and changed more code that it should have. Sadly enough I have barely had time to do any open-source

[issue10560] Fixes for Windows sources

2010-11-28 Thread Carlo Bramini
Carlo Bramini carlo.bra...@libero.it added the comment: According to the instructions received at #python-dev, I'm posting a new patch with the same fixes made on the most recent SVN sources (py3k). Actually the new patch does not include the fixes made on the GetFileAttributesEx wrappers

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Scanning with Microsoft Security Essentials says no threat detected. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10500

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I think I can probably fix it, but it's debatable whether it should be done, since it'd make list comps more of quasi functions. -- nosy: +benjamin.peterson ___ Python tracker

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-11-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: In my opinion, 2.6.6 was faulty in the float + xint case, for the same reasons as above, and 2.7 is faulty in both float + xint and complex + xint. Well, I disagree: Python is behaving as designed and documented in these cases. If you

[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-11-28 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Please fix this patch to raise BadZipFile instead of BadZipfile. See http://docs.python.org/dev/library/zipfile.html?highlight=zipfile#zipfile.BadZipfile. The use of the class name BadZipfile is deprecated. The class name BadZipFile is

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: File checked with ClamAV under Linux, no findings. -- nosy: +scoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10500 ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Boštjan Mejak
New submission from Boštjan Mejak bostjan.me...@gmail.com: In Python, the letter 'j' denotes the imaginary unit. It would be great if we would follow mathematics in this regard and let the imaginary unit be denoted with an 'i'. -- components: Interpreter Core messages: 122662 nosy:

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - mark.dickinson nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: We follow engineering which uses j. (I was about to close this as wontfix but Antoine is particularly keen that Mark deals with this issue...) -- nosy: +michael.foord ___ Python tracker

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: r86848: backported r85422, as required by the changes in r85358. Antoine, there are some remaining {LDFLAGS}, two in the Darwin sections, one in the OpenBSD section. I think all of those should be removed as well. Do you agree?

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Gerrit Holl
New submission from Gerrit Holl topjakl...@gmail.com: When the time passed to time.ctime is large, it adds a newline: import time time.ctime(236) 'Wed Apr 8 17:04:32 6325' time.ctime(237) 'Wed Jul 14 08:09:04 10680\n' -- components: Library (Lib) messages: 122665 nosy: Gerrit.Holl

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine, there are some remaining {LDFLAGS}, two in the Darwin sections, one in the OpenBSD section. I think all of those should be removed as well. Do you agree? I didn't want to mess with these things too much. I guess you can try and

[issue10564] maths float error

2010-11-28 Thread Tom Quaile
New submission from Tom Quaile tom.qua...@gmail.com: Using IDLE 3.2a4 Apologies in advance for probably wasting your time. If I'm wrong, just ignore me. I'm very new to Python. Is this a bug, my processor or me? I'm sending this in as I see it's an alpha release. If the user supplies 100 as

[issue10565] isinstance(x, collections.Iterator) can return True, when x isn't iterable

2010-11-28 Thread Daniel Urban
New submission from Daniel Urban urban.dani...@gmail.com: If the type of x defines __next__, but not __iter__, isinstance(x, collections.Iterator) returns True, but in fact x isn't iterable. class X: ... def __next__(self): ... raise StopIteration() ... x = X() isinstance(x,

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-11-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file19832/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5211 ___

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-11-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file19828/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5211 ___

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-11-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file19820/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5211 ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Glad to oblige. :-) -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: There's an error in time_ctime where it expects the length of the string to be fixed: if (p[24] == '\n') p[24] = '\0'; It doesn't count on the year having 5 digits. It should probably say (untested): l = len(p); if (l 0

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: That should be strlen(), of course. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10563 ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-11-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Just to add my own thoughts: 'j' for *a* (not *the* /pedantry) square root of -1 has, as Michael points out, a history of use in engineering (particularly electrical engineering) and physics. Personally, I would have preferred 'i' to 'j'

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: What platform are you running this on? My Fedora 32 bit system won't support a time_t that large. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10563

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Gerrit Holl
Gerrit Holl topjakl...@gmail.com added the comment: I'm on a 64bit system (kubuntu lucid lynx) $ uname -a Linux sjisjka 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010 x86_64 GNU/Linux -- ___ Python tracker rep...@bugs.python.org

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Can you try this diff and see if it solves the problem: Index: Modules/timemodule.c === --- Modules/timemodule.c(revision 86848) +++ Modules/timemodule.c(working

[issue10564] maths float error

2010-11-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10564 ___ ___

[issue10564] maths float error

2010-11-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I get 114.9. How many '9's are there on what you're getting? If you really get '114.9' then something surprising is happening. If, on the other hand, you get '114.99', then it's all as expected. :-) The issue

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: VirusTotal says it is clean. http://www.virustotal.com/file-scan/report.html?id=ca802f144a7e8268a773fa2567fecb0a1d792c62c00f751f27d103a263352113-1290961377 I suggest to close this issue. -- nosy: +jcea

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Gerrit Holl
Gerrit Holl topjakl...@gmail.com added the comment: Yes, this solves the issue: $ ./python Python 3.1.3 (r313:86834, Nov 28 2010, 17:34:23) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. import time time.ctime(240) 'Fri Apr 10 03:12:32 71654'

  1   2   3   >