Re: How to streamingly read text file and display whenever updated text

2013-10-05 Thread James Harris
galeom...@gmail.com wrote in message news:04ee91f9-1cbf-4364-bca3-da25aa4db...@googlegroups.com... #!/usr/bin/python import time f = open('/home/martin/Downloads/a.txt') Looks like you are on Unix so you can do this from the shell tail -F /home/martin/Downloads/a.txt James -- https

Re: Python variables? [was Re: class implementation]

2013-09-30 Thread Rhodri James
! :) Or, alternatively, that Python has many constants, such as all those immutable integers cached around the place :-) What it doesn't have is fixed bindings. -- Rhodri James *-* Wildebeest Herder to the Masses -- https://mail.python.org/mailman/listinfo/python-list

Re: Handling 3 operands in an expression without raising an exception

2013-09-26 Thread James Harris
'] ) except KeyError: city = ??? Does that help? James -- https://mail.python.org/mailman/listinfo/python-list

Re: creating rectangle with qt-designer

2013-09-19 Thread Rhodri James
answered by the Qt Designer manual? Which can be googled for trivially, by the way. -- Rhodri James *-* Wildebeest Herder to the Masses -- https://mail.python.org/mailman/listinfo/python-list

Re: Python TUI that will work on DOS/Windows and Unix/Linux

2013-09-11 Thread James Harris
in mind. Here are some links for anyone else who is interested. http://www.sigala.it/sergio/tvision/images.html http://www.npcole.com/npyscreen/ http://excess.org/urwid/examples.html http://www.hexedit.com/hex-edit-shots.htm James -- https://mail.python.org/mailman/listinfo/python-list

[issue18946] HTMLParser should ignore errors when parsing text in script tags

