Re: Stupid question, just need a quick and dirty fix

2016-07-21 Thread Jordan Bayless
No, I tried using a bunch of elif statements earlier and when I added more than around 3 of them it threw errors. I just assumed that was some kind of limit. We both agree that's piss-poor, lazy coding. I'm just trying to find something that works though. To this point, everything I try fails.

Re: Stupid question, just need a quick and dirty fix

2016-07-21 Thread Michael Selik
> On Jul 22, 2016, at 12:39 AM, Jordan Bayless wrote: > > Posting the entire code snippet is tough because it's thousands of lines of > code. You could paste into a GitHub gist (https://gist.github.com/) and share the link. --

Re: Stupid question, just need a quick and dirty fix

2016-07-21 Thread Chris Angelico
On Fri, Jul 22, 2016 at 2:39 PM, Jordan Bayless wrote: > it seems there's a) no case statement (WTF?) and b) I'm limited to how many > elif statements I can use. The latter isn't true; and you're not using elif anyway. With no case statement, you get pushed to other, better

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-07-21 Thread Martin Panter
Martin Panter added the comment: Here is a new patch for 2.7 that should avoid the problem with ChecksumBigBufferTestCase. I tested a hacked version of the test, so I am more confident in it now :) -- Added file: http://bugs.python.org/file43823/64bit_support_for_zlib_v11-2.7.patch

Re: Stupid question, just need a quick and dirty fix

2016-07-21 Thread Jordan Bayless
On Thursday, July 21, 2016 at 11:28:55 PM UTC-5, Chris Angelico wrote: > On Fri, Jul 22, 2016 at 2:19 PM, Jordan Bayless wrote: > > I get various errors no matter what I do to this to try and make it work. > > Variable not defined. Referenced before assignment. etc etc. I'm

Re: Stupid question, just need a quick and dirty fix

2016-07-21 Thread Chris Angelico
On Fri, Jul 22, 2016 at 2:19 PM, Jordan Bayless wrote: > I get various errors no matter what I do to this to try and make it work. > Variable not defined. Referenced before assignment. etc etc. I'm lost. How do > I make it work? It might be easier if you post all your

Stupid question, just need a quick and dirty fix

2016-07-21 Thread Jordan Bayless
I'm trying to modify some code to suit my purposes and I'm just trying to filter results as necessary. Basically, the code is returning one of a number from a subset of 150 numbers. I want to only do anything with it if the number is a 'good' one. I'm by no means a Python programmer (C# for me

[issue24034] Make fails Objects/typeslots.inc

2016-07-21 Thread Martin Panter
Martin Panter added the comment: Sorry nobody acted on your patch earlier. This is the same as Issue 26662, which has a more general patch that does the same sort of thing. -- nosy: +martin.panter resolution: -> duplicate status: open -> closed ___

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-21 Thread Martin Panter
Martin Panter added the comment: I think that error message would be okay. -- ___ Python tracker ___ ___

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Emanuel Barry
Emanuel Barry added the comment: For future reference, if your input can have arbitrary escapes, it might be a good idea to pass it through re.escape; it does proper escaping so that stuff like e.g. \g in your input will get treated as a literal backslash, followed by a literal 'g', and not

learning python. learning defining functions . need help

2016-07-21 Thread sigmaphine1914
having a little trouble with defining functions. i have a doc called ch5.py and when i was trying the following i had issues " Try It Out: Defining a Function Try saving the following in your file for Chapter 5, ch5.py.def in_fridge(): try: count = fridge[wanted_food]

[issue8406] Make some setup.py paths exclude-able

2016-07-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > We regularly close issues that are 1+ year old on Jupyter/IPython or rescope > the issue to be actionable for contribution. Sorry if me doing that on IPython/Jupyter recently have put you (willingc) in a bad position in here, sincere apologies, you are

Re: Floating point equality [was Re: What exactly is "exact" (was Clean Singleton Docstrings)]

