[issue24168] Unittest discover fails with namespace package if the path contains the string same as the module name

2015-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: If you need a test case, try https://gitlab.com/warsaw/flufl.lock -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24168 ___

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +paul.moore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385 ___ ___

Re: How to inverse a particle emitter

2015-06-04 Thread Ian Kelly
On Thu, Jun 4, 2015 at 5:47 PM, stephenpprane...@gmail.com wrote: On Thursday, June 4, 2015 at 4:15:29 PM UTC-7, stephenp...@gmail.com wrote: hey, i really need help, im a straight up beginner in scripting and i need to figure out how to make an inverted particle emitter using python in maya

Re: Can Python function return multiple data?

2015-06-04 Thread Rustom Mody
On Friday, June 5, 2015 at 3:46:47 AM UTC+5:30, Steven D'Aprano wrote: On Fri, 5 Jun 2015 03:26 am, random832 wrote: If the value really were 23, the is vs == problem wouldn't exist. What problem? is versus == is not a problem, it is a feature. The two operators do two different things.

[issue24351] string.Template documentation incorrectly references identifiers

2015-06-04 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - barry nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24351 ___

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-06-04 Thread Nathaniel Smith
Nathaniel Smith added the comment: For whatever it's worth as a non-core-developer, the patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24294 ___

Re: Can Python function return multiple data?

2015-06-04 Thread Grant Edwards
On 2015-06-04, Steven D'Aprano st...@pearwood.info wrote: On Fri, 5 Jun 2015 04:38 am, Grant Edwards wrote: But, discussing pass-by-this vs. pass-by-that without also discussing the semantics of the assignment operator is rather pointless. No, that's a red-herring. I don't think so. ??The

Re: Can Python function return multiple data?

2015-06-04 Thread Rustom Mody
On Friday, June 5, 2015 at 8:07:41 AM UTC+5:30, Steven D'Aprano wrote: On Fri, 5 Jun 2015 08:59 am, random832 wrote: On Thu, Jun 4, 2015, at 18:16, Steven D'Aprano wrote: Remember, you've tried to claim that it is not invisible or unknown, so you must be able to see and know that value.

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 08:59 am, random...@fastmail.us wrote: On Thu, Jun 4, 2015, at 18:16, Steven D'Aprano wrote: Remember, you've tried to claim that it is not invisible or unknown, so you must be able to see and know that value. So what is the value? It doesn't have to have a string

[issue24376] xxlimited.c errors when building 32 and 64 bit on Windows

2015-06-04 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- assignee: - steve.dower resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24376

[issue24371] configparser hate dot in option like eth2.6

2015-06-04 Thread Zachary Ware
Zachary Ware added the comment: Am I missing something here? Python 3.6.0a0 (default:c2c3b79ba992, Jun 4 2015, 10:24:23) from configparser import ConfigParser cp = ConfigParser() cp.read_string(\ ... [remember] ... eth2.6 = True ... eth5 = True ... ) cp['remember']['eth2.6'] 'True'

[issue24352] Provide a way for assertLogs to optionally not hide the logging output

2015-06-04 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24352 ___ ___ Python-bugs-list

Re: How to inverse a particle emitter