2013-09-06 Thread James Lu
New submission from James Lu: It will show invalid html inside of script tags, for example, at the learners dictionary: function output_creative (id) { document.write (div id=' + id + ' + scr

[issue18946] HTMLParser should ignore errors when parsing text in script tags

2013-09-06 Thread James Lu
James Lu added the comment: 2.5, but I don't think the library has changed since. james On Fri, Sep 6, 2013 at 12:29 PM, Ezio Melotti rep...@bugs.python.orgwrote: Ezio Melotti added the comment: What version of Python are you using? -- nosy: +ezio.melotti

Re: Python TUI that will work on DOS/Windows and Unix/Linux

2013-09-04 Thread James Harris
James Harris james.harri...@gmail.com wrote in message news:kvmvpg$g96$1...@dont-email.me... Am looking for a TUI (textual user interface) mechanism to allow a Python program to create and update a display in text mode. For example, if a command prompt was sized 80x25 it would be made up

Re: Encapsulation unpythonic?

2013-09-02 Thread Rhodri James
changes to constants persisted. Many's the poor natural scientist who was perplexed to find that 0 suddenly had the value 1! -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

Python TUI that will work on DOS/Windows and Unix/Linux

2013-08-29 Thread James Harris
keyboard would be essential. Input from a mouse would be nice to have. Especially if you have had a similar requirement in the past but even if not, is there any cross-platform system you would recommend? James -- http://mail.python.org/mailman/listinfo/python-list

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2013-08-17 Thread James Sanders
James Sanders added the comment: I did a bit more digging and I think I've worked out what is going on. The particular bit of tcl initialization code that triggers the problem if it is run before the fork is Tcl_InitNotifier in tclUnixNotify.c. It turns out there is a known problem

Re: Pair of filenos read/write each other?

2013-08-13 Thread Rhodri James
? Sockets? It depends a bit on what you're trying to do, exactly. If you give us a bit more context, we might be able to give you better advice. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2013-08-10 Thread James Sanders
James Sanders added the comment: I recently got hit by this bug on 64-bit ubuntu 13.04, with python 3.3.1 and tcl/tk 8.5.13 installed from the Ubuntu repositories. However, I tried building the same versions of tcl, tk, and python locally, and couldn't reproduce the bug. I also built python

Re: Beginner question

2013-08-06 Thread Rhodri James
in ('y', 'yes', 'ohdeargodyes', 'you get the idea'): print('ok') else: print('goodbye') sys.exit() -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

Re: Enum vs OrderedEnum

2013-08-06 Thread Rhodri James
?) of standard and hostile environments as class variables. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

[issue18662] re.escape should not escape the hyphen

2013-08-06 Thread James Laver
James Laver added the comment: I looked up quotemeta with perldoc and you're right, it will quote the hyphen. Given that python's regex engine correctly deals with unnecessarily quoted characters, I suppose this is fine. -- resolution: - wont fix status: open - closed

[issue18662] re.escape should not escape the hyphen

2013-08-05 Thread James Laver
New submission from James Laver: Traceback (most recent call last): File /Users/jlaver/retest.py, line 6, in test_escape self.assertEquals(re.escape('-'), '-') AssertionError: '\\-' != '-' The only place you can do bad things with hyphens is in a character class. I fail to see how you'd

[issue18662] re.escape should not escape the hyphen

2013-08-05 Thread James Laver
James Laver added the comment: Quite right, it does say that in the documentation. The documentation is perfectly correct, but the behaviour is wrong in my opinion and as you suggest, we should be escaping metacharacters only. -- ___ Python tracker

Re: Editing tabular data [was: PEP8 79 char max]

2013-07-31 Thread Rhodri James
is it would be more foolproof to edit that stuff with a spreadsheet. There's nothing foolproof about using a spreadsheet! -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP8 79 char max

2013-07-29 Thread Rhodri James
flipping between them slows me down dramatically. Long lines have no effect on the speed of the program, but they can have serious effects on the speed of the programmer. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP8 79 char max

2013-07-29 Thread Rhodri James
On Tue, 30 Jul 2013 01:11:18 +0100, Joshua Landau jos...@landau.ws wrote: On 30 July 2013 00:08, Rhodri James rho...@wildebst.demon.co.uk wrote: I'm working on some shonky C code at the moment that inconsistent indentation and very long lines. It is extremely annoying not to be able to put

[issue18591] threading.Thread.run returning a result

2013-07-29 Thread James Lu
New submission from James Lu: I have attached a *possible* new version of threading.py that returns the value of the target. -- components: Library (Lib) files: threading.py messages: 193899 nosy: James.Lu priority: normal severity: normal status: open title: threading.Thread.run

[issue18591] threading.Thread.run returning a result

2013-07-29 Thread James Lu
James Lu added the comment: run's calling function needs to return. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18591 ___ ___ Python-bugs

[issue18537] bool.toggle()

2013-07-23 Thread James Lu
New submission from James Lu: the bool type should have a toggle() function -- messages: 193608 nosy: James.Lu priority: normal severity: normal status: open title: bool.toggle() type: enhancement versions: Python 3.5 ___ Python tracker rep

[issue18537] bool.toggle()

2013-07-23 Thread James Lu
James Lu added the comment: I mean, return a value, some people like this style. james On Tue, Jul 23, 2013 at 12:10 PM, Eric V. Smith rep...@bugs.python.orgwrote: Eric V. Smith added the comment: bool instances are immutable, so all value.toggle() could do is the same as not value

[issue18537] bool.toggle()

2013-07-23 Thread James Lu
James Lu added the comment: well, filter() could take the function not lambda x:not x james On Tue, Jul 23, 2013 at 12:23 PM, Eric V. Smith rep...@bugs.python.orgwrote: Eric V. Smith added the comment: Since it would be the same as not value, I can't imagine this would be added

Re: Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-18 Thread Rhodri James
, but print is a function in Python 3, so the parameter need parentheses around them. This would all involve a lot less guesswork if you cut and pasted both your code and the error traceback. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python

[issue18482] dis.dis fails on one letter strings.

2013-07-17 Thread James Lu
New submission from James Lu: dis.dis fails on one letter strings. dis.dis(t) Traceback (most recent call last): File pyshell#26, line 1, in module dis.dis(t) File C:\python 25\lib\dis.py, line 44, in dis disassemble_string(x) File C:\python 25\lib\dis.py, line 111

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
New submission from James Lu: if you assign a lambda to a object and call it,you get this: Traceback (most recent call last): File pyshell#21, line 1, in module n.__div__(3) TypeError: lambda() takes exactly 2 arguments (1 given) The full test is here: n = num() n.__div__ function lambda

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
Changes by James Lu jam...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18474 ___ ___ Python-bugs-list mailing

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
James Lu added the comment: 2.5,new-style -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18474 ___ ___ Python-bugs-list mailing list Unsubscribe

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
James Lu added the comment: instance,assinged during __init__ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18474 ___ ___ Python-bugs-list

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
James Lu added the comment: Also,there were some bugs, but after I fixed them, it would only work if I did this: n.__div__(n,3) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18474

[issue11122] bdist_rpm should use rpmbuild, not rpm

2013-07-15 Thread James Bennet
James Bennet added the comment: I have observed this bug under CentOS 5.9 using the version of python-setuptools from the official CentOS repository. -ba is not a valid option for that version of RPM. I am able to get further by installing the rpm-build package. -- nosy

Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Rhodri James
are the worse culprits. And while emacs is bad on the second, its excellent on the third -- to the extend that you 'live inside emacs,' you dont need the mouse. You clearly never trained as a classical pianist :-) -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman

