traad: client-server Python refactoring with rope

2012-07-23 Thread Austin Bingham
I'm happy to announce the inaugural release of traad, a client-server (XMLRPC) system for using the rope Python refactoring library. The goal of traad is to make it easier to access rope functionality from clients where it's not easy to run Python. In its current state, traad is really only fit

Re: my email

2012-07-23 Thread Maria Hanna Carmela Dionisio
lolz sorry i already change it..just a newbhie, that's why :Dv From: MRAB pyt...@mrabarnett.plus.com To: python-list@python.org Sent: Wednesday, July 18, 2012 10:08 AM Subject: Re: my email On 18/07/2012 02:44, Maria Hanna Carmela Dionisio wrote:

Re: the meaning of r’.......‘

2012-07-23 Thread Chris Angelico
On Fri, Jul 20, 2012 at 5:56 PM, levi nie levinie...@gmail.com wrote: the meaning of r’...‘? It's a raw string. http://docs.python.org/py3k/tutorial/introduction.html#strings Chris Angelico -- http://mail.python.org/mailman/listinfo/python-list

Re: My first ever Python program, comments welcome

2012-07-23 Thread Ivan@work
On 21.07.2012 21:08, Lipska the Kat wrote: Greetings Pythoners A short while back I posted a message that described a task I had set myself. I wanted to implement the following bash shell script in Python Here's the script sort -nr $1 | head -${2:-10} this script takes a filename and an

Re: the meaning of r’.......‘

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 17:59:42 +1000, Chris Angelico wrote: On Fri, Jul 20, 2012 at 5:56 PM, levi nie levinie...@gmail.com wrote: the meaning of r’...‘? It's a raw string. Technically, no, it's a SyntaxError, because the Original Poster has used some sort of Smart Quotes characters r’‘

python package confusion

2012-07-23 Thread Lipska the Kat
Hello again pythoners I'm trying to understand the python package stuff I have the following directory /home/lipska/python/dev/mods In this directory I have two files, both executable -- #! /usr/bin/env python3.2 # fibo.py Fibonacci numbers module def fib(n):#

Re: python package confusion

2012-07-23 Thread Dave Angel
On 07/23/2012 06:02 AM, Lipska the Kat wrote: Hello again pythoners I'm trying to understand the python package stuff I have the following directory /home/lipska/python/dev/mods In this directory I have two files, both executable -- #! /usr/bin/env python3.2 #

Re: python package confusion