2015-06-04 Thread Gary Herron
On 06/04/2015 04:15 PM, stephenpprane...@gmail.com wrote: hey, i really need help, im a straight up beginner in scripting and i need to figure out how to make an inverted particle emitter using python in maya Python is a programming language. Maya is a modeling and animation application (or a

Re: Can Python function return multiple data?

2015-06-04 Thread Mark Lawrence
On 05/06/2015 01:16, BartC wrote: On 05/06/2015 00:13, Steven D'Aprano wrote: On Fri, 5 Jun 2015 06:52 am, BartC wrote: On 04/06/2015 18:11, Steven D'Aprano wrote: If there is any language where assignment uses one style and argument passing always uses another, I've never come across it.

[issue24384] difflib.SequenceMatcher faster quick_ratio with lower bound specification

2015-06-04 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24384 ___ ___

Re: Find in ipython3

2015-06-04 Thread Michael Torrie
On 06/04/2015 05:04 PM, Cameron Simpson wrote: On 04Jun2015 13:09, Michael Torrie torr...@gmail.com wrote: Why not use Python for what it's good for and say pipe the results of find into your python script? Reinventing find poorly isn't going to buy you anything. And several others made

[issue8232] webbrowser.open incomplete on Windows

2015-06-04 Thread Larry Hastings
Larry Hastings added the comment: Go ahead for beta 3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8232 ___ ___ Python-bugs-list mailing list

Re: How to inverse a particle emitter

2015-06-04 Thread Michael Torrie
On 06/04/2015 05:47 PM, stephenpprane...@gmail.com wrote: On Thursday, June 4, 2015 at 4:15:29 PM UTC-7, stephenp...@gmail.com wrote: hey, i really need help, im a straight up beginner in scripting and i need to figure out how to make an inverted particle emitter using python in maya

Re: Find in ipython3

2015-06-04 Thread Cameron Simpson
On 04Jun2015 20:23, Michael Torrie torr...@gmail.com wrote: On 06/04/2015 05:04 PM, Cameron Simpson wrote: On 04Jun2015 13:09, Michael Torrie torr...@gmail.com wrote: Why not use Python for what it's good for and say pipe the results of find into your python script? Reinventing find poorly

Re: Can Python function return multiple data?

2015-06-04 Thread BartC
On 05/06/2015 00:13, Steven D'Aprano wrote: On Fri, 5 Jun 2015 06:52 am, BartC wrote: On 04/06/2015 18:11, Steven D'Aprano wrote: If there is any language where assignment uses one style and argument passing always uses another, I've never come across it. My language does that. I'd be very

Re: Find in ipython3

2015-06-04 Thread Rustom Mody
On Friday, June 5, 2015 at 9:59:22 AM UTC+5:30, Cameron Simpson wrote: On 04Jun2015 20:23, Michael Torrie wrote: On 06/04/2015 05:04 PM, Cameron Simpson wrote: On 04Jun2015 13:09, Michael Torrie wrote: Why not use Python for what it's good for and say pipe the results of find into your

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 11:40 am, Mark Lawrence wrote: On 05/06/2015 01:16, BartC wrote: On 05/06/2015 00:13, Steven D'Aprano wrote: On Fri, 5 Jun 2015 06:52 am, BartC wrote: On 04/06/2015 18:11, Steven D'Aprano wrote: If there is any language where assignment uses one style and argument

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Matthew Barnett
Matthew Barnett added the comment: Here's how I can build the regex module on Windows 8.1, 64-bit, using only MinGW64. For Python 3.5, I can link against python35.dll, but for earlier versions, including Python 2.7, I need libpython??.a. I have built regex module for all of the 16 supported

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- assignee: - steve.dower components: +Build, Installation, Windows -Library (Lib) nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385

[issue24386] Bug Tracker emails going to gmail spam

2015-06-04 Thread Graham Oliver
New submission from Graham Oliver: I noticed that when I created an issue in this Bug Tracjer all of the associated emails were ending up in my gmail spam. '...in violation of Google's recommended email sender guidelines.' An explanatory link sends me to

[issue24386] Bug Tracker emails going to gmail spam

2015-06-04 Thread R. David Murray
R. David Murray added the comment: There are already open issues about this in the meta tracker. (See the 'report tracker problem' link at the bottom of the left column.) -- resolution: - duplicate stage: - resolved status: open - closed ___

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Jan Harkes
New submission from Jan Harkes: mingw32 fails to link with libpython27.a fails with the following error /cygdrive/C/Python27/libs/libpython27.a: error adding symbols: File format not recognized extracting all the objects from libpython27.a and checking them with objdump shows that two

Re: Can Python function return multiple data?

2015-06-04 Thread Chris Angelico
On Fri, Jun 5, 2015 at 3:11 AM, Steven D'Aprano st...@pearwood.info wrote: You need at least one more test to prove pass by value: you need to demonstrate that the value bound to y is copied when passed to the function. E.g. pass a mutable value (say, a list) and mutate it inside the function.

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-04 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: #1 and #2 are fixed. I hand-edited the patch file (!!), so here's to hoping it'll work... Working on #3. You probably should try the tests now (which is obviously the scary part ;). -- Added file: http://bugs.python.org/file39628/kbox_fix.patch

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 03:30 am, Marko Rauhamaa wrote: Steven D'Aprano st...@pearwood.info: On 2015-06-04, Marko Rauhamaa ma...@pacujo.net wrote: If it prints 1, it's pass by value. If it prints 3, it's pass by reference. Wrong. Why do you [Marko] imagine that pass-by-value and

Re: Multiple thread program problem

2015-06-04 Thread Cameron Simpson
On 04Jun2015 10:20, M2 mohan.mo...@gmail.com wrote: Awesome Cameron. It works the way I want it to work. Glad to hear it. A few small remarks: Thanks a lot guys. Here is the new code: [...] from thread import start_new_thread You're not using this any more. You may want to tidy this up.

Re: Find in ipython3

2015-06-04 Thread Cameron Simpson
On 04Jun2015 13:09, Michael Torrie torr...@gmail.com wrote: Why not use Python for what it's good for and say pipe the results of find into your python script? Reinventing find poorly isn't going to buy you anything. And several others made similar disparaging remarks. I think you're all

How to inverse a particle emitter

2015-06-04 Thread stephenppraneel7
hey, i really need help, im a straight up beginner in scripting and i need to figure out how to make an inverted particle emitter using python in maya -- https://mail.python.org/mailman/listinfo/python-list

[issue8232] webbrowser.open incomplete on Windows

2015-06-04 Thread Brandon Milam
Brandon Milam added the comment: Here's a patch addressing all of the comments in the review. Changing the browsers from a set to a list though resulted in duplicates in the _tryorder list that were not present before because the set had filtered the duplicates before the partial string

[issue24148] 'cum' not a valid sort key for pstats.Stats.sort_stats

2015-06-04 Thread Brandon Milam
Brandon Milam added the comment: They are correct. 'cum' is not one of the available keywords and so here is the fix changing it to say 'cumulative' for consistency as ramiro suggested. -- keywords: +patch nosy: +jbmilam Added file:

Re: Calling Python Script from an SQL Proceudre

2015-06-04 Thread Chris Angelico
On Fri, Jun 5, 2015 at 12:02 AM, Amit Goutham agn.91...@gmail.com wrote: Hi Laura, Thanks a Lot for the reply. I wanted to know if calling a Python script from SAP HANA database is possible. What you're asking for there is a SAP HANA feature, not a Python one. You could possibly ask SAP about

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 04:38 am, Grant Edwards wrote: But, discussing pass-by-this vs. pass-by-that without also discussing the semantics of the assignment operator is rather pointless. No, that's a red-herring. I don't think so.  The reason that many people seem to confused about Python's

Re: Can Python function return multiple data?

2015-06-04 Thread random832
On Thu, Jun 4, 2015, at 18:16, Steven D'Aprano wrote: Remember, you've tried to claim that it is not invisible or unknown, so you must be able to see and know that value. So what is the value? It doesn't have to have a string representation to exist. But if you really want one?

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 06:52 am, BartC wrote: On 04/06/2015 18:11, Steven D'Aprano wrote: If there is any language where assignment uses one style and argument passing always uses another, I've never come across it. My language does that. I'd be very surprised if it was the only one in

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- versions: -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___ ___

Re: How to inverse a particle emitter

2015-06-04 Thread Ian Kelly
On Thu, Jun 4, 2015 at 5:15 PM, stephenpprane...@gmail.com wrote: hey, i really need help, im a straight up beginner in scripting and i need to figure out how to make an inverted particle emitter using python in maya No idea. This sounds more like a Maya question than a Python question. Maybe

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 03:26 am, random...@fastmail.us wrote: On Thu, Jun 4, 2015, at 09:47, Steven D'Aprano wrote: In other words, according to this Java philosophy, following `x = 23`, the value of x is not 23 like any sane person would expect, but some invisible and unknown, and unknowable,

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 03:30 am, random...@fastmail.us wrote: On Thu, Jun 4, 2015, at 13:11, Steven D'Aprano wrote: You need at least one more test to prove pass by value: you need to demonstrate that the value bound to y is copied when passed to the function. E.g. pass a mutable value (say, a

[issue24168] Unittest discover fails with namespace package if the path contains the string same as the module name

2015-06-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24168 ___ ___ Python-bugs-list mailing

Re: How to inverse a particle emitter

2015-06-04 Thread stephenppraneel7
On Thursday, June 4, 2015 at 4:15:29 PM UTC-7, stephenp...@gmail.com wrote: hey, i really need help, im a straight up beginner in scripting and i need to figure out how to make an inverted particle emitter using python in maya unfortunitly i have to make this using python not mel --

Re: Can Python function return multiple data?

2015-06-04 Thread BartC
On 04/06/2015 18:11, Steven D'Aprano wrote: If there is any language where assignment uses one style and argument passing always uses another, I've never come across it. My language does that. I'd be very surprised if it was the only one in existence that does so. Assignments involve a

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-04 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Fixes for readline and _crypt done. -- Added file: http://bugs.python.org/file39629/lib_fixes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Benjamin Gilbert
Changes by Benjamin Gilbert bgilb...@backtick.net: -- nosy: +bgilbert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385 ___ ___ Python-bugs-list

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 04:17 am, Alain Ketterlin wrote: Steven D'Aprano st...@pearwood.info writes: [...] But you still find a few people here and there who have been exposed to Java foolishness, and will argue that Python is pass by value, where the value is an implementation dependent

Re: Can Python function return multiple data?

2015-06-04 Thread Chris Angelico
On Fri, Jun 5, 2015 at 8:52 AM, Steven D'Aprano st...@pearwood.info wrote: On Fri, 5 Jun 2015 04:38 am, Grant Edwards wrote: But, discussing pass-by-this vs. pass-by-that without also discussing the semantics of the assignment operator is rather pointless. No, that's a red-herring. I don't

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Steve Dower
Steve Dower added the comment: Given I can't generate the file any other way that will be compatible for everyone, unless someone contributes a fix I'm going to stop shipping these files and let people generate them using whatever tools they have. If anyone wants to suggest instructions then

Re: How to inverse a particle emitter

2015-06-04 Thread Rob Gaddi
On Thu, 04 Jun 2015 16:15:20 -0700, stephenppraneel7 wrote: hey, i really need help, im a straight up beginner in scripting and i need to figure out how to make an inverted particle emitter using python in maya This is why we can't have nice large hadron colliders. -- Rob Gaddi, Highland

Re: Parser needed.

2015-06-04 Thread Michael Torrie
On 06/04/2015 11:14 AM, Steven D'Aprano wrote: On Fri, 5 Jun 2015 03:02 am, Skybuck Flying wrote: Yeah... my first nice parser for this kind of stuff... Python is really nice for this stuff... Piece a cake.. now I just need to stuff it in some dictionary and I am done or so ;) Though a

Re: Can Python function return multiple data?

2015-06-04 Thread random832
On Thu, Jun 4, 2015, at 09:47, Steven D'Aprano wrote: In other words, according to this Java philosophy, following `x = 23`, the value of x is not 23 like any sane person would expect, but some invisible and unknown, and unknowable, reference to 23. Well, no, because, in Java, if the type of

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
get was tried but now new error somewhere else: [error] TypeError ( list indices must be integers ) [error] --- Traceback --- error source first line: module ( function ) statement 133: main ( ProcessUpdateEntityDead ) DemoEntityDead[DemoEntityIndex] = Dead Apperently the returned index from

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Well... I must say I am impressed: Python parsers the file/info I want in just: Seconds: 0.013389648 For +/- 20.000 lines of input data/text. This makes it very usuable cool ! Now I try the bigger file: +/- 285.000 lines of input data/text: Seconds: 0.092351501 Very impressive !

Re: Can Python function return multiple data?

2015-06-04 Thread Ian Kelly
On Wed, Jun 3, 2015 at 3:56 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: Now does Python pass by value or by reference? Happily sits back and waits for 10**6 emails to arrive as this is discussed for the 10**6th time. Troll. -- https://mail.python.org/mailman/listinfo/python-list

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: Added file: http://bugs.python.org/file39622/concurrent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

Re: Parser needed.

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 03:02 am, Skybuck Flying wrote: Yeah... my first nice parser for this kind of stuff... Python is really nice for this stuff... Piece a cake.. now I just need to stuff it in some dictionary and I am done or so ;) Though a dictionary might be hard to traverse in