[issue18386] Better random number generator

2013-07-06 Thread James Lu
New submission from James Lu: http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html#dSFMT You might want to use a better algorithm -- components: Library (Lib) files: dSFMT-src-2.2.1.zip messages: 192469 nosy: James.Lu priority: normal severity: normal status: open title

[issue18386] Better random number generator

2013-07-06 Thread James Lu
Changes by James Lu jam...@gmail.com: -- nosy: -James.Lu type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18386 ___ ___ Python

Continuous Deployment Style Build System for Python

2013-06-14 Thread James Carpenter
/defend_against_fruit/ License: Apache Public License v2 Authors: James Carpenter jcarpenter621 at yahoo.com LinkedIn: http://www.linkedin.com/in/jamescarpenter1 Matthew Tardiff mattrix at gmail.com LinkedIn: http://www.linkedin.com/in/matthewtardiff PA HREF=http://teamfruit.github.io

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2013-05-23 Thread James Socol
Changes by James Socol me+pyb...@jamessocol.com: -- nosy: +jamessocol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9883 ___ ___ Python-bugs-list

[issue6700] inspect.getsource() returns incorrect source lines

2013-05-22 Thread James Saryerwinnie
James Saryerwinnie added the comment: I confirmed the issue in tip. One of the issues with the original patch is that it modifies the tokeneater method used by getblock which won't work if the first token is any of the special cased tokens in the original patch ('@', 'def', 'class'). I've

Continuous Deployment Style Build System for Python

2013-05-17 Thread James Carpenter
/defend_against_fruit/ License: Apache Public License v2 Authors: James Carpenter jcarpenter621 at yahoo.com LinkedIn: http://www.linkedin.com/in/jamescarpenter1 Matthew Tardiff mattrix at gmail.com LinkedIn: http://www.linkedin.com/in/matthewtardiff -- http://mail.python.org/mailman/listinfo

[issue17948] HTTPS and sending a big file size hangs.

2013-05-10 Thread James O'Cull
James O'Cull added the comment: We have more information on this bug here. It's SSL v2 related when pushing to IIS. http://stackoverflow.com/a/16486104/97964 Here's a paste from the StackOverflow answer: I found a few ways of dealing with this issue: To fix this server-side

[issue17948] HTTPS and sending a big file size hangs.

2013-05-10 Thread James O'Cull
James O'Cull added the comment: I appreciate the response all the same. Thanks for taking the time to look at it, Antoine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17948

Re: Scan CSV file and saving it into an array

2013-04-24 Thread Rhodri James
so many times in various guises in the last week or two. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

[issue1195571] simple callback system for Py_FatalError

2013-04-23 Thread James Pye
James Pye added the comment: Thinking about this again.. perhaps a better approach would be to force the embedder to define the symbol in their binary. That is, libpython.x doesn't define Py_FatalError. The binary that links in libpython defines it. (and a me too on Jonathan's comments