2012-07-23 Thread Devin Jeanpierre
On Mon, Jul 23, 2012 at 6:02 AM, Lipska the Kat lip...@lipskathekat.com wrote: The PYTHONPATH ev is set to /home/lipska/python/dev/mods:. in .bashrc Did you export it? Show us your .bashrc, or the relevant line in it exactly. (And make sure that it isn't defined multiple times). Also adding .

Re: python package confusion

2012-07-23 Thread Lipska the Kat
On 23/07/12 11:19, Dave Angel wrote: On 07/23/2012 06:02 AM, Lipska the Kat wrote: Hello again pythoners snip That line isn't the way you showed it in the source. You showed us source as fibo.fib(1000), and the error message shows it as fib(1000) So you're either cutting pasting wrong,

Re: python package confusion

2012-07-23 Thread Lipska the Kat
On 23/07/12 11:22, Devin Jeanpierre wrote: On Mon, Jul 23, 2012 at 6:02 AM, Lipska the Katlip...@lipskathekat.com wrote: The PYTHONPATH ev is set to /home/lipska/python/dev/mods:. in .bashrc Did you export it? Show us your .bashrc, or the relevant line in it exactly. (And make sure that it

Re: python package confusion

2012-07-23 Thread David
On 23/07/2012, Lipska the Kat lip...@lipskathekat.com wrote: Hello again pythoners [snip] Any help much appreciated. Hi Lipska Glad you got it sorted. In case you are not aware of this: Tutor maillist - tu...@python.org http://mail.python.org/mailman/listinfo/tutor The tutor list

dict: keys() and values() order guaranteed to be same?

2012-07-23 Thread Henrik Faber
Hi group, I have a question of which I'm unsure if the specification guarantees it. With an arbitrary dictionaty d, are d.keys() and d.values() guaraneed to be in the same order? I.e. what I mean is: # For all dictionaries d: assert({ list(d.keys())[i]: list(d.values())[i] for i in range(len(d))

Re: dict: keys() and values() order guaranteed to be same?

2012-07-23 Thread Philipp Hagemeister
On 07/23/2012 01:23 PM, Henrik Faber wrote: With an arbitrary dictionaty d, are d.keys() and d.values() guaraneed to be in the same order? Yes. From the documentation[1]: If items(), keys(), values(), iteritems(), iterkeys(), and itervalues() are called with no intervening modifications to the

Re: python package confusion

2012-07-23 Thread Lipska the Kat
On 23/07/12 12:16, David wrote: On 23/07/2012, Lipska the Katlip...@lipskathekat.com wrote: Hello again pythoners [snip] Any help much appreciated. Hi Lipska Glad you got it sorted. In case you are not aware of this: Tutor maillist - tu...@python.org

Re: dict: keys() and values() order guaranteed to be same?

2012-07-23 Thread Stefan Behnel
Henrik Faber, 23.07.2012 13:23: I have a question of which I'm unsure if the specification guarantees it. With an arbitrary dictionaty d, are d.keys() and d.values() guaraneed to be in the same order? I.e. what I mean is: # For all dictionaries d: assert({ list(d.keys())[i]:

Re: dict: keys() and values() order guaranteed to be same?

2012-07-23 Thread Stefan Behnel
Philipp Hagemeister, 23.07.2012 13:40: On 07/23/2012 01:23 PM, Henrik Faber wrote: With an arbitrary dictionaty d, are d.keys() and d.values() guaraneed to be in the same order? Yes. From the documentation[1]: If items(), keys(), values(), iteritems(), iterkeys(), and itervalues() are

Re: dict: keys() and values() order guaranteed to be same?

2012-07-23 Thread Henrik Faber
On 23.07.2012 13:40, Philipp Hagemeister wrote: On 07/23/2012 01:23 PM, Henrik Faber wrote: With an arbitrary dictionaty d, are d.keys() and d.values() guaraneed to be in the same order? Yes. From the documentation[1]: If items(), keys(), values(), iteritems(), iterkeys(), and

Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread Alexander Serebrenik
Do you participate in StackOverflow discussions? As a part of a joint on-going research effort of the Brunel University (UK) and Eindhoven University of Technology (The Netherlands) on the impact of collaboration sites on the developers community, we would like to understand the demographics

Re: the meaning of rユ.......��

2012-07-23 Thread Roy Smith
In article 500d0632$0$1504$c3e8da3$76491...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Technically, no, it's a SyntaxError, because the Original Poster has used some sort of Smart Quotes characters r’‘ instead of good old fashioned typewriter-style

How to print stdout before writing stdin using subprocess module in Python?

2012-07-23 Thread Sarbjit singh
I am writing a script in which in the external system command may sometimes require user input. I am not able to handle that properly. I have tried using os.popen4 and subprocess module but could not achieve the desired behavior. Below mentioned example would show this problem using cp command.

Re: the meaning of rユ.......�¾

2012-07-23 Thread Chris Angelico
On Mon, Jul 23, 2012 at 10:55 PM, Roy Smith r...@panix.com wrote: Some day, we're going to have programming languages that take advantage of the full unicode character set. Right now, we're working in ASCII and creating silly digrams/trigrams like r'' for raw strings (and triple-quotes for

Re: default repr?

2012-07-23 Thread Oscar Benjamin
On 23 July 2012 01:24, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 23 Jul 2012 08:54:00 +1000, Chris Angelico wrote: On Mon, Jul 23, 2012 at 8:48 AM, Dan Stromberg drsali...@gmail.com wrote: If a class has defined its own __repr__ method, is there a way of

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Alex Strickland
On 2012/07/23 02:55 PM, Roy Smith wrote: Some day, we're going to have programming languages that take advantage of the full unicode character set. Right now, we're working in ASCII and creating silly digrams/trigrams like r'' for raw strings (and triple-quotes for multi-line strings). Not

Re: the meaning of rユ.......�¾

2012-07-23 Thread Dave Angel
On 07/23/2012 09:06 AM, Chris Angelico wrote: On Mon, Jul 23, 2012 at 10:55 PM, Roy Smith r...@panix.com wrote: Some day, we're going to have programming languages that take advantage of the full unicode character set. Right now, we're working in ASCII and creating silly digrams/trigrams like

Re: the meaning of r�.......?3�4

2012-07-23 Thread Roy Smith
In article mailman.2463.1343048808.4697.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: But personally, I've always used backslash. It's nothing to do with ASCII and everything to do with having it on the keyboard. Before you get a language that uses full Unicode, you'll need

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 14:55, Roy Smith wrote: In article 500d0632$0$1504$c3e8da3$76491...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Technically, no, it's a SyntaxError, because the Original Poster has used some sort of Smart Quotes characters r’‘ instead of

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 14:55, Roy Smith wrote: Some day, we're going to have programming languages that take advantage of the full unicode character set. Plus, if I may add this: It's *your* newsreader that broke the correctly declared ISO-8859-7 encoded subject of the OP. What a bitter irony that

Re: How to print stdout before writing stdin using subprocess module in Python?

2012-07-23 Thread Peter Otten
Sarbjit singh wrote: I am writing a script in which in the external system command may sometimes require user input. I am not able to handle that properly. I have tried using os.popen4 and subprocess module but could not achieve the desired behavior. Below mentioned example would show this

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Chris Angelico
On Mon, Jul 23, 2012 at 11:24 PM, Henrik Faber hfa...@invalid.net wrote: And if I think of PHP's latest fiasco that happened with unicode characters, it makes me shudder to think you'd want that stuff in Python. If I remember correctly, it was the Turkish locale that they stuggled with: Turkey

Re: can someone teach me this?

2012-07-23 Thread E.
On 2012-07-21, Menghsiu Lee menghsiu@gmail.com wrote: Hi, I have tried 1000 times to compile this python file to be an exe file by using py2exe and gui2exe But, it does not work out. I am thinking if there can be some genius teaching me how to make this happen. The link in below is

Re: reloading code and multiprocessing

2012-07-23 Thread andrea crotti
2012/7/20 Chris Angelico ros...@gmail.com: On Thu, Jul 19, 2012 at 8:15 PM, andrea crotti andrea.crott...@gmail.com wrote: We need to be able to reload code on a live system. This live system has a daemon process always running but it runs many subprocesses with multiprocessing, and the

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 15:35, Chris Angelico wrote: That said, though, there's good argument in allowing full Unicode in *identifiers*. If I'm allowed to name something foo, then a German should be allowed to name something foö. And since identifiers are case sensitive (at least, they are in all good

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 15:52, Henrik Faber wrote: but I would hate for Python to include them into identifiers. Then again, I'm pretty sure this is not planned anytime soon. Dear Lord. Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 15:55, Henrik Faber wrote: Dear Lord. Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. fööbär = 3 fööbär 3 I didn't know this. How awful. Apparently, not all characters are fine with

Re: A thread import problem

2012-07-23 Thread Bruce Sherwood
Thanks much for the useful suggestion, and also thanks for your sympathy and understanding of my plight! Bruce Sherwood On Sun, Jul 22, 2012 at 11:50 PM, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Sun, Jul 22, 2012 at 7:14 PM, Bruce Sherwood bruce.sherw...@gmail.com wrote: (2) My hand

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Devin Jeanpierre
On Mon, Jul 23, 2012 at 9:52 AM, Henrik Faber hfa...@invalid.net wrote: If you allow for UTF-8 identifiers you'll have to be horribly careful what to include and what to exclude. Is the non-breaking space a valid character for a identifier? Technically it's a different character than the

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Alain Ketterlin
Henrik Faber hfa...@invalid.net writes: On 23.07.2012 15:55, Henrik Faber wrote: Dear Lord. Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. fööbär = 3 fööbär 3 I didn't know this. How awful.

Re: reloading code and multiprocessing

2012-07-23 Thread Chris Angelico
On Mon, Jul 23, 2012 at 11:51 PM, andrea crotti andrea.crott...@gmail.com wrote: Anyway the only other problem which I found is that if I start the subprocesses after many other things are initialised, it might happen that the reloading doesn't work correctly, is that right? Because

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Chris Angelico
On Mon, Jul 23, 2012 at 11:52 PM, Henrik Faber hfa...@invalid.net wrote: What about × vs x? Or Ì vs Í vs Î vs Ï vs Ĩ vs Ī vs ī vs Ĭ vs ĭ vs Į vs į vs I vs İ? Do you think if you need to maintain such code you'll immediately know the difference between the 13 (!) different Is I just happened to

Re: Converting a list of strings into a list of integers?

2012-07-23 Thread Grant Edwards
On 2012-07-22, Jan Riechers janpet...@freenet.de wrote: I am not sure why everyone is using the for-iterator option over a map, but I would do it like that: MODUS_LIST= map(int, options.modus_list) map works on a list and does commandX (here int conversion, use str for string.. et

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Mark Lawrence
On 23/07/2012 14:59, Henrik Faber wrote: On 23.07.2012 15:55, Henrik Faber wrote: Dear Lord. Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. fööbär = 3 fööbär 3 I didn't know this. How awful. Apparently,

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 16:19, Chris Angelico wrote: On Mon, Jul 23, 2012 at 11:52 PM, Henrik Faber hfa...@invalid.net wrote: What about × vs x? Or Ì vs Í vs Î vs Ï vs Ĩ vs Ī vs ī vs Ĭ vs ĭ vs Į vs į vs I vs İ? Do you think if you need to maintain such code you'll immediately know the difference between

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 16:10, Devin Jeanpierre wrote: On Mon, Jul 23, 2012 at 9:52 AM, Henrik Faber hfa...@invalid.net wrote: If you allow for UTF-8 identifiers you'll have to be horribly careful what to include and what to exclude. Is the non-breaking space a valid character for a identifier?

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 16:43, Mark Lawrence wrote: Apparently, not all characters are fine with Python. Why can I not have domino tiles are identifier characters?  = 9 File stdin, line 1  = 9 ^ SyntaxError: invalid character in identifier I think there needs to be a PEP for that.

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 12:40 AM, Henrik Faber hfa...@invalid.net wrote: No, you misunderstood me. I didn't say people are going to write gibberish. What I'm saying is that as a foreigner (who doesn't know most of these characters), it can be hard to accurately choose which one is the correct

Re: A thread import problem

2012-07-23 Thread Dieter Maurer
Bruce Sherwood bruce.sherw...@gmail.com writes: ... There's nothing wrong with the current VPython architecture, which does use good style, but there are two absolute, conflicting requirements that I have to meet. (1) The simple program API I've shown must be preserved, because there exist

What's wrong with this code?

2012-07-23 Thread Stone Li
I'm totally confused by this code: Code: a = None b = None c = None d = None x = [[a,b], [c,d]] e,f = x[1] print e,f c = 1 d = 2 print e,f e = 1 f = 2 print c,d Output: None None None None 1 2 I'm expecting the code as: None None 1 2 1 2 What's wrong? And this

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Devin Jeanpierre
On Mon, Jul 23, 2012 at 10:40 AM, Henrik Faber hfa...@invalid.net wrote: No, you misunderstood me. I didn't say people are going to write gibberish. What I'm saying is that as a foreigner (who doesn't know most of these characters), it can be hard to accurately choose which one is the correct

Re: What's wrong with this code?

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 12:50 AM, Stone Li viewfromoff...@gmail.com wrote: I'm totally confused by this code: Code: Boiling it down to just the bit that matters: c = None d = None x = [c,d] e,f = x c = 1 d = 2 print e,f When you assign e,f = x, you're taking the iterable x and unpacking its

Re: dict: keys() and values() order guaranteed to be same?

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 13:58:37 +0200, Stefan Behnel wrote: Philipp Hagemeister, 23.07.2012 13:40: On 07/23/2012 01:23 PM, Henrik Faber wrote: With an arbitrary dictionaty d, are d.keys() and d.values() guaraneed to be in the same order? Yes. From the documentation[1]: If items(), keys(),

Re: Encapsulation, inheritance and polymorphism

2012-07-23 Thread Albert van der Horst
In article 5006b48a$0$29978$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: SNIP. Even with a break, why bother continuing through the body of the function when you already have the result? When your calculation is done, it's done, just return for

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Mark Lawrence
On 23/07/2012 15:43, Henrik Faber wrote: On 23.07.2012 16:43, Mark Lawrence wrote: Apparently, not all characters are fine with Python. Why can I not have domino tiles are identifier characters?  = 9 File stdin, line 1  = 9 ^ SyntaxError: invalid character in identifier

Re: What's wrong with this code?

2012-07-23 Thread Emile van Sebille
On 7/23/2012 7:50 AM Stone Li said... I'm totally confused by this code: Code: a = None b = None c = None d = None x = [[a,b], [c,d]] e,f = x[1] print e,f This prints the first None,None c = 1 d = 2 print e,f And nothing has happened to e

Re: Converting a list of strings into a list of integers?

2012-07-23 Thread rusi
On Jul 23, 7:27 pm, Grant Edwards inva...@invalid.invalid wrote: That said, map seems to be frowned upon by the Python community for reasons I've never really understood,... Maybe the analogy: comprehension : map:: relational calculus : relational algebra In particular map, filter

Re: the meaning of r?.......ï¾

2012-07-23 Thread MRAB
On 23/07/2012 14:24, Henrik Faber wrote: [snip] And if I think of PHP's latest fiasco that happened with unicode characters, it makes me shudder to think you'd want that stuff in Python. If I remember correctly, it was the Turkish locale that they stuggled with: Turkey apparently does not have a

Re: the meaning of r.......ïŸ

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 08:55:22 -0400, Roy Smith wrote: Some day, we're going to have programming languages that take advantage of the full unicode character set. I don't know about the full Unicode character set, since there are many more than 1 characters, and few languages require that

Re: the meaning of rユ.......ï¾

2012-07-23 Thread John Gordon
In mailman.2482.1343057226.4697.python-l...@python.org Mark Lawrence breamore...@yahoo.co.uk writes: Sorry not with you is there something special about April 1st next year? In the United States, April 1st (also known as April Fool's Day) is an occasion for practical jokes, faked 'news'

Re: the meaning of rユ.......�¾

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 23:06:45 +1000, Chris Angelico wrote: On Mon, Jul 23, 2012 at 10:55 PM, Roy Smith r...@panix.com wrote: Some day, we're going to have programming languages that take advantage of the full unicode character set. Right now, we're working in ASCII and creating silly

Re: the meaning of rユ.......�¾

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 1:59 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: http://www.rexswain.com/rexx.html#operators Only one? Pfft. What's the difference between Strictly greater than and Greater than? The non-strict forms strip trailing spaces off strings before

Re: Encapsulation, inheritance and polymorphism

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 2:18 AM, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: Example from recipee's: Stirr until the egg white is stiff. Alternative: Stirr egg white for half an hour, but if the egg white is stiff keep your spoon still. (Cooking is not my field of expertise, so

Re: dict: keys() and values() order guaranteed to be same?

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 1:20 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: (Although if you think about the implementation of dicts as hash tables, it does seem likely that it is trivial to enforce this -- one would have to work *harder* to break that promise than to keep it.)

Re: the meaning of rユ.......��

2012-07-23 Thread Ross Ridge
Roy Smith r...@panix.com wrote: When I first started writing C code, it was on ASR-33s which did not support curly baces. We wrote ¥( for { and ¥) for } (although I think the translation was handled entirely in the TTY driver and the compiler was never in on the joke). 20 or 30 years from

Re: Encapsulation, inheritance and polymorphism

2012-07-23 Thread Albert van der Horst
In article oc-dnuqkg91pgpbnnz2dnuvz5vgdn...@giganews.com, Erik Max Francis m...@alcyone.com wrote: SNIP Anything's trivial to write down. Just say the number such that ... and you've written it down. Even numbers that aren't really numbers, such as transfinite cardinals! Now it isn't trivial

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 15:24:21 +0200, Henrik Faber wrote: I disagree. Firstly, Python could already support the different types of strings even with the ASCII character set. For example, the choice could have made to treat the apostophe string 'foo' differently from the double quote string foo.

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 15:52:32 +0200, Henrik Faber wrote: If you allow for UTF-8 identifiers you'll have to be horribly careful what to include and what to exclude. Is the non-breaking space a valid character for a identifier? Technically it's a different character than the normal space, so why

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 16:29:33 +0100, Mark Lawrence wrote: On 23/07/2012 15:43, Henrik Faber wrote: [...] I might wait until April 1st next year with that ;-) Best regards, Henrik Sorry not with you is there something special about April 1st next year? As a Brit (or at least someone with a

Re: Initial nose experience

2012-07-23 Thread Roy Smith
Does nose run all of its collected tests in a single process? I've got a test which monkey-patches an imported module. Will all of the other tests collected in the same run of nosetests see the patch? -- http://mail.python.org/mailman/listinfo/python-list

Python and Outlook, sendinf an image in the body of email

2012-07-23 Thread bruceg113355
All, I am trying to figure out how to send a image in the body of a email when Making a Meeting Request. Below is my current code. Thanks, Bruce # code below is mainly from http://harunprasad.blogspot.com/2012/01/python-make-meeting-request-appointment.html #

Re: Python and Outlook, sendinf an image in the body of email

2012-07-23 Thread Ian Kelly
On Mon, Jul 23, 2012 at 11:19 AM, bruceg113...@gmail.com wrote: All, I am trying to figure out how to send a image in the body of a email when Making a Meeting Request. You need to use html in the body with an img tag that references the attachment. See:

Using Python packaging tools to maintain source distributions in other languages?

2012-07-23 Thread eric . lemings
Greetings all, I would like to leverage the Python packaging tools (e.g. distutils, setuptools, distribute, et. al.) to maintain (i.e. download, extract, configure, make, install, package) source distributions other than Python modules (e.g. zlib, openssl). Are there any open-source

Re: How to print stdout before writing stdin using subprocess module in Python?

2012-07-23 Thread Nobody
On Mon, 23 Jul 2012 06:01:23 -0700, Sarbjit singh wrote: proc = subprocess.Popen(cp -i a.txt b.txt, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,) stdout_val, stderr_val = proc.communicate() print stdout_val b.txt? proc.communicate(y) Now in

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Jan Riechers
On 23.07.2012 16:55, Henrik Faber wrote: On 23.07.2012 15:52, Henrik Faber wrote: but I would hate for Python to include them into identifiers. Then again, I'm pretty sure this is not planned anytime soon. Dear Lord. Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) [GCC 4.5.2] on linux2 Type

Re: ANN: dbf.py 0.94

2012-07-23 Thread Ethan Furman
Ethan Furman wrote: Alex Strickland wrote: Not supported: index files: I have been using http://sourceforge.net/projects/harbour-project/ for years where a guy called Przemyslaw Czerpak has written an absolutely bullet proof implementation of NTX and CDX for DBF. Maybe it will interest you.

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Ross Ridge
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Hey, if the Japanese and Chinese can manage it, English speakers can surely find a way to enter π or ∞ without a keyboard the size of a battleship. Japanese and Chinese programmers don't use (and don't seem to want to) use

socket

2012-07-23 Thread Brian Murphy
hey guys i have a question i have not programmed in python for about 8 years now. i am trying to set up a simple password protected server. i have tried to research information but am not lucky. can someone point me in the right direction? -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: dbf.py 0.94

2012-07-23 Thread Ethan Furman
Chris Angelico wrote: On Sun, Jul 22, 2012 at 4:15 AM, Ethan Furman et...@stoneleaf.us wrote: I'll support 3.3+, but not with the same code base: I want to use all the cool features that 3.3 has! :) The trouble with double-codebasing is that you have double maintenance. But sure. So long as

Re: Python and Outlook, sendinf an image in the body of email

2012-07-23 Thread python
Problem is, this line is not understood: mail.BodyFormat = OlBodyFormat.olFormatHTML Try olBodyFormat (lower case 'o') Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Outlook, sendinf an image in the body of email

2012-07-23 Thread Ian Kelly
On Mon, Jul 23, 2012 at 12:33 PM, bruceg113...@gmail.com wrote: I tried something similar to the example at http://stackoverflow.com/questions/4312687/how-to-embed-images-in-email . Problem is, this line is not understood: mail.BodyFormat = OlBodyFormat.olFormatHTML Traceback

Re: Python and Outlook, sendinf an image in the body of email

2012-07-23 Thread Emile van Sebille
On 7/23/2012 11:33 AM bruceg113...@gmail.com said... I tried something similar to the example at http://stackoverflow.com/questions/4312687/how-to-embed-images-in-email . Problem is, this line is not understood: mail.BodyFormat = OlBodyFormat.olFormatHTML If I read the example

Re: What's wrong with this code?

2012-07-23 Thread Russell E. Owen
In article CAPTjJmqrhztsUkRSYb56=TX=hdomvo8mepcsy0ytjauptcm...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: On Tue, Jul 24, 2012 at 12:50 AM, Stone Li viewfromoff...@gmail.com wrote: I'm totally confused by this code: Code: Boiling it down to just the bit that matters:

Re: the meaning of r’.......‘

2012-07-23 Thread Terry Reedy
On 7/23/2012 3:59 AM, Chris Angelico wrote: On Fri, Jul 20, 2012 at 5:56 PM, levi nie levinie...@gmail.com wrote: the meaning of r’...‘? It's a raw string. http://docs.python.org/py3k/tutorial/introduction.html#strings Strictly speaking, it is a raw string literal, which should be

Re: can someone teach me this?

2012-07-23 Thread Terry Reedy
On 7/23/2012 9:32 AM, E. wrote: On 2012-07-21, Menghsiu Lee menghsiu@gmail.com wrote: Hi, I have tried 1000 times to compile this python file to be an exe file by using py2exe and gui2exe But, it does not work out. You should show what happened. I am thinking if there can be some

Re: Python and Outlook, sendinf an image in the body of email

2012-07-23 Thread bruceg113355
These do not work: appt.BodyFormat = olBodyFormat.olFormatHTML ... appt.BodyFormat = olBodyFormat.olFormatHTML NameError: name 'olBodyFormat' is not defined appt.BodyFormat = win32com.client.constants.olFormatHTML ... appt.BodyFormat =

Re: Basic question about speed/coding style/memory

2012-07-23 Thread 88888 Dihedral
Jan Riechers於 2012年7月21日星期六UTC+8下午3時33分27秒寫道: Hello Pythonlist, I have one very basic question about speed,memory friendly coding, and coding style of the following easy quot;ifquot;-statement in Python 2.7, but Im sure its also the same in Python 3.x Block

Re: Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread Terry Reedy
On 7/23/2012 8:51 AM, Alexander Serebrenik wrote: Do you participate in StackOverflow discussions? As a part of a joint on-going research effort of the Brunel University (UK) and Eindhoven University of Technology (The Netherlands) on the impact of collaboration sites on the developers

Re: Basic question about speed/coding style/memory

2012-07-23 Thread 88888 Dihedral
Chris Angelico於 2012年7月21日星期六UTC+8下午5時04分12秒寫道: On Sat, Jul 21, 2012 at 5:33 PM, Jan Riechers lt;janpet...@freenet.degt; wrote: gt; Block gt; #-- gt; if statemente_true: gt; doSomething() gt; else: gt; doSomethingElseInstead() gt; gt;

Re: the meaning of r’.......‘

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 7:07 AM, Terry Reedy tjre...@udel.edu wrote: On 7/23/2012 3:59 AM, Chris Angelico wrote: On Fri, Jul 20, 2012 at 5:56 PM, levi nie levinie...@gmail.com wrote: the meaning of r’...‘? It's a raw string.

Re: Re: Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread Evan Driscoll
On 01/-10/-28163 01:59 PM, Terry Reedy wrote: This is a deceptive and time-wasting link Leaving aside the point that this is not directly related to Python, my opinion is that if the authors will not make past and future papers freely available, not even an abstract, they should not ask for

Re: Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread Ethan Furman
Terry Reedy wrote: Leaving aside the point that this is not directly related to Python, my opinion is that if the authors will not make past and future papers freely available, not even an abstract, they should not ask for valuable free data from freely donated time. Thanks, Terry! Save me

Re: Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread Terry Reedy
On 7/23/2012 6:01 PM, Evan Driscoll wrote: Leaving aside questions of relevance to the email list and the quality of results from a self-selected survey, the PDF is linked directly from the Google Scholar link in the original post: [PDF] from tue.nl. You're right, off to the side where I

Re: Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread Alexander Serebrenik
1) The paper referenced contains 4 pages, so it should be available via IEEXplore. Moreover, you can find a copy on http://www.win.tue.nl/~aserebre/MSR2012.pdf 2) Since the survey is only one of the techniques we intend to use, and it will be augmented by analysing the data publicly available

Re: Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread Gene Heskett
On Monday 23 July 2012 19:42:29 Alexander Serebrenik did opine: 1) The paper referenced contains 4 pages, so it should be available via IEEXplore. Moreover, you can find a copy on http://www.win.tue.nl/~aserebre/MSR2012.pdf 2) Since the survey is only one of the techniques we intend to use,

Re: Python and Outlook, sendinf an image in the body of email

2012-07-23 Thread bruceg113355
This assignment works: import win32com.client oOutlook = win32com.client.Dispatch(Outlook.Application) appt = oOutlook.CreateItem(0) appt.BodyFormat = win32com.client.constants.olFormatHTML But this assignment does not work: import win32com.client oOutlook =

Re: the meaning of r’.......‘

2012-07-23 Thread John Roth
On Monday, July 23, 2012 1:59:42 AM UTC-6, Chris Angelico wrote: On Fri, Jul 20, 2012 at 5:56 PM, levi nie lt;levinie...@gmail.comgt; wrote: gt; the meaning of r’...‘? It#39;s a raw string. http://docs.python.org/py3k/tutorial/introduction.html#strings Chris Angelico Since this

Re: What's wrong with this code?

2012-07-23 Thread Andrew Cooper
On 23/07/2012 15:50, Stone Li wrote: I'm totally confused by this code: Code: a = None b = None c = None d = None x = [[a,b], [c,d]] e,f = x[1] print e,f c = 1 d = 2 print e,f e = 1 f = 2 print c,d Output:

Re: Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 17:44:27 -0400, Terry Reedy wrote: On 7/23/2012 8:51 AM, Alexander Serebrenik wrote: Do you participate in StackOverflow discussions? As a part of a joint on-going research effort of the Brunel University (UK) and Eindhoven University of Technology (The Netherlands) on

Re: Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread Devin Jeanpierre
On Mon, Jul 23, 2012 at 9:30 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Leaving aside the point that this is not directly related to Python, my opinion is that if the authors will not make past and future papers freely available, not even an abstract, they should not ask

Re: A thread import problem

2012-07-23 Thread Bruce Sherwood
I'm happy to report that Robin Dunn, the developer of wxPython, showed me how to solve my VPython architectural problem, using wxPython. I attach a test program based on wxPython that has all of the properties I was looking for (though it needs some minor cleanups, including quitting gracefully,

Freedom and Data (was Gender, Representativeness and Reputation in StackOverflow)

2012-07-23 Thread rusi
On Jul 24, 7:51 am, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Mon, Jul 23, 2012 at 9:30 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Leaving aside the point that this is not directly related to Python, my opinion is that if the authors will not make past and

Re: Freedom and Data (was Gender, Representativeness and Reputation in StackOverflow)

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 1:56 PM, rusi rustompm...@gmail.com wrote: How many of you use Linux? I ask. The awkwardness is in the definition of the question. Many of the products that I buy will have, at some point, been carried by a truck, but I would answer No if someone asked me if I use a

  1   2   >