Re: Python programming

2014-03-07 Thread Larry Hudson
snip I spotted a device on the table of the company calibration office... As I recall, it was a 100A capable resistor... 0.10 OHM. No idea what it was meant for; big binding posts at one end, and a slab of sheet steel in a W shape (smooth curves, not sharp bends).

Re: why does python --version write to standard error?

2014-03-07 Thread Ned Deily
In article 20140307075744.ga43...@cskk.homeip.net, Cameron Simpson c...@zip.com.au wrote: This seems to write the python version to standard error. That seems very wrong. And at variance with the manual entry. Fixed in Python 3.4: http://bugs.python.org/issue18338 -- Ned Deily,

problem running python 3.3 on mac os mavericks

2014-03-07 Thread Romil Agrawal
I currently installed python 3.3.4 on mac os mavericks, and want to run it on Wing IDE. Previously it was running python 2.7.6. When I tried to change the python excitable in the wing ide configuration mode, and then restarted it, a dialog box was displayed that said the interpreter of python

Re: Tuples and immutability

2014-03-07 Thread Duncan Booth
Chris Angelico ros...@gmail.com wrote: On Sat, Mar 1, 2014 at 1:41 AM, Joshua Landau jos...@landau.ws wrote: Would it be better to add a check here, such that if this gets raised to the top-level it includes a warning (Addition was inplace; variable probably mutated despite assignment

Re: why does python --version write to standard error?

2014-03-07 Thread Cameron Simpson
On 07Mar2014 00:31, Ned Deily n...@acm.org wrote: In article 20140307075744.ga43...@cskk.homeip.net, Cameron Simpson c...@zip.com.au wrote: This seems to write the python version to standard error. That seems very wrong. And at variance with the manual entry. Fixed in Python 3.4:

Re: gdb unable to read python frame information

2014-03-07 Thread Wesley
Then, how to make python get debug symbols? Install python from source with some special configure options? -- https://mail.python.org/mailman/listinfo/python-list

Re: Tuples and immutability

2014-03-07 Thread Ben Finney
Duncan Booth duncan.booth@invalid.invalid writes: Is there any reason why tuples need to throw an exception on assigning to the element if the old value and new value are the same object? Special cases aren't special enough to break the rules. -- \ “I do not believe in forgiveness

Re: Tuples and immutability

2014-03-07 Thread Chris Angelico
On Fri, Mar 7, 2014 at 8:33 PM, Duncan Booth duncan.booth@invalid.invalid wrote: Is there any reason why tuples need to throw an exception on assigning to the element if the old value and new value are the same object? It'd be easy enough to implement your own tuple subclass that behaves that

Re: Assertions are bad, m'kay?

2014-03-07 Thread Steven D'Aprano
On Fri, 07 Mar 2014 18:16:55 +1100, Chris Angelico wrote: They produce the wrong exception type, they disappear when you least expect them, and now we have another reason not to use assert. http://xkcd.com/1339/ Abusing assert for arg checking violates XKCD 1339. Write

Re: Assertions are bad, m'kay?

2014-03-07 Thread Chris Angelico
On Fri, Mar 7, 2014 at 10:11 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: http://xkcd.com/1339/ Abusing assert for arg checking violates XKCD 1339. Write standards-compliant code! Assertions are not bad! They're just misunderstood and abused. (By the way, assertions are

Re: Tuples and immutability

2014-03-07 Thread Peter Otten
Chris Angelico wrote: On Fri, Mar 7, 2014 at 8:33 PM, Duncan Booth duncan.booth@invalid.invalid wrote: Is there any reason why tuples need to throw an exception on assigning to the element if the old value and new value are the same object? It'd be easy enough to implement your own tuple

Re: Tuples and immutability

2014-03-07 Thread Chris Angelico
On Fri, Mar 7, 2014 at 10:38 PM, Peter Otten __pete...@web.de wrote: TypeError: 257 is not 257 I'm not sure help is the right word here ;) It doesn't help with non-small integers, yes, but the original case was a list. Personally, I don't think there are many situations that would benefit from

Re: Tuples and immutability

2014-03-07 Thread Alister
On Fri, 07 Mar 2014 09:33:49 +, Duncan Booth wrote: Chris Angelico ros...@gmail.com wrote: On Sat, Mar 1, 2014 at 1:41 AM, Joshua Landau jos...@landau.ws wrote: Would it be better to add a check here, such that if this gets raised to the top-level it includes a warning (Addition was

GOLLY! HUMANS HAVE ORIGINS IN THE DEVONIAN!

2014-03-07 Thread thrinaxodon . of . use . net123
== HOLY F*CKING GOD DAMNED NEWS! == WELCOME TO YOUR NUMBER ONE SOURCE FOR PRESTIGIOUS BULLLSHIT! THE KIND YOU CAN ONLY GET FROM THRINAXODON CRAZY CHEESY! NOW FOR YOUR FAVORITE TIME SLOT: == THRINAXODON FOUND 3 HUMAN FOSSILS FROM

Re: gdb unable to read python frame information

2014-03-07 Thread Neal Becker
dieter wrote: Wesley nisp...@gmail.com writes: I wanna use gdb to attach my running python scripts. Successfully import libpython in gdb, but seems all py operations failed to read python information. Here is the snippet: (gdb) python import libpython end (gdb) py-bt #3 (unable to read

debugging on windows

2014-03-07 Thread Robin Becker
Using Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. to run a tkinter + pmw2 application I have the following error on windows xp sp3 Unhandled exception at 0x1e0aebb8 in

Re: Tuples and immutability

2014-03-07 Thread Roy Smith
In article XnsA2E95FA1E1EB6duncanbooth@127.0.0.1, Duncan Booth duncan.booth@invalid.invalid wrote: Is there any reason why tuples need to throw an exception on assigning to the element if the old value and new value are the same object? If I say: a = (spam, [10, 30], eggs) then

Re: Python programming

2014-03-07 Thread Grant Edwards
On 2014-03-07, William Ray Wing w...@mac.com wrote: On Mar 6, 2014, at 8:24 PM, Roy Smith r...@panix.com wrote: I spotted a device on the table of the company calibration office... As I recall, it was a 100A capable resistor... 0.10 OHM. No idea what it was meant for; big binding posts at

Re: Python programming

2014-03-07 Thread John Ladasky
On Thursday, February 13, 2014 12:30:39 AM UTC-8, larry@gmail.com wrote: On Wed, Feb 12, 2014 at 10:56 PM, William Ray Wing w...@mac.com wrote: OK, and how many of you remember the original version of the tongue-in-cheek essay Real Programmers Don't Use Pascal from the back page of

Is their a command to view code?

2014-03-07 Thread NexusRAwesome1995 .
I am making a text based aventure game for my assignment and a friends test run has somehow saved over the entire code file and now im using an earlier version of the code. I have 0 idea if there is anyway to look at the code using the IDLE and i need to do it to see how i fixed the fatal error

Re: Tuples and immutability

2014-03-07 Thread Ian Kelly
On Fri, Mar 7, 2014 at 4:51 AM, Alister alister.w...@ntlworld.com wrote: I would think it would be better if the exception was thrown before the assignment to the list took place simply seeing that a modification action was being applied to a tupple should be enough. this would alert the

Re: Python programming

2014-03-07 Thread Gene Heskett
On Friday 07 March 2014 12:29:38 Grant Edwards did opine: On 2014-03-07, William Ray Wing w...@mac.com wrote: On Mar 6, 2014, at 8:24 PM, Roy Smith r...@panix.com wrote: I spotted a device on the table of the company calibration office... As I recall, it was a 100A capable resistor...

Re: Is their a command to view code?

2014-03-07 Thread Ian Kelly
On Fri, Mar 7, 2014 at 10:55 AM, NexusRAwesome1995 . nexusrawes...@gmail.com wrote: I am making a text based aventure game for my assignment and a friends test run has somehow saved over the entire code file and now im using an earlier version of the code. I have 0 idea if there is anyway to

Re: Is their a command to view code?

2014-03-07 Thread Joel Goldstick
On Mar 7, 2014 1:16 PM, NexusRAwesome1995 . nexusrawes...@gmail.com wrote: I am making a text based aventure game for my assignment and a friends test run has somehow saved over the entire code file and now im using an earlier version of the code. I have 0 idea if there is anyway to look at the

extract from json

2014-03-07 Thread teddybubu
I can't find any example on how to do this. I have a json file like so: {bostock:[{url:http://bl.ocks.org/mbostock/9360565,title:titleplaceholder,date:dateplaceholder}, {url:http://bl.ocks.org/mbostock/9265674,title:titleplaceholder,date:dateplaceholder},

Re: gdb unable to read python frame information

2014-03-07 Thread Ned Deily
In article c583c21d-d0a2-449a-93e2-37db713b3...@googlegroups.com, Wesley nisp...@gmail.com wrote: Then, how to make python get debug symbols? Install python from source with some special configure options? If your distribution doesn't have a debug version of Python and you need to build

Re: extract from json

2014-03-07 Thread Kev Dwyer
teddyb...@gmail.com wrote: I can't find any example on how to do this. I have a json file like so: {bostock: [{url:http://bl.ocks.org/mbostock/9360565,title:titleplaceholder,date:dateplaceholder}, {url:http://bl.ocks.org/mbostock/9265674,title:titleplaceholder,date:dateplaceholder},

Re: Assertions are bad, m'kay?

2014-03-07 Thread Dan Stromberg
On Fri, Mar 7, 2014 at 3:11 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Assertions are not bad! They're just misunderstood and abused. You should read this guy's blog post on when to use assert: http://import-that.dreamwidth.org/676.html Nice article. BTW, what about:

Re: Assertions are bad, m'kay?

2014-03-07 Thread Ben Finney
Dan Stromberg drsali...@gmail.com writes: BTW, what about: if value = 3: raise AssertionError('value must be = 3') That would be very confusing, since it would only appear when the value is = 3. Were you making some other point? -- \“If this is your first visit to the USSR, you

Re: Assertions are bad, m'kay?

2014-03-07 Thread Irmen de Jong
On 8-3-2014 1:15, Dan Stromberg wrote: On Fri, Mar 7, 2014 at 3:11 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Assertions are not bad! They're just misunderstood and abused. You should read this guy's blog post on when to use assert:

Re: Function and turtle help

2014-03-07 Thread Lee Harr
I am completely new to programming so thanks for any help! Not sure it will help, and hopefully I am not self-promoting too much, but this may be of interest to you: http://pynguin.googlecode.com/ http://code.google.com/p/pynguin/wiki/StartProgramming I am interested in feedback from new

Re: Function and turtle help

2014-03-07 Thread Scott W Dunning
On Mar 7, 2014, at 6:16 PM, Lee Harr miss...@hotmail.com wrote: I am completely new to programming so thanks for any help! Not sure it will help, and hopefully I am not self-promoting too much, but this may be of interest to you: http://pynguin.googlecode.com/

Re: Tuples and immutability

2014-03-07 Thread Gregory Ewing
Duncan Booth wrote: Is there any reason why tuples need to throw an exception on assigning to the element if the old value and new value are the same object? It would make introspection misleading, because tuples would have a __setitem__ method event though they don't actually support item

Re: extract from json

2014-03-07 Thread teddybubu
On Friday, March 7, 2014 3:05:15 PM UTC-6, Kev Dwyer wrote: wrote: I can't find any example on how to do this. I have a json file like so:

PYTHON BASTARDS STILL CAN'T ANSWER THIS QUESTION:

2014-03-07 Thread thrinaxodon666
== HOLY F*CKING GOD DAMNED NEWS! == WELCOME TO YOUR NUMBER ONE SOURCE FOR PRESTIGIOUS BULLLSHIT! THE KIND YOU CAN ONLY GET FROM THRINAXODON CRAZY CHEESY! NOW FOR YOUR FAVORITE TIME SLOT: == THRINAXODON FOUND 3 HUMAN

Re: extract from json

2014-03-07 Thread thrinaxodon666
On Friday, March 7, 2014 3:27:27 PM UTC-5, tedd...@gmail.com wrote: I can't find any example on how to do this. I have a json file like so: {bostock:[{url:http://bl.ocks.org/mbostock/9360565,title:titleplaceholder,date:dateplaceholder},

Re: Python programming

2014-03-07 Thread William Ray Wing
On Mar 7, 2014, at 1:03 PM, John Ladasky john_lada...@sbcglobal.net wrote: As for FORTRAN? This week, I actually downloaded an application which required a FORTRAN compiler. This is the only FORTRAN application I've ever needed. It's not old code, the first revision came out about 10

Re: extract from json

2014-03-07 Thread Chris Angelico
On Sat, Mar 8, 2014 at 2:21 PM, thrinaxodon...@gmail.com wrote: I think it's better if you (CENSORED) off. Teddybubu, please understand that the above comment is from a spammer and does not reflect the prevailing attitude of this list. I don't like to make content-free posts like this, but as

Re: Tuples and immutability

2014-03-07 Thread Ian Kelly
On Fri, Mar 7, 2014 at 7:17 PM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Here's another idea: If the __iadd__ method returns the same object, *and* the LHS doesn't have a __setitem__ method, then do nothing instead of raising an exception. Maybe it doesn't have a __setitem__ because

Re: gdb unable to read python frame information

2014-03-07 Thread dieter
Wesley nisp...@gmail.com writes: Install python from source with some special configure options? When I last generated Python from source, there was no need to do anything special to get debugging symbols (the option (gcc) option -g was automatically included). --

Re: debugging on windows

2014-03-07 Thread dieter
Robin Becker ro...@reportlab.com writes: Using Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. to run a tkinter + pmw2 application I have the following error on windows xp sp3

[issue20863] IDLE not opening

2014-03-07 Thread Chester Burns
New submission from Chester Burns: I installed python 3.3.3 and it was working fine for the moment, however the next day when I tried to open it, the idle app showed on the dock for a second and straight away quit. I am using a macbook pro on osx version 10.9.1 -- messages: 212863

[issue20863] IDLE not opening

2014-03-07 Thread Ned Deily
Ned Deily added the comment: Try launching IDLE from a Terminal shell window by typing: /usr/local/bin/idle3.3 and see if it fails there and, if so, any messages shown. One possibility is the problem reported in http://bugs.python.org/issue18270 which was fixed in the IDLE shipped with

[issue20761] os.path.join doesn't strip LF or CR

2014-03-07 Thread Georg Brandl
Georg Brandl added the comment: Agreed. -- nosy: +georg.brandl status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20761 ___ ___

[issue20863] IDLE not opening

2014-03-07 Thread Chester Burns
Chester Burns added the comment: I tried that and it came up with this: Traceback (most recent call last): File /usr/local/bin/idle3.3, line 5, in module main() File /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/idlelib/PyShell.py, line 1572, in main

[issue20863] IDLE not opening

2014-03-07 Thread Ned Deily
Ned Deily added the comment: Thanks for the update. That is indeed the symptom of the problem documented in Issue18270. The best solution is to download and install Python 3.3.4 which has a fix for it. -- resolution: - duplicate stage: - committed/rejected superseder: - IDLE on

[issue20788] distutils.msvccompiler - flags are hidden inside initialize()

2014-03-07 Thread Éric Araujo
Éric Araujo added the comment: It may be a good idea to make this information directly available in the sysconfig module, for example. Before working on a patch right away, I’d recommend getting in touch with build tools developers and ask them what other hidden information they are

[issue809163] Can't add files with spaces

2014-03-07 Thread Éric Araujo
Éric Araujo added the comment: Yes, this issue is not addressed. A test is added by the latest patch and reproduces the issue; now bdist_rpm should be changed to make the test pass. See also my previous comment. -- components: -Distutils2 stage: patch review - needs patch versions:

[issue20744] shutil should not use distutils

2014-03-07 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good to me. -- stage: needs patch - patch review versions: +Python 3.5 -Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20744

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: More proposals from the thread (paraphrased): - make any aware time() object always True (leave naive midnight as False) - make any aware time() object with a non-zero UTC offset always True (leave naive midnight and UTC midnight as False) - deprecate aware

[issue4508] distutils compiler not handling spaces in path to output/src files

2014-03-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks Brian, let’s try and get this fixed. I've put together a patch adding the test requested. There is no problem on my Ubuntu machine with python 3.3. Are you saying the test does not reproduce the bug discussed here? There is a comment in the file saying

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-03-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16484 ___ ___

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: Current status of thread discussion (yes, I'm biased, and that shows in the phrasing below): Arguments raised for status quo: - the module is behaving exactly as described in the documentation - removing false time values will require affected users to update

[issue19021] AttributeError in Popen.__del__

2014-03-07 Thread Larry Hastings
Larry Hastings added the comment: Those six revisions have been cherry-picked into 3.4.0. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19021

[issue20808] 3.4 cherry pick: 6a1711c96fa6 (Popen.__del__ traceback)

2014-03-07 Thread Larry Hastings
Larry Hastings added the comment: ok. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20808 ___ ___

[issue19021] AttributeError in Popen.__del__

2014-03-07 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19021 ___

[issue20864] getattr does not work well with descriptor

2014-03-07 Thread Martin Thurau
New submission from Martin Thurau: If you have a descriptor (in my case it was an SQLAlchemy column) on an instance and this descriptor returns None for a call to __get__ then getattr with a given default value, will not return the default, but None. I have no knowledge on the implementation

[issue2818] pulldom cannot handle xml file with large external entity properly

2014-03-07 Thread M. Volz
Changes by M. Volz marie...@gmail.com: -- nosy: +mvolz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2818 ___ ___ Python-bugs-list mailing list

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Skip Montanaro
Skip Montanaro added the comment: the current behaviour takes something that would be a harmless style error for most structured data types ... I'm not sure what a structured data type is, but in my mind the original poster's construct is more than a style error. He was using None as a

[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-03-07 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17128 ___ ___

[issue13968] Support recursive globs

2014-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, Python 3.4 has ** support in pathlib, but we missed Serhiy's patch for the glob module itself. We should resolve that discrepancy for 3.5 :) -- versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: Structured data is just a shorthand way of referring to any Python object which is neither a number or a container and exhibits the default boolean behaviour where all instances are true. The problem datetime.time is both that its current behaviour is internally

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread R. David Murray
R. David Murray added the comment: it wasn't an accident, it was designed so modulo arithmetic could reasonably be implemented for time() objects (which hasn't been demanded or implemented since the datetime module was created) Ah, interesting. I just wrote a program last month where I

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Otherwise I'm pretty sympathetic to the RFE, but I'd really like time arithmetic to work, so I guess I'd have to be -1 in that case, wouldn't I? Adding times of the day sounds as well-defined to me as adding centigrade temperatures. --

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2014-03-07 Thread HCT
HCT added the comment: then I guess it's either a new function to int or a new type of int for this type of operations. similar to bytearray/ctypes and memoryview -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19915

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread R. David Murray
R. David Murray added the comment: As does adding dates. I'm talking about timedelta arithmetic, just like for datetimes. I believe that still requires modulo arithmetic :) -- ___ Python tracker rep...@bugs.python.org

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mar 7, 2014, at 10:12 AM, R. David Murray rep...@bugs.python.org wrote: I asked about it on IRC and someone said it was because arithmetic on times was ambiguous because of timezones, and I just accepted that rather than wonder why it hadn't

[issue20865] A run has overwrite my code save

2014-03-07 Thread NexusRAwesome1995 .
New submission from NexusRAwesome1995 .: I am making a text based aventure game for my assignment and a friends test run has somehow saved over the entire code file and now im using an earlier version of the code. I have 0 idea if there is anyway to look at the code using the IDLE and i need

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mar 7, 2014, at 10:15 AM, Antoine Pitrou rep...@bugs.python.org wrote: Adding times of the day sounds as well-defined to me as adding centigrade temperatures. What is wrong with adding temperatures? Climate people do it all the time when

[issue20865] A run has overwrite my code save

2014-03-07 Thread Zachary Ware
Zachary Ware added the comment: Sorry, the bug tracker is not the place to look for help like this. Please redirect your question to python-list[1], where several very knowledgeable people listen in and are ready to render assistance for any manner of problems using Python. [1]

[issue17267] datetime.time support for '+' and '-'

2014-03-07 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17267 ___ ___

[issue8902] add datetime.time.now() for consistency

2014-03-07 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8902 ___ ___

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2014-03-07 Thread STINNER Victor
STINNER Victor added the comment: Oh, by the way my patch fixes also #18191. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20271 ___ ___

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2014-03-07 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch for Python 3.5 which breaks backward compatibility: urlparse functions now raise a ValueError if the IPv6 address, port or host is invalid. Examples of invalid URLs: - HTTP://WWW.PYTHON.ORG:65536/doc/#frag: 65536 is invalid -

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2014-03-07 Thread STINNER Victor
STINNER Victor added the comment: My patch urlparse.patch may be modified to fix also #18191 in Python 2.7, 3.3 and 3.4: splitport() should handle IPv6 ([::1]:80) and auth (user:passowrd@host) but not raises an exception. -- ___ Python tracker

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2014-03-07 Thread STINNER Victor
STINNER Victor added the comment: I posted a patch to #20271 which should fix the issue. I wrote the patch for Python 3.5, but it can be adapted to be tolerant (don't make extensive tests on port number, host and IPv6) for older versions. -- ___

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Tim Peters
Tim Peters added the comment: [Nick] - deprecate aware time() entirely (raises the thorny question of what to return from .time() on an aware datetime() object) aware_datetime_object.time() already returns a naive time object. The thorny question is what .timetz() should return - but if

[issue20812] Explicitly cover application migration in the 2-3 guide

2014-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a922153463e by Brett Cannon in branch 'default': Issue #20812: Add a short opener to the Python 2/3 porting HOWTO. http://hg.python.org/cpython/rev/2a922153463e -- nosy: +python-dev ___ Python tracker

[issue20812] Explicitly cover application migration in the 2-3 guide

2014-03-07 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20812 ___

[issue20813] Backport revised 2to3 guide to older branches

2014-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset a24085e1b1f5 by Brett Cannon in branch '3.3': Issue #20813: Backport Python 2/3 HOWTO updates http://hg.python.org/cpython/rev/a24085e1b1f5 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue20812] Explicitly cover application migration in the 2-3 guide

2014-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset c83ce2a1841c by Brett Cannon in branch 'default': null merge for issue #20812 http://hg.python.org/cpython/rev/c83ce2a1841c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20812

[issue20813] Backport revised 2to3 guide to older branches

2014-03-07 Thread Brett Cannon
Brett Cannon added the comment: Same version now in default, 3.3, and 2.7. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20813 ___

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13936 ___ ___

[issue20866] segfailt with os.popen and SIGPIPE

2014-03-07 Thread Hanno Boeck
New submission from Hanno Boeck: I experience a segmentation fault with python 2.7 (both 2.7.5 and 2.7.6 tested on Ubuntu and Gentoo) when a large file is piped, the pipe is passed to os.popen and the process sends a SIGPIPE signal. To create an easy to reproduce testcase grep can be used.

[issue20863] IDLE not opening

2014-03-07 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20863 ___ ___ Python-bugs-list mailing

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Westley Martínez
Changes by Westley Martínez aniko...@gmail.com: -- nosy: +westley.martinez ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13936 ___ ___

[issue17267] datetime.time support for '+' and '-'

2014-03-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I think the timezone related problems are a red herring. Aware datetime +/- timedelta arithmetics is naive - tzinfo is ignored in calculations and copied to the result: http://hg.python.org/cpython/file/c83ce2a1841c/Lib/datetime.py#l1711 The utcoffset

[issue20867] fix_import in 2to3 adds spurious relative import (windows)

2014-03-07 Thread Claudio Canepa
New submission from Claudio Canepa: 0. windows specific i. In the pyglet library, written for py2 and officially running in 3 after the stock installation that does the 2to3 conversion ii. Omitting files which are unimportant for the issue, the package dir looks as pyglet image

[issue809163] Can't add files with spaces

2014-03-07 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: I tried to apply the last patch but it returned me and error of failing hunk. I think it was based on an old version of the test_bdist_rpm.py file. Hence, I made this updated version of the patch and could get the expected failure during the tests. I

[issue20867] fix_import in 2to3 adds spurious relative import (windows)

2014-03-07 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20867 ___ ___ Python-bugs-list

[issue1580] Use shorter float repr when possible

2014-03-07 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1580 ___ ___ Python-bugs-list

[issue20849] add exist_ok to shutil.copytree

2014-03-07 Thread Éric Araujo
Éric Araujo added the comment: Contrary to makedirs, there could be two interpretations for exist_ok in copytree: a) if a directory or file already exists in the destination, ignore it and go ahead b) only do that for directories. The proposed patch does b), but the cp tool does a). It’s