Re: Can Python function return multiple data?

2015-06-04 Thread random832
On Thu, Jun 4, 2015, at 13:11, Steven D'Aprano wrote: You need at least one more test to prove pass by value: you need to demonstrate that the value bound to y is copied when passed to the function. E.g. pass a mutable value (say, a list) and mutate it inside the function. If the list in the

Re: Can Python function return multiple data?

2015-06-04 Thread Marko Rauhamaa
Steven D'Aprano st...@pearwood.info: On 2015-06-04, Marko Rauhamaa ma...@pacujo.net wrote: If it prints 1, it's pass by value. If it prints 3, it's pass by reference. Wrong. Why do you [Marko] imagine that pass-by-value and pass-by-reference are the only two options? It's a classic

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Ok problem found. The data contains: EntityRef EntityRef So perhaps I screwed it up or perhaps the data is a bit bad. I ll check on my web drive: http://www.skybuck.org/Games/StartrekOnline/Parser/SpaceFleetAlertEnemyExample.demo Firefox doesn't find it... so apperently I fucked up data a

Re: Can Python function return multiple data?

2015-06-04 Thread Grant Edwards
On 2015-06-04, Steven D'Aprano st...@pearwood.info wrote: On Fri, 5 Jun 2015 12:37 am, Grant Edwards wrote: On 2015-06-04, Marko Rauhamaa ma...@pacujo.net wrote: Anyway, I would say Python definitely is in the classic pass-by-value camp. Here's a simple test: def f(x): x = 3

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Fri, 5 Jun 2015 12:37 am, Grant Edwards wrote: On 2015-06-04, Marko Rauhamaa ma...@pacujo.net wrote: Anyway, I would say Python definitely is in the classic pass-by-value camp. Here's a simple test: def f(x): x = 3 y = 1 f(y) print(y) If it prints 1, it's pass