Re: Preparing sqlite, dl and tkinter for Python installation (no admin rights)

2013-04-21 Thread James Jong
I see, just to be clear, do you mean that Python 2.7.4 (stable) is incompatible with Tk 8.6 (stable)? James On Fri, Apr 19, 2013 at 12:27 PM, Serhiy Storchaka storch...@gmail.comwrote: 18.04.13 19:24, James Jong написав(ла): The file libtk8.6.so http://libtk8.6.so has 1.5M

Re: Preparing sqlite, dl and tkinter for Python installation (no admin rights)

2013-04-18 Thread James Jong
watch for? James, On Wed, Apr 17, 2013 at 9:59 PM, Chris Angelico ros...@gmail.com wrote: On Thu, Apr 18, 2013 at 8:39 AM, James Jong ribonucle...@gmail.com wrote: I managed to compile sqlite with: CPPFLAGS='-I/path_to_sqlite-3.7.16.2/include -I/path_to_tk8.6.0/include' DFLAGS='-L

Re: Preparing sqlite, dl and tkinter for Python installation (no admin rights)

2013-04-18 Thread James Jong
== The file libtk8.6.so has 1.5M and is definitely there. So why did that compilation fail? James On Thu, Apr 18, 2013 at 11:05 AM, Jason Swails jason.swa...@gmail.comwrote: On Thu, Apr 18, 2013 at 10:37 AM, James Jong ribonucle

Re: Preparing sqlite, dl and tkinter for Python installation (no admin rights)

2013-04-18 Thread James Jong
`LDFLAGS` * /path_to/sqlite3/lib * /path_to/tcl/lib * /path_to/tk/lib and the following lib paths through `LD_LIBRARY_PATH`: * /path_to/sqlite/lib * /path_to/tcl/lib * /path_to/tk/lib Thanks, James On Thu, Apr 18, 2013 at 12:24 PM, James Jong ribonucle...@gmail.com wrote: Thanks Jason. I

Re: Preparing sqlite, dl and tkinter for Python installation (no admin rights)

2013-04-18 Thread James Jong
system and copy it to the supercomputer). But this thread shows that, at least, setup.py tries to load libtk.so (a dynamic shared library). Does Python then load dynamic libraries from sqlite, tcl, tk when using the respective modules? James On Thu, Apr 18, 2013 at 3:10 PM, Terry Jan Reedy tjre

Re: Preparing sqlite, dl and tkinter for Python installation (no admin rights)

2013-04-17 Thread James Jong
. Any thoughts? Thanks, James On Tue, Apr 16, 2013 at 1:28 PM, James Jong ribonucle...@gmail.com wrote: Thank you Terry, I am working with: cat /proc/version Linux version 2.6.18-274.el5xen (brewbuil...@norob.fnal.gov) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Thu Jul 21

Re: Preparing sqlite, dl and tkinter for Python installation (no admin rights)

2013-04-16 Thread James Jong
for tck/tk, sqlite or dl on the Scientific Linux website, but maybe I am not looking in the right place. Do you know how I can find which tarballs I need? James On Tue, Apr 16, 2013 at 12:55 PM, Terry Jan Reedy tjre...@udel.edu wrote: On 4/16/2013 10:30 AM, rosoloum wrote: I do not have

Re: Understanding Boolean Expressions

2013-04-16 Thread Rhodri James
: comparisons, then bitwise operators (*not* bitwise comparisons!), then shifts, then arithmetic operators, the unary operators, the power operator, and finally primaries. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

[issue13672] Add co_qualname attribute in code objects

2013-04-13 Thread James Pye
James Pye added the comment: Considering the API changes necessary for adding qualname, perhaps a better solution would be to just start using the qualname instead of the function's basename--co_name is the qualname. This would offer an automatic improvement to the readability of coverage

[issue17514] Add the license to argparse.py

2013-03-21 Thread David James
New submission from David James: Lib/argparse.py [1] doesn't mention a license in it. Could you please add a license to it? According to the argparse project [2], argparse is licensed under the Python license. Chromium OS uses argparse. If you would add information about the license