2016-07-21 Thread Chris Kaynor
On Thu, Jul 21, 2016 at 4:54 PM, Ben Bacarisse wrote: > Steven D'Aprano writes: > > > Or you might be using a language like Javascript, which intentionally has > > only floats for numbers. That's okay, you can still perform exact integer > >

Re: Floating point equality [was Re: What exactly is "exact" (was Clean Singleton Docstrings)]

2016-07-21 Thread Ben Bacarisse
Steven D'Aprano writes: > Or you might be using a language like Javascript, which intentionally has > only floats for numbers. That's okay, you can still perform exact integer > arithmetic, so long as you stay within the bounds of ±2**16. Small point: it's 2**52. -- Ben.

[issue13849] Add tests for NUL checking in certain strs

2016-07-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue13849] Add tests for NUL checking in certain strs

2016-07-21 Thread STINNER Victor
STINNER Victor added the comment: issue13849.diff: LGTM. If the tests pass on Python 2.7 and 3.5, I think that it's worth to add the tests to these versions as well. -- ___ Python tracker

[issue27580] CSV Null Byte Error

2016-07-21 Thread Skip Montanaro
Skip Montanaro added the comment: Thanks. The display you showed looks about like I saw in LibreOffice. If you export it back to another CSV file, does the new file match the original exactly, or does (like LibreOffice) it save a file without NUL bytes? I don't mind having the discussion, but

[issue26533] logging.config does not allow disable_existing_loggers=True

2016-07-21 Thread Vinay Sajip
Vinay Sajip added the comment: > That's not really what this is about. As I see it, it's about the ability to configure disabling of existing loggers on reconfiguration via the listener. While it can't be done using fileConfig(), it *can* be done using dictConfig(). --

[issue26533] logging.config does not allow disable_existing_loggers=True

2016-07-21 Thread Grazfather x
Grazfather x added the comment: That's not really what this is about. This is about setting up the listener so that by default that setting is used. In logging/config.py: ```python def listen(port=DEFAULT_LOGGING_CONFIG_PORT, verify=None): ... try:

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Bruce Eckel
Bruce Eckel added the comment: Urk. There was exactly a \g in the input. Sorry for the bother. -- resolution: -> not a bug ___ Python tracker ___

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Tim Peters
Changes by Tim Peters : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Tim Peters
Tim Peters added the comment: Well, some backslash escapes are processed in the "replacement" argument to `.sub()`. If your replacement text contains a substring of the form \g not immediately followed by < that will raise the exception you're seeing. The parser is expecting to

[issue27580] CSV Null Byte Error

2016-07-21 Thread Bobby Ocean
Bobby Ocean added the comment: I attempted to open the file in excel; raised no errors. In any case (regardless of Microsoft-concerns), I am glad to see a discussion started and possibly some concern that an update might be useful to the community (it would certainly cut down on the number

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Bruce Eckel
Bruce Eckel added the comment: Sorry, I thought maybe the error message would be indicative of something. Here's the re: find_output = re.compile(r"/\* (Output:.*)\*/", re.DOTALL) Here's the program: #! py -3 # Requires Python 3.5 # Updates generated output into extracted Java programs in

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Tim Peters
Tim Peters added the comment: If you don't show us the regular expression, it's going to be darned hard to guess what it is ;-) -- nosy: +tim.peters ___ Python tracker

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Bruce Eckel
New submission from Bruce Eckel: This looks suspicious to me, like it could be a library bug, but before chasing it down I was hoping someone might be able to tell me whether I might be on to something: Traceback (most recent call last): File "update_extracted_example_output.py", line 22,

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-21 Thread Guido van Rossum
Guido van Rossum added the comment: > Who actually wrote it [crawl.py], that would understand it? I wrote it, and I can probably still recover my understanding of it. Basically you say "python3 crawl.py xkcd.com -q" and it crawls the XKCD.com website -- that takes about 4 seconds on my

[issue13849] Add tests for NUL checking in certain strs