[issue24376] xxlimited.c errors when building 32 and 64 bit on Windows

2015-06-04 Thread Mark Lawrence
Mark Lawrence added the comment: Now compiles, thanks guys :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24376 ___ ___ Python-bugs-list

Re: Multiple thread program problem

2015-06-04 Thread M2
On Wednesday, June 3, 2015 at 3:41:15 PM UTC-5, M2 wrote: Hello I am trying to create multiple thread through the below program but I am getting an error #! /usr/bin/python import os import subprocess import thread import threading from thread import start_new_thread def proc(f) :

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Very nice code almost done. Now I am trying to do the code correctly and fast, thus using a dictionary, but I run into a little problem: The dictionary is declared as: DemoEntityRefIndex = {} Pairs are added as: DemoEntityRefIndex[Ref] = DemoEntityIndex And now I try to retrieve the demo

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
I feel my conclusion is a bit hasty... but using dictionaries is not easy that for sure. Apperently the problem is DemoEntityInde is none ? But why would it be none ? Hmmm strange... maybe some refs are not in there... hmmm... Yeah could be... I cutted some stuff out... so I better check

Re: Can Python function return multiple data?

2015-06-04 Thread Michael Torrie
On 06/04/2015 11:26 AM, random...@fastmail.us wrote: Of course, in CPython, the type of an object reference is PyObject *. Which isn't invisible, unknown, or unknowable, either. If the value really were 23, the is vs == problem wouldn't exist. Surely two objects can hold the same value, or

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Something strange happens with: 36044817 near the update section... for some reason it doesn't copy it properly... Hmm... Maybe a bug in output or an additional new line or maybe something wrong... Hmm.. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

