Re: Eclipse IDE printing values automatically

2014-01-29 Thread Mark Lawrence
On 29/01/2014 06:26, mick verdu wrote: I am using Pydev 2.8 on Eclipse IDE. It is printing some values that haven't been printed with print command. How to deal with this problem? There are some very smart people on this list, but unless you give them details of what you've tried and precise

ANN: Python Events Calendar - Now with Twitter feed

2014-01-29 Thread M.-A. Lemburg
[Please help spread the word by forwarding to other relevant mailing lists, user groups, etc. world-wide; thanks :-)] ANNOUNCING Python Events Calendars - Now with Twitter feed maintained by the Pytho

Re: Highlighting program variables instead of keywords?

2014-01-29 Thread Piet van Oostrum
Ned Batchelder writes: > On 1/28/14 2:19 AM, wxjmfa...@gmail.com wrote: >> Different, but a little bit related. The work >> which is done actually on the possibility (not >> implemented but alreay realized) to colorize (style") >> the different graphemes of a glyph is very interesting. >> >> Pyth

Re: Eclipse IDE printing values automatically

2014-01-29 Thread Denis McMahon
On Tue, 28 Jan 2014 22:26:56 -0800, mick verdu wrote: > I am using Pydev 2.8 on Eclipse IDE. It is printing some values that > haven't been printed with print command. How to deal with this problem? There's no print statement in the code you included to demonstrate the problem, which is probably

Re: Large Two Dimensional Array

2014-01-29 Thread Denis McMahon
On Tue, 28 Jan 2014 21:25:54 -0800, Ayushi Dalmia wrote: > Hello, > > I am trying to implement IBM Model 1. In that I need to create a matrix > of 5*5 with double values. Currently I am using dict of dict but > it is unable to support such high dimensions and hence gives memory > error. A

Re: [python-committers] [RELEASED] Python 3.3.4 release candidate 1

2014-01-29 Thread Andrew Svetlov
Would you to accept fixes for http://bugs.python.org/issue20434 and http://bugs.python.org/issue20437 before 3.3.4 final? On Mon, Jan 27, 2014 at 9:36 AM, Georg Brandl wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On behalf of the Python development team, I'm reasonably happy to an

pytz question: GMT vs. UTC

2014-01-29 Thread Skip Montanaro
According ato the pytz doc (http://pytz.sourceforge.net/): "‘UTC’ is Universal Time, also known as Greenwich Mean Time or GMT in the United Kingdom." If they are equal, why don't timezone objects created from those two strings compare equal? >>> pytz.timezone("UTC") == pytz.timezone("GMT") False

Re: Pyro4 - reading files

2014-01-29 Thread Jean-Michel Pichavant
- Original Message - > Hello there. > > I am currently working on a project involving the use of Pyro4. > > I have a scenario. > > We have the pc named A, and a pc named B. > > On pc B lies a python script, that includes pyro, and a method for > reading files. > > On pc A, we create an

Re: pytz question: GMT vs. UTC

2014-01-29 Thread Chris Angelico
On Thu, Jan 30, 2014 at 4:29 AM, Skip Montanaro wrote: > According ato the pytz doc (http://pytz.sourceforge.net/): > > "‘UTC’ is Universal Time, also known as Greenwich Mean Time or GMT in > the United Kingdom." > > If they are equal, why don't timezone objects created from those two > strings co

Re: pytz question: GMT vs. UTC

2014-01-29 Thread Ben Finney
Skip Montanaro writes: > According ato the pytz doc (http://pytz.sourceforge.net/): > > "‘UTC’ is Universal Time, also known as Greenwich Mean Time or GMT in > the United Kingdom." This is inaccurate, and I'd like to see it corrected in the documentation. UTC is neither UT nor GMT. GMT is not p

Re: pytz question: GMT vs. UTC

2014-01-29 Thread Grant Edwards
On 2014-01-29, Skip Montanaro wrote: > According ato the pytz doc (http://pytz.sourceforge.net/): > > "UTC is Universal Time, also known as Greenwich Mean Time or GMT in > the United Kingdom." > > If they are equal, The question is _are_ they equal? There is an exact defintion for what "UTC" is,

Re: [RELEASED] Python 3.3.4 release candidate 1

2014-01-29 Thread Serhiy Storchaka
29.01.14 18:55, Andrew Svetlov написав(ла): Would you to accept fixes for http://bugs.python.org/issue20434 and http://bugs.python.org/issue20437 before 3.3.4 final? And http://bugs.python.org/issue20440. -- https://mail.python.org/mailman/listinfo/python-list

Re: Eclipse IDE printing values automatically

2014-01-29 Thread mick verdu
Thanks for reply. I am running file via ctrl+F11 and seeing output on pyDev Console. My code has got nested dictionaries, lists and tuples. What you want to see? -- https://mail.python.org/mailman/listinfo/python-list

Re: Eclipse IDE printing values automatically

2014-01-29 Thread Mark Lawrence
On 29/01/2014 20:23, mick verdu wrote: Thanks for reply. I am running file via ctrl+F11 and seeing output on pyDev Console. My code has got nested dictionaries, lists and tuples. What you want to see? Two things, code and context. See here for how to go about this http://sscce.org/ -- My

UTC "timezone" causing brain explosions

2014-01-29 Thread Skip Montanaro
Following up on my earlier note about UTC v. GMT, I am having some trouble grokking attempts to convert a datetime into UTC. Consider these three values: >>> import pytz >>> UTC = pytz.timezone("UTC") >>> UTC >>> LOCAL_TZ = pytz.timezone("America/Chicago") >>> LOCAL_TZ >>> now = datetime.datetim

Re: UTC "timezone" causing brain explosions

2014-01-29 Thread Ethan Furman
On 01/29/2014 01:52 PM, Skip Montanaro wrote: Following up on my earlier note about UTC v. GMT, I am having some trouble grokking attempts to convert a datetime into UTC. Okay, let's see what GMT does for us: GMT = pytz.timezone("GMT") u = GMT.normalize(s) u datetime.datetime(2014, 1, 29, 21,

Re: UTC "timezone" causing brain explosions

2014-01-29 Thread Ben Finney
Skip Montanaro writes: > Following up on my earlier note about UTC v. GMT, I am having some > trouble grokking attempts to convert a datetime into UTC. For what it's worth, you're not alone. Time zones are a hairy beast to manage, made all the more difficult because national politicians continua

Re: UTC "timezone" causing brain explosions

2014-01-29 Thread Chris Rebert
On Wed, Jan 29, 2014 at 1:52 PM, Skip Montanaro wrote: > Following up on my earlier note about UTC v. GMT, I am having some > trouble grokking attempts to convert a datetime into UTC. Consider > these three values: > import pytz UTC = pytz.timezone("UTC") LOCAL_TZ = pytz.timezone("A

Python shell wont open IDLE or an exisiting .py files

2014-01-29 Thread shangonichols
I am on Windows 8, Python 3.3.4 and 3.3.3 and all previous versions exhibit the same problem on my Windows 8 PC. This problem occurred out of nowhere overnight. It was working fine for months until today. > I tried to open a file and nothing happened. If I tried to open a .py file > (any .py fi

Re: pytz question: GMT vs. UTC

2014-01-29 Thread Chris Angelico
On Thu, Jan 30, 2014 at 11:17 AM, Dennis Lee Bieber wrote: > On Wed, 29 Jan 2014 19:02:53 + (UTC), Grant Edwards > declaimed the following: > > >>to be smacked across the knuckes with a 12-inch platinum-iridium ruler > > Under what temperature/pressure conditions is that ruler? STP,

Re: pytz question: GMT vs. UTC

2014-01-29 Thread MRAB
On 2014-01-30 01:50, Dennis Lee Bieber wrote: On Thu, 30 Jan 2014 11:28:16 +1100, Chris Angelico declaimed the following: On Thu, Jan 30, 2014 at 11:17 AM, Dennis Lee Bieber wrote: On Wed, 29 Jan 2014 19:02:53 + (UTC), Grant Edwards declaimed the following: to be smacked across the k

Re: pytz question: GMT vs. UTC

2014-01-29 Thread Chris Angelico
On Thu, Jan 30, 2014 at 1:40 PM, MRAB wrote: >> How cruel... I suspect the smack at 0degC is much more painful >> than one >> at room temperature >> > It's the 21st century; you should be making use of Unicode: 0°C. I started to read that and thought you were going to advocate the use of

Re: Python shell wont open IDLE or an exisiting .py files

2014-01-29 Thread Terry Reedy
On 1/29/2014 6:26 PM, shangonich...@sbcglobal.net wrote: I am on Windows 8, Python 3.3.4 and 3.3.3 and all previous versions exhibit the same problem on my Windows 8 PC. This problem occurred out of nowhere overnight. It was working fine for months until today. Try the following, which I believ

Re: Python shell wont open IDLE or an exisiting .py files

2014-01-29 Thread Ben Finney
Terry Reedy writes: > On 1/29/2014 6:26 PM, shangonich...@sbcglobal.net wrote: > > > If I launch the Python GUI it opens a Python Shell fine. But as > > > soon as I try to open a file (including a "new" file), it closes > > > the Shell. > > This I do not. What is 'Python GUI'? What is 'Python

Re: buggy python interpretter or am I missing something here?

2014-01-29 Thread Gregory Ewing
Steven D'Aprano wrote: On Mon, 27 Jan 2014 12:22:22 -0800, Rick Johnson wrote: Why do we even need an "input" function anyway if all it is going to do is read from stdin? That's not all it does. For example, it handles backspacing, so that typing H E L O O BACKSPACE BACKSPACE L O gives "HE

Re: Eclipse IDE printing values automatically

2014-01-29 Thread John Gordon
In <583ab407-7831-45d7-b15d-46b30a6cc...@googlegroups.com> mick verdu writes: > Thanks for reply. > I am running file via ctrl+F11 and seeing output on pyDev Console. > My code has got nested dictionaries, lists and tuples. What you want to see? One thing you could try is to track down exactly

Try-except-finally paradox

2014-01-29 Thread Jessica Ross
I found something like this in a StackOverflow discussion. >>> def paradox(): ... try: ... raise Exception("Exception raised during try") ... except: ... print "Except after try" ... return True ... finally: ... print "Finally" ...

Re: Try-except-finally paradox

2014-01-29 Thread Ian Kelly
On Jan 29, 2014 11:01 PM, "Jessica Ross" wrote: > > I found something like this in a StackOverflow discussion. > >>> def paradox(): > ... try: > ... raise Exception("Exception raised during try") > ... except: > ... print "Except after try" > ... return

Re: Try-except-finally paradox

2014-01-29 Thread Andrew Berg
On 2014.01.29 23:56, Jessica Ross wrote: > I found something like this in a StackOverflow discussion. def paradox(): > ... try: > ... raise Exception("Exception raised during try") > ... except: > ... print "Except after try" > ... return True > ...

Re: pytz question: GMT vs. UTC

2014-01-29 Thread Gregory Ewing
Grant Edwards wrote: smacked across the knuckes with a 12-inch platinum-iridium ruler Imperial or Scottish inches? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Try-except-finally paradox

2014-01-29 Thread wxjmfauth
Le jeudi 30 janvier 2014 06:56:16 UTC+1, Jessica Ross a écrit : > I found something like this in a StackOverflow discussion. > > >>> def paradox(): > > ... try: > > ... raise Exception("Exception raised during try") > > ... except: > > ... print "Except after tr