2016-07-21 Thread Berker Peksag
Berker Peksag added the comment: Attached patch adds tests for common members of Lib/genericpath.py. -- keywords: +patch nosy: +berker.peksag stage: needs patch -> patch review versions: +Python 3.6 -Python 3.4 Added file: http://bugs.python.org/file43821/issue13849.diff

[issue26533] logging.config does not allow disable_existing_loggers=True

2016-07-21 Thread Vinay Sajip
Vinay Sajip added the comment: I think this is just a documentation issue. You can send a dictionary suitable for dictConfig() as JSON over the listen() socket. This is supported by 2.7 and 3.2+ - the documentation doesn't mention this, though. --

Re: Max size of Python source code and compiled equivalent

2016-07-21 Thread Peter Otten
Malcolm Greene wrote: > We're writing a DSL parser that generates Python code. While the size of > our generated code will be small (< 32K), I wanted to re-assure the rest > of our team that there are no reasonable code size boundaries that we > need to be concerned about. I've searched for

[issue1521950] shlex.split() does not tokenize like the shell

2016-07-21 Thread R. David Murray
R. David Murray added the comment: No objection from me. I'm not likely to have the time to give it the kind of thorough review I'd *like* to, but I don't think it is really needed. -- ___ Python tracker

[issue27580] CSV Null Byte Error

2016-07-21 Thread Skip Montanaro
Skip Montanaro added the comment: I wasn't familiar with RFC 4180. (Or, quite possibly, I forgot I used to be familiar with it.) Note that at the bottom of the BNF definition of the file structure is the definition of TEXTDATA: TEXTDATA = %x20-21 / %x23-2B / %x2D-7E That pretty explicitly

[issue27493] logging module fails with unclear error when supplied a (Posix)Path

2016-07-21 Thread Vinay Sajip
Vinay Sajip added the comment: > the answer would be "not at all". Not sure about that. If all logging did were to pass the path to lower levels such as open or abspath, that may be true. However, some handlers do path computations (e.g. the rotating file handlers) and so logging would need

[issue1521950] shlex.split() does not tokenize like the shell

2016-07-21 Thread Vinay Sajip
Vinay Sajip added the comment: This has been knocking around since 3.3, but never got enough attention to make it in. Barring objections from anyone, I'd like to commit this patch once I check that it applies cleanly against 3.6, before we get into 3.6 beta. -- versions: +Python 3.6

Re: Technique for safely reloading dynamically generated module

2016-07-21 Thread Terry Reedy
On 7/21/2016 12:07 PM, Malcolm Greene wrote: I assume that one downside to the exec() approach is that there is no persistent namespace for this code's functions and classes, eg. after the exec() completes, its namespace disappears and is not available to code that follows? Objects only

Re: Max size of Python source code and compiled equivalent

2016-07-21 Thread Malcolm Greene
> Heh, great question, and I'm curious too! But one place to get a bit more > info is the standard library. > > rosuav@sikorsky:~/cpython/Lib$ find -name \*.py|xargs ls -lS|head > -rw-r--r-- 1 rosuav rosuav 624122 Jul 17 17:38 ./pydoc_data/topics.py Brilliant! :) Thanks Chris! Malcolm --

[issue27580] CSV Null Byte Error

2016-07-21 Thread Bobby Ocean
Bobby Ocean added the comment: I am sorry I must have mis-read the history part of that article. -- ___ Python tracker ___

[issue27585] asyncio.Lock deadlock after cancellation

2016-07-21 Thread R. David Murray
R. David Murray added the comment: If you give the loop a chance to run (an await asyncio.sleep(0)) before doing the acquire) it does not deadlock. I don't understand enough of the asyncio internals to know if this is expected or a bug. -- nosy: +r.david.murray

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: I still think the easiest thing to do would be to make all non-ASCII characters instances of "invalid_character_token", self-delimiting in the same way that operators are. That would automatically point to exactly the right place in the token stream,

[issue27580] CSV Null Byte Error