Re: Can Python function return multiple data?

2015-06-04 Thread random832
On Thu, Jun 4, 2015, at 13:36, Michael Torrie wrote: Surely two objects can hold the same value, or represent the same value (number), without *having* to be the same object. I don't see why people would assume, let alone demand that different objects representing the same value be the same

Re: Can Python function return multiple data?

2015-06-04 Thread Alain Ketterlin
Steven D'Aprano st...@pearwood.info writes: [...] But you still find a few people here and there who have been exposed to Java foolishness, and will argue that Python is pass by value, where the value is an implementation dependent reference to the thing that you thought was the value. I

Re: Find in ipython3

2015-06-04 Thread random832
On Tue, Jun 2, 2015, at 12:13, Cecil Westerhof wrote: I am thinking about using ipython3 instead of bash. When I want to find a file I can do the following: !find ~ -iname '*python*.pdf' but is there a python way? Python really isn't a good substitute for a shell, but the normal python

Re: Can Python function return multiple data?

2015-06-04 Thread ElChino
Steven D'Aprano wrote: But you still find a few people here and there who have been exposed to Java foolishness, and will argue that Python is pass by value, where the value is an implementation dependent reference to the thing that you thought was the value. To quote Niklaus Wirth (the

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Yury Selivanov added the comment: Yuri, is that possible? Please see my previous comment and the attached patch :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: yselivanov components: Library (Lib), asyncio nosy: gvanrossum, haypo, scoder, yselivanov priority: normal severity: normal status: open title: consider implementing __await__ on concurrent.futures.Future type: enhancement

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
New submission from Yury Selivanov: Maybe it's possible to give an interpretation to awaiting on a threaded Future? __await__ could return a new asyncio Future, and add a completion callback to the original Future that makes the asyncio Future ready and transfers the result/exception. This

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Yury Selivanov added the comment: Added a unittest for cancellation -- Added file: http://bugs.python.org/file39621/concurrent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