Replace dash values in a field with new line- VB equivalent of Python

2013-03-19 Thread Cathy James
Dear All, I need some assistance with Python so that values in the Name field e.g. Murray - James - Leo can be labeled as: Murray James Leo with a new line replacing every dash. Basically I need the equivalent of this VB in Python: replace ( [Name] , -, vbNewLine) I tried this but no luck

[issue17407] RotatingFileHandler issue when using multiple loggers instances (but one process/thread) to the same file

2013-03-14 Thread James Kesser
James Kesser added the comment: My approach was just as outlined in the first few paragraphs here, just naming loggers for each module using __name__: http://docs.python.org/2/howto/logging.html#logging-advanced-tutorial If this is not recommended the documentation should be updated

[issue17407] RotatingFileHandler issue when using multiple loggers instances (but one process/thread) to the same file

2013-03-14 Thread James Kesser
James Kesser added the comment: Thanks for quick response! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17407 ___ ___ Python-bugs-list mailing

[issue17407] RotatingFileHandler issue when using multiple loggers instances (but one process/thread) to the same file

2013-03-12 Thread James Kesser
New submission from James Kesser: I believe I have come across a bug with RotatingFileHandler in logging/handlers.py The attached script shows that when you are logging using RotatingFileHandler pointed at the same file from multiple logger instances, it works at first showing logging events

RFD: comp.sys.raspberry-pi

2013-03-09 Thread James Harris
comp.lang.forth comp.lang.python comp.os.linux.misc PROPONENT: James Harris james.harris.1Agmail.com (replace A with @ - but please discuss the proposal on Usenet!) CHANGE HISTORY: 2013-03-09 Initial RFD -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] string.format() default variable assignment