2016-07-21 Thread R. David Murray
R. David Murray added the comment: Bobby: Skip is one of the authors of the csv module, and has been maintaining it since it was added to the standard library. He knows whereof he speaks: there is no standard for csv (as noted in the article you link), and all csv parsers that want to be

Re: Max size of Python source code and compiled equivalent

2016-07-21 Thread Chris Angelico
On Fri, Jul 22, 2016 at 2:51 AM, Malcolm Greene wrote: > We're writing a DSL parser that generates Python code. While the size of > our generated code will be small (< 32K), I wanted to re-assure the rest > of our team that there are no reasonable code size boundaries that we

[issue27585] asyncio.Lock deadlock after cancellation

2016-07-21 Thread sss
New submission from sss: The lock.py file prints DEADLOCK HERE _locked: False _waiters: deque([]) I think the problem is that acquire() will block because of the cancelled future in _waiters, but release() has already ran so no one will wake it up. -- components: asyncio files:

[issue26944] android: test_posix fails

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Is there a plan to make Android a supported platform in 3.6? Answer in the Android meta-issue at msg 270942. -- ___ Python tracker

[issue26865] Meta-issue: support of the android platform

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: Larry asked in msg 270937: > Is there a plan to make Android a supported platform in 3.6? This is the list of Android related issues that will modify the standard library and core Python when fixed: issue 16255: subrocess.Popen needs /bin/sh but Android

Max size of Python source code and compiled equivalent

2016-07-21 Thread Malcolm Greene
We're writing a DSL parser that generates Python code. While the size of our generated code will be small (< 32K), I wanted to re-assure the rest of our team that there are no reasonable code size boundaries that we need to be concerned about. I've searched for Python documentation that covers max

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: Attached is a combined patch that has the new private function for IsIdentifier, method 4's error handling change, and a bit of glue in the middle to make use of it. The result is a passing test suite (bar test_site which was already failing on my system) and

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: Hmm, that'd be curious. The code to do that is actually pretty simple - see attached patch - but actually using that to affect error messages is a bit harder. Is it safe to mess with tok->start? -- Added file:

Re: reversed(enumerate(x))

2016-07-21 Thread Ian Kelly
On Wed, Jul 20, 2016 at 11:54 AM, Brendan Abel <007bren...@gmail.com> wrote: > You could create your own generator that wraps enumerate > > def reverse_enumerate(iterable): > for i, val in enumerate(reversed(iterable)): > yield len(iterable) - 1 - i, val > > for i, val in

[issue27562] Import error encodings (Windows xp compatibility)

2016-07-21 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___

Re: Technique for safely reloading dynamically generated module

2016-07-21 Thread Chris Angelico
On Fri, Jul 22, 2016 at 2:07 AM, Malcolm Greene wrote: > The source file we're generating has one main function (go) with some > supporting functions and classes as well. Will there be any problems > referencing additional functions or classes defined in the source that > gets

Re: Floating point equality [was Re: What exactly is "exact" (was Clean Singleton Docstrings)]

2016-07-21 Thread Steven D'Aprano
On Thu, 21 Jul 2016 11:14 pm, Rustom Mody wrote: > On Thursday, July 21, 2016 at 12:04:35 PM UTC+5:30, Steven D'Aprano wrote: >> On Thursday 21 July 2016 15:28, Rustom Mody wrote: >> > BTW APL whose main domain of application is scientific chooses to >> > enshrine this —equality is ε-neighborhood

Re: reversed(enumerate(x))

2016-07-21 Thread Ian Kelly
On Wed, Jul 20, 2016 at 1:16 PM, Random832 wrote: > On Wed, Jul 20, 2016, at 13:42, Ian Kelly wrote: >> I had occasion to write something like this: >> >> for i, n in reversed(enumerate(x)): pass >> >> How would you write this? > > I'd write my own version of enumerate

[issue27580] CSV Null Byte Error