[issue24382] Fail to build time module on Mac

2015-06-04 Thread Ned Deily
Ned Deily added the comment: Yes, try make distclean. I am unable to reproduce the problem and don't see why your proposed patch would make a difference. -- resolution: - works for me stage: - resolved status: pending - closed ___ Python tracker

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-06-04 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, Stefen, please see issue24383. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Guido van Rossum
Guido van Rossum added the comment: So in issue24017 I wrote: Maybe it's possible to give an interpretation to awaiting on a threaded Future? __await__ could return a new asyncio Future, and add a completion callback to the original Future that makes the asyncio Future ready and transfers the

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- Removed message: http://bugs.python.org/msg244833 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Yes these string processing techniques will work very nicely and very fast: cut and pasted an example but should work... now I developed it a bit further, bye ,bye. BotDemoFolder = C:\\Games\\Startrek Online\\Startrek Online\\Cryptic Studios\\Star Trek Online\\Live\\demos BotDemoFile =

[issue24382] Fail to build time module on Mac

2015-06-04 Thread Zachary Ware
Zachary Ware added the comment: See discussion on #24244, I think this is an issue with your checkout rather than the code. -- nosy: +zach.ware status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24382

Re: Find in ipython3

2015-06-04 Thread Cecil Westerhof
Op Thursday 4 Jun 2015 16:27 CEST schreef Grant Edwards: On 2015-06-04, Cecil Westerhof ce...@decebal.nl wrote: Op Thursday 4 Jun 2015 04:54 CEST schreef Cameron Simpson: On 02Jun2015 18:13, Cecil Westerhof ce...@decebal.nl wrote: I am thinking about using ipython3 instead of bash. When I

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- Removed message: http://bugs.python.org/msg244834 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

Re: Parser needed.

2015-06-04 Thread Skybuck Flying
Yeah... my first nice parser for this kind of stuff... Python is really nice for this stuff... Piece a cake.. now I just need to stuff it in some dictionary and I am done or so ;) Though a dictionary might be hard to traverse in sequence... A list is probably enough... assuming no duplicate

Re: Regular Expression

2015-06-04 Thread Peter Otten
Palpandi wrote: This is the case. To split string2 from string1_string2 I am using re.split('_', string1_string2, 1)[1]. It is working fine for string string1_string2 and output as string2. But actually the problem is that if a sting is __string1_string2 and the output is _string1_string2.