[issue20851] Update devguide to cover testing from a tarball

2014-03-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20851 ___ ___ Python-bugs-list

[issue20847] asyncio docs should call out that network logging is a no-no

2014-03-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20847 ___ ___ Python-bugs-list

[issue20840] AttributeError: 'module' object has no attribute 'ArgumentParser'

2014-03-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20840 ___ ___ Python-bugs-list

[issue20819] reinitialize_command doesn't clear install_lib on install and install_lib commands

2014-03-07 Thread Éric Araujo
Éric Araujo added the comment: If there is indeed a bug, I fear this is one of these areas where a fix actually breaks other build tools reusing distutils internals. -- nosy: +eric.araujo versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

[issue20837] Ambiguity words in base64 documentation

2014-03-07 Thread Éric Araujo
Éric Araujo added the comment: Additional edit to make the patch crystal-clear: “using all three alphabets (normal, URL and Filesystem safe alphabet).” → “using all three alphabets defined in the RFC (normal, URL-safe and filesystem-safe)” -- nosy: +eric.araujo

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Ethan Furman
Ethan Furman added the comment: If no one else has gotten to this in the next six months or so, I will. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13936 ___

[issue18882] Add threading.main_thread() function

2014-03-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Implementation uses the first choice: main_thread() returns the original _MainThread instance, even if it's dead in the child process. I'm sorry, would you guess desired documentation change? -- ___ Python tracker

[issue694339] IDLE: Dedenting with Shift+Tab

2014-03-07 Thread Sean Wolfe
Sean Wolfe added the comment: I did a couple tests and the shift-tab and tab work pretty much as expected. There's a small quirk for a single-line edit: * place cursor on beginning of line * tab forward -- the text indents as expected * shift-tab -- the entire line is highlighted -- the cursor

  1   2   >