2016-07-21 Thread Bobby Ocean
Bobby Ocean added the comment: @ Skip Montanaro, Actually, CSV has nothing to do with excel. Excel is a gui that processes CSV like many other programs. CSV stands for comma seperated values and is basic standard for data.https://en.m.wikipedia.org/wiki/Comma-separated_values As far as I

Re: Technique for safely reloading dynamically generated module

2016-07-21 Thread Malcolm Greene
Thank you Chris and Peter. The source file we're generating has one main function (go) with some supporting functions and classes as well. Will there be any problems referencing additional functions or classes defined in the source that gets passed to exec ... as long as references to those

[issue23951] Update devguide style to use a similar theme as Docs

2016-07-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26944] android: test_posix fails

2016-07-21 Thread Larry Hastings
Larry Hastings added the comment: Is there a plan to make Android a supported platform in 3.6? -- ___ Python tracker ___

[issue26944] android: test_posix fails

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch with cosmetic changes. -- assignee: -> xdegaye stage: -> patch review Added file: http://bugs.python.org/file43817/test_getgroups_2.patch ___ Python tracker

Re: Technique for safely reloading dynamically generated module

2016-07-21 Thread Peter Otten
Malcolm Greene wrote: > We're designing a server application that parses a custom DSL (domain > specific language) source file, generates a Python module with the > associated logic, and runs the associated code. Since this is a server > application, we need to reload the module after each

Re: Python packages listed in PyPI

2016-07-21 Thread Pete Forman
On 21 July 2016 at 07:28, Rayne wrote: > Thanks! One more question: Does "pip install" require Internet to work? Or > are all implementations already contained in the packages and so do not > require additional downloads? > pip install is downloading from

[issue27584] New addition of vSockets to the python socket module

2016-07-21 Thread Cathy Avery
New submission from Cathy Avery: I have added AF_VSOCK support to python's 3.6 socket module ( socketmodule.c socketmodule.h cloned from https://hg.python.org/cpython ). The implementation is very similar to AF_NETLINK. AF_VSOCK requires the VMware-specific VMCI transport which is currently

[issue23951] Update devguide style to use a similar theme as Docs

2016-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a19fbb8501f by Zachary Ware in branch 'default': Issue #23951: Add missing icon https://hg.python.org/devguide/rev/5a19fbb8501f New changeset 0f642c1ba901 by Zachary Ware in branch 'default': Issue #23951: Clean up rstlint makefile integration

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread R. David Murray
R. David Murray added the comment: We use the versions field to indicate which versions it might get fixed in. Since this is not a security issue, that would be 3.5 and 3.6, if it doesn't affect 2.7. If we decide to make the code match the docs, it will probably only get fixed in 3.6, since

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Nick Coghlan
Nick Coghlan added the comment: Looking at issue 2382, I agree that's a different problem (I'm seeing the current misbehaviour even though everything is consistently encoded as UTF-8) The main case we're interested in here is the PyUnicode_IsIdentifier one, so if we wanted to do better than

Re: Technique for safely reloading dynamically generated module

2016-07-21 Thread Chris Angelico
On Fri, Jul 22, 2016 at 12:42 AM, Malcolm Greene wrote: > We're designing a server application that parses a custom DSL (domain > specific language) source file, generates a Python module with the > associated logic, and runs the associated code. Since this is a server >

Technique for safely reloading dynamically generated module

2016-07-21 Thread Malcolm Greene
We're designing a server application that parses a custom DSL (domain specific language) source file, generates a Python module with the associated logic, and runs the associated code. Since this is a server application, we need to reload the module after each regeneration. Is this process is

Re: Ide or code editor confusion

2016-07-21 Thread Chris Angelico
On Fri, Jul 22, 2016 at 12:22 AM, wrote: > Beginning Python: using Python 2.6 and Python 3.1. By James Payne > > Part II. > > But I think that answered my question. Great because au was worried Ugh, that's extremely old now. The current versions of Python are 2.7

Re: Ide or code editor confusion