[issue24378] dir(dictobject) returns empty list when __getattribute__ is overriden in the class

2015-06-04 Thread R. David Murray
R. David Murray added the comment: If you override __getattribute__ it is your responsibility to fulfill its contract, so your method is the one that needs to catch the KeyError and return the expected AttributeError. -- nosy: +r.david.murray resolution: - not a bug stage: -

Re: Everything is an object in python - object class and type class

2015-06-04 Thread Steven D'Aprano
On Thu, 4 Jun 2015 03:26 am, BartC asked about Value and Object: Are they in fact the same, or is there something else that can be done more reliably to show the difference? In *Python*, they are the same. All values are implemented as objects. But, speaking generically, Value and Object are

[issue24382] Fail to build time module on Mac

2015-06-04 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the error message: building 'time' extension gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I./Include -I. -IInclude -I/usr/local/include -I/Users/sky/Code/python/cpython/Include

[issue24374] Plug refleak in set_coroutine_wrapper

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24374

Re: Can Python function return multiple data?

2015-06-04 Thread Grant Edwards
On 2015-06-04, Marko Rauhamaa ma...@pacujo.net wrote: Steven D'Aprano st...@pearwood.info: But you still find a few people here and there who have been exposed to Java foolishness, and will argue that Python is pass by value, where the value is an implementation dependent reference to the

Re: Regular Expression

2015-06-04 Thread Steven D'Aprano
On Thu, 4 Jun 2015 11:36 pm, Palpandi wrote: Hi All, This is the case. To split string2 from string1_string2 I am using re.split('_', string1_string2, 1)[1]. There is absolutely no need to use the nuclear-powered bulldozer of regular expressions to crack that tiny peanut. Strings have a

Re: Can Python function return multiple data?

2015-06-04 Thread Steven D'Aprano
On Thu, 4 Jun 2015 08:28 am, sohcahto...@gmail.com wrote: On Wednesday, June 3, 2015 at 2:57:00 PM UTC-7, Mark Lawrence wrote: [...] Now does Python pass by value or by reference? Happily sits back and waits for 10**6 emails to arrive as this is discussed for the 10**6th time. People

Re: Regular Expression

2015-06-04 Thread Tim Chase
On 2015-06-04 06:36, Palpandi wrote: This is the case. To split string2 from string1_string2 I am using re.split('_', string1_string2, 1)[1]. It is working fine for string string1_string2 and output as string2. But actually the problem is that if a sting is __string1_string2 and the output

[issue24374] Plug refleak in set_coroutine_wrapper

2015-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f2bf0ff262c by Yury Selivanov in branch '3.5': Issue 24374: Plug refleak in set_coroutine_wrapper https://hg.python.org/cpython/rev/3f2bf0ff262c New changeset 68f40b6448b9 by Yury Selivanov in branch 'default': Issue 24374: Plug refleak in

[issue24382] Fail to build time module on Mac

2015-06-04 Thread Vajrasky Kok
New submission from Vajrasky Kok: On my OSX Yosemite 10 with GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53), I fail to build time module. Failed to build these modules: time Here is the patch to fix the compile error. -- components: Macintosh files:

Re: Regular Expression

2015-06-04 Thread Laura Creighton
In a message of Thu, 04 Jun 2015 06:36:29 -0700, Palpandi writes: Hi All, This is the case. To split string2 from string1_string2 I am using re.split('_', string1_string2, 1) And you shouldn't be. The 3rd argument, 1 says stop after one match. It is working fine for string string1_string2 and

Re: Find in ipython3

2015-06-04 Thread Grant Edwards
On 2015-06-04, Cecil Westerhof ce...@decebal.nl wrote: Op Thursday 4 Jun 2015 04:54 CEST schreef Cameron Simpson: On 02Jun2015 18:13, Cecil Westerhof ce...@decebal.nl wrote: I am thinking about using ipython3 instead of bash. When I want to find a file I can do the following: !find ~ -iname

  1   2   >