2013-03-05 Thread James Griffin
[- Tue 5.Mar'13 at 2:42:07 + Steven D'Aprano :-] On Mon, 04 Mar 2013 11:09:10 -0500, David Robinow wrote: But here's what I don't understand. Why does somebody who posts as much as Steven (and thanks for that. Getting cussed at occasionally is a cheap price for

Re: [Python-ideas] string.format() default variable assignment

2013-03-02 Thread James Griffin
[- Sat 2.Mar'13 at 17:54:57 +1100 Chris Angelico :-] On Sat, Mar 2, 2013 at 5:09 PM, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Fri, Mar 1, 2013 at 10:54 PM, Chris Angelico ros...@gmail.com wrote: No offence Chris, but you're the only person I know who *regularly*

[ANN]: circuits 2.1.0 [] (Lightweight Event driven Asynchronous Application Framework)

2013-02-27 Thread James Mills
examples. - Component Interface querying. For more information see the PyPi page: pypi.python.org/pypi/circuits/ cheers James James Mills / prologic E: prolo...@shortcircuit.net.au W: prologic.shortcircuit.net.au -- http://mail.python.org/mailman/listinfo/python-announce-list Support

Re: Shebang line on Windows?

2013-02-22 Thread James Harris
run as python program.py but that removes some of the benefit of the shebang line. James -- http://mail.python.org/mailman/listinfo/python-list

Re: Calendar module question

2013-02-17 Thread James Griffin
- Phil phil_...@bigpond.com [2013-02-17 17:47:15 +1000] - : Thank you for reading this. My adventures with Python have just begun and during the few weeks I have tried many IDEs. The following piece of code fails under all IDEs, and the interpreter, except under the Wing IDE. Why

Re: PyWart (Terminolgy): Class

2013-01-14 Thread Rhodri James
couple of decades of computer science. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-23 Thread Rhodri James
code and leave us to guess? Sorry but I'm not bored enough to try. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

Re: Working with classes

2012-12-03 Thread Rhodri James
this. The program makes perfectly good sense, it is your description that I don't understand. Please tell us what it is supposed to do, and what makes you think it doesn't do it. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

Re: loops

2012-12-02 Thread Rhodri James
, credits or license for more information. print(1,2,3) 1 2 3 Python 2.7.1+ (r271:86832, Sep 27 2012, 21:12:17) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. print(1,2,3) (1, 2, 3) -- Rhodri James *-* Wildebeest Herder to the Masses -- http

[ANN]: circuits 2.0.0 [cheetah] (Lightweight Event driven Asynchronous Application Framework)

2012-11-24 Thread James Mills
/wait synchronous primitives. * Simplified API for Eventing and Channel targeting. * Many more bug fixes and test coverage. For more information see the PyPi page: pypi.python.org/pypi/circuits/ cheers James James Mills / prologic E: prolo...@shortcircuit.net.au W: prologic.shortcircuit.net.au

Re: Obnoxious postings from Google Groups

2012-11-01 Thread Rhodri James
. Advanced? Huh. I have here a language that does exactly what I want without all that messy syntax nonsense. I call it Research Assistant. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

[issue16352] Error call

2012-10-28 Thread James Lu
New submission from James Lu: x=y y=x x=y print x x print y x It should raise a RuntimeError -- components: None messages: 174086 nosy: James.Lu priority: normal severity: normal status: open title: Error call type: performance versions: Python 2.6

[issue16352] Error call

2012-10-28 Thread James Lu
Changes by James Lu jam...@gmail.com: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16352 ___ ___ Python-bugs-list

[issue16352] Error call

2012-10-28 Thread James Lu
James Lu added the comment: srry -- resolution: invalid - rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16352 ___ ___ Python-bugs-list

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-10-18 Thread James Teh
James Teh added the comment: This issue is much nastier than it seems when dealing with character sets that contain multi-byte characters in Python 2.7 on Windows. For example, on a Japanese system: 1. The ANSI code page is cp932 and Python 2.7 will return the TEMP environment variable

[ANN] Automated Testing on Mac (ATOMac) 1.0.0 released

2012-10-13 Thread James Tatum
Hello, The ATOMac team is proud to announce a new release of ATOMac. About ATOMac: Short for Automated Testing on Mac, ATOMac is the first Python library to fully enable GUI testing of Macintosh applications via the Apple Accessibility API. Existing tools such as using appscript to send

[issue14667] No IDLE

2012-10-06 Thread James Lu
Changes by James Lu jam...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14667 ___ ___ Python-bugs-list

[issue14667] No IDLE

2012-10-06 Thread James Lu
Changes by James Lu jam...@gmail.com: -- resolution: - works for me ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14667 ___ ___ Python-bugs-list

[issue16026] csv.DictReader argument names documented incorrectly

2012-09-28 Thread James Salt
James Salt added the comment: This diff shows a correction of the documentation to reflect the name for the csv file used in the implementation - this change seemed like the easiest and simplest thing to do and avoids potential backwards incompatibility issues. -- nosy: +James.Salt

[issue16031] relative import headaches

2012-09-24 Thread James Hutchison
New submission from James Hutchison: This might even be a bug I've stumbled upon but I'm listing it as an enhancement for now. I really feel that relative imports in Python should just work. Regardless of the __name__, I should be able to import below me. Likewise, it should work even

cant install livewires

2012-09-23 Thread james . kennedy
i cant install livewires and their help about making a directory is useless to me as i dont know how btw im using windows 7 REALLY DESPERATE :) -- Disclaimerhttp://study.abingdon.org.uk/moodle/mod/resource/view.php?id=8393 -- http://mail.python.org/mailman/listinfo/python-list

PYODBC Print Cursor Output Question

2012-09-10 Thread james simpson
I think there's a simple answer but displaying my ignorance here. I'm using Python 2.7.3 IDLW with pydoc 3x I think I've connected to my SQL Server 2005 and my SQL is good. How do I display the actual data returned from my fetch? Been searching for several hours but no joy... Thanks. Jamie

Re: Parsing ISO date/time strings - where did the parser go?

2012-09-10 Thread Rhodri James
could call it dead simple. ISO-8601-2004(E) is 40 pages long. A short standard, then :-) -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

[issue15753] No-argument super in method with variable arguments raises SystemError