2016-07-21 Thread Jussi Piitulainen
sigmaphine1...@gmail.com writes: > I'm learning Python and something is really unclear on the chapter im > on. > > So Python has its own IDE to write code but now it's talking about > "code editors" > > My confusion is so I need a code editor like Sublime text? Is that > what Python IDE is for?

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread rk
Changes by rk : Removed file: http://bugs.python.org/file43815/bug_configparser_default_section.py ___ Python tracker ___

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread rk
rk added the comment: Verified/tested with Python 2.7.9, 3.2.6, 3.3.6, 3.4.2, 3.5.1. The bug exists in all versions, so I've added 3.2, 3.3, 3.4 again. I've also attached an updated testcase, which now works in both Python 2 and Python 3. -- versions: +Python 3.2, Python 3.3, Python

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread rk
rk added the comment: (removed Python 2.7, since default_section was not supported there) -- versions: -Python 2.7 ___ Python tracker ___

Re: Ide or code editor confusion

2016-07-21 Thread MRAB
On 2016-07-21 15:07, Chris Angelico wrote: On Thu, Jul 21, 2016 at 11:56 PM, wrote: I'm learning Python and something is really unclear on the chapter im on. So Python has its own IDE to write code but now it's talking about "code editors" My confusion is so I

Re: Ide or code editor confusion

2016-07-21 Thread sigmaphine1914
Beginning Python: using Python 2.6 and Python 3.1. By James Payne Part II. But I think that answered my question. Great because au was worried -- https://mail.python.org/mailman/listinfo/python-list

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: BTW, here's how a session looks using method 4's change: >>> varname = asdf“d“a”t”apoint File "", line 1 varname = asdf“d“a”t”apoint ^ SyntaxError: invalid character in identifier >>> varname = asdf“d“a”t”apoint.evidence File "", line 1

[issue26081] Implement asyncio Future in C to improve performance

2016-07-21 Thread Yury Selivanov
Yury Selivanov added the comment: Yes. Most people will use vanilla asyncio anyways. -- ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Changes by Chris Angelico : Added file: http://bugs.python.org/file43813/method3-change-all-errors.patch ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Changes by Chris Angelico : Added file: http://bugs.python.org/file43812/method2-change-cur-and-inp.patch ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Changes by Chris Angelico : Added file: http://bugs.python.org/file43814/method4-change-all-errors-if-possible.patch ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: Actually pinpointing the invalid character may be impractical, as there are two boolean situations: either a UnicodeDecodeError (because you had an invalid UTF-8 stream), or PyUnicode_IsIdentifier returns false. Either way, it applies to the whole identifier.

[issue27580] CSV Null Byte Error

2016-07-21 Thread Skip Montanaro
Skip Montanaro added the comment: Beyond whether or not the csv module can handle NUL bytes, you might figure out if Excel will. Since the CSV format isn't some sort of "standard", its operational definition has always been what Excel will produce or consume. I don't have Excel (not a Windows

Re: Ide or code editor confusion

2016-07-21 Thread Chris Angelico
On Thu, Jul 21, 2016 at 11:56 PM, wrote: > I'm learning Python and something is really unclear on the chapter im on. > > So Python has its own IDE to write code but now it's talking about "code > editors" > > My confusion is so I need a code editor like Sublime text?

Ide or code editor confusion

2016-07-21 Thread sigmaphine1914
I'm learning Python and something is really unclear on the chapter im on. So Python has its own IDE to write code but now it's talking about "code editors" My confusion is so I need a code editor like Sublime text? Is that what Python IDE is for? --

[issue27580] CSV Null Byte Error

2016-07-21 Thread R. David Murray
R. David Murray added the comment: By "discussed before" I presume you are referring to issue 1599055. It is true that have been changes since then in Python's handling of null bytes. Perhaps it is indeed time to revisit this. I'll leave that to the experts...this can be closed as a

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue27578] inspect.findsource raises exception with empty __init__.py

2016-07-21 Thread R. David Murray
R. David Murray added the comment: I think someone should propose a patch with tests and we'll evaluate it. We prefer to retain backward compatibility even on undocumented interfaces, if possible, but yes they are more open to change (though only in a feature release, in general).