2012-08-24 Thread James
James added the comment: It turns out I don't really understand how frame objects work. My patch can crash python if you do this: class A: ... def f(*args): ... args = 1 ... print(super()) ... A().f() python: Objects/typeobject.c:6516: super_init: Assertion

[issue15753] No-argument super in method with variable arguments raises SystemError

2012-08-24 Thread James
James added the comment: Sorry, I wasn't very clear. super() currently works by assuming that self is the first entry in f_localsplus, which is defeated, for example, by doing: class A: ... def f(self): ... del self ... super() ... A().f() Traceback (most recent

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
New submission from James Hutchison: Windows 7 64-bit, Python 3.2.3 This is a very odd issue and I haven't figured out what caused it. I have a python script that runs continuously. When it receives a request to do a task, it creates a new thread (not a new process), does the task, then sends

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: This is the traceback I was getting where it was just a script that simply made an SMTP connection then closed it. This fails before it attempts to connect to the server. Traceback (most recent call last): File C:\tmp\manysmtptest.py, line 8, in module

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: That makes no sense. Why does: s = socket.socket() s.bind(('',50007)) s.listen(1); s.close(); fix the issue then? Re-opening, this issue should be understood because having such an operation randomly fail is unacceptable for a production system. How does

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2012-08-24 Thread James Hutchison
New submission from James Hutchison: One issue I've encountered is someone else's software setting PYTHONPATH to their install directory of python. We have some old software that installs and uses python 2.3 scripts and unfortunately this prevents the IDLE shortcuts for newer versions

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: It's from the example. http://docs.python.org/library/socket.html#example -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15779

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: The firewall is disabled for my machine. So the options are: 1. Port was in-use: possible except that is normally a different error 2. Port was firewalled: firewall was disabled 3. Port mis-use: not likely because this wouldn't be random 4. Port

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: I can connect to all of the IPs for my server without issue. Found this: Another possible reason for the WSAEACCES error is that when the bind function is called (on Windows NT 4.0 with SP4 and later), another application, service, or kernel mode driver

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
Changes by James Hutchison jamesghutchi...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15779 ___ ___ Python

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: Looks to me like python grabs an outgoing port number via unrandom means and if it happens to map to a port taken by a service that demands exclusive access, then it returns the WSAEACCESS error instead of WSAEADDRINUSE. Because this is a fairly new feature

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
Changes by James Hutchison jamesghutchi...@gmail.com: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15779 ___ ___ Python

[issue15753] No-argument super in method with variable arguments raises SystemError

2012-08-23 Thread James
James added the comment: I've attached a patch that I think fixes the variable arguments problem, and changes the SystemErrors that can be obtained by misusing super() into RuntimeErrors (I assume that's more appropriate?). There are three more SystemErrors I'm not sure about: super

[issue15753] No-argument super in method with variable arguments raises SystemError

2012-08-21 Thread James
New submission from James: For example: Python 3.2.2 (default, Feb 10 2012, 09:23:17) [GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2 Type help, copyright, credits or license for more information. class A: ... def f(*args): ... print(super().__repr__()) ... A().f

[issue15702] Multiprocessing Pool deadlocks on join after empty map operation

2012-08-16 Thread James Hutchison
New submission from James Hutchison: Following code deadlocks on Windows 7 64-bit, Python 3.2.3 If you have a pool issue a map operation over an empty iterable then try to join later, it will deadlock. If there is no map operation or blah in the code below isn't empty, it does not deadlock

c 0.5.0 Release: Compile extension modules on Import

2012-08-06 Thread James Pye
c is an alternative to distutils' Extension() support or Makefile compilation of simple extension modules. It provides a meta_path hook that performs compilation and linkage of C, C++, or Objective-C source files upon import. Any Python implementation providing a functional sysconfig module

Re: 2 + 2 = 5

2012-07-05 Thread Rhodri James
) # False five.contents[five.contents[:].index(5)] = 4 print(2 + 2 == 5) # True (must be sufficiently large values of 2 there...) Heh. The author is apparently anonymous, I guess for good reason. Someone's been writing FORTRAN again :-) -- Rhodri James *-* Wildebeest Herder

<    4   5   6   7   8   9   10   11   12   13   >