[issue26081] Implement asyncio Future in C to improve performance

2016-07-21 Thread Marco Paolini
Marco Paolini added the comment: THe guys developing uvloop say their implementation is already quite fast [1]. Is it worth integrating it? [1] https://github.com/MagicStack/uvloop -- nosy: +mpaolini ___ Python tracker

How to do Integration testing of a C code/firmware in python

2016-07-21 Thread puravnshah
I am doing an Internship at a company. I have a multi threaded code/firmware in c. I have done its unit testing with cantata in c++ and now want to do Integration testing in python with the device connected to my PC. From where do I start. How and what to write. The code has various functions

[issue26859] unittest fails with "Start directory is not importable" when trying to run sourceless tests

2016-07-21 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- stage: test needed -> patch review ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: The question was raised that there might be a problem with (UTF-8) bytes vs characters, but that's definitely not it - pythonrun.c:1362 UTF-8-decodes the line of source and then gets its character length to use as the new offset. So I don't think this is a

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Berker Peksag
Berker Peksag added the comment: This looks like a duplicate of issue 2382. -- nosy: +berker.peksag ___ Python tracker ___

[issue26852] android: add a COMPILEALL_FLAGS Makefile variable

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: > The python '-E' option was needed on 3.4 when this patch was first > implemented and is not needed anymore See msg 269359 in issue 22724. -- ___ Python tracker

Re: Floating point equality [was Re: What exactly is "exact" (was Clean Singleton Docstrings)]

2016-07-21 Thread Rustom Mody
On Thursday, July 21, 2016 at 12:04:35 PM UTC+5:30, Steven D'Aprano wrote: > On Thursday 21 July 2016 15:28, Rustom Mody wrote: > > BTW APL whose main domain of application is scientific chooses to enshrine > > this —equality is ε-neighborhood checking not exact equality checking — into > > its

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch that does not call sysconfig.get_config_var() on platforms that have '/bin/sh'. -- Added file: http://bugs.python.org/file43809/unix_shell_16255_2.patch ___ Python tracker

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread rk
New submission from rk: Modifying "default_section" in the configparser at runtime does not behave as described. The documentation says about default_section: When default_section is given, it specifies the name for the special section holding default values for other sections and

[issue17310] Ctypes callbacks shows problem on Windows Python (64bit)

2016-07-21 Thread Patrick Stewart
Patrick Stewart added the comment: I've attached a patch with an extra fix to the duplicated issue 20160 http://bugs.python.org/issue20160 -- ___ Python tracker

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2016-07-21 Thread Patrick Stewart
Patrick Stewart added the comment: This is still a problem, and the suggested fix seems to work. There is another error a few lines above where it is allocating 4 bytes for a pointer. I've attached a new patch with both fixes, but without Bob's tests. This issue is a duplicate of 17310

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: Issue 24034 is a duplicate. -- ___ Python tracker ___ ___ Python-bugs-list

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker ___ ___ Python-bugs-list

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Nick Coghlan
New submission from Nick Coghlan: Reporting by Rustom Mody on python-ideas, the SyntaxError caret is confusingly mispositioned when an invalid Unicode codepoint appears as part of a larger sequence of invalid codepoints and/or valid identifier characters: >>> varname = “d“a”t”apoint File

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: So the error message could be ('$@' being the target): Cannot generate $@, python not found ! To skip re-generation of $@ run 'make touch' or 'make -t $@'. Otherwise, set python in PATH and run configure or run make with PYTHON_FOR_GEN=python. Martin, what do

[issue27578] inspect.findsource raises exception with empty __init__.py

2016-07-21 Thread Antti Haapala
Antti Haapala added the comment: It must be noted that `getlines` itself is not documented, and thus there is no backwards-compatibility to preserve really. `getline` returns '' for *any* erroneous line, so it wouldn't affect it. -- ___ Python

  1   2   >